/* ============================================================
   Madison Hutto Muller — Portfolio
   Personal brand design system. Editorial, elevated, literary.
   Built on the MHM logo: deep navy + rose gold on warm cream.
   ============================================================ */

:root {
  /* ---- Brand neutrals ---- */
  --navy:       #16293f;   /* primary brand navy */
  --navy-2:     #22354e;
  --navy-deep:  #081726;   /* deep ground for dark sections (matches MorphoMinds) */
  --ink:        #26241f;   /* soft charcoal body text */
  --ink-soft:   #5e574d;
  --ink-faint:  #968b7c;
  --paper:      #f4f2ec;   /* clean warm ivory page */
  --paper-2:    #ebe7de;   /* deeper ivory band */
  --card:       #fcfbf7;   /* warm white surface */
  --line:       rgba(38, 36, 31, 0.14);
  --line-soft:  rgba(38, 36, 31, 0.08);
  --line-strong:rgba(38, 36, 31, 0.26);

  /* ---- Accent (tweakable) — copper ---- */
  --rose:       #b06a3c;
  --rose-deep:  #884d27;
  --accent:      var(--rose);
  --accent-deep: var(--rose-deep);
  --accent-tint: #ecdac6;
  --accent-line: rgba(176, 106, 60, 0.42);

  /* ---- Type ---- */
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Rhythm ---- */
  --maxw: 1200px;
  --maxw-narrow: 880px;
  --pad: clamp(22px, 5vw, 60px);
  --sp:  clamp(72px, 9vw, 132px);   /* section padding (density tweak) */
  --radius: 4px;
  --radius-lg: 8px;
}

/* ---- Accent tweaks ---- */
html[data-accent="teal"] { --accent: #3f8f86; --accent-deep: #2f6f68; --accent-tint: #dceae8; --accent-line: rgba(63,143,134,0.4); }
html[data-accent="plum"] { --accent: #7a5a86; --accent-deep: #5d4368; --accent-tint: #e8e0ec; --accent-line: rgba(122,90,134,0.4); }

/* ---- Density tweak ---- */
html[data-density="compact"] { --sp: clamp(46px, 6vw, 88px); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Layout
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--sp); position: relative; }
.section-sm { padding-block: clamp(48px, 6vw, 84px); }
.center { text-align: center; }

.band-cream { background: var(--paper-2); }
.band-navy  { background: var(--navy-deep); color: #f0ece3; }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.005em; color: var(--navy); }

.display {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h2.title { font-size: clamp(2.1rem, 4.6vw, 3.7rem); font-weight: 500; }
h3.sub { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }

.ital { font-style: italic; }
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow.line::before {
  content: ""; width: 34px; height: 1px; background: var(--accent); display: inline-block;
}
.band-navy .eyebrow { color: var(--accent); }

.lede {
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.62;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 56ch;
}
.band-navy .lede { color: rgba(255,255,255,0.74); }

.prose p { font-size: 1.12rem; line-height: 1.75; color: var(--ink); max-width: 64ch; }
.prose p + p { margin-top: 1.15em; }
.prose .big-serif {
  font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.28; color: var(--navy); font-weight: 500; max-width: 24ch;
}

.kicker-serif { font-family: var(--serif); font-style: italic; color: var(--accent-deep); }

/* hairline rule + leaf divider */
.rule { height: 1px; background: var(--line); border: 0; }
.leaf-div { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--accent); }
.leaf-div::before, .leaf-div::after { content: ""; height: 1px; width: 60px; background: var(--accent-line); }
.leaf-div svg { width: 26px; height: auto; opacity: 0.9; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem;
  letter-spacing: 0.01em; padding: 15px 28px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer;
  border: 1px solid transparent; transition: all .22s ease; white-space: nowrap; line-height: 1;
}
.btn .arrow { transition: transform .22s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-rose { background: var(--accent); color: #fff; }
.btn-rose:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); background: var(--paper); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

.textlink {
  font-family: var(--sans); font-weight: 600; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 0.5em;
  border-bottom: 1px solid var(--accent-line); padding-bottom: 2px; transition: gap .2s, border-color .2s;
}
.textlink:hover { gap: 0.8em; border-color: var(--accent); }
.band-navy .textlink { color: var(--accent); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250, 245, 236, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand .bname { display: flex; flex-direction: column; line-height: 1; }
.brand .bname .n { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; color: var(--navy); letter-spacing: 0.02em; white-space: nowrap; }
@media (max-width: 420px){ .brand .bname .n { font-size: 1.08rem; } }
.brand .bname .r { font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-deep); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 8px; white-space: nowrap; transition: color .15s, background .15s; position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px; background: var(--accent);
}
.nav-cta { margin-left: 8px; }
.nav-cta.btn { padding: 11px 22px; font-size: 0.88rem; }

/* nav dropdown */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-t { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-t::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.45; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 26px 48px -26px rgba(8,23,38,0.4); padding: 8px; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 210; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--ink-soft); white-space: nowrap; }
.nav-menu a:hover { background: var(--paper-2); color: var(--navy); }
.nav-menu a.active::after { display: none; }

.nav-toggle, .hamburger { display: none; }

@media (max-width: 1180px) { .nav-links a { padding: 9px 10px; font-size: 0.85rem; } }
@media (max-width: 1024px) {
  .hamburger { display: flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
  .hamburger span { width: 23px; height: 1.5px; background: var(--navy); transition: .25s; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 12px var(--pad) 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-135%); transition: transform .3s ease; box-shadow: 0 24px 44px -24px rgba(0,0,0,0.3);
  }
  .nav-links a { padding: 16px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav-links a.active::after { display: none; }
  .nav-drop { flex-direction: column; align-items: stretch; }
  .nav-drop-t::after { display: none; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; display: flex; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 0 18px; background: transparent; min-width: 0; }
  .nav-menu a { border-bottom: 1px solid var(--line-soft); font-size: 0.98rem; padding: 14px 6px; }
  .nav-cta { margin: 14px 6px 0; justify-content: center; }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding-block: clamp(56px, 7vw, 88px); }
.site-footer a { color: rgba(255,255,255,0.6); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .fmono { height: 70px; width: auto; margin-bottom: 18px; }
.footer-brand .fname { font-family: var(--serif); font-size: 1.7rem; color: #fff; font-weight: 500; letter-spacing: 0.02em; }
.footer-brand .ftag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: rgba(255,255,255,0.75); margin-top: 8px; max-width: 32ch; line-height: 1.4; }
.site-footer h5 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 11px; font-size: 0.96rem; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.42); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto; } }

/* ============================================================
   Metrics — By the Numbers
   ============================================================ */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 38px 26px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric .mv { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 4.4vw, 4rem); line-height: 0.95; color: var(--navy); letter-spacing: -0.01em; }
.metric .mv span { color: var(--accent); }
.metric .ml { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.4; }
@media (max-width: 860px) { .metrics { grid-template-columns: 1fr 1fr; } .metric:nth-child(2n) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 460px) { .metrics { grid-template-columns: 1fr; } .metric { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ============================================================
   Screenshot frame
   ============================================================ */
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -38px rgba(22,31,51,0.5); }
.shot img { width: 100%; display: block; }
.shot.browser { padding-top: 0; }
.shot .bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.shot-cap { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); margin-top: 12px; letter-spacing: 0.01em; }

/* image placeholder */
.ph { position: relative; background:
  repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #ece2d0 14px 28px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; place-items: center; color: var(--ink-faint);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.78rem; letter-spacing: 0.04em; text-align: center; padding: 20px; min-height: 200px; }

/* ============================================================
   Tags / chips / pills
   ============================================================ */
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--card); }
.tag.solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.tag.rose { background: var(--accent-tint); color: var(--accent-deep); border-color: transparent; }
.band-navy .tag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.82); }

/* ============================================================
   Generic grid
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
