/* ============================================================
   Kestrel — pre-launch placeholder
   Same tokens as the full site (site/assets/styles.css) so the
   two never drift apart. Deliberately a subset: this page has no
   tables, no evidence panels, no interactive widgets. If you find
   yourself adding one, it belongs on the real site instead.
   ============================================================ */

:root {
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-ui:      "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body:    Spectral, Georgia, "Times New Roman", serif;
  --font-data:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg:            #f5efe4;
  --bg-elevated:   #fdfaf4;
  --bg-muted:      #efe8db;
  --ink-strong:    #241d15;
  --ink:           #241d15eb;
  --ink-toned:     #241d15d6;
  --ink-muted:     #241d15c4;
  --ink-dim:       #241d15b8;   /* 6.44:1 on sheet — AA floor for small text */
  --border:        #241d1529;
  --border-muted:  #241d1514;

  --brand:       #4b2e86;
  --brand-deep:  #3a2368;
  --brand-tint:  #4b2e860f;
  --brand-edge:  #4b2e865c;
  --on-brand:    #f7f3ec;
  --on-brand-dim:#f7f3ecc7;
  --on-brand-edge:#f7f3ec3d;

  --text-display: clamp(2.75rem, 7.4vw, 5.875rem);
  --text-h1:      clamp(2rem, 4.6vw, 2.625rem);
  --text-h2:      clamp(1.75rem, 3.6vw, 3.75rem);
  --text-lede:    clamp(1.125rem, 1.9vw, 1.375rem);
  --text-ui:      0.9375rem;

  --tracking-display: -0.032em;
  --tracking-heading: -0.026em;
  --tracking-label:   0.2em;

  --radius: 3px;
  --radius-pill: 999px;
  --measure: 68ch;

  --pad-x: clamp(1.25rem, 4.7vw, 3.5rem);
  --section-y: clamp(3rem, 6vw, 4.75rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); }
h1 { font-size: var(--text-display); letter-spacing: var(--tracking-display); line-height: 0.93; }
h2 { font-size: var(--text-h1); letter-spacing: var(--tracking-heading); line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.125rem; letter-spacing: -0.018em; }
p  { margin: 0; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
.skip, .wordmark, .btn { text-decoration: none; }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}
.band :where(a, button, input, select):focus-visible { outline-color: var(--on-brand); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; color: var(--on-brand); }

/* ---------- primitives ---------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.display { font-family: var(--font-display); font-variation-settings: "opsz" 96; }

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-dim);
}

.section-marker { display: inline-flex; align-items: center; gap: 0.625rem; margin-bottom: 1.375rem; }
.section-marker::before {
  content: ""; width: 7px; height: 7px; border-radius: var(--radius-pill);
  background: var(--brand); flex-shrink: 0;
}

.lede { font-family: var(--font-body); font-size: var(--text-lede); line-height: 1.5; }
.prose { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.62; color: var(--ink-toned); max-width: var(--measure); }

/* Parked. The page carries no call to action at the moment, by decision, but
   the button and hero-CTA rules stay so reinstating one is a markup change
   only. Delete them if the placeholder ships without a CTA for good. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8125rem 1.625rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 600; font-size: var(--text-ui);
  border: 0; cursor: pointer;
}
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { background: var(--brand-deep); color: var(--on-brand); }
.btn--invert { background: var(--on-brand); color: var(--brand-deep); }
.btn--invert:hover { background: #fff; color: var(--brand-deep); }
.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* Parked with the button rules: the page carries no bracketed placeholder at
   the moment, but the convention is shared with ../site and any fact added here
   before it is true should be marked this way. */
.placeholder {
  font-family: var(--font-data); font-size: 0.8125rem;
  color: var(--ink-dim); border: 1px dashed var(--ink-dim);
  padding: 0.0625rem 0.375rem; border-radius: 2px; white-space: nowrap;
}

/* ---------- utilities ---------- */
/* Spacing utilities rather than style attributes: the content policy is
   style-src 'self' with no unsafe-inline, and scripts/check.sh fails on a
   style attribute anywhere in the markup. Names match site/assets/styles.css. */

.mt-4 { margin-top: 1.125rem; }
.mt-6 { margin-top: 1.5rem; }
.wordmark--sm { font-size: 1.1875rem; }

/* ---------- shell and sections ---------- */

.shell { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section-y) var(--pad-x); border-bottom: 1px solid var(--border); }
.section--flush { border-bottom: 0; }
.band { background: var(--brand); color: var(--on-brand); border-bottom: 0; }
.band h1, .band h2, .band h3 { color: var(--on-brand); }
.band .eyebrow { color: var(--on-brand-dim); }
.band .section-marker::before { background: var(--on-brand); }

/* ---------- nav ---------- */

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem var(--pad-x); background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-muted); flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem;
  letter-spacing: -0.022em; color: var(--ink-strong); display: inline-flex; align-items: center;
}
.wordmark__name { position: relative; display: inline-block; line-height: 1; }
.wordmark__point {
  position: absolute; left: calc(100% + 0.09em); bottom: 0.96em;
  width: 0.22em; height: 0.22em; border-radius: var(--radius-pill); background: var(--brand);
}

/* ---------- hero ---------- */

/* The hero is the film and nothing else. Its padding is even on all sides so
   the frame sits in the band rather than under a heading that is no longer
   there. */
.hero { padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x); }

/* ---------- the film ---------- */
/* Lives inside the hero band. The composition's own scenes are this same
   indigo, so paper-toned chrome would read as a foreign object dropped on the
   band — the frame borrows the band's own edge and ground instead. */

.videofig { margin: 0; padding: 0; }
.videofig__frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--brand-deep); border: 1px solid var(--on-brand-edge);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* 1920x1080 into a 16/9 box is an exact fit, so cover crops nothing. */
.videofig__frame video { width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--brand-deep); }
.videofig__fallback { font-family: var(--font-ui); font-size: var(--text-ui); color: var(--on-brand-dim); text-align: center; padding: 2rem; margin: 0; }
.videofig__fallback a { color: var(--on-brand); }
.videofig__cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 0.875rem; flex-wrap: wrap;
  font-family: var(--font-data); font-size: 0.75rem; color: var(--on-brand-dim);
}

/* ---------- premise ---------- */

.premise h2 { max-width: 17ch; font-size: var(--text-h2); line-height: 1.0; letter-spacing: -0.03em; }
.premise .prose { margin-top: 1.75rem; }

/* ---------- the four ---------- */

.four {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--border);
}
.tease {
  padding: 2rem 2.5rem 2.25rem 0;
  border-bottom: 1px solid var(--border-muted);
}
.tease:nth-child(odd) { border-right: 1px solid var(--border-muted); }
.tease:nth-child(even) { padding-left: 2.5rem; }
.tease:nth-last-child(-n+2) { border-bottom: 0; }
.tease__n {
  font-family: var(--font-data); font-size: 0.6875rem; letter-spacing: 0.16em;
  color: var(--brand); display: block; margin-bottom: 0.875rem;
}
.tease h3 { margin-bottom: 0.75rem; max-width: 22ch; }
.tease__body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-muted); max-width: 44ch; }

/* ---------- the quiet list ---------- */

.quiet { display: flex; flex-direction: column; border-top: 1px solid var(--border); margin-top: 2.25rem; }
.quiet__row {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem;
  padding: 1.0625rem 0; border-bottom: 1px solid var(--border-muted);
}
.quiet__row:last-child { border-bottom: 0; }
.quiet__term { font-weight: 600; font-size: var(--text-ui); color: var(--ink-strong); }
.quiet__def { font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--ink-muted); }

/* ---------- honesty ---------- */

.honest { background: var(--bg-muted); }
.honest__quote {
  font-family: var(--font-display); font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 600; letter-spacing: -0.024em; line-height: 1.25;
  color: var(--ink-strong); max-width: 26ch; margin-top: 2rem;
}

/* ---------- sign-off ---------- */

.close { padding: clamp(3rem, 6vw, 4.875rem) var(--pad-x); }
.close h2 { font-size: var(--text-h2); line-height: 1.0; letter-spacing: -0.03em; }
.close__sub { margin-top: 1.5rem; color: var(--on-brand); max-width: 42ch; }

/* ---------- footer ---------- */

.footer {
  padding: 2.5rem var(--pad-x) 3rem; background: var(--bg-elevated);
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start;
}
.footer__legal { font-family: var(--font-data); font-size: 0.6875rem; color: var(--ink-dim); margin-top: 0.75rem; line-height: 1.8; }
.footer__contact { font-family: var(--font-data); font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.9; text-align: right; }
.footer__contact a { color: var(--ink-muted); }
.footer__contact a:hover { color: var(--ink-strong); }

/* ---------- responsive ---------- */

@media (max-width: 700px) {
  .four { grid-template-columns: minmax(0, 1fr); }
  .tease { padding: 1.75rem 0; border-right: 0 !important; border-bottom: 1px solid var(--border-muted); }
  .tease:nth-child(even) { padding-left: 0; }
  .tease:last-child { border-bottom: 0; }
  .quiet__row { grid-template-columns: minmax(0, 1fr); gap: 0.375rem; }
  .footer { flex-direction: column; }
  .footer__contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
