:root {
  --gaaa-ease: cubic-bezier(0.16, 0, 0.04, 1);
  --gaaa-dur-1: 90ms;
  --gaaa-dur-2: 220ms;
  --gaaa-dur-3: 360ms;
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
  color: #d6d3d1;
  font-family: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #78350f;
  color: #f4f1ec;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0f1c;
}

::-webkit-scrollbar-thumb {
  background: #78350f;
  border-radius: 0;
}

* {
  scrollbar-color: #78350f #0a0f1c;
  scrollbar-width: thin;
}

:focus-visible {
  outline: 2px solid #d6d3d1;
  outline-offset: 3px;
}

::marker {
  color: #78350f;
}

a {
  color: inherit;
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1, h2, h3, h4 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  color: #d6d3d1;
}

.eyebrow {
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #78350f;
}

p {
  /* 68ch was 816px: ch measures Sora's zero (0.75em), not a character,
     so it rendered ~88 characters per line. Measured at 34rem: mean 64,
     p90 69, max 74 — inside the 45-75 band. Set in rem, not ch. */
  max-width: 34rem;
}

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

img[src*="/jpg/hero-"] {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

img[src*="/jpg/section-"] {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

@media (max-width: 640px) {
  img[src*="/jpg/hero-"] {
    aspect-ratio: 4/3;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.site-header {
  z-index: 50;
  background: #0f172a;
  border-bottom: 4px solid #78350f;
}

/* The three-row wrapped nav is 226px tall at 390px wide — 27% of the viewport.
   Pinning it there costs a quarter of every screen on a longform reading site,
   so it only sticks once the bar collapses to a single row. */
@media (min-width: 62rem) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.site-header__bar {
  max-width: 1280px;
  margin-inline: auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand__mark {
  border: 2px solid #a8a29e;
  border-radius: 50%;
  padding: 0.4rem;
  display: flex;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.brand__subtitle {
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #a8a29e;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 1px solid #78350f;
  padding-top: 1rem;
  width: 100%;
}
.main-nav a {
  text-decoration: none;
  position: relative;
  padding-block: 0.15rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  background: #78350f;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--gaaa-dur-1) var(--gaaa-ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current=page]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a:hover, .main-nav a:focus-visible {
  color: #d6d3d1;
}

@media (min-width: 62rem) {
  .site-header__bar {
    flex-wrap: nowrap;
  }
  .main-nav {
    border-top: 0;
    padding-top: 0;
    width: auto;
    justify-content: flex-end;
  }
}
.site-footer {
  background: #0f172a;
  border-top: 2px solid #78350f;
  padding: 5rem 0;
}

.site-footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.site-footer__mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
  font-family: "Abril Fatface", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8a29e;
}
.footer-nav a {
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus-visible {
  color: #d6d3d1;
}

.footer-legal {
  max-width: 40ch;
  font-size: 0.75rem;
  color: #a8a29e;
  line-height: 1.8;
}
.footer-legal p:first-child {
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #78350f;
}

.hero {
  padding-block: 4rem;
  border-bottom: 1px solid rgba(120, 53, 15, 0.3);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-style: italic;
  color: #a8a29e;
  max-width: 42ch;
  padding-left: 1.5rem;
  border-left: 2px solid #78350f;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero__badge {
  border: 2px solid #a8a29e;
  border-radius: 50%;
  padding: 0.4rem;
}

.hero__badge-inner {
  border: 1px dashed #a8a29e;
  border-radius: 50%;
  width: 17rem;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  /* A square padding box inside a circle: the top and bottom rows sit where the
     chord is narrowest. At 15rem/2rem the label and the last line crossed the
     dashed ring by ~5px each, and the content also pushed the box to 240x305,
     so the "circle" was an egg. 17rem/2.25rem keeps it round (272x272) with
     13px of clearance on the tightest row. */
  padding: 2.25rem;
}

.hero__badge-inner .eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: 2fr 1fr;
  }
  .hero__copy {
    border-right: 1px solid rgba(120, 53, 15, 0.2);
    padding-right: 3rem;
  }
}
.btn {
  position: relative;
  display: inline-block;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d6d3d1;
  padding: 0.75rem 1.75rem;
  background: transparent;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #78350f;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--gaaa-dur-2) var(--gaaa-ease);
}

.btn:hover::after,
.btn:focus-visible::after {
  clip-path: inset(0);
}

.btn:active {
  transform: translate(1px, 1px);
}

.track-divider {
  position: relative;
  border: 0;
  height: 2px;
  margin-block: 3rem;
  background-image: repeating-linear-gradient(90deg, rgba(168, 162, 158, 0.4) 0 10px, transparent 10px 20px);
  transform: scaleX(0);
  transform-origin: left;
}

.track-divider::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 10px;
  background: #a8a29e;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .track-divider {
      animation: gaaa-draw-tape both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@supports not (animation-timeline: view()) {
  .track-divider {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .track-divider {
    transform: scaleX(1);
  }
}
@keyframes gaaa-draw-tape {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.topics {
  background: #0a0f1c;
  padding-block: 3rem;
}

.topics__grid {
  display: grid;
  gap: 0;
}

.topics__item {
  padding: 2rem;
  border-top: 1px solid rgba(120, 53, 15, 0.2);
}

.topics__item h2 {
  font-style: italic;
  font-size: 1.5rem;
  margin-block: 0.75rem;
}

.topics__item p {
  color: #a8a29e;
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .topics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topics__item:nth-child(odd) {
    border-right: 1px solid rgba(120, 53, 15, 0.2);
  }
}
@media (min-width: 62rem) {
  .topics__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .topics__item {
    border-top: 0;
    border-right: 1px solid rgba(120, 53, 15, 0.2);
  }
  .topics__item:last-child {
    border-right: 0;
  }
}
.running-order {
  padding-block: 5rem;
  border-block: 1px solid rgba(120, 53, 15, 0.4);
}

.running-order__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}
.running-order__heading h2 {
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.75rem;
}

@media (min-width: 40rem) {
  .running-order__heading h2 {
    white-space: nowrap;
  }
}
.running-order__rule {
  flex: 1;
  height: 1px;
  background: rgba(120, 53, 15, 0.3);
}

.running-order__list {
  list-style: none;
  display: grid;
  border: 1px solid rgba(120, 53, 15, 0.2);
}

.running-order__list li {
  padding: 2rem;
  border-top: 1px solid rgba(120, 53, 15, 0.2);
  transition: background var(--gaaa-dur-2) var(--gaaa-ease);
}

.running-order__list li:hover {
  background: #1e293b;
}

.running-order__num {
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 2.5rem;
  color: #78350f;
  display: block;
  margin-bottom: 1.25rem;
}

.running-order__list h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.running-order__list p {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a8a29e;
}

@media (min-width: 62rem) {
  .running-order__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .running-order__list li {
    border-top: 0;
    border-right: 1px solid rgba(120, 53, 15, 0.2);
  }
  .running-order__list li:last-child {
    border-right: 0;
  }
}
.track-lane-list {
  list-style: none;
  counter-reset: lane;
  padding-left: 0;
}
.track-lane-list li {
  counter-increment: lane;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
}
.track-lane-list li::before {
  content: counter(lane);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75rem;
  height: 1.15rem;
  border: 1.5px solid #78350f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  color: #78350f;
}

.mission {
  padding-block: 6rem;
  text-align: center;
}

.mission__tag {
  display: inline-block;
  border: 1px solid #78350f;
  padding: 0.25rem 1rem;
  margin-bottom: 2rem;
}

.mission__quote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  max-width: 60ch;
  margin-inline: auto;
}

.article {
  padding-block: 4rem;
  /* was 72ch (864px). With prose capped at 34rem the wide container left the
     text hanging in a centred box, headings 320px wider than the lines below
     them. 40rem keeps image, heading and measure in one column. */
  max-width: 40rem;
  margin-inline: auto;
}

.article h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.article h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article p, .article ul, .article ol {
  margin-bottom: 1.25rem;
  color: #d6d3d1;
}

.article ul, .article ol {
  padding-left: 1.5rem;
}

.article a:not(.btn) {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat right 100%/0% 3px;
  transition: background-size var(--gaaa-dur-1) var(--gaaa-ease);
  color: #d6d3d1;
  border-bottom: 1px solid rgba(120, 53, 15, 0.4);
}

.article a:not(.btn):hover,
.article a:not(.btn):focus-visible {
  background-size: 100% 3px;
  background-position: left 100%;
}

.faq {
  padding-block: 6rem;
  display: grid;
  gap: 4rem;
  border-top: 1px solid rgba(120, 53, 15, 0.2);
}

.faq__intro h2 {
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.faq__intro p {
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a8a29e;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid rgba(120, 53, 15, 0.15);
  padding-block: 1.5rem;
}

.faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary h3 {
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #d6d3d1;
  margin: 0;
}

.faq__item > summary::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1rem;
  border: 1.5px solid #78350f;
  background-image: repeating-linear-gradient(45deg, #78350f 0 2px, transparent 2px 5px);
  transform-origin: left center;
  transition: transform var(--gaaa-dur-1) var(--gaaa-ease);
}

.faq__item[open] > summary::before {
  transform: rotate(78deg) translateX(1px);
}

.faq__item p {
  margin-top: 1rem;
  padding-left: 2.25rem;
  color: #a8a29e;
}

@media (min-width: 62rem) {
  .faq {
    grid-template-columns: 1fr 2fr;
  }
  .faq__intro {
    border-right: 1px solid rgba(120, 53, 15, 0.2);
    padding-right: 3rem;
  }
}
.related {
  padding-block: 3rem;
  border-top: 1px solid rgba(120, 53, 15, 0.2);
}

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

@media (min-width: 48rem) {
  .related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.related__card {
  border: 1px solid rgba(120, 53, 15, 0.3);
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  position: relative;
  transition: background var(--gaaa-dur-2) var(--gaaa-ease);
}

.related__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #78350f;
  clip-path: inset(0 100% 100% 0);
  transition: clip-path var(--gaaa-dur-2) var(--gaaa-ease);
  pointer-events: none;
}

.related__card:hover, .related__card:focus-visible {
  background: #1e293b;
}

.related__card:hover::after, .related__card:focus-visible::after {
  clip-path: inset(0);
}

.related__card h3 {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.related__card span {
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: #a8a29e;
}
