/* Rallies brand hub — dark floodlit-court world.
   Tokens: court night ground, chalk-white lines, Rallies orange accent.
   Deliberately single-theme: Rallies plays at night, under floodlights. */

@font-face {
  font-family: "Antonio";
  src: url("/assets/antonio-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --court: #0F0F11;
  --panel: #17171A;
  --line: #26262B;
  --chalk: #F2EFE7;
  --orange: #FF5A19;
  --orange-hi: #FF7A45;
  --concrete: #A39D93; /* body text — 7.1:1 on court ground */
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Antonio", "Arial Narrow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--court);
  color: var(--concrete);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.display { font-family: var(--display); font-weight: 700; color: var(--chalk); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
section { border-top: 2px solid rgba(242, 239, 231, 0.14); }

.skiplink {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #180A03; padding: 10px 16px; z-index: 10;
  font-weight: 700; font-size: 13px;
}
.skiplink:focus { left: 0; }

/* ── Nav ── */
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.navlogo { height: 26px; width: auto; display: block; }
.navlinks { display: flex; gap: 26px; align-items: center; font-size: 14px; color: var(--chalk); }
.navlinks > a { padding: 10px 2px; transition: color 0.2s; }
.navlinks > a:hover { color: var(--orange); }
.soon {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--orange); border: 1px solid rgba(255, 90, 25, 0.45);
  padding: 2px 6px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}
.btn {
  display: inline-block;
  background: var(--orange); color: #180A03;
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 24px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
  transition: background 0.2s;
}
.btn:hover { background: var(--orange-hi); }
.btn.ghost {
  background: transparent; color: var(--chalk);
  box-shadow: inset 0 0 0 1px rgba(242, 239, 231, 0.3);
  clip-path: none; padding: 11px 18px;
  transition: box-shadow 0.2s, color 0.2s;
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--orange); color: var(--orange); }

/* ── Hero ── */
.hero { border-top: none; padding: 72px 0 64px; position: relative; overflow: hidden; }
.herowrap { position: relative; }
.kitchenline {
  position: absolute; top: -80px; right: -60px; bottom: -70px; width: 340px;
  border-left: 2px solid rgba(242, 239, 231, 0.07);
  background: linear-gradient(rgba(255, 90, 25, 0.05), rgba(255, 90, 25, 0) 55%);
  transform: skewX(-14deg);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(58px, 11vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 18px 0 22px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 .o { color: var(--orange); }
.herosub { max-width: 520px; font-size: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Scroll reveal — progressive enhancement: content is visible by default;
   JS opts in by stamping .js on <html> before observing. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
  .rec-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Now serving ── */
.serving { padding: 56px 0 64px; }
.board {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.board .main { padding: 34px 36px; border-right: 1px solid var(--line); }
.board h2 { font-size: clamp(34px, 5vw, 56px); line-height: 0.95; text-transform: uppercase; margin: 10px 0 14px; }
.factrow { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 26px; }
.fact dd { font-size: 14px; color: var(--chalk); }
.fact dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--concrete); text-transform: uppercase; margin-bottom: 2px;
}
.board .side { padding: 34px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.scorebox { text-align: right; }
.scorebox .num { font-family: var(--display); font-weight: 700; font-size: 74px; line-height: 1; color: var(--chalk); font-variant-numeric: tabular-nums; }
.scorebox .num span { color: var(--orange); }
.scorebox .cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.slugchip {
  font-family: var(--mono); font-size: 12px; color: var(--chalk);
  background: rgba(255, 90, 25, 0.09); border: 1px solid rgba(255, 90, 25, 0.35);
  padding: 8px 12px; display: inline-block;
  max-width: 100%; overflow-wrap: anywhere;
}
.slugchip i, .slug i { color: var(--orange); font-style: normal; }

/* ── Editions ledger ── */
.editions { padding: 56px 0 64px; }
.ledger { margin-top: 26px; border-top: 1px solid var(--line); }
.edition {
  display: grid;
  grid-template-columns: 92px 1.5fr 1fr 180px;
  gap: 20px; align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.edition:hover { background: rgba(242, 239, 231, 0.03); }
.edition:hover .status { border-color: rgba(255, 90, 25, 0.5); color: var(--orange); }
.year { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--chalk); font-variant-numeric: tabular-nums; }
.year.yr-sm { font-size: 24px; }
.edition h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.slug { font-family: var(--mono); font-size: 11.5px; color: var(--concrete); margin-top: 3px; overflow-wrap: anywhere; }
.edition > * { min-width: 0; }
.edition .stats { font-size: 13px; line-height: 1.7; }
.edition .stats b { color: var(--chalk); font-variant-numeric: tabular-nums; }
.status {
  justify-self: end;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line); color: var(--concrete);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.status.live { border-color: rgba(255, 90, 25, 0.6); color: var(--orange); }

/* ── Court Vision ── */
.vision { padding: 56px 0 72px; }
.visiongrid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vcard { background: var(--panel); border: 1px solid var(--line); padding: 30px 32px; }
.vcard h3 { font-size: 30px; text-transform: uppercase; margin: 14px 0 10px; }
.vcard p { font-size: 14px; max-width: 42ch; }
.rec {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--chalk); border: 1px solid var(--line); padding: 6px 12px;
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.whereline { margin-top: 24px; font-size: 14px; }
.whereline b { color: var(--chalk); font-weight: 600; }

/* ── Partners ── */
.partners { padding: 48px 0 64px; }
.partners .row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.pname {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--chalk); border: 1px solid var(--line); padding: 12px 18px;
}
.pname.open { border-style: dashed; color: var(--orange); border-color: rgba(255, 90, 25, 0.5); }
.partners .cta { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.partners .cta span { font-size: 14px; max-width: 46ch; }

/* ── Footer ── */
footer { border-top: 2px solid rgba(242, 239, 231, 0.14); padding: 34px 0 46px; }
.footrow { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer img { height: 20px; width: auto; opacity: 0.85; }
.fine { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.fine a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ── */
@media (max-width: 780px) {
  .board { grid-template-columns: 1fr; }
  .board .main { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .board .side { padding: 28px 24px; }
  .scorebox { text-align: left; }
  .edition { grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; row-gap: 8px; }
  .edition .stats { grid-column: 2; }
  .status { justify-self: start; grid-column: 2; }
  .visiongrid { grid-template-columns: 1fr; }
  .navlinks { gap: 14px; font-size: 13px; }
  .navlinks > a:not(.btn) { display: none; }
  .btn.ghost { padding: 10px 14px; font-size: 12px; }
  .hero { padding: 52px 0 48px; }
}
