/* ──────────────── TOKENS (Strüve brand, struve_branding/struve-brand-v2.pdf) ──────────────── */
:root {
  /* Brand primitives */
  --sunshine:  #ffda05;
  --gold:      #f7bd02;
  --blue:      #03397a;
  --blue-deep: #032d56;
  --charcoal:  #1a1b1c;
  --grey:      #e5e5e8;
  --mint:      #f4fffa;

  /* Semantic tokens (same names the old Snow palette used) */
  --bg:        #fafcfb;
  --bg-deep:   #eef0f1;
  --bg-card:   var(--mint);
  --ink:       var(--charcoal);
  --ink-soft:  #3f4145;
  --ink-mute:  #6b6e74;
  --rule:      var(--grey);
  --rule-soft: #eff0f2;

  --accent:      var(--blue);
  --accent-deep: var(--blue-deep);
  --accent-soft: #e4ecf6;

  /* Type */
  --sans:    "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Sizes */
  --maxw: 1340px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* Ink dark variant kept for a future theme toggle (yellow accents on dark,
   per the brand guide's on-dark rules). Light is the default. */
[data-theme="ink"] {
  --bg: var(--charcoal);
  --bg-deep: #121314;
  --bg-card: #232426;
  --ink: #f2f3f4;
  --ink-soft: #c3c5c9;
  --ink-mute: #8d9096;
  --rule: #34363a;
  --rule-soft: #26282b;
  --accent:      var(--sunshine);
  --accent-deep: var(--gold);
  --accent-soft: #3a3406;
}

/* ──────────────────────── BASE ──────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--sunshine); color: var(--charcoal); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Paper grain — very subtle */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(0,0,0,0.015) 0, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.02) 0, transparent 50%);
  mix-blend-mode: multiply;
  z-index: 1;
}

/* ──────────────────────── NAV ──────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: all .2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.lang-toggle-group { position: relative; display: inline-block; }
.lang-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }
.lang-toggle-current[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-soft); }
.lang-caret { font-size: 9px; opacity: 0.7; }
.lang-toggle-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.lang-toggle-menu[hidden] { display: none; }
.lang-toggle-menu .lang-toggle {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  padding: 8px 14px;
  text-align: left;
  min-width: 60px;
}
.lang-toggle-menu .lang-toggle:first-child { border-top: 0; }
.lang-toggle-menu .lang-toggle:hover { background: var(--bg-deep); color: var(--ink); }

/* ──────────────────────── Section scaffold ──────────────────────── */
section { padding: 112px 0; position: relative; }
@media (max-width: 720px) { section { padding: 72px 0; } }
.sec-num { color: var(--accent); }
.rule { height: 1px; background: var(--rule); }

/* ──────────────────────── HERO ──────────────────────── */
.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 40px;
}
.hero > .wrap { width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero-head {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
}
.hero-head em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
.hero-head .accent { color: var(--accent-deep); font-style: italic; font-weight: 400; }
/* No overflow:hidden so descenders/ascenders (italic "f" tail, etc.) are
   never clipped. The rise animation pairs translateY with opacity instead,
   so words fade in as they rise — same motion feel without the clip box. */
.hero-head .word { display: inline-block; vertical-align: baseline; }
.hero-head .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordrise 900ms cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-head .word:nth-child(1) > span { animation-delay: 80ms; }
.hero-head .word:nth-child(2) > span { animation-delay: 180ms; }
.hero-head .word:nth-child(3) > span { animation-delay: 280ms; }
.hero-head .word:nth-child(4) > span { animation-delay: 380ms; }
.hero-head .word:nth-child(5) > span { animation-delay: 480ms; }
.hero-head .word:nth-child(6) > span { animation-delay: 560ms; }
.hero-head .word:nth-child(7) > span { animation-delay: 660ms; }
.hero-head .word:nth-child(8) > span { animation-delay: 740ms; }

@keyframes wordrise { to { transform: translateY(0); opacity: 1; } }

/* Hero cycle: words rise out and up before being replaced by the next phrase. */
.hero-head.exiting .word > span {
  animation: wordfall 500ms cubic-bezier(.4, 0, 1, 1) forwards;
  animation-delay: 0ms;
}
@keyframes wordfall {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-110%); opacity: 0; }
}

.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 24px 0 0;
  max-width: 24ch;
}
.hero-tagline em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 400;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 820px) { .hero-meta { grid-template-columns: 1fr; gap: 32px; } }

.hero-lede {
  font-family: var(--sans);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  max-width: 34ch;
}
.hero-lede span.hl {
  background-image: linear-gradient(transparent 60%, var(--sunshine) 60%);
  padding: 0 2px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all .22s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arr { transition: transform .22s ease; }
.btn:hover .arr { transform: translateX(4px); }

.hero-tick {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.hero-tick span { display: flex; align-items: center; gap: 10px; }
.hero-tick .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sunshine);
  outline: 1px solid var(--gold);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ──────────────────────── YOUTUBE CHANNELS (coming-soon + landing hero) ──────────────────────── */
.yt-row {
  /* Sits between the hero headline and the lede/notify block. */
  margin-top: 30px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 14px;
}
.yt-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.yt-links { display: flex; flex-wrap: wrap; gap: 8px; }
.yt-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.yt-pill:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.yt-pill svg { width: 16px; height: 16px; flex: none; }

/* ──────────────────────── NOTIFY FORM (coming-soon + resend pages) ──────────────────────── */
.plan-form {
  display: flex; gap: 8px; align-items: stretch;
  margin-bottom: 12px;
}
.plan-form input[type="email"] {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.plan-form input[type="email"]:focus { border-color: var(--accent-deep); }
.plan-form input[type="email"]:disabled { opacity: 0.6; cursor: not-allowed; color: var(--ink-mute); }
.plan-form button {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  background: var(--sunshine);
  color: var(--blue-deep);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all .2s ease;
}
.plan-form button:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); }
.plan-form button:disabled { opacity: 0.6; cursor: default; }
.plan-status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  min-height: 1em;
}
.plan-status.success { color: var(--accent-deep); }
.plan-status-aside {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 4px 0 0;
}
.plan-status-aside a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--ink-mute) 50%, transparent);
}
.plan-status-aside a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Notify-me step 2: country + languages */
.notify-extras {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
.notify-extras[hidden] { display: none; }
.notify-extras-lede {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}
.notify-extras label.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 12px 0 8px;
}
.notify-extras select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  margin-bottom: 8px;
}
.notify-extras select:focus { border-color: var(--accent-deep); }
.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.lang-chips .chip {
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  transition: all .15s ease;
}
.lang-chips .chip:hover { border-color: var(--accent-deep); }
.lang-chips .chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.lang-chips .chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.notify-extras-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.notify-extras-actions button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all .2s ease;
}
.notify-extras-actions button:hover:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); }
.notify-extras-actions button:disabled { opacity: 0.6; cursor: default; }
.notify-extras-status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.notify-extras-status.success { color: var(--accent-deep); }

/* ──────────────────────── FOOTER ──────────────────────── */
footer {
  background: var(--blue-deep);
  color: var(--bg);
  padding: 40px 0 28px;
}
[data-theme="ink"] footer { background: #121314; }
footer .ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}
@media (max-width: 900px) { footer .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { footer .ft-grid { grid-template-columns: 1fr; } }
footer .ft-brand { margin-bottom: 20px; }
footer .ft-brand img { height: 40px; width: auto; display: block; }
footer .ft-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
footer a { color: inherit; text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; color: var(--accent-deep); }
footer .ft-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 12px;
}


/* ──────────────────────── About page ──────────────────────── */
.about { padding: 96px 0 128px; }
.about h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 18ch;
}
.about h1 em { font-style: italic; color: var(--accent-deep); }
.about p {
  font-family: var(--sans);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 0 24px;
}
.about p.lede { font-size: clamp(20px, 1.6vw, 26px); }


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