/* The Cookout. Built on the digitalalchemy.dev system: near-black, hairlines,
   Space Grotesk display with a two-tone ember second line, mono only for times. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #0A0B0D;
  --surface: #12131A;
  --line: #1F232A;
  --line-strong: #2E343D;
  --text: #F5F5F7;
  --text-soft: #C9CED6;
  --muted: #9AA3AF;
  --ember: #FF5B2E;
  --ember-hi: #FF774F;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 7px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ember);
}
::selection { background: var(--ember); color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 40;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 12px; }

.flag {
  background: var(--surface); border-bottom: 1px solid var(--line);
  color: var(--muted); font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.04em;
  text-align: center; padding: 8px 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 0; cursor: pointer;
  font: 600 1rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ember); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(10, 11, 13, 0.45); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ember-hi); }
  .btn-ghost:hover { border-color: var(--text); }
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; }
.mark span { color: var(--ember); }

/* ---------- Embers: drift up through the whole page, above backgrounds, below the nav ---------- */
.embers { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--ember-hi); box-shadow: 0 0 8px 2px rgba(255, 119, 79, 0.55);
  opacity: 0;
}

/* ---------- Background fields (the banners) ---------- */
.field { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.field img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.field::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--bg), transparent 18%, transparent 78%, var(--bg)),
    linear-gradient(to right, rgba(10, 11, 13, 0.94) 0%, rgba(10, 11, 13, 0.78) 45%, rgba(10, 11, 13, 0.32) 100%);
}
.hero .field img { top: 0; height: 100%; }
.hero .field::after {
  background:
    linear-gradient(to bottom, rgba(10, 11, 13, 0.2), transparent 30%, transparent 70%, var(--bg)),
    linear-gradient(to right, rgba(10, 11, 13, 0.9) 0%, rgba(10, 11, 13, 0.62) 50%, rgba(10, 11, 13, 0.4) 100%);
}
.footer .field::after {
  background: linear-gradient(to bottom, var(--bg), rgba(10, 11, 13, 0.5) 30%, rgba(10, 11, 13, 0.72) 75%, var(--bg));
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-block: 40px 56px; min-height: calc(100dvh - 64px); }
.weekly {
  font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 20px; color: var(--text-soft);
}
.weekly span { color: var(--ember); }
h1 {
  font-size: clamp(2.5rem, 8.4vw, 4.25rem); font-weight: 600;
  line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance;
}
h1 span { display: block; color: var(--ember); }
.lede { color: var(--text-soft); font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.45; max-width: 34ch; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.when {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 36px;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-strong);
}
.when div { display: flex; flex-direction: column-reverse; gap: 6px; }
.when dd { font: 600 1.15rem/1.25 var(--sans); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.when dt { color: var(--muted); font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* The banner sits inside the field: soft feathered edges and a warm glow, never cropped. */
.poster { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.poster::before {
  content: ""; position: absolute; inset: 8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 91, 46, 0.35), transparent);
  filter: blur(40px);
}
.poster img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
          mask-composite: intersect;
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; border-top: 1px solid var(--line); }
.display {
  font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 600;
  line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; max-width: 22ch;
}
.display span { color: var(--ember); }
.statement { font-size: clamp(1.25rem, 2.6vw, 1.65rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; max-width: 36ch; margin-top: 22px; text-wrap: pretty; }
.statement-2 { color: var(--text-soft); font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin-top: 16px; max-width: 48ch; }

.trio { display: grid; gap: 40px; margin-top: 48px; }
.trio h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.trio .no h3, .trio .no li { color: var(--muted); }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.45; font-size: 1.05rem; }

.pair { display: grid; gap: 56px; }
.menu, .rules { margin-top: 28px; border-top: 1px solid var(--line); }
.menu li {
  display: grid; grid-template-columns: 5.75rem 1fr; column-gap: 14px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu time { color: var(--ember); font: 500 0.95rem/1.5 var(--mono); font-variant-numeric: tabular-nums; grid-row: span 2; }
.menu strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.menu span { color: var(--muted); font-size: 1rem; grid-column: 2; }
.rules li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; }

.links { margin-top: 28px; border-top: 1px solid var(--line); }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; transition: color 200ms ease;
}
.links svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .links a:hover { color: var(--ember); }
  .links a:hover svg { transform: translate(3px, -3px); }
}
.outside .statement { max-width: 30ch; }

/* ---------- Bands: full-bleed sections with a banner field behind them ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); }
.band-inner { padding-block: 104px; }

details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; cursor: pointer; list-style: none;
  font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.75px solid var(--muted); border-bottom: 1.75px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
details[open] summary::after { transform: translateY(3px) rotate(225deg); }
details p { color: var(--text-soft); padding-bottom: 20px; max-width: 60ch; }

.footer-inner { text-align: center; padding-block: 112px 40px; }
.signoff { font-size: clamp(2.3rem, 7vw, 4.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.signoff span { display: block; color: var(--ember); }
.footer .actions { justify-content: center; margin-top: 36px; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px;
  margin-top: 96px; padding-top: 22px; border-top: 1px solid var(--line-strong);
  color: var(--text-soft); font-size: 0.95rem; text-align: left;
}
.foot .legal { color: var(--muted); margin-top: 6px; max-width: 60ch; font-size: 0.875rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a, .linklike { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; cursor: pointer; }

/* ---------- Newsletter dialog ---------- */
.news {
  width: min(480px, 100% - 32px); padding: 36px 32px 28px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}
.news::backdrop { background: rgba(10, 11, 13, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.news h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; padding-right: 32px; }
.news > p { color: var(--text-soft); margin-top: 12px; font-size: 1.05rem; }
.news-x { position: absolute; top: 12px; right: 12px; }
.news-x button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: none; border: 0; color: var(--muted); cursor: pointer;
}
.news-x button:hover { color: var(--text); }
.news-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.news-form { margin-top: 22px; }
.news-form label { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 8px; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.news-row input {
  flex: 1 1 220px; min-height: 52px; padding: 0 16px; border-radius: var(--radius);
  background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); font: 400 1.05rem var(--sans);
}
.news-row input:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.news-row input[aria-invalid="true"] { border-color: #FF8A8A; }
.news-status { min-height: 1.6em; margin-top: 10px; font-size: 0.95rem; color: var(--text-soft); }
.news-status[data-tone="error"] { color: #FF8A8A; }
.news-status[data-tone="ok"] { color: var(--text); }
.news .news-fine { color: var(--muted); font-size: 0.875rem; margin-top: 4px; }
.news-fine a { color: var(--text-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal pages ---------- */
.doc { padding-block: 72px 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.doc .updated { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }
.doc h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 44px; }
.doc p, .doc li { color: var(--text-soft); margin-top: 12px; max-width: 68ch; }
.doc ul { list-style: disc; padding-left: 1.2em; }
.doc a { color: var(--text); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .field img { animation: settle 2.2s var(--ease-out) both; }
  .hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .poster { animation: reveal 1.2s var(--ease-out) 0.15s both; }
  .poster img { animation: float 9s ease-in-out 1.4s infinite; }

  .embers i { animation: rise-ember 11s linear infinite; }
  .embers i:nth-child(1)  { left: 4%;  animation-delay: 0s;    animation-duration: 12s; }
  .embers i:nth-child(2)  { left: 11%; animation-delay: 3.1s;  animation-duration: 10s; }
  .embers i:nth-child(3)  { left: 18%; animation-delay: 6.4s;  animation-duration: 13s; }
  .embers i:nth-child(4)  { left: 25%; animation-delay: 1.2s;  animation-duration: 11s; }
  .embers i:nth-child(5)  { left: 31%; animation-delay: 8.3s;  animation-duration: 14s; }
  .embers i:nth-child(6)  { left: 38%; animation-delay: 4.6s;  animation-duration: 10.5s; }
  .embers i:nth-child(7)  { left: 45%; animation-delay: 0.7s;  animation-duration: 12.5s; }
  .embers i:nth-child(8)  { left: 52%; animation-delay: 7.8s;  animation-duration: 11.5s; }
  .embers i:nth-child(9)  { left: 59%; animation-delay: 2.9s;  animation-duration: 13.5s; }
  .embers i:nth-child(10) { left: 66%; animation-delay: 5.8s;  animation-duration: 10s; }
  .embers i:nth-child(11) { left: 72%; animation-delay: 9.9s;  animation-duration: 12s; }
  .embers i:nth-child(12) { left: 79%; animation-delay: 1.8s;  animation-duration: 14.5s; }
  .embers i:nth-child(13) { left: 85%; animation-delay: 6.9s;  animation-duration: 11s; }
  .embers i:nth-child(14) { left: 91%; animation-delay: 3.9s;  animation-duration: 13s; }
  .embers i:nth-child(15) { left: 96%; animation-delay: 8.8s;  animation-duration: 10.5s; }
  .embers i:nth-child(16) { left: 48%; animation-delay: 10.6s; animation-duration: 15s; }

  @supports (animation-timeline: view()) {
    .band .field img { animation: drift linear both; animation-timeline: view(); }
  }
  .news[open] { animation: pop 320ms var(--ease-out); }
}

@keyframes settle { from { opacity: 0; transform: scale(1.12); filter: blur(6px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise-ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: 0.85; }
  75% { opacity: 0.4; }
  100% { opacity: 0; transform: translate3d(36px, -105vh, 0); }
}
@keyframes drift { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; padding-block: 48px 64px; }
  .poster { justify-self: end; }
  h1 span { white-space: nowrap; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .section { padding-block: 104px; }
  .band-inner { padding-block: 120px; }
}

/* ---------- Phones: the banner moves up under the lede so it sits in the first screen ---------- */
@media (max-width: 899px) {
  .hero-copy { display: contents; }
  .hero-grid { gap: 0; padding-block: 28px 48px; min-height: 0; }
  .weekly { order: 0; margin-bottom: 14px; }
  .hero-grid h1 { order: 1; }
  .lede { order: 2; margin-top: 14px; }
  .poster { order: 3; margin-top: 18px; max-width: 100%; }
  .actions { order: 4; margin-top: 18px; }
  .when { order: 5; }
  .poster img { max-height: 44vh; width: auto; margin-inline: auto; }
}

@media (max-width: 520px) {
  .when { grid-template-columns: 1fr; gap: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .news { padding: 32px 22px 24px; }
}
