/* Ring28 site styles. Colors only from tokens.css; fonts are self-hosted (licences in /fonts). */
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/roboto-slab-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-slab);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p, ul, ol, dl, figure { margin: 0; }
p + p { margin-top: 0.875rem; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--field-green);
  outline-offset: 3px;
}
/* On navy, the focus ring is white so it stays visible. */
.intro a:focus-visible, .storyline a:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--white);
}

.mono, .label, .source, small { font-family: var(--font-mono); font-weight: 400; }

.label {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--reading-gray);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}
.skip:focus { top: 0.5rem; }

/* The paired pinstripe: two 1px rules, 2px of air. */
.rule-navy { border-top: 4px double var(--navy); }
.rule-gray { border-top: 4px double var(--road-gray); }

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

.site-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.5rem 1.25rem;
}

.site-head .logo { width: 180px; }

.descriptor {
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
.descriptor small {
  display: block;
  margin-top: 0.25rem;
  color: var(--reading-gray);
  font-size: 0.75rem;
}

.site-nav {
  border-block: 4px double var(--navy);
}
.site-nav ul {
  display: flex;
  gap: 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.site-nav a {
  display: block;
  padding-block: 0.75rem;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--field-green);
  box-shadow: inset 0 -3px var(--field-green);
}

/* ---------------------------------------------------------------- intro */

.intro {
  background: var(--navy);
  color: var(--white);
  padding-block: 2.5rem 2rem;
}
.intro-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.intro h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.75rem, 10vw, 5.25rem);
  line-height: 1;
}
.intro .deck {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  line-height: 1.55;
}
.promises {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}
.promises li {
  padding-block: 0.5rem;
  border-top: 1px solid var(--reading-gray);
  font-size: 0.9375rem;
}
.promises b { font-weight: 600; }
.intro figure img { width: 100%; }
.intro figcaption {
  margin-top: 0.75rem;
  color: var(--road-gray);
}
.intro-foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 4px double var(--road-gray);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--road-gray);
}

/* ---------------------------------------------------------------- sections */

.edition {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.block { padding-block: 2.5rem; }
.block + .block { padding-top: 0; }

.section-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  border-top: 4px double var(--navy);
  padding-block: 1rem 1.5rem;
}
.section-title h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.section-title a.label { padding-block: 0.75rem; }

.lede {
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* ---------------------------------------------------------------- next game */

.today-top {
  display: grid;
  gap: 1.5rem;
}

.matchup {
  margin: 0.75rem 0;
  font-size: clamp(2.75rem, 10vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.matchup a { color: inherit; text-decoration: none; }
.matchup a:hover, .matchup a:focus-visible { text-decoration: underline; }
.matchup span {
  display: block;
  font-size: 0.6em;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.when {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1rem 0;
}
.when b {
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
}
.when small { font-size: 0.75rem; line-height: 1.5; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 4px double var(--road-gray);
}
.stats div {
  padding: 0.75rem 0.75rem 0.75rem 0;
}
.stats dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.125rem;
}
.stats dd.small { font-size: 0.875rem; }

.watch-card {
  background: var(--paper);
  border-top: 4px double var(--navy);
  padding: 1.25rem;
}
.watch-card h3 { font-size: 1.5rem; margin: 0.5rem 0 0.75rem; }
.watch-card p { font-size: 0.875rem; }

.action {
  display: inline-block;
  margin-top: 1rem;
  background: var(--field-green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  text-decoration: none;
}
.action:hover { text-decoration: underline; }

details {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--road-gray);
  font-size: 0.875rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding-block: 0.5rem;
}
details ul {
  margin-top: 0.75rem;
  padding-left: 1.125rem;
}
details li + li { margin-top: 0.5rem; }

/* ---------------------------------------------------------------- the argument (navy, duotone) */

.storyline {
  display: grid;
  background: var(--navy);
  color: var(--white);
}
.storyline img { width: 100%; height: 100%; object-fit: cover; }
.storytext { padding: 1.5rem; }
.storytext h2, .storytext h3 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); margin: 0.75rem 0; }
.storytext p { font-size: 0.9375rem; }
.storytext .source { color: var(--road-gray); }
.storytext a { color: var(--white); }

.cases {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 4px double var(--road-gray);
}
.cases b { font-size: 0.875rem; }
.cases p { font-size: 0.875rem; margin-top: 0.375rem; }
.cases + p { margin-top: 1.25rem; }

/* ---------------------------------------------------------------- tables */

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ledger caption {
  display: table-caption;
  caption-side: top;
  text-align: left;
  padding-bottom: 0.75rem;
}
.ledger thead th {
  text-align: left;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.625rem 0.75rem;
}
.ledger td, .ledger tbody th {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--road-gray);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.ledger tr.home th { font-weight: 600; }
.ledger tr.off th, .ledger tr.off td:nth-child(3) { text-decoration: line-through; color: var(--reading-gray); }
.ledger .mono { white-space: nowrap; font-size: 0.8125rem; }
.ledger + .ledger { margin-top: 2rem; }

.tag {
  display: inline-block;
  margin-left: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--reading-gray);
}

.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- spring + going */

.split {
  display: grid;
  gap: 2rem;
}

.receipt {
  background: var(--paper);
  border-top: 4px double var(--navy);
  padding: 1.25rem;
  font-size: 0.875rem;
}
.receipt h3 { font-size: 1.375rem; margin: 0.5rem 0 0.75rem; }
.receipt dl { font-family: var(--font-mono); font-size: 0.8125rem; margin-top: 0.75rem; }
.receipt dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--road-gray);
}
.receipt dd { margin: 0; text-align: right; }

.parks {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 2rem;
}
.parks li {
  display: grid;
  gap: 0.125rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--road-gray);
  font-size: 0.875rem;
}
.parks .mono { font-size: 0.75rem; color: var(--reading-gray); }

/* ---------------------------------------------------------------- what Ring28 is */

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.feature h3 { font-size: clamp(1.625rem, 4vw, 2.125rem); margin: 0.75rem 0; }

.sections-grid {
  display: grid;
  gap: 2rem 1.5rem;
}
.section-card {
  border-top: 4px double var(--navy);
  padding-top: 1rem;
}
.section-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1rem; }
.section-card h3 { font-size: 1.5rem; margin: 0.5rem 0 0.625rem; }
.section-card p { font-size: 0.9375rem; }

.checklist {
  margin-top: 0.875rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.checklist li {
  padding-block: 0.4rem;
  border-top: 1px solid var(--road-gray);
}
.when-open {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--field-green);
}

/* ---------------------------------------------------------------- 27 in the books */

.titles-head img { width: 100%; border: 1px solid var(--road-gray); }

.titles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 4px double var(--navy);
  border-left: 1px solid var(--road-gray);
}
.titles li {
  padding: 0.625rem 0.5rem;
  border-right: 1px solid var(--road-gray);
  border-bottom: 1px solid var(--road-gray);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.titles li small {
  display: block;
  font-size: 0.625rem;
  color: var(--reading-gray);
}
.titles li.next {
  color: var(--field-green);
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: 1.25rem;
}

/* ---------------------------------------------------------------- how we work */

.standards {
  display: grid;
  gap: 0 2rem;
  padding: 0;
  list-style: none;
}
.standards li {
  padding-block: 1rem;
  border-top: 4px double var(--road-gray);
}
.standards h3 { font-size: 1.25rem; margin-bottom: 0.375rem; }
.standards p { font-size: 0.9375rem; }

/* ---------------------------------------------------------------- prose pages */

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.75rem; margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose ul { padding-left: 1.25rem; margin-top: 0.75rem; }
.prose li + li { margin-top: 0.5rem; }
.page-title {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  margin: 0.75rem 0 1rem;
}

/* ---------------------------------------------------------------- /tell/: the forms */

.tell-kinds { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; list-style: none; }
.prose .tell-kinds li + li { margin-top: 0; }
.tell-kinds a { display: inline-block; padding-block: 0.625rem; }
.tell-form {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--paper);
  border-top: 4px double var(--navy);
}
.tell-form .field + .field { margin-top: 1.125rem; }
.tell-form label { display: block; font-weight: 600; font-size: 0.9375rem; }
.tell-form .hint { display: block; margin-top: 0.125rem; font-size: 0.8125rem; color: var(--reading-gray); font-weight: 400; }
.tell-form input, .tell-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.5rem 0.625rem;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--reading-gray);
  border-radius: 0;
}
.tell-form textarea { min-height: 8rem; resize: vertical; }
.tell-form input:focus-visible, .tell-form textarea:focus-visible {
  outline: 3px solid var(--field-green);
  outline-offset: 1px;
}
.tell-form button {
  margin-top: 1.25rem;
  padding: 0.625rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  background: var(--field-green);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.tell-form button:hover { text-decoration: underline; }
.tell-form button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.tell-form .trap { display: none; }
.reasons li:target { outline: 3px solid var(--field-green); outline-offset: 4px; }

/* ---------------------------------------------------------------- contact + footer */

.briefing {
  display: grid;
  gap: 1rem;
  align-items: center;
  border-top: 4px double var(--navy);
  padding-block: 1.5rem 3rem;
}
.briefing h2 { font-size: clamp(1.625rem, 4.5vw, 2.25rem); margin: 0.5rem 0; }
.briefing .email {
  display: inline-block;
  padding-block: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  color: var(--field-green);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
}
.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
}
.footer-name {
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: 1.5rem;
}
.site-footer ul a {
  display: inline-block;
  padding-block: 0.625rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  padding: 0;
  margin-top: 0.75rem;
  list-style: none;
}
.footnote { color: var(--road-gray); max-width: 36rem; }
.footnote p:first-child { color: var(--white); }

/* ---------------------------------------------------------------- wider screens */

@media (min-width: 40rem) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats div + div { padding-left: 0.75rem; border-left: 1px solid var(--road-gray); }
  .cases { grid-template-columns: 1fr 1fr; }
  .sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .site-head .logo { width: 220px; }
}

@media (min-width: 60rem) {
  .wrap { padding-inline: 40px; }
  .intro { padding-block: 3.5rem 2.25rem; }
  .intro-grid { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .today-top { grid-template-columns: 1fr 22rem; gap: 2.5rem; }
  .storyline { grid-template-columns: 26rem 1fr; }
  .storytext { padding: 2rem; }
  .split { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; }
  .feature { grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
  .sections-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr 1.4fr; }
  .briefing { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 29.99rem) {
  .nav-long { display: none; }
}

@media (max-width: 39.99rem) {
  .site-nav ul { justify-content: space-between; gap: 0 0.75rem; }
  .feature .receipt { order: 2; }
  .receipt dl div { display: block; }
  .receipt dt { color: var(--reading-gray); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .receipt dd { text-align: left; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td, .ledger tbody th { display: block; }
  .ledger caption { display: block; }
  .ledger tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 0.75rem;
    padding-block: 0.625rem;
    border-bottom: 1px solid var(--road-gray);
  }
  .ledger td, .ledger tbody th { padding: 0; border: 0; }
  .ledger tbody th { grid-column: 2; grid-row: 1; }
  .ledger td:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .ledger td:nth-child(3) { grid-column: 2; color: var(--reading-gray); font-size: 0.8125rem; }
  .ledger td:last-child { grid-column: 2; }
}

/* Windows high contrast and other forced-color modes: keep the boundaries that color alone drew. */
@media (forced-colors: active) {
  .action { border: 2px solid ButtonText; }
  .tell-form button { border: 2px solid ButtonText; }
  .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
  .watch-card, .receipt, .storyline { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
