:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --card: #fffdf7;
  --ink: #183b30;
  --muted: #475a50;
  --line: #ced3c7;
  --accent: #22634e;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a04b1b; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -8rem; padding: .5rem 1rem; background: var(--card); }
.skip:focus { top: 1rem; z-index: 1; }

.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding-block: .75rem;
}
.brand { display: inline-flex; gap: .5rem; align-items: center; font-weight: 800; text-decoration: none; color: var(--ink); }
.header-link { font-weight: 650; }
.intro { padding-block: clamp(2rem, 5vw, 4.5rem) 1.75rem; max-width: 48rem; }
.eyebrow { margin: 0 0 .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.eyebrow span { color: #9b4d25; padding-inline: .2rem; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 7vw, 5rem); letter-spacing: -.055em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.65rem, 4vw, 2.55rem); letter-spacing: -.035em; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin-block: 1.75rem .6rem; }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1rem; }
.jump { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; padding-top: .4rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }

.section { padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.measure { max-width: 46rem; }
.pitch-definitions { position: absolute; pointer-events: none; }
.formations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1.25rem 2rem; }
.formation { display: flex; flex-direction: column; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: .8rem; }
.formation h3 { font-size: 1.85rem; margin: 0 0 .75rem; }
.formation h3 span { display: block; margin-top: .25rem; font-size: 1rem; color: var(--muted); }
.formation svg { width: min(100%, 12.5rem); height: auto; align-self: center; margin: .25rem 0 1.25rem; }
.pitch-background { fill: #145142; }
.pitch-lines { fill: none; stroke: #b8d6c0; stroke-width: 1; }
.marker circle { stroke: #142e25; stroke-width: 1.5; }
.marker text { fill: #192d26; text-anchor: middle; dominant-baseline: central; font-size: 9px; font-weight: 800; }
.keeper { fill: #f5cf75; }
.defender { fill: #d1e9ee; }
.midfielder { fill: #dce9b5; }
.forward { fill: #ffe0bc; }
.cue { margin-top: auto; margin-bottom: 0; border-top: 1px solid var(--line); padding-top: .7rem; }
.choices, ol { padding-inline-start: 1.4rem; }
li + li { margin-top: .45rem; }

table { width: 100%; border-collapse: collapse; margin: 1.35rem 0; background: var(--card); font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 750; margin-bottom: .35rem; }
th, td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--line); }
thead th { background: #e5ece3; }
.button { display: inline-flex; align-items: center; padding: .7rem 1rem; border-radius: .5rem; background: var(--ink); color: #fff; font-weight: 750; text-decoration: none; }
.button:hover { background: #225745; }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { cursor: pointer; padding: .85rem 0; font-weight: 700; }
.questions details p { padding-inline-start: 1rem; }
.site-footer { margin-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 52rem) {
  .formations { grid-template-columns: 1fr; }
  .formation { max-width: 46rem; }
}
