@font-face { font-family: 'Graduate'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/graduate.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/barlow-800.woff2) format('woff2'); }
/* Direction: varsity game program. Red clay, navy, chalk-line cream, mustard for highlights, a grass green for the
   map. Graduate (collegiate block) for headlines and scoreboard numbers, Barlow to read. Ticket stubs for divisions,
   chalk foul lines as rules, a scoreboard for today. The status banner sits above everything on every page. */
[hidden] { display: none !important; }
:root {
  --clay: #b5532c; --clay-dk: #8f3c1c; --navy: #1c2a44; --chalk: #fbf7ef; --cream: #f3ead8; --mustard: #e3a72f; --grass: #3f6b3a; --ink: #1c2a44; --muted: #5b6273;
  --display: "Graduate", "Rockwell", serif; --text: "Barlow", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 2.75rem); --sec: clamp(3.5rem, 9vw, 7rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.15rem/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0 0 .5em; text-transform: uppercase; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: 1.35rem; }
em { font-style: normal; color: var(--clay-dk); }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.kicker { font-weight: 800; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-dk); margin-bottom: .7rem; }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.45rem); max-width: 34em; }
.big-p { font-size: clamp(1.15rem, 2.2vw, 1.35rem); max-width: 30em; }
.note { color: var(--muted); font-size: 1rem; }

.example { margin: 0; padding: .45rem var(--pad); background: var(--navy); color: var(--chalk); font-size: .85rem; text-align: center; }
.example a { color: inherit; }

/* the status banner */
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem .7rem; padding: .65rem var(--pad); background: var(--mustard); color: var(--navy); font-size: 1rem; text-align: center; }
.status b { font: 400 1.1rem var(--display); text-transform: uppercase; }
.st-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.status.on { background: var(--grass); color: var(--chalk); } .status.on .st-dot { background: #9fe08a; }
.status.rain { background: var(--clay-dk); color: var(--chalk); } .status.rain .st-dot { background: var(--chalk); animation: blink 1.4s infinite; }
.status.late { background: var(--navy); color: var(--chalk); } .status.late .st-dot { background: var(--mustard); }
@keyframes blink { 50% { opacity: .3; } }

.top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem 1rem; padding: .9rem var(--pad); background: var(--chalk); border-bottom: 4px solid var(--clay); }
.brand { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; text-decoration: none; }
.brand-name { font: 400 1.6rem/1 var(--display); text-transform: uppercase; color: var(--clay-dk); }
.brand-sub { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; border-bottom: 3px solid transparent; }
.nav a[aria-current] { border-color: var(--clay); }
@media (min-width: 980px) { .top { grid-template-columns: auto 1fr auto; } .nav { grid-column: 2; grid-row: 1; justify-content: center; gap: 1.8rem; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.4rem; border: 3px solid var(--navy); background: var(--clay); color: var(--chalk);
  font: 400 1.02rem/1.1 var(--display); text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--navy); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
.btn-line { background: var(--chalk); color: var(--navy); }
.btn[aria-current] { background: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* cover */
.cover { display: grid; background: var(--navy); color: var(--chalk); border-bottom: 6px solid var(--clay); }
.cover-text { padding: clamp(2.5rem, 7vw, 5rem) var(--pad); align-self: center; }
.cover h1 { color: var(--chalk); }
.cover h1 span { display: block; font-size: .42em; color: var(--mustard); margin-top: .35em; letter-spacing: .04em; }
.cover .kicker { color: var(--mustard); }
.cover .btn-line { background: transparent; color: var(--chalk); border-color: var(--chalk); box-shadow: 4px 4px 0 var(--clay); }
.cover-art { margin: 0; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .cover { grid-template-columns: 1.2fr .8fr; } }

/* today: a scoreboard */
.today { padding: var(--sec) var(--pad); max-width: 76rem; margin: 0 auto; display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .today { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.board { background: #22342a; color: var(--chalk); padding: 1.6rem; border: 8px solid var(--navy); box-shadow: inset 0 0 30px rgba(0,0,0,.4); }
.board h2 { color: var(--mustard); font-size: 1.4rem; letter-spacing: .06em; }
.board-big { font: 400 clamp(1.8rem, 5vw, 2.8rem)/1.05 var(--display); text-transform: uppercase; color: #ffe08a; text-shadow: 0 0 12px rgba(255,200,80,.35); }
.board-games { list-style: none; margin: 1rem 0 0; padding: 0; }
.board-games li { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; padding: .5rem 0; border-top: 1px dashed rgba(251,247,239,.3); }
.board-games b { font-family: var(--display); color: #ffe08a; font-weight: 400; }
.switch-card { background: var(--chalk); border: 3px solid var(--navy); padding: 1.4rem; }
.flip { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.flip button { min-height: 48px; border: 2px solid var(--navy); background: var(--cream); color: var(--navy); font: 800 1rem var(--text); cursor: pointer; }
.flip button[aria-pressed="true"] { background: var(--navy); color: var(--chalk); }

/* divisions as ticket stubs */
.divs { padding: 0 var(--pad) var(--sec); max-width: 76rem; margin: 0 auto; }
.sec-head { border-bottom: 3px solid var(--navy); margin-bottom: 1.6rem; }
.stubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.stub { position: relative; background: var(--chalk); border: 2px solid var(--navy); padding: 1.1rem 1rem 1rem; display: grid; gap: .1rem; text-align: center;
  -webkit-mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.stub-div { font: 400 2.6rem/1 var(--display); color: var(--clay-dk); }
.stub-ages { font-weight: 800; }
.stub-teams { color: var(--muted); font-size: 1rem; border-top: 2px dashed var(--navy); padding-top: .4rem; margin-top: .4rem; }

.pledge, .chores { padding: var(--sec) var(--pad); }
.pledge { background: var(--chalk); border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.split { display: grid; gap: 2.5rem; align-items: center; max-width: 76rem; margin: 0 auto; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.art { margin: 0; }
.art img { width: 100%; border: 3px solid var(--navy); box-shadow: 8px 8px 0 var(--clay); }

.page-head { padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad) 2rem; max-width: 76rem; margin: 0 auto; border-bottom: 3px solid var(--navy); margin-bottom: 2rem; }

/* schedule */
.sched { padding: 0 var(--pad) var(--sec); max-width: 64rem; margin: 0 auto; }
.pick { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
@media (min-width: 700px) { .pick { grid-template-columns: 1fr auto; align-items: end; } .pick .note { grid-column: 1 / -1; } }
.pick-btns { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.field { display: grid; gap: .35rem; font-weight: 800; }
select, .field input { min-height: 52px; padding: .6rem .9rem; border: 3px solid var(--navy); background: var(--chalk); color: var(--ink); font: 400 1.1rem var(--text); border-radius: 0; width: 100%; }
.chk { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.chk input { width: 22px; height: 22px; accent-color: var(--clay); }
.chk.big { font-weight: 800; }
.games { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy); }
.games li { display: grid; grid-template-columns: 6.6rem 1fr; gap: .2rem 1rem; padding: .9rem 0; border-bottom: 2px solid var(--clay); }
.g-date { font: 400 1.15rem/1.1 var(--display); color: var(--clay-dk); text-transform: uppercase; }
.g-date small { display: block; font: 800 .95rem var(--text); color: var(--ink); }
.g-match { font-weight: 800; font-size: 1.15rem; }
.g-match span { color: var(--muted); font-weight: 600; }
.g-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; color: var(--muted); font-size: 1rem; }
.g-meta a { color: var(--navy); font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
.games .empty { display: block; padding: 1rem 0; color: var(--muted); background: none; }

/* standings */
.st-grid { padding: 0 var(--pad) var(--sec); max-width: 76rem; margin: 0 auto; display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .st-grid { grid-template-columns: 1fr 1fr; } }
.st { background: var(--chalk); border: 3px solid var(--navy); padding: 1.2rem 1.3rem; }
.st h2 { font-size: 2rem; color: var(--clay-dk); }
.st table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.st th, .st td { padding: .55rem .3rem; border-bottom: 1px solid rgba(28,42,68,.25); text-align: right; }
.st th:first-child, .st tbody th { text-align: left; }
.st thead th { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--navy); }
.st tbody tr:first-child th { color: var(--clay-dk); }
.st-none { font-style: italic; }

/* register */
.reg-wrap { padding: 0 var(--pad) var(--sec); max-width: 76rem; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 900px) { .reg-wrap { grid-template-columns: 1fr 1.3fr; align-items: start; } .handoff { grid-column: 2; } }
.divtable { width: 100%; border-collapse: collapse; background: var(--chalk); border: 3px solid var(--navy); }
.divtable th, .divtable td { padding: .8rem 1rem; border-bottom: 1px solid rgba(28,42,68,.25); text-align: left; }
.divtable thead th { background: var(--navy); color: var(--chalk); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.divtable tbody th { font: 400 1.3rem var(--display); color: var(--clay-dk); }
.reg { background: var(--chalk); border: 3px solid var(--navy); padding: clamp(1.4rem, 4vw, 2rem); display: grid; gap: 1.2rem; }
.reg-preview { margin: 0; padding: .6rem .9rem; background: var(--mustard); font-weight: 800; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 800; margin-bottom: .5rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; min-width: 52px; justify-content: center; padding: .4rem .9rem; border: 2px solid var(--navy); background: var(--cream); font-weight: 800; }
.pill input:checked + span { background: var(--navy); color: var(--chalk); }
.pill input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.form-error { color: var(--clay-dk); font-weight: 800; margin: 0; }
.form-note { color: var(--muted); font-size: 1rem; margin: 0; }
.handoff { background: var(--navy); color: var(--chalk); padding: 1.6rem; border: 3px solid var(--navy); box-shadow: 8px 8px 0 var(--clay); }
.handoff h2 { color: var(--mustard); }

/* sign-up sheets on a clipboard */
.sheets { padding: 0 var(--pad) var(--sec); max-width: 76rem; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 900px) { .sheets { grid-template-columns: 1fr 1fr; align-items: start; } .sheets-note { grid-column: 1 / -1; } }
.sheet { background: var(--chalk); border: 3px solid var(--navy); border-top-width: 18px; padding: 1.4rem; box-shadow: 6px 6px 0 rgba(28,42,68,.25); }
.sheet h2 { font-size: 1.8rem; }
.lines { list-style: none; margin: 1rem 0 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .8rem; min-height: 52px; border-bottom: 1px solid rgba(28,42,68,.3); }
.lines .when { font-weight: 800; font-size: 1rem; }
.lines button { min-height: 44px; text-align: left; border: 0; background: none; padding: 0; font: 600 1.05rem var(--text); color: var(--clay-dk); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lines .taken { font: 600 1.15rem var(--text); color: var(--navy); font-style: italic; }
.sign { border: 3px solid var(--navy); padding: 1.6rem; background: var(--chalk); max-width: min(28rem, 92vw); }
.sign::backdrop { background: rgba(28,42,68,.55); }
.sign form { display: grid; gap: 1rem; }

/* game day */
.map-wrap { padding: 0 var(--pad) 3rem; max-width: 76rem; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border: 3px solid var(--navy); }
.map figcaption { color: var(--muted); font-size: 1rem; margin-top: .5rem; }
.bring { background: var(--navy); color: var(--chalk); padding: 1.5rem; }
.bring h2 { color: var(--mustard); }
.chalk-list { margin: 0; padding: 0; list-style: none; }
.chalk-list li { padding: .6rem 0 .6rem 1.8rem; border-bottom: 2px dashed rgba(251,247,239,.35); position: relative; font-weight: 600; }
.chalk-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 12px; height: 12px; background: var(--mustard); transform: rotate(45deg); }
.faq { padding: 2rem var(--pad) var(--sec); max-width: 52rem; margin: 0 auto; }
.faq details { border-bottom: 2px solid var(--clay); }
.faq summary { cursor: pointer; padding: 1rem 0; min-height: 48px; font-weight: 800; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--clay-dk); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary::-webkit-details-marker { display: none; }
.faq a { color: var(--clay-dk); font-weight: 800; }

/* footer */
.foot { background: var(--navy); color: var(--chalk); padding: 3rem var(--pad) 6rem; border-top: 6px solid var(--clay); }
.foot-grid { max-width: 76rem; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } .foot { padding-bottom: 3rem; } }
.foot-name { font: 400 2.2rem/1 var(--display); text-transform: uppercase; color: var(--mustard); }
.foot nav { display: flex; flex-direction: column; }
.foot nav a { min-height: 44px; display: flex; align-items: center; text-decoration: none; font-weight: 600; }
.foot-note { max-width: 76rem; margin: 2rem auto 0; font-size: .85rem; opacity: .8; }

.mob-bar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 3px solid var(--navy); }
.mob-bar a { min-height: 56px; display: grid; place-items: center; font: 400 .95rem var(--display); text-transform: uppercase; text-decoration: none; background: var(--chalk); color: var(--navy); }
.mob-bar a:last-child { background: var(--clay); color: var(--chalk); }
@media (min-width: 760px) { .mob-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* logo mark (header, footer) */
.logo { width: 44px; height: 44px; flex: none; display: block; }
.foot-mark img { width: 96px; height: 96px; }
@media (min-width: 860px) { .foot-mark { justify-self: end; } }
.brand .logo { grid-row: span 2; }
@media (max-width: 599px) { .logo, .brand .logo { width: 36px; height: 36px; } }

/* split-flap counter on the scoreboard */
.flipboard { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0 1.1rem; margin-bottom: .6rem; border-bottom: 1px dashed rgba(251,247,239,.3); }
.fb-label { margin: 0; font: 400 1.1rem/1.2 var(--display); text-transform: uppercase; color: var(--chalk); max-width: 9rem; }
.fb-digits { display: flex; gap: 6px; perspective: 400px; }
.fd { position: relative; width: 1.15em; padding: .12em 0; text-align: center; font: 400 clamp(2.6rem, 8vw, 3.6rem)/1 var(--display); color: #ffe08a; background: linear-gradient(#141b16 0 50%, #1b241e 50% 100%); border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 4px 0 rgba(0,0,0,.35); text-shadow: 0 0 14px rgba(255,200,80,.35); transform-origin: 50% 50%; }
.fd::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(0,0,0,.55); }
.fd.flap { animation: flap .16s ease-in; }
@keyframes flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-80deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }

/* the owner's own line, word for word from the chat */
.owner-note { padding: 0 var(--pad) var(--sec); }
.on-card { margin: 0 auto; max-width: 76rem; background: var(--chalk); border: 3px solid var(--navy); box-shadow: 8px 8px 0 var(--clay); padding: 0 0 1.6rem; }
.on-tag { margin: 0 0 1.4rem; padding: .5rem 1.4rem; background: var(--navy); color: var(--mustard); font: 400 1.05rem var(--display); text-transform: uppercase; letter-spacing: .06em; }
.owner-note blockquote { margin: 0; padding: 0 1.4rem; }
.owner-note blockquote p { margin: 0; font: 400 clamp(1.9rem, 5vw, 3.2rem)/1.1 var(--display); text-transform: uppercase; color: var(--clay-dk); }
.owner-note figcaption { margin-top: 1rem; padding: 0 1.4rem; display: flex; gap: .8rem; align-items: baseline; }
.on-name { font: 800 1.4rem var(--text); color: var(--navy); } .on-role { font-weight: 600; color: var(--muted); }

/* ===== Home: the game program. Pages stack by default; with JS (.program.on) scrolling turns them on the spine. ===== */
.program { background: #2a2622; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 5px 5px; }
.program-stage { padding: clamp(1.5rem, 5vw, 3rem) var(--pad); }
.pages { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1.6rem; justify-items: center; }
.pg { width: min(32rem, 100%); position: relative; }
.pg-front { position: relative; background: var(--chalk); color: var(--ink); padding: 1rem clamp(1.1rem, 4vw, 1.8rem) 1.6rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); border-left: 6px solid #e6dcc4; }
.pg-back { display: none; }
.pg-run { display: flex; justify-content: space-between; margin: 0 0 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--clay); font: 400 .95rem var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--clay-dk); }
.pg h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
.pg .red { color: var(--clay-dk); }
.pg-body { font-size: 1.1rem; }
.pg-body.small { font-size: 1rem; color: var(--muted); }
.pg-quote { margin: 0 0 .6rem; }
.pg-quote p { margin: 0; font: 400 clamp(1.7rem, 4.6vw, 2.4rem)/1.1 var(--display); text-transform: uppercase; color: var(--clay-dk); }
.pg-sig { font-weight: 800; color: var(--navy); }
.pg-sig span { font-weight: 600; color: var(--muted); margin-left: .5rem; }
.pg-art { margin: 0 0 1rem; }
.pg-art img { width: 100%; border: 3px solid var(--navy); }
.pg-links { list-style: none; margin: 0 0 1rem; padding: 0; columns: 2; }
.pg-links a { display: inline-flex; min-height: 44px; align-items: center; font: 400 1.15rem var(--display); text-transform: uppercase; color: var(--navy); }
.pg .stubs { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; }
.pg .stub { padding: .8rem .6rem .7rem; }
.pg .stub-div { font-size: 2.1rem; }
.pg .switch-card { margin-top: 1rem; }
/* the cover */
.pg-cover .pg-front { padding: 0; background: var(--navy); color: var(--chalk); overflow: hidden; }
.pg-cover .pg-run { position: absolute; z-index: 2; left: 1.2rem; right: 1.2rem; top: .8rem; color: var(--mustard); border-color: var(--mustard); }
.pg-cover-art { margin: 0; }
.pg-cover-art img { width: 100%; height: auto; display: block; }
.pg-cover-band { padding: 1.2rem 1.4rem 1.6rem; border-top: 6px solid var(--clay); }
.pg-cover-band .kicker { color: var(--mustard); }
.pg-cover-band h1 { color: var(--chalk); margin: 0; font-size: clamp(2.4rem, 7vw, 3.4rem); }
.pg-cover-band h1 span { display: block; font-size: .5em; color: var(--mustard); margin-top: .3em; }
.pg-cover-sub { margin: .6rem 0 0; font-weight: 600; }
.pg-hint { display: none; }
/* the scoreboard page */
.pg-dark .pg-front { background: #22342a; }
.pg-dark .pg-run { color: var(--mustard); border-color: var(--mustard); }
.pg-dark .board { border: 0; box-shadow: none; padding: 0; background: none; }
.pg-backcover .pg-front { background: var(--clay); color: var(--chalk); }
.pg-backcover h2, .pg-backcover .pg-links a, .pg-backcover a { color: var(--chalk); }
.pg-backcover .pg-run { color: var(--chalk); border-color: var(--chalk); }
.pg-backcover .kicker, .pg-backcover .pg-body.small { color: #fde9dc; }
.program-count { display: none; }

/* turning mode */
.program.on .program-stage { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; perspective: 2200px; }
.program.on .pages { display: block; position: absolute; left: 50%; top: 50%; width: var(--pw); height: var(--ph); translate: -50% -50%; }
.program.on .pg { position: absolute; inset: 0; width: auto; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.program.on .pg-front, .program.on .pg-back { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; }
.program.on .pg-back { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem; background: #efe6d3; transform: rotateY(180deg); font: 400 .9rem var(--display); color: #a8977a; text-transform: uppercase; letter-spacing: .06em; border-right: 6px solid #e6dcc4; }
.program.on .pg-cover .pg-front { display: flex; flex-direction: column; }
.program.on .pg-cover-art { flex: 1; min-height: 0; }
.program.on .pg-cover-art img { height: 100%; object-fit: cover; }
.program.on .pg-hint { display: block; position: absolute; left: 0; right: 0; bottom: 1.2rem; text-align: center; color: var(--chalk); font: 400 .95rem var(--display); text-transform: uppercase; letter-spacing: .1em; }
.program.on .pg-cover .pg-cover-band { padding-bottom: 3.2rem; }
.program.on .program-count { display: block; position: absolute; left: 0; right: 0; bottom: max(.8rem, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: var(--mustard); font: 400 .95rem var(--display); text-transform: uppercase; letter-spacing: .1em; }
.program { --pw: min(31rem, 88vw); --ph: min(84svh, 46rem); }
@media (max-width: 759px) { .program { --ph: min(76svh, 46rem); } .program.on .program-count { bottom: 70px; } .program.on .pages { top: 46%; } }
@media (max-width: 520px) { .pg .stubs { grid-template-columns: repeat(3, 1fr); gap: .5rem; } .pg .stub { padding: .6rem .3rem .5rem; } .pg .stub-div { font-size: 1.7rem; } .pg .stub-ages, .pg .stub-teams { font-size: .9rem; } }

/* the rainout banner stays in view while you read (it is the one place parents check) */
.status { position: sticky; top: 0; z-index: 20; }
.program.on .program-stage { top: var(--bh, 0px); height: calc(100svh - var(--bh, 0px)); }
.pg-backcover .pg-front { background: var(--clay-dk); }

/* ===== 404: same header and footer, the site's own joke in the middle ===== */
.nf { display: grid; gap: 2.5rem; align-items: center; justify-items: start; max-width: 68rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--pad, 1.25rem); }
@media (min-width: 860px) { .nf { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; } }
.nf-art { justify-self: center; }
.nf-kick { margin: 0 0 .6rem; color: var(--clay-dk); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }
.nf h1 { margin: 0 0 1rem; }
.nf-text > p { font-size: 1.15rem; max-width: 34rem; }
.nf-text > p a { color: var(--navy); }
.nf-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 1rem; }
.nf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.nf-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.nf-score { width: min(280px, 72vw); padding: 1.4rem; background: var(--navy); border: 6px solid var(--grass); text-align: center; color: var(--chalk); }
.nf-score p { margin: 0; font: 400 1.1rem var(--display); text-transform: uppercase; color: var(--mustard); }
.nf-score span { display: block; font: 400 clamp(3.4rem, 13vw, 5rem)/1.1 var(--display); }
.nf-score b { display: inline-block; margin-top: .4rem; padding: .2rem .8rem; background: var(--clay); font: 400 1.2rem var(--display); text-transform: uppercase; letter-spacing: .1em; }

/* ===== Moving between pages: the browser's own cross-page transition, in this site's style. Header holds still.
   Browsers without it just load the page; reduced motion turns it off. ===== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  header.top { view-transition-name: site-top; }
  ::view-transition-image-pair(root) { isolation: auto; perspective: 2000px; }
  ::view-transition-old(root) { animation: vt-turn .45s ease-in both; transform-origin: 0 50%; z-index: 1; mix-blend-mode: normal; }
  ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  @keyframes vt-turn { to { transform: rotateY(-95deg); filter: brightness(.7); } }
  @keyframes vt-fade { from { opacity: 0; } }
}
.nf h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
@media (max-width: 859px) { .nf-art { order: 2; justify-self: start; scale: .8; transform-origin: 0 0; margin-bottom: -10%; } }

/* ===== Phone: the menu is one row you can swipe, so the business itself is on the first screen ===== */
@media (max-width: 759px) {
  header.top nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 1.3rem; padding-right: 2.2rem; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.4rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.4rem), transparent); }
  header.top nav::-webkit-scrollbar { display: none; }
  header.top nav a { flex: none; white-space: nowrap; }
}
