/* contrast-pairs: #f3eee6/#14151f #d2cbc0/#14151f #14151f/#f3eee6 #14151f/#f0a36a #cbbcdc/#14151f #f3eee6/#1c1d2a */

:root {
  --bg: #14151f;
  --bg-raise: #1c1d2a;
  --ivory: #f3eee6;
  --muted: #d2cbc0;
  --apricot: #f0a36a;
  --lavender: #cbbcdc;
  --line: rgba(203, 188, 220, 0.32);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: min(1040px, calc(100% - 32px));
}

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

html {
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at 78% -10%, rgba(240, 163, 106, 0.18), transparent 46%),
    radial-gradient(ellipse at 0% 30%, rgba(203, 188, 220, 0.1), transparent 34%),
    radial-gradient(rgba(243, 238, 230, 0.045) 0.55px, transparent 0.7px);
  background-size: auto, auto, 3px 3px;
}

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

a {
  color: var(--apricot);
}

a:hover {
  color: var(--ivory);
}

:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 3px;
}

::selection {
  background: var(--apricot);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--ivory);
  color: var(--bg);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 21, 31, 0.94);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  min-height: 68px;
  padding: 8px 0;
}

.word {
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.pill {
  margin: 0;
  border: 1px solid var(--apricot);
  color: var(--ivory);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  min-width: 76px;
  border: 1px solid var(--lavender);
  background: transparent;
  color: var(--ivory);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

#site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
}

#site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
}

#site-nav a:hover {
  color: var(--apricot);
}

.hero {
  padding: 48px 0 24px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--lavender);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
.tagline {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 18px 0 0;
  max-width: 16ch;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-style: italic;
  line-height: 1.15;
  color: var(--ivory);
}

.hero-grid {
  display: grid;
  gap: 8px 36px;
}

.hero-figure {
  margin: 12px 0;
  justify-self: center;
  text-align: center;
}

.hero-art {
  width: min(100%, 440px);
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  box-shadow:
    0 0 0 1px rgba(240, 163, 106, 0.55),
    0 24px 70px rgba(0, 0, 0, 0.35);
}

.hero-figure figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
}

.lede,
.prose p,
.fine {
  color: var(--muted);
}

.lede {
  margin: 8px 0 0;
  max-width: 42rem;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--ivory);
  color: var(--bg);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.button:hover {
  background: var(--apricot);
  color: var(--bg);
}

.text-link {
  color: var(--apricot);
}

.launchpad-note {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.strip li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.strip li > span:first-child {
  display: block;
  color: var(--lavender);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

section {
  padding: 64px 0;
  scroll-margin-top: 84px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--lavender);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 16px;
}

.split {
  display: grid;
  gap: 28px;
}

.plate {
  background: rgba(28, 29, 42, 0.86);
  border: 1px solid var(--line);
  padding: 22px 20px;
}

.plate h3,
.facts dt {
  font-family: var(--serif);
}

.fragments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.fragments button {
  min-height: 52px;
  text-align: left;
  font: inherit;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
}

.fragments button[aria-pressed="true"] {
  background: var(--ivory);
  color: var(--bg);
  border-color: var(--ivory);
}

#fragment-readout {
  min-height: 4.8em;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ivory);
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 4px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  font-size: 1.05rem;
}

.facts dd {
  margin: 0;
  color: var(--muted);
}

.facts p {
  margin: 0 0 8px;
}

.tag {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--apricot);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: var(--sans);
}

.risks {
  padding-left: 1.1rem;
}

.risks li {
  margin: 0 0 10px;
  color: var(--muted);
}

.risks strong,
.prose strong {
  color: var(--ivory);
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
}

.footer p {
  margin: 0 0 10px;
}

.symbol {
  letter-spacing: 0.14em;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-areas:
      "kicker art"
      "title art"
      "tag art"
      "lede art"
      "actions art";
    align-items: center;
  }

  .kicker { grid-area: kicker; }
  h1 { grid-area: title; }
  .tagline { grid-area: tag; }
  .hero-figure { grid-area: art; }
  .lede { grid-area: lede; }
  .actions { grid-area: actions; }

  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: start;
  }

  .facts div {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: baseline;
  }
}

@media (max-width: 799px) {
  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js #site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 12px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
  }

  html.js #site-nav[data-open="true"] {
    display: flex;
  }

  #site-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .mast {
    position: sticky;
  }

  .mast-inner {
    position: relative;
    flex-wrap: wrap;
  }

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

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

  section {
    padding: 48px 0;
  }
}

@media (max-width: 420px) {
  .mast-inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .word {
    font-size: 1.12rem;
  }

  .pill {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 3px 7px;
  }

  .nav-toggle {
    min-width: 64px;
    padding: 8px 10px;
  }
}

@media (max-width: 359px) {
  :root {
    --wrap: min(1040px, calc(100% - 24px));
  }

  h1 {
    font-size: 2.45rem;
  }
}

.scroll-stage {
  padding: 0;
}

.scroll-pin {
  position: relative;
  overflow-x: clip;
}

.glow {
  position: absolute;
  z-index: 0;
  width: min(68vw, 540px);
  height: min(68vw, 540px);
  right: max(0px, calc(50% - 560px));
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 163, 106, 0.22), rgba(203, 188, 220, 0.06) 46%, transparent 70%);
  pointer-events: none;
}

.scroll-pin .wrap {
  position: relative;
  z-index: 1;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 800px) {
    .scroll-stage {
      height: 210vh;
      view-timeline-name: --opening;
      view-timeline-axis: block;
    }

    .scroll-pin {
      position: sticky;
      top: 0;
      height: 100svh;
      display: flex;
      align-items: center;
      overflow: clip;
    }

    .hero-art {
      transform-origin: 68% 46%;
      animation: art-settle linear both;
      animation-timeline: --opening;
      animation-range: contain 0% contain 100%;
    }

    .tagline {
      animation: tag-drift linear both;
      animation-timeline: --opening;
      animation-range: contain 0% contain 70%;
    }

    .strip,
    .hero-figure figcaption {
      animation: rise linear both;
      animation-timeline: --opening;
    }

    .hero-figure figcaption { animation-range: contain 8% contain 36%; }
    .strip { animation-range: contain 28% contain 62%; }

    .glow {
      animation: glow-drift linear both;
      animation-timeline: --opening;
      animation-range: contain 0% contain 100%;
    }
  }

  @media (prefers-reduced-motion: no-preference) and (max-width: 799px) {
    .scroll-stage {
      view-timeline-name: --opening;
      view-timeline-axis: block;
    }

    .hero-art {
      animation: art-mobile linear both;
      animation-timeline: --opening;
      animation-range: contain 0% contain 80%;
    }

    .glow {
      animation: glow-drift linear both;
      animation-timeline: --opening;
      animation-range: contain 0% contain 80%;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    h2.rise,
    .section-label.rise,
    .plate.rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes art-settle {
  from { transform: scale(1.12) translate3d(0, 5vh, 0); }
  to { transform: scale(0.76) translate3d(0, -3vh, 0); }
}

@keyframes art-mobile {
  from { transform: translate3d(0, 18px, 0) scale(1); }
  to { transform: translate3d(0, -22px, 0) scale(0.86); }
}

@keyframes tag-drift {
  from { transform: translate3d(0, 26px, 0); }
  to { transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes glow-drift {
  from { transform: translate3d(0, 7vh, 0) scale(1); }
  to { transform: translate3d(0, -9vh, 0) scale(0.82); }
}

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

  .scroll-stage {
    height: auto;
  }

  .scroll-pin {
    position: static;
    height: auto;
    overflow: visible;
  }

  .hero-art,
  .tagline,
  .lede,
  .actions,
  .strip,
  .rise,
  .glow,
  h2,
  .section-label,
  .plate {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
