/* Chalkboard FC. Colours and type come from brand/BRAND.md. */
:root {
  --bg: #17301F;
  --board: #1E3E29;
  --deep: #0F2216;
  --chalk: #F1EFE6;
  --yellow: #F2D45C;
  --blue: #6FB7FF;
  --red: #FF6B5B;
  --muted: rgba(241, 239, 230, 0.72);
  --hairline: rgba(241, 239, 230, 0.16);
  --title: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  --note: Caveat, "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--chalk);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--deep);
  border-bottom: 1px solid var(--hairline);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 800 1.3rem/1 var(--title); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
}
nav { display: flex; gap: 22px; }
nav a { font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--yellow); }

/* Hero */
.hero { background: var(--board); border-bottom: 1px solid var(--hairline); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding-block: 64px;
}
.tag {
  display: inline-block; margin: 0 0 18px; padding: 4px 12px;
  background: var(--yellow); color: var(--deep);
  font: 800 1.05rem/1.25 var(--title); letter-spacing: .05em; text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  font: 800 clamp(3.1rem, 7.2vw, 5.6rem)/.95 var(--title);
  text-transform: uppercase;
}
h1 em, h2 em { color: var(--yellow); font-style: normal; }
.lede { margin: 0 0 26px; max-width: 34em; font-size: 1.15rem; }
.button {
  display: inline-block; padding: 12px 22px;
  background: var(--chalk); color: var(--deep);
  font-weight: 600; text-decoration: none; border-radius: 4px;
  transition: background-color .15s;
}
.button:hover { background: var(--yellow); }

/* Tactics board */
.board { width: 100%; height: auto; }
.board .lines { fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-opacity: .6; }
.board .lines .spot { fill: var(--chalk); stroke: none; fill-opacity: .6; }
.board .opponents path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; }
.board .pass, .board .run { fill: none; stroke-width: 3; stroke-dasharray: 9 8; stroke-linecap: round; }
.board .pass { stroke: var(--chalk); }
.board .run { stroke: var(--yellow); }
.board .pass-head, .board .run-head { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.board .pass-head { stroke: var(--chalk); }
.board .run-head { stroke: var(--yellow); }
.board .draw { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* Arrows are visible by default; .play is added once the page is rendering frames. */
.board.play .pass-head { animation: appear .2s ease-out .95s backwards; }
.board.play .run-head { animation: appear .2s ease-out 2s backwards; }
.board.play .draw-1 { animation: draw .7s ease-in-out .3s backwards; }
.board.play .draw-2 { animation: draw 1s ease-in-out 1.05s backwards; }
.board .player circle { fill: var(--board); stroke: var(--yellow); stroke-width: 3.5; }
.board .player text { fill: var(--chalk); font: 800 20px var(--title); text-anchor: middle; }
.board .glow circle { filter: drop-shadow(0 0 7px var(--yellow)); }
.board .ball { fill: var(--chalk); }
.board .note rect { fill: var(--deep); }
.board .note text { fill: var(--chalk); font: 700 23px var(--note); text-anchor: middle; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
section[id] { padding-block: 52px 8px; }
h2 {
  margin: 0 0 22px;
  font: 800 clamp(2.2rem, 4.4vw, 2.9rem)/1 var(--title);
  text-transform: uppercase;
}

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--deep); border: 1px solid var(--hairline); border-radius: 6px;
  overflow: hidden; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 {
  margin: 14px 14px 6px;
  font: 800 1.45rem/1.05 var(--title); text-transform: uppercase;
}
.card p { margin: 0 14px 16px; color: var(--muted); font-size: .96rem; line-height: 1.4; }
.method { margin: 26px 0 0; max-width: 44em; font-size: 1.1rem; }

.group { margin: 30px 0 6px; font-weight: 600; font-size: 1.2rem; }
.group:first-of-type { margin-top: 0; }
.rows li { padding-block: 11px; border-bottom: 1px solid var(--hairline); }
.rows a, .rows strong { display: block; font-weight: 600; font-size: 1.08rem; }
.rows a { color: var(--yellow); text-underline-offset: 3px; }
.rows a:hover { color: var(--chalk); }
.rows span { display: block; color: var(--muted); font-size: .95rem; }
.rows .soon strong { color: var(--muted); }
.rows .soon span {
  display: inline-block; margin-top: 4px; padding: 1px 10px;
  background: var(--deep); border-radius: 6px;
  color: var(--chalk); font: 700 1.1rem/1.35 var(--note);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 5px 14px; border: 2px solid var(--chalk); border-radius: 4px;
  font: 800 1.1rem/1.3 var(--title); letter-spacing: .03em; text-transform: uppercase;
}

/* Footer */
.site-footer {
  margin-top: 60px; padding-block: 30px 36px;
  background: var(--deep); border-top: 1px solid var(--hairline);
}
.site-footer p { margin: 0 0 8px; }
.site-footer .small { color: var(--muted); font-size: .9rem; }
.site-footer a:hover { color: var(--yellow); }

/* Board marks used on film pages */
.board .mark { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 9 8; stroke-linecap: round; }
.board .mark-head { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.board .ghost { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-dasharray: 5 6; stroke-opacity: .7; }
.board .cage { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 9 8; }

/* Film pages */
.guide { max-width: 780px; padding-block: 28px 8px; }
.crumbs { display: block; margin-bottom: 14px; color: var(--muted); font-size: .92rem; }
.crumbs a { font-weight: 400; font-size: inherit; }
.crumbs span { margin-inline: 4px; }
.guide h1 { font-size: clamp(2.9rem, 7vw, 4.6rem); margin-bottom: 14px; }
.answer { margin: 0 0 24px; font-size: 1.22rem; line-height: 1.5; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--deep); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapters { margin-top: 14px; padding: 10px 16px; background: var(--deep); border: 1px solid var(--hairline); border-radius: 6px; }
.chapters summary { cursor: pointer; font-weight: 600; }
.chapters ol { margin: 10px 0 4px; padding: 0; list-style: none; }
.chapters li { padding-block: 3px; }
.chapters a { text-decoration: none; }
.chapters a:hover { color: var(--yellow); }
.chapters span { display: inline-block; min-width: 3em; color: var(--yellow); font-weight: 600; }
.figure { margin: 30px 0 8px; padding: 16px; background: var(--board); border-radius: 6px; }
.figure .board { max-width: 560px; margin-inline: auto; }
.figure figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; text-align: center; }
.guide h2 { margin: 38px 0 12px; font-size: clamp(1.9rem, 3.8vw, 2.4rem); line-height: 1.05; }
.guide h3 { margin: 24px 0 6px; font-weight: 600; font-size: 1.2rem; }
.guide p { margin: 0 0 14px; }
.guide .answer { margin-bottom: 24px; }
.guide ul, .guide ol:not(.chapters ol) { margin: 0 0 14px; padding-left: 1.3em; }
.guide ul { list-style: disc; }
.guide ol:not(.chapters ol) { list-style: decimal; }
.guide li { margin-bottom: 6px; }
.guide p a { color: var(--yellow); text-underline-offset: 3px; }
.guide p a:hover { color: var(--chalk); }
.faq { margin-top: 40px; padding-top: 4px; border-top: 1px solid var(--hairline); }
.subscribe { margin-top: 30px !important; padding: 14px 18px; background: var(--deep); border-radius: 6px; }
.more { padding-block: 44px 0; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Layout steps */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 44px; }
  .board { max-width: 540px; }
  .cards, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .brand span { font-size: 1.15rem; }
  nav { gap: 12px; }
  nav a { font-size: .85rem; }
  nav a:nth-child(3) { display: none; }
  .cards, .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .figure { padding: 10px; }
}

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