/* ============================================================================
   MountEdge — style.css
   Bold, light "engineering field-manual" aesthetic.
   Periwinkle (#bbd0ff) masthead colour-blocking + near-navy structure,
   hard offset shadows, blueprint patterns, one consistent container width.
   ----------------------------------------------------------------------------
   DESIGN TOKENS
   ----------------------------------------------------------------------------
   Colour
     --bg           #f4f6fb   very-white-gray page background
     --surface      #ffffff   cards / panels
     --surface-2    #e9eefb   tinted wells / patterned bands
     --line         #c4d1ee   soft hairline borders
     --line-soft    #dbe3f5   quieter dividers
     --navy         #111a30   structural borders, anchor colour, headings
     --primary      #bbd0ff   masthead fields, fills, accents, patterns
     --primary-strong #9ab6f7 hover on primary fills
     --ink-accent   #2d4ea8   links, labels, active — readable deep periwinkle
     --secondary    #4560c0   technical / diagram accents
     --signal       #c77d18   sparing amber — cautions
     --text         #2c3a56   body copy
     --text-dim     #63728f   secondary / meta text
     --heading      #111a30   headings
   Type
     --font-display "Space Grotesk"  headings (600/700)
     --font-body    "IBM Plex Sans"  body
     --font-mono    "IBM Plex Mono"  technical labels, numerals
   Geometry
     --bw           1.5px     structural border weight
     --radius       4px
     --maxw         1180px    one content measure, every page
   ============================================================================ */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #e9eefb;
  --line: #c4d1ee;
  --line-soft: #dbe3f5;
  --navy: #111a30;
  --primary: #bbd0ff;
  --primary-strong: #9ab6f7;
  --ink-accent: #2d4ea8;
  --secondary: #4560c0;
  --signal: #c77d18;
  --text: #2c3a56;
  --text-dim: #63728f;
  --heading: #111a30;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --bw: 1.5px;
  --radius: 4px;
  --radius-sm: 3px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 44px);

  --shadow-hard: 5px 5px 0 rgba(17, 26, 48, .10);
  --shadow-hard-lg: 8px 8px 0 rgba(17, 26, 48, .12);
  --shadow-soft: 0 4px 16px rgba(20, 40, 90, .08);
}

/* ---------- Reset-ish base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
a { color: var(--ink-accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
strong { color: var(--heading); font-weight: 600; }

::selection { background: rgba(187, 208, 255, .7); color: var(--navy); }

/* Visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--ink-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); font-weight: 600; z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw); }
.section { padding: clamp(52px, 8vw, 100px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

/* Patterned band — tinted well with a faint blueprint grid, navy hairlines */
.band { position: relative; background: var(--surface-2); overflow: hidden; border-block: var(--bw) solid var(--navy); }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .85;
  background-image:
    linear-gradient(rgba(17, 26, 48, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 26, 48, .13) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 30%, #000 60%, transparent 95%);
          mask-image: radial-gradient(ellipse 120% 100% at 50% 30%, #000 60%, transparent 95%);
}
.band > .wrap { position: relative; z-index: 1; }

/* Dotted texture variant (used on hero) */
.dots { position: relative; overflow: hidden; }
.dots::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(17, 26, 48, .16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
}
.mono-label::before { content: ""; width: 26px; height: 2px; background: var(--ink-accent); }

.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text); line-height: 1.6; max-width: 62ch; }

.divider { height: var(--bw); background: var(--navy); border: 0; margin: 0; opacity: .12; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
  letter-spacing: .02em;
  padding: 13px 22px; border-radius: var(--radius);
  border: var(--bw) solid var(--navy); cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-hard); }
.btn--primary:hover { background: #1c2a4d; text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
.btn--ghost { background: var(--surface); color: var(--navy); }
.btn--ghost:hover { background: var(--primary); text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.btn__idx { font-family: var(--font-mono); font-size: 11px; opacity: .65; }

/* ============================================================================
   Header / navigation
   ============================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 246, 251, .9);
  backdrop-filter: blur(10px);
  border-bottom: var(--bw) solid var(--navy);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--heading); letter-spacing: -0.03em; }
.brand__word b { color: var(--ink-accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: var(--text-dim); padding: 8px 13px; border-radius: var(--radius);
  border: var(--bw) solid transparent;
  position: relative;
}
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); background: var(--primary); border-color: var(--navy); }

.nav-toggle {
  display: none; background: var(--surface); border: var(--bw) solid var(--navy);
  border-radius: var(--radius); width: 42px; height: 40px; cursor: pointer;
  color: var(--navy); padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor;
  margin: 0 auto; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: var(--bw) solid var(--navy);
    box-shadow: var(--shadow-soft);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 14px; }
  .nav a[aria-current="page"] { color: var(--ink-accent); background: transparent; border-color: transparent; border-bottom-color: var(--line-soft); }
}

/* ============================================================================
   Blueprint grid motif (masthead backgrounds)
   ============================================================================ */
.grid-motif {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 26, 48, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 26, 48, .11) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 80% 12%, #000 18%, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 90% at 80% 12%, #000 18%, transparent 72%);
  opacity: .8;
}

/* ============================================================================
   Hero (home masthead) — full-bleed periwinkle colour block
   ============================================================================ */
.hero { position: relative; overflow: hidden; background: var(--primary); border-bottom: var(--bw) solid var(--navy); }
.hero__inner { position: relative; z-index: 1; padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(48px, 7vw, 84px); }
.hero .mono-label { color: var(--navy); }
.hero .mono-label::before { background: var(--navy); }
.hero h1 {
  font-size: clamp(38px, 7vw, 78px); line-height: 1.02; color: var(--navy);
  max-width: none; margin-bottom: 22px; letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--ink-accent); }
.hero .lead { margin-bottom: 32px; color: #22304f; max-width: none; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Spec strip — engineering data-sheet header */
.hero__meta {
  margin-top: 46px; display: flex; flex-wrap: wrap; gap: var(--bw);
  border: var(--bw) solid var(--navy); border-radius: var(--radius);
  overflow: hidden; max-width: none; background: var(--navy);
  box-shadow: var(--shadow-hard);
}
.hero__meta div { flex: 1 1 0; min-width: 150px; padding: 18px 22px; background: var(--surface); }
.hero__meta dt { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 6px; }
.hero__meta dd { margin: 0; color: var(--heading); font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

/* ============================================================================
   Guide index / table of contents
   ============================================================================ */
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: var(--bw); background: var(--navy); border: var(--bw) solid var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hard); }
.toc__item { background: var(--surface); padding: 26px 26px 28px; display: block; transition: background .16s ease, color .16s ease; }
.toc__item:hover { background: var(--primary); text-decoration: none; }
.toc__num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-accent); letter-spacing: .06em; }
.toc__item h3 { font-size: 19px; margin: 12px 0 8px; }
.toc__item p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.55; }
.toc__item:hover p { color: #33415c; }
.toc__item .toc__arrow { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-accent); }
.toc__item .toc__arrow::after { content: "\2192"; transition: transform .16s ease; }
.toc__item:hover .toc__arrow::after { transform: translateX(4px); }

/* ============================================================================
   Spec blocks (two-column documentation rows)
   ============================================================================ */
.spec { border-top: var(--bw) solid var(--navy); }
.spec__row {
  display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 5vw, 64px);
  padding: clamp(30px, 5vw, 52px) 0; border-bottom: 1px solid var(--line);
}
.spec__row:last-child { border-bottom: 0; }
.spec__key .mono-label { margin-bottom: 12px; }
.spec__key h3 { font-size: 22px; margin: 0; }
.spec__val p:last-child { margin-bottom: 0; }
.spec__val ul { margin: 12px 0 0; padding: 0; list-style: none; }
.spec__val li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 15px; }
.spec__val li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; background: var(--primary); border: 1.5px solid var(--secondary); border-radius: 1px; transform: rotate(45deg); }

@media (max-width: 720px) {
  .spec__row { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================================
   Callout / note / caution
   ============================================================================ */
.note {
  border: var(--bw) solid var(--navy); border-left-width: 7px;
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0; box-shadow: var(--shadow-hard);
}
.note--caution { border-left-color: var(--signal); }
.note__label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 6px; display: block; }
.note--caution .note__label { color: var(--signal); }
.note p { margin: 0; font-size: 14.5px; color: var(--text); }

/* ============================================================================
   Mounting guide — timeline + sticky progress
   ============================================================================ */
.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

.progress-nav { position: sticky; top: 92px; align-self: start; }
.progress-nav__title { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 14px; }
.progress-track { position: relative; }
.progress-track__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.progress-track__fill { position: absolute; left: 0; top: 0; width: 2px; background: var(--ink-accent); height: 0; transition: height .2s ease; }
.progress-list { list-style: none; margin: 0; padding: 0 0 0 18px; }
.progress-list li { margin: 0; }
.progress-list a {
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  padding: 7px 0; line-height: 1.4;
}
.progress-list a:hover { color: var(--navy); text-decoration: none; }
.progress-list a.is-active { color: var(--navy); font-weight: 600; }
.progress-list a .n { color: var(--ink-accent); flex-shrink: 0; }

.progress-count { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.progress-count b { color: var(--navy); }

/* Step disclosures */
.steps { border-top: var(--bw) solid var(--navy); }
.step { border-bottom: var(--bw) solid var(--line); scroll-margin-top: 92px; }
.step__btn {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 26px 4px; color: inherit; font: inherit;
}
.step__num { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); font-weight: 700; color: var(--primary); -webkit-text-stroke: 1.4px var(--navy); line-height: .9; letter-spacing: -0.02em; }
.step__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 22px); color: var(--heading); letter-spacing: -0.01em; }
.step__toggle {
  width: 32px; height: 32px; border: var(--bw) solid var(--navy); border-radius: var(--radius);
  position: relative; flex-shrink: 0; transition: background .16s ease;
}
.step__btn:hover .step__toggle { background: var(--primary); }
.step__toggle::before, .step__toggle::after {
  content: ""; position: absolute; background: var(--navy);
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.step__toggle::before { width: 12px; height: 2px; }
.step__toggle::after { width: 2px; height: 12px; transition: transform .2s ease, opacity .2s ease; }
.step__btn[aria-expanded="true"] .step__toggle { background: var(--primary); }
.step__btn[aria-expanded="true"] .step__toggle::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }

.step__panel { display: none; padding: 0 4px 30px 56px; }
.step__panel.is-open { display: block; }
.step__panel p { color: var(--text); font-size: 15.5px; }
.step__req {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  padding: 14px 0 4px; border-top: 1px dashed var(--line); margin-top: 18px;
}
.step__req .k { color: var(--ink-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.step__req .tag { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px 9px; color: var(--text); }

@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; }
  .progress-nav {
    position: sticky; top: 66px; z-index: 40;
    background: var(--surface); border: var(--bw) solid var(--navy); border-radius: var(--radius);
    box-shadow: var(--shadow-hard); padding: 14px 16px; margin-bottom: 8px;
  }
  .progress-nav__scroll { display: none; }
  .progress-nav[data-mobile] .progress-bar-mobile { display: block; }
  .step__panel { padding-left: 4px; }
}
/* Mobile compact progress */
.progress-bar-mobile { display: none; }
@media (max-width: 820px) {
  .progress-bar-mobile { display: block; }
  .progress-bar-mobile__track { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
  .progress-bar-mobile__fill { height: 100%; width: 0; background: var(--ink-accent); transition: width .2s ease; }
}

/* ============================================================================
   FAQ
   ============================================================================ */
.faq { border-top: var(--bw) solid var(--navy); }
.faq__item { border-bottom: var(--bw) solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 2.2vw, 18.5px); color: var(--heading); letter-spacing: -0.01em;
}
.faq__q .sign { flex-shrink: 0; width: 26px; height: 26px; position: relative; border: var(--bw) solid var(--navy); border-radius: var(--radius); transition: background .16s ease; }
.faq__q:hover .sign { background: var(--primary); }
.faq__q .sign::before, .faq__q .sign::after { content: ""; position: absolute; background: var(--navy); left: 50%; top: 50%; transform: translate(-50%,-50%); }
.faq__q .sign::before { width: 11px; height: 2px; }
.faq__q .sign::after { width: 2px; height: 11px; transition: transform .2s ease, opacity .2s ease; }
.faq__q[aria-expanded="true"] .sign { background: var(--primary); }
.faq__q[aria-expanded="true"] .sign::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
.faq__a { display: none; padding: 0 4px 24px; max-width: 74ch; }
.faq__a.is-open { display: block; }
.faq__a p { color: var(--text); font-size: 15px; margin: 0; }

/* ============================================================================
   Cards / resources
   ============================================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { border: var(--bw) solid var(--navy); border-radius: var(--radius); background: var(--surface); padding: 28px; box-shadow: var(--shadow-hard); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard-lg); }
.card__ic { width: 48px; height: 48px; display: grid; place-items: center; background: var(--primary); border: var(--bw) solid var(--navy); border-radius: var(--radius); color: var(--navy); margin-bottom: 18px; }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin: 0 0 8px; }
.card p { font-size: 14.5px; color: var(--text-dim); margin: 0 0 14px; }
.card a.card__link { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink-accent); }

/* Feature two-col with diagram */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .feature-split { grid-template-columns: 1fr; } }
.diagram-frame { border: var(--bw) solid var(--navy); border-radius: var(--radius); background: var(--surface); padding: 24px; position: relative; box-shadow: var(--shadow-hard); }
.diagram-frame::after { content: attr(data-fig); position: absolute; bottom: 10px; right: 14px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: .08em; }

/* ============================================================================
   Contact
   ============================================================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--bw); background: var(--navy); border: var(--bw) solid var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hard); }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { background: var(--primary); padding: clamp(26px, 4vw, 40px); }
.contact-aside h2 { font-size: 21px; }
.cinfo { display: flex; flex-direction: column; gap: 3px; padding: 16px 0; border-bottom: 1px solid rgba(17,26,48,.18); }
.cinfo:last-child { border-bottom: 0; }
.cinfo .k { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-accent); margin: 0; }
.cinfo p { margin: 0; font-size: 14.5px; color: var(--navy); }
.contact-aside a { color: var(--navy); text-decoration: underline; }
.contact-form { background: var(--surface); padding: clamp(26px, 4vw, 40px); }
.contact-form h2 { font-size: 21px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: var(--bw) solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; color: var(--heading);
  font-family: var(--font-body); font-size: 15px; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #98a4ba; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(187,208,255,.6); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-status { display: none; margin: 4px 0 16px; padding: 13px 15px; border-radius: var(--radius); font-size: 14px; font-family: var(--font-mono); }
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--surface-2); border: var(--bw) solid var(--secondary); color: var(--ink-accent); }

/* ============================================================================
   Prose (legal / about long-form)
   ============================================================================ */
.prose h2 { font-size: 25px; margin-top: 46px; }
.prose h3 { font-size: 19px; margin-top: 30px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }
.prose .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }

/* ============================================================================
   Page header band (interior pages) — periwinkle masthead
   ============================================================================ */
.page-head { position: relative; overflow: hidden; background: var(--primary); border-bottom: var(--bw) solid var(--navy); }
.page-head__inner { position: relative; z-index: 1; padding: clamp(52px, 8vw, 88px) var(--gutter) clamp(40px, 5vw, 56px); }
.page-head .mono-label { color: var(--navy); }
.page-head .mono-label::before { background: var(--navy); }
.page-head h1 { font-size: clamp(30px, 5vw, 52px); max-width: none; color: var(--navy); }
.page-head .lead { color: #22304f; font-weight: 500; max-width: none; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: #3a4a6b; margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-accent); }
.breadcrumb a:hover { color: var(--navy); }

/* ============================================================================
   Footer — navy anchor
   ============================================================================ */
.site-footer { border-top: var(--bw) solid var(--primary); background: var(--navy); color: #b7c4dd; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: clamp(48px, 6vw, 72px) 0 44px; }
@media (max-width: 820px) { .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer .brand__word { color: #fff; }
.site-footer .brand__word b { color: var(--primary); }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7f8fb0; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b7c4dd; font-size: 14.5px; font-weight: 400; }
.site-footer a:hover { color: var(--primary); text-decoration: none; }
.footer-brand p { font-size: 14px; color: #8f9dbb; max-width: 34ch; margin-top: 14px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-note p { font-size: 13px; color: #8494b3; margin: 0; max-width: 90ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom p { margin: 0; font-family: var(--font-mono); font-size: 12px; color: #8494b3; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom nav a { font-family: var(--font-mono); font-size: 12px; color: #8494b3; }

/* ============================================================================
   404
   ============================================================================ */
.err { text-align: center; padding: clamp(70px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.err__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(72px, 18vw, 170px); color: var(--primary); line-height: 1; letter-spacing: -0.02em; -webkit-text-stroke: 2px var(--navy); position: relative; z-index: 1; }
.err__content { position: relative; z-index: 2; margin-top: -20px; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 16px; }
