/* FAI Action — landing site
 * Harmony · macrostructure: Letter (document-led, marginalia rail) · tone: austere/insider · anchor hue: International Orange (signal ≤4%)
 * Grid: IBM 2x / Müller-Brockmann — 16 columns · 32px gutters · 96px margins · 8px baseline. One source of truth.
 * Brand: FAI Action sub-brand (Cod Gray ground · Smoke White type · outlined double chevron · no display face · orange = signal not field)
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 */

/* Schmalfette — wired in but DORMANT (FAI Action has no display face; available via --font-display / .display if ever needed) */
@font-face {
  font-family: "Schmalfette Grotesk";
  src: url("./assets/fonts/SchmalfetteGrotesk.woff2") format("woff2"),
       url("./assets/fonts/SchmalfetteGrotesk.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* ---- grid: one source of truth (IBM 2x) ---- */
  --cols: 16;
  --bl: 8px;          /* baseline unit */
  --lh: 24px;         /* leading = 3 × baseline */
  --gutter: 32px;
  --margin: 96px;
  --pad: 96px;        /* spread top/bottom padding (× baseline) */
  --maxw: 1312px;     /* Carbon xlg */

  /* ---- palette — FAI Action ---- */
  --cod-gray: #121212;
  --graphite: #1e1e1e;
  --iron: #2a2a2a;
  --ash: #5a5a5a;
  --pewter: #8a8a8a;
  --mute: #c8c8c8;
  --smoke: #f3f3f3;
  --bone: #ede6d6;
  --white: #ffffff;
  --orange: #ff4f00;

  /* ---- type ---- */
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-display: "Schmalfette Grotesk", "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;

  --measure: 38rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cod-gray);
  color: var(--smoke);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* dormant display utility (Schmalfette) — present, not used by default */
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.015em; }

/* ============ GRID SCAFFOLD (one source of truth) ============ */
.spread { position: relative; width: 100%; }
.wrap { position: relative; max-width: var(--maxw); margin: 0 auto; padding: var(--pad) var(--margin); }
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--lh);
}
.band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  column-gap: var(--gutter);
  align-items: start;
}
@supports not (grid-template-columns: subgrid) {
  .band { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
}
/* column-line placements (the page's structural fingerprint) */
.col-rail { grid-column: 1 / 4; }     /* cols 1–3  — the marginalia rail */
.col-body { grid-column: 5 / 14; }    /* cols 5–13 — the reading column  */
.col-wide { grid-column: 5 / 17; }    /* cols 5–16 — wide content        */

/* ============ shared ============ */
.rail-label { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 36px; letter-spacing: 0.14em; color: var(--smoke); }
.signal { height: 3px; width: 100%; background: var(--orange); border: 0; margin: 0; }

/* ============ SPLASH ============ */
.splash { min-height: 100svh; overflow: hidden; }
.splash__texture { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; object-fit: cover; object-position: left top; }
.splash .wrap { min-height: 100svh; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.splash__inner { position: relative; z-index: 2; max-width: 100%; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: var(--lh); }
.splash__mark { max-width: 100%; }
.splash__mark { width: clamp(300px, 42vw, 600px); height: auto; display: block; }
.splash__mark .fill { fill: var(--smoke); }
.splash__subtitle { font-family: var(--font-mono); font-weight: 600; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--smoke); margin: 0; }
/* actions — float in at the bottom-left; "Learn more" scrolls the page off the splash */
.splash__actions {
  position: absolute; left: var(--margin); right: var(--margin); bottom: 40px; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gutter) var(--margin);
  animation: floatIn 0.7s var(--ease-out) 0.5s both;
}
.btn-touch {
  display: inline-flex; align-items: center;
  font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cod-gray); background: var(--smoke); border: 1px solid var(--smoke); padding: 15px 30px;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn-touch:hover { background: #ffffff; border-color: #ffffff; }
.splash__learn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-cond); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke);
  transition: color 0.2s var(--ease-out);
}
.splash__learn svg { width: 18px; height: 21px; animation: bob 2.4s var(--ease-out) infinite; }
.splash__learn:hover { color: var(--orange); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============ DOCUMENT ============ */
.doc-spread .wrap { border-top: 1px solid var(--iron); }
#about .wrap { border-top: 0; }
.section__rail { padding-top: var(--bl); text-align: right; }

/* about — uniform serif, smoke (matches Paper) */
.lead { font-size: 24px; line-height: 32px; color: var(--smoke); margin: 0 0 var(--lh); }
.about__body p { font-size: 24px; line-height: 32px; color: var(--smoke); margin: 0 0 var(--lh); }
.about__body p:last-child { margin-bottom: 0; }

/* staff */
.staff__list { display: flex; flex-direction: column; }
.staff__item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--gutter); align-items: start; padding: var(--lh) 0; border-top: 1px solid var(--iron); }
.staff__photo { width: 104px; height: 104px; object-fit: cover; border: 1px solid var(--iron); display: block; filter: grayscale(1) contrast(1.03); transition: filter 0.3s var(--ease-out); }
.staff__item:hover .staff__photo { filter: none; }
.staff__content { min-width: 0; }
.staff__item:first-child { border-top: 0; padding-top: 0; }
.staff__name { font-size: 21px; line-height: 28px; font-weight: 600; color: var(--smoke); margin: 0; grid-column: 1; }
.staff__title { font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pewter); margin: var(--bl) 0 0; grid-column: 1; }
.staff__org { font-family: var(--font-serif); font-style: italic; font-size: 16px; line-height: var(--lh); letter-spacing: 0.04em; color: var(--pewter); margin: var(--bl) 0 0; }
.staff__bio { color: var(--mute); font-size: 17px; line-height: var(--lh); margin: var(--bl) 0 0; max-width: var(--measure); }
.staff__links { display: flex; gap: var(--gutter); margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.staff__links a { color: var(--ash); text-decoration: none; transition: color 0.15s var(--ease-out); }
.staff__links a::after { content: " \2197"; color: var(--pewter); }
.staff__links a:hover, .staff__links a:hover::after { color: var(--orange); }
.staff__email { grid-column: 2; grid-row: 1 / span 3; font-family: var(--font-mono); font-size: 13px; color: var(--ash); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; transition: color 0.15s var(--ease-out); }
.staff__email:hover { color: var(--orange); }

/* ============ FOOTER ============ */
.footer-spread .wrap { border-top: 1px solid var(--iron); }
.footer__rule { height: 2px; width: 64px; background: var(--orange); border: 0; margin: 0 0 var(--lh); }
.footer__org { font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.footer__lockup { width: 200px; height: auto; display: block; }
.footer__contact { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--pewter); letter-spacing: 0.02em; text-align: right; }
.footer__contact a { text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s var(--ease-out); }
.footer__contact a:hover { color: var(--orange); }
.footer__copy { color: var(--ash); margin-top: var(--bl); }

/* ============ focus / reveal ============ */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .splash__learn svg { animation: none; }
  .splash__actions { animation: none; }
}

/* ============ RESPONSIVE (Carbon: collapse the 16-col field) ============ */
@media (max-width: 1056px) { :root { --margin: 48px; --pad: 64px; } }
@media (max-width: 672px) {
  :root { --margin: 16px; --pad: 48px; }
  .col-rail, .col-body, .col-wide { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr; column-gap: 0; }
  .band { grid-template-columns: 1fr; column-gap: 0; row-gap: var(--bl); }
  .section__rail { padding-top: 0; padding-bottom: var(--bl); text-align: left; }
  .lead, .about__body p { font-size: 21px; line-height: 30px; }
  .staff__item { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .staff__photo { width: 64px; height: 64px; }
  .splash__texture { object-position: 70% center; }
  .splash__mark { width: min(72vw, 300px); }
}
