:root {
  color-scheme: light dark;
  --canvas: #f2f0e7;
  --surface: #fffdf6;
  --ink: #0b2948;
  --muted: #455966;
  --line: #bbc6c5;
  --header: #082642;
  --header-ink: #fffaf0;
  --coral: #9e2f22;
  --blue: #075b91;
  --lime: #a4c51c;
  --sand: #e8dfc5;
  --focus: #d42d1d;
  font-family:
    "Segoe UI",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.25rem;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #0b2948;
  border-radius: 0.35rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sport-header {
  position: relative;
  overflow: hidden;
  color: var(--header-ink);
  background:
    linear-gradient(
      90deg,
      var(--header) 0 52%,
      rgb(8 38 66 / 78%) 78%,
      var(--header)
    ),
    url("../images/flywheel.jpg") center right / min(50rem, 62vw) auto no-repeat,
    var(--header);
}

.topline,
.masthead,
.sport-nav,
.page-shell,
.sport-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  color: #dce9f3;
  font-size: 0.82rem;
  border-block-end: 0.0625rem solid rgb(255 255 255 / 24%);
}

.topline a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
}

.topline a span {
  color: #ff796b;
  font-size: 1.2rem;
}

.topline p {
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.masthead {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 2rem;
  align-items: center;
  min-height: 31rem;
  padding-block: 4rem;
}

.eyebrow,
.section-heading > p,
.timeline-year {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sport-header .eyebrow {
  color: #78c6ff;
}

.masthead h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
}

.masthead-copy {
  max-width: 35rem;
  margin: 0;
  color: #dce9f3;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.disc-mark {
  position: relative;
  inline-size: 10rem;
  block-size: 3.6rem;
  justify-self: end;
  background: var(--coral);
  border: 0.35rem solid var(--header-ink);
  border-radius: 50%;
  box-shadow: 0 0.85rem 0 #04192d;
  transform: rotate(-18deg);
}

.disc-mark::after {
  position: absolute;
  inset: 0.55rem 1.15rem;
  border: 0.22rem solid var(--header);
  border-radius: 50%;
  content: "";
}

.sport-nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
  padding-block-end: 1.25rem;
}

.sport-nav a {
  min-width: 7rem;
  padding: 0.8rem 1.25rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 0.0625rem solid rgb(255 255 255 / 32%);
  border-radius: 999px;
}

.sport-nav a:hover {
  background: rgb(255 255 255 / 10%);
}

.sport-nav a[aria-current="page"] {
  color: #0b2948;
  background: #fffaf0;
  border-color: #fffaf0;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 0.36fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.field-notes {
  align-self: start;
  padding: 1.5rem;
  background: var(--sand);
  border-block-start: 0.4rem solid var(--lime);
}

.field-notes h2 {
  margin: 0.65rem 0 1rem;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.field-notes > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.field-notes > p + p {
  margin-block-start: 1rem;
}

.field-notes dl {
  margin: 0;
}

.field-notes dl div {
  padding-block: 1rem;
  border-block-start: 0.0625rem solid rgb(11 41 72 / 22%);
}

.field-notes dt {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-notes dd {
  margin: 0.2rem 0 0;
}

.page-content {
  min-width: 0;
}

.intro-block {
  padding-block-end: clamp(3rem, 6vw, 5rem);
}

.intro-block h2 {
  max-width: 15ch;
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.intro-block p {
  max-width: 48rem;
}

.lead {
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 0.0625rem solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  gap: 0.75rem;
  list-style: none;
}

.principle-grid li {
  min-height: 16rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
}

.principle-grid span {
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 850;
}

.principle-grid h3 {
  margin: 3.25rem 0 0.6rem;
  font-size: 1.3rem;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
}

.source-note {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  margin-block-start: 3rem;
  padding: 1.5rem;
  color: #fffaf0;
  background: var(--header);
  border-inline-start: 0.4rem solid var(--coral);
}

.source-note h2,
.source-note p {
  margin: 0;
}

.source-note a {
  color: #8fd2ff;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-block-start: 0.0625rem solid var(--line);
}

.timeline-year {
  color: var(--coral);
}

.timeline h3,
.timeline p {
  margin: 0;
}

.timeline h3 {
  font-size: 1.3rem;
}

.timeline div p {
  margin-block-start: 0.35rem;
  color: var(--muted);
}

.sources {
  margin-block-start: 3rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
}

.sources h2 {
  margin: 0;
  font-size: 1.2rem;
}

.sources ul {
  margin-block-end: 0;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 0.0625rem solid var(--line);
}

table {
  width: 100%;
  min-width: 43rem;
  border-collapse: collapse;
  background: var(--surface);
}

caption {
  padding: 1rem;
  font-weight: 800;
  text-align: start;
  background: var(--sand);
}

th,
td {
  padding: 1rem;
  text-align: start;
  border-block-start: 0.0625rem solid var(--line);
}

thead th {
  color: var(--header-ink);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--header);
}

tbody th {
  color: var(--ink);
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--sand) 55%, transparent);
}

.status {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
}

.status--open {
  color: #164e38;
  background: #d8f3e5;
  border-color: #83c6a9;
}

.sport-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-block-start: 0.0625rem solid var(--line);
}

.sport-footer p {
  margin: 0;
}

@media (max-width: 52rem) {
  .masthead {
    grid-template-columns: 1fr;
    min-height: 28rem;
  }

  .disc-mark {
    position: absolute;
    inset-block-end: 4rem;
    inset-inline-end: 1rem;
    opacity: 0.55;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .field-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 2rem;
  }

  .field-notes .eyebrow,
  .field-notes h2 {
    grid-column: 1 / -1;
  }

  .field-notes dl {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid li {
    min-height: 0;
  }

  .principle-grid h3 {
    margin-block-start: 1.5rem;
  }
}

@media (max-width: 36rem) {
  .topline,
  .sport-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sport-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sport-nav a {
    min-width: 0;
    padding-inline: 0.6rem;
  }

  .masthead h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .field-notes,
  .field-notes dl,
  .source-note {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #071827;
    --surface: #102b40;
    --ink: #fff9ec;
    --muted: #b5c8d3;
    --line: #38566b;
    --header: #041928;
    --header-ink: #fff9ec;
    --coral: #ff7868;
    --blue: #67c1ff;
    --lime: #c1dd4d;
    --sand: #213a43;
    --focus: #ffa79e;
  }

  .field-notes dl div {
    border-color: rgb(255 255 255 / 20%);
  }

  tbody tr:nth-child(even) {
    background: #18374d;
  }

  .status--open {
    color: #e2fff2;
    background: #174d3c;
    border-color: #4b9d7c;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .disc-mark,
  .status,
  .sport-nav a {
    border: 0.125rem solid CanvasText;
  }
}
