/* PitchLore landing — palette drawn from app icon:
   deep stadium green, cream ball white, teal swoosh, gold spark. */

:root {
  --bg: #f6f3e8;            /* cream, like the ball panels */
  --bg-raised: #fffdf5;
  --ink: #0c2b1d;           /* deep pitch green */
  --ink-soft: #3d5a4b;
  --pitch: #0e4d2e;
  --pitch-deep: #081f15;    /* stadium-at-night green */
  --teal: #0a7358;          /* swoosh, darkened for AA on cream (5.2:1) */
  --teal-bright: #35dcab;
  --gold: #7a5a0c;          /* spark, darkened for AA text on cream (5.7:1) */
  --gold-bright: #e9b940;
  --line: #d8d2bd;
  --hero-ink: #efeadb;
  --hero-ink-soft: #b8cabf;
  --focus: #0a7358;
  --maxw: 66rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081f15;
    --bg-raised: #0d2b1e;
    --ink: #efeadb;
    --ink-soft: #a9bcb0;
    --pitch: #123f28;
    --teal: #35dcab;
    --gold: #e9b940;
    --line: #1d4531;
    --focus: #35dcab;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-bright);
  color: #081f15;
  padding: 0.6rem 1rem;
  z-index: 99;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */

.site-header {
  background: var(--pitch-deep);
  color: var(--hero-ink);
  border-bottom: 3px solid var(--gold-bright);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--hero-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .tld { color: var(--teal-bright); }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--hero-ink);
  border: 2px solid var(--hero-ink-soft);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--hero-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--teal-bright); border-bottom-color: var(--teal-bright); }

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; }
  .js .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; padding: 0.5rem 0 0.75rem; }
  .site-nav a { display: block; padding: 0.5rem 0.25rem; }
}

/* ---------- hero: stadium at night ---------- */

.hero {
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #14503355 0%, transparent 60%),
    var(--pitch-deep);
  color: var(--hero-ink);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* pitch centre-circle line, off to the side */
  content: "";
  position: absolute;
  right: -140px;
  bottom: -220px;
  width: 440px;
  height: 440px;
  border: 2px solid #ffffff14;
  border-radius: 50%;
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 130px; }
}

.kick {
  display: inline-block;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-bright);
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--hero-ink-soft);
  max-width: 34rem;
  margin: 0 0 1.6rem;
}

.hero-art { text-align: center; }
.hero-art img {
  width: 200px;
  border-radius: 22%;
  box-shadow: 0 18px 50px #000a, 0 0 0 1px #ffffff1a;
}

.store-line { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.badge-play { display: inline-block; line-height: 0; }
.badge-play svg { display: block; }
.store-note {
  font-size: 0.85rem;
  color: var(--hero-ink-soft);
  max-width: 20rem;
  margin: 0;
}

/* ---------- shared section furniture ---------- */

main section { padding: 3.25rem 0; }
main section + section { border-top: 1px solid var(--line); }

.overline {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.section-intro { max-width: 42rem; color: var(--ink-soft); margin: 0 0 2rem; }

/* ---------- game modes: fixture-board rows, not a card grid ---------- */

.fixture-list { list-style: none; margin: 0; padding: 0; }
.fixture-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 14rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px dashed var(--line);
}
.fixture-list li:first-child { border-top: 1px dashed var(--line); }
.fixture-num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--teal);
  font-size: 1.3rem;
}
.fixture-name { font-weight: 800; font-size: 1.1rem; }
.fixture-desc { color: var(--ink-soft); margin: 0; }
@media (max-width: 620px) {
  .fixture-list li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .fixture-desc { grid-column: 2; }
}

/* ---------- topics: scoreboard panel ---------- */

.board {
  background: var(--pitch-deep);
  color: var(--hero-ink);
  border-radius: 14px;
  border: 1px solid #ffffff14;
  padding: 2rem 1.75rem;
  box-shadow: inset 0 0 0 6px #ffffff08;
}
.board h3 {
  margin: 0 0 1.2rem;
  color: var(--gold-bright);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.board ul { list-style: none; margin: 0; padding: 0; }
.board li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #ffffff1c;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 1.05rem;
}
.board li:last-child { border-bottom: 0; }
.board li::before {
  content: "▸";
  color: var(--teal-bright);
  flex: 0 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* ---------- private-by-design: team sheet with dotted leaders ---------- */

.teamsheet { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.teamsheet li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
}
.teamsheet .k { font-weight: 700; white-space: nowrap; }
.teamsheet .dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
  min-width: 2rem;
}
.teamsheet .v { color: var(--ink-soft); text-align: right; max-width: 24rem; }
@media (max-width: 560px) {
  .teamsheet li { flex-wrap: wrap; }
  .teamsheet .dots { display: none; }
  .teamsheet .v { text-align: left; max-width: none; }
}

/* ---------- honesty strip ---------- */

.not-strip {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold-bright);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  max-width: 46rem;
}
.not-strip p { margin: 0.4rem 0; }
.not-strip strong { color: var(--ink); }

/* ---------- guides ---------- */

.guide-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .guide-links { grid-template-columns: 1fr; } }
.guide-links a {
  display: block;
  padding: 1.3rem 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px 18px 4px 18px;   /* asymmetric corners, echoes the swoosh */
  color: var(--ink);
  text-decoration: none;
  height: 100%;
}
.guide-links a:hover { border-color: var(--teal); }
.guide-links .g-title { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.guide-links .g-blurb { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.guide-links .g-more { display: inline-block; margin-top: 0.6rem; color: var(--teal); font-weight: 700; font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  max-width: 46rem;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 2.2rem 1rem 0.25rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0.25rem 1.2rem; color: var(--ink-soft); max-width: 42rem; }
.faq .faq-a p { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--pitch-deep);
  color: var(--hero-ink-soft);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  border-top: 3px solid var(--gold-bright);
}
.site-footer a { color: var(--teal-bright); }
.site-footer p { max-width: 46rem; }
.foot-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 0; list-style: none; margin: 0 0 1.25rem; }

/* ---------- guide pages ---------- */

.crumbs { font-size: 0.85rem; margin: 1.75rem 0 0; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--ink-soft); }

.article { padding: 1.5rem 0 3rem; }
.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 44rem;
  margin: 0.5rem 0 0.75rem;
}
.article .standfirst { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; margin: 0 0 2rem; }
.article h2 { font-size: 1.45rem; margin: 2.4rem 0 0.75rem; }
.article p, .article ul, .article ol { max-width: 42rem; }
.article ul li, .article ol li { margin-bottom: 0.4rem; }
.article .pull {
  border-left: 5px solid var(--teal);
  background: var(--bg-raised);
  padding: 1rem 1.3rem;
  max-width: 40rem;
  margin: 1.75rem 0;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
}
.article .app-note {
  background: var(--pitch-deep);
  color: var(--hero-ink);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  max-width: 42rem;
  margin: 2.5rem 0 0;
}
.article .app-note a { color: var(--teal-bright); }
.article .app-note p { margin: 0.4rem 0; }

.sibling-guides { border-top: 1px solid var(--line); padding: 2rem 0 1rem; }
.sibling-guides h2 { font-size: 1.2rem; }
.sibling-guides ul { padding-left: 1.2rem; }
