@font-face {
  font-family: Bitter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bitter-400.woff2") format("woff2");
}
@font-face {
  font-family: Bitter;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bitter-400i.woff2") format("woff2");
}
@font-face {
  font-family: Bitter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bitter-700.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/figtree-400.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/figtree-600.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/figtree-700.woff2") format("woff2");
}

:root {
  --paper: #e8eef3;
  --ticket: #f7f9fb;
  --ink: #17161d;
  --muted: #4e5663;
  --plum: #5a1e44;
  --plum-dark: #3d1230;
  --sash: #c4376a;
  --rule: #c5ced6;
  --steel: #4a5563;
  --display: Bitter, "Iowan Old Style", Palatino, Georgia, serif;
  --body: Figtree, "Segoe UI", system-ui, sans-serif;
  --pad: 1.15rem;
  --max: 72rem;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--plum);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--sash);
}

:focus-visible {
  outline: 2px solid var(--sash);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 40;
  background: var(--plum);
  color: var(--ticket);
  padding: 0.4rem 0.7rem;
}

.skip:focus {
  top: 0.75rem;
}

.sash {
  height: 0.55rem;
  background: linear-gradient(90deg, var(--plum) 0 42%, var(--sash) 42% 68%, var(--plum-dark) 68% 100%);
}

.site-header {
  background: var(--ticket);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--plum);
  min-width: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--plum-dark);
}

.brand-mark {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 3.1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--plum);
  background: var(--ticket);
  color: var(--plum);
  font: 600 0.95rem var(--body);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.menu-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: currentColor;
  background-clip: content-box;
  padding: 0.22rem 0;
}

#site-nav {
  width: 100%;
  display: none;
  border-top: 1px solid var(--rule);
  padding: 0.4rem 0 0.85rem;
}

#site-nav.is-open,
body.menu-open #site-nav {
  display: block;
}

#site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-nav a {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--plum);
  font-weight: 600;
}

#site-nav a[aria-current="page"] {
  color: var(--sash);
}

.independence {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem var(--pad) 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem var(--pad) 3rem;
}

.hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
  color: var(--plum-dark);
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sash);
  margin: 0 0 0.55rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

figure {
  margin: 0 0 1.5rem;
  background: var(--ticket);
}

figure img {
  width: 100%;
}

figcaption {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  padding: 0.55rem 0.7rem 0.7rem;
}

.prose {
  max-width: 40rem;
}

.prose h1,
.page-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--plum-dark);
  margin: 0 0 0.9rem;
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--plum);
  margin: 1.8rem 0 0.6rem;
}

.prose p,
.prose li {
  margin: 0 0 0.9rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.notice {
  border-left: 4px solid var(--sash);
  background: var(--ticket);
  padding: 0.8rem 1rem;
  margin: 1.2rem 0 1.5rem;
}

.racecard {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--plum);
}

.racecard li {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.7rem 0.9rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.racecard .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sash);
}

.racecard h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.racecard h2 a {
  text-decoration: none;
  color: var(--plum-dark);
}

.racecard h2 a:hover,
.racecard h2 a:focus-visible {
  color: var(--sash);
  text-decoration: underline;
}

.racecard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.racecard .go {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--plum);
  white-space: nowrap;
}

.section-title {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--plum-dark);
  margin: 2.2rem 0 0.8rem;
}

.related {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  max-width: 40rem;
}

.related h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--plum);
}

.crumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.site-footer {
  background: var(--plum-dark);
  color: #e7edf2;
  padding: 2rem var(--pad) 2.4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer a {
  color: #f3c0d2;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer p {
  margin: 0 0 0.7rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 1rem 0 0;
}

.footer-nav a {
  font-weight: 600;
}

.notfound {
  max-width: 36rem;
  padding: 2rem 0 3rem;
}

.notfound h1 {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--plum-dark);
}

.credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credits-list li {
  display: grid;
  grid-template-columns: minmax(0, 9rem) 1fr;
  gap: 0.8rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.credits-list img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
}

@media (min-width: 800px) {
  .menu-toggle {
    display: none;
  }

  #site-nav,
  #site-nav.is-open,
  body.menu-open #site-nav {
    display: block;
    width: 100%;
    padding: 0.15rem 0 0.7rem;
    border-top: 0;
  }

  #site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--rule);
  }

  #site-nav a {
    padding: 0.65rem 0.85rem 0.65rem 0;
    margin-right: 0.85rem;
    border-bottom: 3px solid transparent;
  }

  #site-nav a[aria-current="page"] {
    border-bottom-color: var(--sash);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: end;
    gap: 2rem;
  }

  .prose {
    border-left: 4px solid var(--plum);
    padding-left: 1.4rem;
  }

  .credits-list li {
    grid-template-columns: 11rem 1fr;
  }
}

@media (max-width: 799px) {
  .racecard li {
    grid-template-columns: 2.4rem 1fr;
  }

  .racecard .go {
    grid-column: 2;
  }
}
