/* ─────────────────────────────────────────────────────────────
   Never Had It So Good — pre-launch landing
   Brand tokens follow DESIGN.md. Edit there first, mirror here.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Bourbon';
  src: url('fonts/Bourbon.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Color — every neutral tinted toward the burnt-orange hue */
  --ink:        oklch(15% 0.008 45);
  --ink-deep:   oklch(10% 0.006 45);
  --bone:       oklch(94% 0.012 80);
  --bone-warm:  oklch(90% 0.014 78);
  --ember:      oklch(60% 0.16 42);
  --ember-ink:  oklch(35% 0.10 42);
  --ash:        oklch(45% 0.005 60);
  --mist:       oklch(82% 0.005 60);

  /* Bourbon is the licensed display face; Saira/system-ui are emergency fallbacks. */
  --font-display: 'Bourbon', 'Saira Condensed', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --gutter:        clamp(20px, 5vw, 96px);
  --section-pad-y: clamp(80px, 12vw, 200px);

  /* Motion */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ─── Reset ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

/* ─── Display type ──────────────────────────────────────────── */

.display-xl,
.display-lg,
.display-sm {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.92;
  margin: 0;
  /* Optical correction — Saira tracks looser than Bourbon would. */
  font-stretch: condensed;
}
.display-xl { font-size: clamp(56px, 14vw, 168px); }
.display-lg { font-size: clamp(40px, 9vw, 104px); }
.display-sm { font-size: clamp(28px, 5vw, 56px); }

/* Highlight word inside body copy — colored, not gradient. */
em {
  font-style: normal;
  color: var(--ember);
}

/* ─── Patch monogram ────────────────────────────────────────── */

.patch,
.footer__mark {
  display: inline-block;
  line-height: 0;
  transition: opacity 200ms var(--ease-out-quart);
}
.patch:hover,
.footer__mark:hover {
  opacity: 0.78;
}
.patch img {
  display: block;
  width: clamp(140px, 14vw, 200px);
  height: auto;
}
.footer__mark img {
  display: block;
  width: clamp(112px, 11vw, 152px);
  height: auto;
}

/* ─── Hero ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  pointer-events: none;
  /* Pull contrast down so the display type stays the focus. */
  opacity: 0.92;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      var(--ink) 0%,
      color-mix(in oklch, var(--ink) 94%, transparent) 32%,
      color-mix(in oklch, var(--ink) 55%, transparent) 60%,
      color-mix(in oklch, var(--ink) 20%, transparent) 100%
    );
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.91 0 0 0 0 0.84 0 0 0 0.6 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.hero__nav,
.hero__stage,
.hero__tag {
  position: relative;
  z-index: 1;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero__stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(40px, 8vw, 96px) 0;
}

.hero__stage .display-xl {
  color: var(--bone);
  max-width: 14ch;
}

.hero__caption {
  margin: clamp(16px, 2.4vw, 28px) 0 0;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 500;
}

.hero__tag {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  justify-content: space-between;
  align-items: end;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 500;
}
.hero__tag span:last-child { text-align: right; }

/* ─── Manifesto ─────────────────────────────────────────────── */

.manifesto {
  background: var(--bone);
  color: var(--ink);
  padding: var(--section-pad-y) var(--gutter);
}
.manifesto__eyebrow {
  margin: 0 0 clamp(24px, 4vw, 56px);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember-ink);
  font-weight: 600;
}
.manifesto__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.manifesto__lead,
.manifesto__body {
  max-width: 36ch;
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: var(--ink);
}
.manifesto__lead { font-weight: 500; }
.manifesto em {
  color: var(--ember-ink);
  font-weight: 600;
  font-style: normal;
}
.manifesto .quote {
  display: block;
  margin-top: clamp(14px, 1.6vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--ash);
  text-indent: 0;
}
.manifesto .quote::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--ember);
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

/* ─── Scripture moment ──────────────────────────────────────── */

.scripture {
  background: var(--ink-deep);
  color: var(--bone);
  padding: var(--section-pad-y) var(--gutter);
  text-align: center;
  position: relative;
  isolation: isolate;
}
.scripture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.91 0 0 0 0 0.84 0 0 0 0.6 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}
.scripture > * { position: relative; z-index: 1; }

.scripture__verse {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(34px, 6vw, 76px);
  color: var(--bone);
}
.scripture__verse em {
  color: var(--ember);
  font-style: italic;
  font-weight: 900;
}
.scripture__cite {
  margin: clamp(20px, 3vw, 36px) 0 0;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 500;
}

/* ─── Signup ────────────────────────────────────────────────── */

.signup {
  background: var(--ink);
  color: var(--bone);
  padding: var(--section-pad-y) var(--gutter);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  position: relative;
}

.signup .display-lg {
  color: var(--bone);
  max-width: 16ch;
}

.signup__body {
  max-width: 44ch;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--bone);
  margin: 0;
  opacity: 0.86;
}

.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
  margin-top: 4px;
}

.signup__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 18px 20px;
  background: transparent;
  color: var(--bone);
  border: 1px solid color-mix(in oklch, var(--ash) 60%, transparent);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: border-color 200ms var(--ease-out-quart);
}
.signup__input::placeholder { color: color-mix(in oklch, var(--ash) 70%, transparent); }
.signup__input:focus {
  outline: none;
  border-color: var(--ember);
}
.signup__input:disabled {
  cursor: not-allowed;
}

.signup__submit {
  flex: 0 0 auto;
  padding: 18px 28px;
  background: transparent;
  color: var(--ember);
  border: 1px solid var(--ember);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background-color 200ms var(--ease-out-quart),
    color 200ms var(--ease-out-quart);
}
.signup__submit:not(:disabled):hover,
.signup__submit:not(:disabled):focus-visible {
  background: var(--ember);
  color: var(--ink);
  outline: none;
}
.signup__submit:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.signup__fineprint {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0;
}

/* ─── Footer ────────────────────────────────────────────────── */

.footer {
  background: var(--ink-deep);
  color: var(--ash);
  padding: clamp(32px, 5vw, 56px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid color-mix(in oklch, var(--ash) 30%, transparent);
}
.footer__mark { width: clamp(96px, 12vw, 140px); }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── Larger screens ────────────────────────────────────────── */

@media (min-width: 720px) {
  .hero__stage { padding: clamp(48px, 8vw, 120px) 0; }
  .manifesto {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
    gap: clamp(40px, 6vw, 120px);
    align-items: start;
  }
  .manifesto__eyebrow { margin: 0; }
  .manifesto__lead,
  .manifesto__body { max-width: 42ch; }
  .signup {
    grid-template-columns: 2fr 3fr;
    align-items: end;
  }
  .signup .display-lg { grid-row: span 3; align-self: start; }
}

/* ─── Reduced motion ────────────────────────────────────────── */

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