/* ============================================================
   Diaz Family Reacts - channel hub
   Big-type editorial. Theater black + popcorn yellow + marquee red.
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/spacemono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/spacemono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0e0e0e;
  --ink: #090807;
  --panel: #17120b;
  --red: #e34331;
  --pop: #f5c53b;
  --cream: #f4ead9;
  --blue: #5aa0c4;
  --muted: #b4aa9b;
  --dim: #837a6d;
  --line: rgba(244, 234, 217, 0.14);

  --display: "Anton", "Arial Narrow", sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pop);
  color: #000;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--mono);
  text-decoration: none;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.72rem 1.35rem;
  border-radius: 2px;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-sub {
  background: var(--pop);
  color: #120c00;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.btn-sub:hover { background: #ffd24d; transform: translateY(-2px); }
.btn-lg { font-size: 0.95rem; padding: 1rem 1.9rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark { display: block; border-radius: 4px; }
.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}
.topbar-sub { padding: 0.5rem 1rem; font-size: 0.72rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.25rem var(--pad) 3.25rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(60% 55% at 25% 30%, rgba(245, 197, 59, 0.16), transparent 70%),
    radial-gradient(55% 60% at 80% 65%, rgba(227, 67, 49, 0.15), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--maxw); width: 100%; margin: 0 auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--pop);
  margin: 0 0 1.05rem;
}

.hero-type {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.87;
  letter-spacing: 0.005em;
  font-size: clamp(2.8rem, 10.8vw, 8.2rem);
}
.hero-type .line { display: block; color: var(--cream); }
.hero-type .line-pop { color: var(--pop); }
.hero-type .line-red { color: var(--red); }

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 0.9rem + 0.5vw, 1.3rem);
  color: var(--muted);
  margin: 1.5rem 0 1.9rem;
  max-width: 40ch;
}
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.handle {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--dim);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-cue span { position: relative; }
.scroll-cue span::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin: 0.5rem auto 0;
  background: linear-gradient(var(--dim), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  will-change: transform;
  animation: slide 26s linear infinite;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 3.4vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--cream);
}
.marquee-track .star { color: var(--pop); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section base ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--pad);
}
.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 1.6rem;
}

/* ---------- Premise ---------- */
.premise-type {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  font-size: clamp(2.1rem, 7.2vw, 5.6rem);
  color: var(--cream);
}
.premise-type span { display: block; }
.premise-type em { font-style: normal; }
.hl-pop { color: var(--pop); }
.hl-red { color: var(--red); }
.hl-blue { color: var(--blue); }
.premise-body {
  margin: 2.6rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.65;
}

/* ---------- Diaz Scale (signature) ---------- */
.scale { border-top: 1px solid var(--line); }
.scale-head { margin-bottom: 2.6rem; }
.scale-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 0.9;
  color: var(--cream);
}
.scale-note {
  font-family: var(--mono);
  color: var(--dim);
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.zone {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  padding: 0.7rem 0;
}
.zone-top { color: var(--pop); border-bottom: 1px dashed rgba(245,197,59,0.4); }
.zone-bot { color: var(--red); border-top: 1px dashed rgba(227,67,49,0.4); margin-top: 0; }

.ladder { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rung {
  display: grid;
  grid-template-columns: clamp(3.2rem, 12vw, 8rem) 1fr;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(0.7rem, 1.6vw, 1.15rem) 0;
  border-bottom: 1px solid var(--line);
}
.rung-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 4rem);
  color: var(--dim);
  text-align: right;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rung-label {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 5.4vw, 3.6rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.rung-hi .rung-num { color: var(--pop); }
.rung-hi .rung-label { color: var(--pop); }
.rung-lo .rung-label { color: var(--muted); }
.rung-lo.rung:last-child .rung-label { color: var(--red); }
.rung:hover .rung-label { color: #fff; }

/* ---------- Season lineup ---------- */
.lineup { border-top: 1px solid var(--line); }
.lineup-head { margin-bottom: 2.4rem; }
.lineup-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7.5vw, 5.4rem);
  line-height: 0.92;
  color: var(--cream);
}
.lineup-note { font-family: var(--mono); color: var(--dim); font-size: 0.9rem; margin: 1rem 0 0; }
.slate { list-style: none; margin: 0; padding: 0; }
.ep {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.ep-date {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--pop);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.ep-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3.8vw, 2.4rem);
  line-height: 1;
  color: var(--cream);
}
.ep-slot {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.ep-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  white-space: nowrap;
}
.slate-more { font-family: var(--mono); color: var(--muted); margin: 2rem 0 0; font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta {
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-type {
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 9vw, 6.8rem);
  line-height: 0.9;
  color: var(--cream);
  max-width: 16ch;
}
.cta-type span { display: block; }
.cta-body {
  max-width: 48ch;
  margin: 1.8rem auto 2.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1rem + 0.3vw, 1.2rem);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: 3.5rem var(--pad);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.footer-tag { font-family: var(--mono); color: var(--pop); margin: 1.1rem 0 0.4rem; letter-spacing: 0.04em; }
.footer-meta { font-family: var(--mono); color: var(--dim); font-size: 0.8rem; margin: 0; letter-spacing: 0.05em; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Content is visible by default; only hidden-until-reveal when JS is on. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-cue span::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar-sub { display: none; }
  .hero-sub { max-width: 100%; }
  .ep {
    grid-template-columns: 4.5rem 1fr;
    grid-template-areas:
      "date title"
      "date meta";
    row-gap: 0.4rem;
  }
  .ep-date { grid-area: date; align-self: start; }
  .ep-title { grid-area: title; }
  .ep-slot { grid-area: meta; justify-self: start; }
  .ep-status { display: none; }
  .rung { grid-template-columns: clamp(2.6rem, 16vw, 4rem) 1fr; }
}
