@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/open-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --page: #ffffff;
  --surface: #f5f5f5;
  --surface-hover: #ececec;
  --heading: #000000;
  --body: #666666;
  --subtle: #8f8f8f;
  --border: #e5e7eb;
  --inverse: #ffffff;
  --inverse-hover: #1f1f1f;
  --surface-glow: rgba(255, 255, 255, 0.92);
  --max: 1152px;
  --read: 720px;
  --card-radius: 24px;
  --pill-radius: 9999px;
  --spring-snappy: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26%,
    1.079 30.3%, 1.049 36%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 400 16px/1.6 "Open Sans", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: 1px solid var(--heading);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--border);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 30px;
  line-height: 1;
}

h2 {
  font-size: 26px;
  line-height: 1.1;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
}

p {
  margin: 0 0 16px;
  max-width: 65ch;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 20px;
  border-radius: var(--pill-radius);
  background: var(--heading);
  color: var(--inverse);
  font-weight: 500;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-head {
  display: grid;
  grid-template-columns: 290px 1fr auto;
  align-items: center;
  gap: 32px;
  width: min(calc(100% - 48px), var(--max));
  min-height: 96px;
  margin: auto;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand b {
  color: inherit;
  font-weight: 600;
}

.site-head nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-head nav a,
.site-foot a {
  padding: 10px 16px;
  border-radius: var(--pill-radius);
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-head nav a:hover {
  background: var(--surface);
}

.system-mark,
.eyebrow,
.route-no,
.training-index > header p,
.guide-band > header > span,
.index-head > span,
.crumb,
.article-grid aside,
.guide-band > a span,
.stages span {
  color: var(--body);
  font: 500 12px/1.5 "Open Sans", sans-serif;
  letter-spacing: 0.011em;
  text-transform: uppercase;
}

.system-mark {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  background: var(--surface);
  color: var(--heading);
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100dvh - 96px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) 0;
}

.score-copy,
.scoreboard figure,
.scoreboard aside {
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: none;
}

.score-copy {
  display: flex;
  min-height: 0;
  padding: clamp(32px, 4.4vw, 64px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, var(--surface-glow), transparent 38%),
    var(--surface);
}

.score-copy h1,
.score-copy h1 i {
  color: var(--heading);
}

.score-copy h1 {
  max-width: 8.5ch;
  font-size: clamp(4rem, 7.6vw, 7.25rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-wrap: balance;
}

.score-copy h1 i {
  font-style: normal;
  font-weight: 400;
}

.score-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin: clamp(24px, 3vh, 32px) 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
}

.action {
  display: inline-block;
  align-self: flex-start;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill-radius);
  background: var(--heading);
  color: var(--inverse);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 500ms var(--ease-snap),
    box-shadow 500ms var(--ease-snap),
    opacity 300ms var(--ease-snap);
}

.action:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.action:active {
  transform: translateY(0) scale(0.98);
}

.scoreboard figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.scoreboard figure img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 700ms var(--spring-snappy);
}

.scoreboard figure:hover img {
  transform: scale(1.04);
}

.scoreboard figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px 20px;
  border-radius: var(--pill-radius);
  background: var(--page);
  color: var(--heading);
}

.scoreboard figcaption span {
  display: block;
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
}

.scoreboard aside {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  color: var(--body);
}

.scoreboard aside span {
  color: var(--heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.scoreboard aside b {
  font-size: 14px;
  font-weight: 500;
}

@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-arrive {
  from {
    opacity: 0;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

.training-index,
.index-head,
.guide-head,
.article-frame,
.crumb {
  width: min(calc(100% - 48px), var(--max));
  margin-right: auto;
  margin-left: auto;
}

.training-index {
  padding: 96px 0;
}

.training-index > header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 48px;
}

.route-tile {
  display: grid;
  grid-template-columns: 48px 180px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: none;
}

.route-tile .route-no {
  color: var(--heading);
}

.route-tile > img {
  width: 180px;
  aspect-ratio: 16 / 10;
  border-radius: var(--card-radius);
  object-fit: cover;
}

.route-tile > div {
  display: grid;
  grid-template-columns: 112px 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.route-tile > div > p:first-child {
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
}

.route-tile h3 {
  font-size: 20px;
  font-weight: 500;
}

.route-tile h3 a {
  color: var(--heading);
}

.route-tile:has(a):hover {
  background: var(--surface-hover);
}

.guide-band {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
  width: min(calc(100% - 48px), var(--max));
  margin: 64px auto 96px;
}

.guide-band > * {
  min-height: 310px;
  padding: 32px;
  border-radius: var(--card-radius);
  background: var(--surface);
}

.guide-band > a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--heading);
  text-decoration: none;
}

.guide-band > a:hover {
  background: var(--surface-hover);
}

.guide-band > a strong {
  color: var(--heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.guide-band > a i {
  font-style: normal;
  font-weight: 500;
  text-decoration: underline;
}

.crumb {
  display: flex;
  gap: 12px;
  padding-top: 32px;
}

.index-head,
.guide-head {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.index-head p,
.guide-head > p {
  margin-top: 16px;
  font-size: 18px;
}

.compact {
  margin-top: 0;
}

.article-frame > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: end;
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border);
}

.article-frame > header h1 {
  font-size: 30px;
}

.article-frame > header p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 18px;
}

.article-frame > header > img {
  width: 100%;
  max-height: 470px;
  border-radius: var(--card-radius);
  object-fit: cover;
}

.title-mark {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: var(--card-radius);
  background: var(--surface);
  color: var(--heading);
  font-size: 48px;
  font-weight: 600;
}

.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--read));
  gap: 48px;
  padding: 64px 0 96px;
}

.article-grid aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  border-left: 1px solid var(--border);
}

.prose {
  font-size: 16px;
}

.prose h2,
.prose h3 {
  margin: 48px 0 16px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 24px;
}

.prose img {
  margin: 32px 0;
  border-radius: var(--card-radius);
}

.video-poster {
  margin: 32px 0;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--surface);
  color: var(--body);
}

.video-poster img {
  width: 100%;
  margin: 0;
  border-radius: var(--card-radius);
}

.video-poster figcaption {
  padding: 16px 24px 24px;
}

.video-poster a {
  color: var(--heading);
}

.guide-head > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--card-radius);
  background: var(--surface);
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(calc(100% - 48px), var(--max));
  margin: 64px auto 96px;
}

.stages article {
  min-height: 360px;
  padding: 32px;
  border-radius: var(--card-radius);
  background: var(--surface);
}

.stages h2 {
  margin: 64px 0 24px;
  font-size: 26px;
}

.site-foot {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 32px;
  align-items: center;
  padding: 48px max(24px, calc((100% - var(--max)) / 2));
  background: var(--heading);
  color: var(--inverse);
}

.site-foot > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-foot img {
  width: 48px;
  border-radius: var(--card-radius);
  background: var(--inverse);
}

.site-foot nav {
  display: flex;
  gap: 4px;
}

.site-foot a {
  color: var(--inverse);
}

.site-foot a:hover {
  background: var(--inverse-hover);
}

@media (min-width: 768px) {
  h1,
  .article-frame > header h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  h1,
  .article-frame > header h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  .site-head {
    grid-template-columns: 1fr auto;
  }

  .site-head nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow: auto;
    padding-bottom: 16px;
  }

  .scoreboard,
  .article-frame > header {
    grid-template-columns: 1fr;
  }

  .scoreboard {
    grid-template-rows: auto;
    min-height: auto;
  }

  .score-copy {
    min-height: auto;
  }

  .route-tile > div {
    grid-template-columns: 1fr;
  }

  .guide-band,
  .stages {
    grid-template-columns: 1fr 1fr;
  }

  .guide-band header {
    grid-column: 1 / -1;
  }

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

  .article-grid aside {
    max-width: 300px;
  }

  .site-foot {
    grid-template-columns: 1fr 1fr;
  }

  .site-foot nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-head,
  .scoreboard,
  .training-index,
  .crumb,
  .index-head,
  .guide-head,
  .article-frame,
  .guide-band,
  .stages {
    width: calc(100% - 48px);
  }

  .site-head {
    gap: 16px;
  }

  .brand span {
    font-size: 16px;
  }

  .system-mark {
    display: none;
  }

  .scoreboard,
  .training-index,
  .index-head,
  .guide-head {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .score-copy {
    padding: 32px 24px;
  }

  .score-copy h1 {
    font-size: clamp(3.25rem, 15vw, 5.5rem);
  }

  .scoreboard figure img {
    min-height: 420px;
  }

  .scoreboard aside {
    grid-template-columns: auto 1fr;
  }

  .route-tile {
    grid-template-columns: 32px 1fr;
  }

  .route-tile > img,
  .route-tile > div {
    grid-column: 2;
  }

  .route-tile > img {
    width: 100%;
  }

  .guide-band,
  .stages {
    grid-template-columns: 1fr;
  }

  .guide-band header {
    grid-column: auto;
  }

  .guide-band,
  .stages {
    margin-top: 64px;
    margin-bottom: 64px;
  }

  .site-foot {
    grid-template-columns: 1fr;
  }

  .site-foot nav {
    grid-column: auto;
    flex-wrap: wrap;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #141414;
    --surface-hover: #1f1f1f;
    --heading: #ffffff;
    --body: #b3b3b3;
    --border: #6b6b6b;
    --inverse: #000000;
    --inverse-hover: #ececec;
    --surface-glow: rgba(255, 255, 255, 0.06);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 150ms, background-color 150ms, opacity 150ms;
  }

  .score-copy .eyebrow,
  .score-copy h1,
  .score-copy > p:not(.eyebrow),
  .score-copy .action,
  .scoreboard figcaption,
  .scoreboard aside {
    animation: hero-arrive 550ms var(--spring-snappy) both;
  }

  .score-copy .eyebrow {
    animation-delay: 40ms;
  }

  .score-copy h1 {
    animation-delay: 120ms;
  }

  .score-copy > p:not(.eyebrow) {
    animation-delay: 220ms;
  }

  .score-copy .action {
    animation-delay: 320ms;
  }

  .scoreboard figure img {
    animation: hero-image-arrive 650ms var(--spring-snappy) both;
  }

  .scoreboard figcaption {
    animation-delay: 260ms;
  }

  .scoreboard aside {
    animation-delay: 360ms;
  }
}

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

  .action,
  .scoreboard figure img {
    transition: none;
  }

  .action:hover,
  .action:active,
  .scoreboard figure:hover img {
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  a {
    transition: opacity 150ms;
  }
}
