/* Layout: one quiet 700px column, left-aligned, ruled sections. */
:root {
  --paper: #F5F4EF;
  --ink: #17191E;
  --ink-soft: #5C6068;
  --rule: #D9D7CF;
  --red: #C8102E;
  --panel: #ECEBE4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15171C; --ink: #ECEAE3; --ink-soft: #9A9EA8; --rule: #2E3139; --red: #F2566B; --panel: #1C1F26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15171C; --ink: #ECEAE3; --ink-soft: #9A9EA8; --rule: #2E3139; --red: #F2566B; --panel: #1C1F26;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.page {
  max-width: 748px;
  margin: 0 auto;
  padding-block: 56px 72px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
h1, h2 { text-wrap: balance; }

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
header .brand { font-family: "Newsreader", serif; font-weight: 600; font-size: 20px; color: var(--ink); }
header .brand span { color: var(--red); }
header .brand:hover { text-decoration: none; }
header nav a { color: var(--ink-soft); }
header nav a[aria-current] { color: var(--ink); }

h1 {
  font-family: "Newsreader", serif;
  font-weight: 300;
  font-size: clamp(36px, 6.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  max-width: 16ch;
}
h1 strong, h2 strong { font-weight: 600; }
h1 em a { color: inherit; }
h1 em a:hover, h1 em a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
h1 strong a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .2s; }
h1 strong a:hover, h1 strong a:focus-visible { color: var(--red); }
h1 em, h2 em, .lede em { font-style: italic; font-weight: 600; color: var(--red); }
h2 {
  font-family: "Newsreader", serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 24px;
}
p { max-width: 36em; }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 36px; }

section { padding: 44px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; padding-top: 72px; }

/* Splash: the headline that leads to the sponsorship page */
.lead-link {
  display: block;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.lead-link:hover, .lead-link:focus-visible { text-decoration: none; }
.lead-link h2 {
  font-weight: 300;
  font-size: clamp(30px, 5.5vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 18ch;
}
.lead-link:hover h2 em, .lead-link:focus-visible h2 em { text-decoration: underline; text-underline-offset: 5px; }
.lead-link p { margin: 0; color: var(--ink-soft); }


.lore { color: var(--ink-soft); }

.sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 20px;
  background: var(--panel);
  border-left: 3px solid var(--red);
  padding: 24px 28px;
  margin: 32px 0 0;
}
.sheet div { min-width: 0; }
.sheet .wide { grid-column: 1 / -1; }
.sheet dt { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.sheet dd { margin: 0; font-family: "Newsreader", serif; font-size: 24px; line-height: 1.15; font-weight: 400; }
.sheet dd a { color: var(--ink); }
.sheet dd a:hover, .sheet dd a:focus-visible { color: var(--red); text-decoration: none; }
.sheet .follow { font-family: "Instrument Sans", system-ui, sans-serif; font-size: 16px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sheet .follow a { display: inline-flex; align-items: center; gap: 8px; }
.sheet .follow svg { width: 17px; height: 17px; color: var(--red); }
.sheet .follow img { width: 18px; height: 18px; border-radius: 4px; }
.sheet .with-icon { display: flex; align-items: center; gap: 10px; }
.sheet .with-icon img { width: 24px; height: 24px; image-rendering: pixelated; }

.results { list-style: none; margin: 0; padding: 0; }
.results li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.results li:first-child { border-top: 0; padding-top: 0; }
.results time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.results small { display: block; color: var(--ink-soft); }

/* Placings: date, big placement, event + context */
.placings { list-style: none; margin: 0; padding: 0; }
.placings li {
  display: grid;
  grid-template-columns: 90px 118px 1fr;
  gap: 0 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.placings li:first-child { border-top: 0; padding-top: 0; }
.placings time { color: var(--ink-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.place {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--red);
  white-space: nowrap;
}
.place small {
  display: block;
  margin-top: 4px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.placings div { min-width: 0; }
.placings div > a { font-weight: 500; font-size: 18px; color: var(--ink); }
.placings div > a:hover, .placings div > a:focus-visible { color: var(--red); text-decoration: none; }
.placings div small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }
.top3 {
  display: block;
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--ink);
}
.top3::before { content: "Top 3: "; color: var(--ink-soft); }
.top3 li { display: inline; }
.top3 li:not(:last-child)::after { content: ", "; }
.top3 b { font-weight: 500; color: var(--red); }

footer {
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 15px;
}
footer p { margin: 0 0 8px; max-width: none; }
footer .social { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; font-weight: 500; }
footer .social a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
footer .social a:hover, footer .social a:focus-visible { color: var(--red); text-decoration: none; }
footer .social svg { width: 17px; height: 17px; color: var(--red); }

@media (max-width: 480px) {
  .page { padding-block: 36px 56px; }
  section:first-of-type { padding-top: 56px; }
  .results li { grid-template-columns: 1fr; gap: 2px; }
  .sheet { grid-template-columns: repeat(2, 1fr); padding: 20px 20px; gap: 18px 16px; }
  .sheet dd { font-size: 21px; }
  .placings li { grid-template-columns: 90px 1fr; gap: 2px 16px; }
  .placings time { grid-column: 1 / -1; }
}

/* The one line at the bottom of the splash that leads to the about page */
footer .who { margin-bottom: 20px; }
footer .who a {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.lede a { color: var(--red); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.lede a:hover, .lede a:focus-visible { text-decoration-color: var(--red); }

/* Quote carousel in the sub-headline slot */
.quotes { margin-top: 4px; }
.quotes-track { display: grid; }
.quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.quote.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.quote blockquote {
  margin: 0 0 14px;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.3;
  max-width: 24em;
  text-indent: -0.38em; /* hang the opening quote mark */
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { font-size: 15px; color: var(--ink-soft); }
.quote figcaption b { color: var(--ink); font-weight: 500; }
.quote figcaption a { display: inline-block; color: var(--red); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.quote figcaption a:hover, .quote figcaption a:focus-visible { text-decoration-color: var(--red); }

.quotes-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.quotes-dots { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.quotes-dots button {
  width: 16px; height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
}
.quotes-dots button::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rule);
  transition: background .25s;
}
.quotes-dots li.is-active button::before { background: var(--red); }
.quotes-btn {
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 14px/1 "Instrument Sans", system-ui, sans-serif;
  cursor: pointer;
}
.quotes-btn:hover, .quotes-btn:focus-visible { color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .quote, .quotes-dots button::before { transition: none; }
}
