/* SoccerReader — public site.
   Palette lifted verbatim from mobile/constants/theme.ts so the site and the app are
   recognisably the same product: a bright mown-turf ground with dark cards on it. */
:root {
  --turf:        #63B234;   /* mown band A — the ground */
  --turf-b:      #7AC943;   /* mown band B — the zebra's other half */
  --card:        #17210F;
  --card-raised: #26341B;
  --border:      #3C4E2D;
  --primary:     #5CC0F5;   /* sky — interactive */
  --accent:      #D8EFA8;   /* bone-lime — rules, emphasis */
  --gold:        #E6BC42;   /* Pro only, never interactive */
  --text:        #F4F2EA;
  --text-2:      #C6C2B4;
  --muted:       #98948A;
  --header:      #2F5E1F;
  --header-rule: #245017;
  --maxw: 68rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  /* The zebra, drawn not imaged — same device as PitchBackdrop in the app. */
  background:
    repeating-linear-gradient(90deg, var(--turf) 0 7%, var(--turf-b) 7% 14%);
  background-attachment: fixed;
}
a { color: var(--primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

header.site {
  background: var(--header);
  border-bottom: 1px solid var(--header-rule);
  padding: 0 1rem;
  padding-top: env(safe-area-inset-top, 0px);
}
header.site .bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  min-height: 56px; flex-wrap: wrap;
}
header.site .brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; letter-spacing: .2px; color: var(--text);
}
header.site .brand:hover { text-decoration: none; }
/* The mascot is decorative — the wordmark beside it carries the name, so alt="" keeps a
   screen reader from announcing the brand twice. */
header.site .mascot { width: 36px; height: 36px; display: block; flex: none; }
header.site .wordmark .sub { color: var(--accent); font-weight: 600; }
@media (max-width: 460px) { header.site .wordmark .sub { display: none; } }
header.site nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
header.site nav a { color: var(--text-2); font-size: .94rem; }

main { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.hero { padding-block: 2.5rem 1rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; margin: 0 0 .4rem;
  text-wrap: balance; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero .tagline { font-size: 1.15rem; color: #11200a; font-weight: 700; margin: 0 0 1rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.35rem 1.4rem; margin-block: 1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.card h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.card h3 { margin: 1.3rem 0 .4rem; font-size: 1.04rem; color: var(--accent); }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid .card { margin: 0; }
.lede { color: var(--text-2); }
ul, ol { padding-left: 1.2rem; }
li { margin-block: .3rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--accent); font-weight: 600; }
code { background: var(--card-raised); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
.pill {
  display: inline-block; background: var(--card-raised); border: 1px solid var(--border);
  color: var(--text-2); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem;
}
.pill.age { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.meta { color: var(--muted); font-size: .88rem; }
.notice {
  background: var(--card-raised); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; margin-block: 1rem; color: var(--text-2);
}
footer.site {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 1.6rem 1rem; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
}
footer.site .inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 1rem 1.6rem; flex-wrap: wrap; }
footer.site a { color: var(--text-2); font-size: .92rem; }
footer.site .disclaimer { color: var(--muted); font-size: .84rem; width: 100%; margin: 0; }
@media (max-width: 420px) { .hero { padding-block: 1.6rem .5rem; } .card { padding: 1.1rem; } }
