@font-face { font-family: "League Gothic"; src: url("/fonts/league-gothic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("/fonts/spline-sans-mono.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --mist: oklch(88% 0.008 165);
  --mist-deep: oklch(82.5% 0.011 165);
  --slate: oklch(38% 0.012 165);
  --raven: oklch(14% 0.006 250);
  --raven-soft: oklch(22% 0.008 230);
  --eye: oklch(81% 0.16 82);

  --bg: var(--mist);
  --fg: var(--raven);
  --muted: var(--slate);
  --tint: var(--mist-deep);
  --band: var(--raven);
  --band-fg: var(--mist);
  --band-muted: oklch(76% 0.01 165);
  --band-tint: var(--raven-soft);

  --edge: clamp(20px, 3.4vw, 56px);
  --display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: oklch(19% 0.008 220);
  --fg: var(--mist);
  --muted: oklch(77% 0.01 165);
  --tint: oklch(24% 0.009 220);
  --band: var(--mist);
  --band-fg: var(--raven);
  --band-muted: var(--slate);
  --band-tint: var(--mist-deep);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(19% 0.008 220);
    --fg: var(--mist);
    --muted: oklch(77% 0.01 165);
    --tint: oklch(24% 0.009 220);
    --band: var(--mist);
    --band-fg: var(--raven);
    --band-muted: var(--slate);
    --band-tint: var(--mist-deep);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.5 var(--text); overflow-x: hidden; }
h1, h2, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
h2 { font-size: clamp(3.5rem, 8vw, 8.5rem); line-height: 0.92; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--eye); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -80px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 5; }
.skip:focus { top: 10px; }

.top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.75rem/1 var(--display); }
.logo { width: 38px; height: 26px; flex: none; fill: currentColor; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.theme { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px 0; }
.theme:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.hero { --raven-w: min(52vw, 104vh); position: relative; min-height: max(100svh, 760px); padding: 84px var(--edge) calc(var(--raven-w) * 0.17 + 28px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; }
.hero h1 { position: relative; z-index: 2; font-size: min(12.1vw, 25vh); line-height: 0.88; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-pitch { position: relative; z-index: 2; width: min(100%, 31rem); }
.lead { font-size: clamp(1.125rem, 1.45vw, 1.375rem); line-height: 1.38; margin-bottom: 22px; max-width: 30em; }
.perch { position: absolute; right: calc(var(--edge) * 0.4); bottom: 0; width: var(--raven-w); }
.raven { display: block; width: 100%; height: auto; overflow: visible; }
.raven-bars { fill: var(--fg); }
.raven-bars rect { transform-box: fill-box; transform-origin: 50% 100%; animation: settle 1.25s cubic-bezier(0.16, 0.84, 0.24, 1) both; animation-delay: calc(var(--n) * 16ms); }
.raven-eye { fill: var(--eye); animation: open 0.3s 1.65s ease-out both; }
.branch { position: absolute; left: 0; right: 0; bottom: calc(var(--raven-w) * 0.12 - 3px); height: 6px; background: var(--fg); }
@keyframes settle { from { transform: translateY(var(--drop)) scaleY(var(--s)); } }
@keyframes open { from { opacity: 0; } }

.join label { display: block; font-weight: 600; margin-bottom: 6px; }
.join-row { display: flex; }
.join input[type="email"] { flex: 1; min-width: 0; height: 54px; padding: 0 14px; background: transparent; color: var(--fg); border: 2px solid var(--fg); border-right-width: 0; border-radius: 0; font: inherit; }
.join input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.join button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px; background: var(--fg); color: var(--bg); border: 2px solid var(--fg); border-radius: 0; font: 600 1rem/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 120ms, color 120ms, border-color 120ms; }
.join button:hover, .button:hover { background: var(--eye); border-color: var(--eye); color: var(--raven); }
.join button[disabled] { cursor: progress; opacity: 0.7; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.challenge:empty { display: none; }
.challenge { margin-top: 10px; }
.status { min-height: 1.5em; margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.status[data-state="error"] { color: var(--fg); font-weight: 600; }
.status[data-state="ok"] { color: var(--fg); font-weight: 600; }

.ask { background: var(--band); color: var(--band-fg); padding: clamp(72px, 10vw, 150px) var(--edge); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ask-intro { position: sticky; top: 48px; }
.ask-intro p { margin-top: 24px; max-width: 28em; color: var(--band-muted); font-size: 1.1875rem; }
.chat { display: grid; gap: 22px; }
.q { justify-self: end; max-width: 85%; background: var(--band-fg); color: var(--band); padding: 12px 18px; font-size: 1.1875rem; font-weight: 500; }
.a { display: grid; gap: 26px; font-size: 1.1875rem; }
.a code { font-family: var(--mono); font-size: 0.86em; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, 1.1vw, 14px); height: clamp(230px, 25vw, 340px); }
.week div { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; text-align: center; }
.week b { font: 400 clamp(1.5rem, 2.6vw, 2.5rem)/1.1 var(--display); }
.week i { display: block; height: calc((100% - 72px) * var(--v) / 436); background: var(--band-fg); margin: 6px 0; }
.week span { font-size: 0.875rem; color: var(--band-muted); }
.week .hit i { background: var(--eye); }
details summary { cursor: pointer; font-weight: 600; width: fit-content; }
details pre { margin: 14px 0 0; padding: 18px; background: var(--band-tint); overflow-x: auto; font: 400 0.875rem/1.65 var(--mono); }
details pre code { font-size: 1em; }
figcaption { font-size: 0.875rem; color: var(--band-muted); }

.sources { padding: clamp(72px, 10vw, 150px) var(--edge); }
.sources dl { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: clamp(22px, 3vw, 34px); }
.sources dl div { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8px 32px; align-items: baseline; }
.sources dt { font: 400 clamp(3rem, 6.4vw, 6.5rem)/0.95 var(--display); color: var(--muted); transition: color 120ms; }
.sources dl div:hover dt { color: var(--fg); }
.sources dd { font-size: 1.1875rem; max-width: 26em; }

.leaves { padding: 0 var(--edge) clamp(72px, 10vw, 150px); }
table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.leaves table { margin-top: clamp(32px, 5vw, 64px); }
th, td { text-align: left; vertical-align: baseline; padding: 18px 20px; background: var(--tint); font-weight: 400; }
tbody th { width: 34%; font-weight: 700; }

.pricing { background: var(--band); color: var(--band-fg); padding: clamp(72px, 10vw, 150px) var(--edge); }
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 40px; }
.pricing-head p { font-size: 1.1875rem; color: var(--band-muted); max-width: 22em; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 48px; align-items: end; margin: clamp(40px, 6vw, 80px) 0; }
.calc label { grid-column: 1; font-size: 1.1875rem; font-weight: 600; }
.calc input { grid-column: 1; width: 100%; height: 40px; accent-color: var(--eye); }
.calc output { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; }
.calc strong { font: 400 clamp(5rem, 11vw, 10.5rem)/0.86 var(--display); font-variant-numeric: tabular-nums; }
.calc span { color: var(--band-muted); margin-top: 8px; }
.prices th, .prices td { background: var(--band-tint); }
.prices th { width: 20%; }
.prices .amount { width: 1%; white-space: nowrap; text-align: right; font: 400 2.125rem/1 var(--display); }
.amount small { font: 400 0.875rem var(--text); }
.refund { margin-top: 22px; color: var(--band-muted); }

.last { padding: clamp(84px, 12vw, 180px) var(--edge); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.foot { display: flex; justify-content: space-between; padding: 22px var(--edge); background: var(--tint); font-size: 0.9375rem; }

.prose { width: min(100%, 44rem); margin: 0 auto; padding: 118px 20px 88px; }
.prose h1 { font-size: clamp(4rem, 11vw, 7rem); line-height: 0.95; margin-bottom: 24px; }
.prose h2 { font: 700 1.25rem/1.3 var(--text); margin: 34px 0 8px; }
.prose p { margin-bottom: 12px; }

.notice { min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; }
.notice-main { width: min(100%, 38rem); display: grid; gap: 20px; justify-items: start; }
.notice-main h1 { font-size: clamp(3.5rem, 11vw, 6rem); line-height: 0.95; }
.wordmark { font: 400 1.75rem/1 var(--display); text-decoration: none; }
.text-button { background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

@media (max-width: 860px) {
  .hero { --raven-w: 96vw; min-height: 0; padding-top: 78px; padding-bottom: calc(var(--raven-w) * 0.72 + 30px); justify-content: flex-start; }
  .hero h1 { font-size: 25.5vw; }
  .hero h1 span { white-space: normal; }
  .perch { right: 2vw; }
  .ask, .last { grid-template-columns: minmax(0, 1fr); }
  .ask-intro { position: static; }
  .sources dl div { grid-template-columns: minmax(0, 1fr); }
  tbody th { width: 38%; }
}

@media (max-width: 560px) {
  .join-row { flex-direction: column; }
  .join input[type="email"] { flex: none; border-right-width: 2px; border-bottom-width: 0; }
  .leaves tr, .prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--tint); margin-bottom: 4px; padding: 14px 16px; gap: 4px 16px; }
  .prices tr { background: var(--band-tint); }
  .leaves th, .leaves td, .prices th, .prices td { display: block; width: auto; padding: 0; background: none; }
  .leaves td { grid-column: 1 / -1; }
  .prices td:not(.amount) { grid-column: 1 / -1; grid-row: 2; }
  .prices .amount { grid-column: 2; grid-row: 1; width: auto; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc output { grid-column: 1; grid-row: auto; justify-items: start; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
