:root {
  color-scheme: dark;
  --night: #19171d;
  --paper: #f3f0eb;
  --ivory: #faf7ee;
  --purple: #af82f5;
  --purple-light: #c9a9ff;
  --purple-dark: #5f3b89;
  --quiet: #d0cbd3;
  --body-on-light: #4b454e;
  --rule: #544c58;
  --ink: #231f26;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --display: "Archivo Black", "Arial Black", "Inter", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --pad: max(5.6vw, calc((100vw - 1440px) / 2));
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 400 1.08rem/1.58 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus, var(--purple)); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; z-index: 3; top: -5rem; left: 1rem; padding: .75rem 1rem; background: var(--ivory); color: var(--ink); }
.skip:focus { top: 1rem; }
.nav-shell, footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 var(--pad); }
.nav-shell { min-height: 69px; border-bottom: 1px solid var(--rule); background: var(--night); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: 220px; height: auto; aspect-ratio: 622 / 113; }
.masthead { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: .45rem; text-decoration: none; }
.masthead small { color: var(--quiet); font-size: .8rem; line-height: 1.2; }
nav { display: flex; gap: clamp(1.2rem,3vw,3.5rem); margin-left: auto; margin-right: 1.5rem; }
nav a, footer > a:last-child { font-size: .93rem; color: var(--ivory); text-decoration: none; }
nav a:hover, footer > a:last-child:hover { text-decoration: underline; text-underline-offset: .26em; }
.nav-play { display: inline-flex; align-items: center; min-height: 42px; padding: .4rem 1.15rem; border: 1px solid #84689f; color: var(--ivory); text-decoration: none; font-size: .92rem; font-weight: 700; }
.nav-play:hover { border-color: var(--purple); }
.cover { display: grid; grid-template-columns: .98fr 1.02fr; position: relative; isolation: isolate; min-height: clamp(570px,75vh,835px); background: var(--night); overflow: hidden; }
.cover-art { position: absolute; inset: 0 0 0 42%; z-index: -1; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.cover-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--night) 0%,#19171da3 9%,transparent 29%),linear-gradient(0deg,#19171d82,transparent 20%); }
.cover-copy { align-self: center; grid-column: 1 / 2; width: calc(100% + 3rem); padding: clamp(3rem,4.2vw,5rem) 0 clamp(3rem,4.7vw,5.5rem) var(--pad); }
.eyebrow { color: var(--purple); font: 700 .83rem/1.42 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; }
h1, h2 { letter-spacing: -.065em; }
h1 { margin: 1.1rem 0 1.5rem; font-size: clamp(4.6rem,7.15vw,8rem); line-height: .90; }
h1 em, .cycle em { color: var(--purple); font-style: normal; }
.lede { max-width: 34rem; line-height: 1.48; font-size: clamp(1rem,1.35vw,1.2rem); color: #e8e4e7; }
.cover-actions, .start { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.7rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .7rem; min-height: 48px; padding: .8rem 1.38rem; background: var(--purple); color: var(--night); font-weight: 750; text-decoration: none; }
.button:hover { background: var(--purple-light); }
.button b { font-size: .75rem; }
.ghost { font-size: .97rem; font-weight: 650; text-decoration-color: currentColor; text-underline-offset: .3em; }
.cover-caption { position: absolute; right: var(--pad); bottom: 1.25rem; color: white; background: #19171ddd; padding: .35rem .7rem; font: 500 .8rem/1.5 var(--mono); }
.market-cycle-chart {
  margin: 0; padding: clamp(1.6rem,3vw,3rem) var(--pad);
  display: grid; grid-template-columns: minmax(13rem,.65fr) minmax(0,2fr);
  gap: clamp(1.5rem,4vw,5rem); align-items: center;
  border-top: 1px solid var(--rule); background: #26222a;
}
.market-cycle-chart h2 { margin: .5rem 0 0; font-size: clamp(1.8rem,3vw,3.4rem); letter-spacing: -.045em; line-height: 1.02; }
.lassonde-diagram { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .55rem; align-items: center; }
.value-axis { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--quiet); font: 500 .8rem/1 var(--mono); text-align: center; }
.lassonde-plot { height: clamp(12.75rem,17vw,16rem); position: relative; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lassonde-plot svg { width: 100%; height: 100%; display: block; }
.lassonde-plot path { fill: none; vector-effect: non-scaling-stroke; }
.discovery-guide { stroke: var(--rule); stroke-dasharray: 3 5; }
.later-stages { stroke: #99909f; stroke-width: 2; }
.discovery-rise { stroke: var(--purple); stroke-width: 4; stroke-linecap: round; }
.lassonde-plot::before, .lassonde-plot::after { content: ""; position: absolute; z-index: 1; width: .4rem; height: .4rem; border: 2px solid var(--purple-light); border-radius: 50%; background: #26222a; transform: translate(-50%,-50%); }
.lassonde-plot::before { left: 25%; top: 72%; }
.lassonde-plot::after { left: 38%; top: 31%; }
.lassonde-plot span { position: absolute; color: var(--quiet); font: 500 .85rem/1.15 var(--sans); }
.lassonde-plot .exploration { left: 1%; top: 92%; }
.lassonde-plot .assays { right: 75%; bottom: 30%; color: var(--purple-light); }
.lassonde-plot .discovery { left: 38%; bottom: 72%; transform: translateX(-50%); color: var(--purple-light); font-weight: 750; }
.lassonde-plot .feasibility { left: 53.3%; top: 79%; transform: translateX(-50%); }
.lassonde-plot .construction { left: 69%; top: 48%; }
.lassonde-plot .production { left: 83.33%; bottom: 89.5%; transform: translateX(-50%); }
.lassonde-plot .depletion { right: 0; top: 34%; }
.section { padding: clamp(3.5rem,6.5vw,7.5rem) var(--pad); }
.game, .diary { --focus: var(--purple-dark); background: var(--paper); color: var(--ink); }
.game-head { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 4rem; margin-bottom: 2.35rem; }
.game .eyebrow, .diary .eyebrow { color: var(--purple-dark); }
h2 { margin-top: .72rem; font-size: clamp(2.8rem,5vw,5.5rem); line-height: .97; }
.game-head > p { max-width: 33rem; font-size: 1.1rem; color: var(--body-on-light); }
.chapters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.1rem,2.1vw,2.5rem); }
.chapters article { min-width: 0; }
.chapters img { width: 100%; aspect-ratio: 1.6; object-fit: cover; background: var(--night); }
.chapters article > div { padding: 1.1rem 0 0; }
.chapters .eyebrow { font-size: .78rem; }
h3 { margin: .45rem 0 .55rem; font-size: clamp(1.4rem,2.15vw,2.45rem); line-height: 1.05; letter-spacing: -.05em; }
.chapters h3 + p { color: var(--body-on-light); font-size: 1rem; }
.cycle { min-height: 29rem; display: flex; align-items: center; background: linear-gradient(90deg,#19171df5 3%,#19171deb 42%,#19171d57 83%),url("assets/hero.webp") center 51% / cover; }
.cycle-content { max-width: 39rem; }
.cycle-content > p:not(.eyebrow) { margin-top: 1.4rem; color: #e8e4e7; }
.start > span { color: var(--quiet); font-size: .88rem; line-height: 1.4; }
.diary { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,6rem); align-items: center; }
.diary > img { width: 100%; height: auto; }
.diary h2 { max-width: 9em; }
.diary h2 + p { max-width: 31rem; margin: 1rem 0 1.5rem; color: var(--body-on-light); }
.diary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; }
.diary .button { color: var(--ivory); background: var(--purple-dark); }
.diary .button:hover { background: #482b6a; }
footer { min-height: 77px; border-top: 1px solid var(--rule); }
@media (min-width: 1750px) { .cover-art { left: 47%; } }
@media (max-width: 780px) {
  .nav-shell { min-height: 60px; }
  nav { display: none; }
  .logo img { width: clamp(151px, 43vw, 174px); }
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover-art { position: relative; grid-area: 1 / 1; inset: auto; height: clamp(290px,70vw,450px); }
  .cover-art img { object-position: 50% 32%; }
  .cover-art::after { background: linear-gradient(0deg,var(--night) 0%,transparent 26%); }
  .cover-caption { grid-area: 1 / 1; align-self: start; justify-self: end; position: relative; inset: auto; margin: .8rem var(--pad) 0 0; font-size: .72rem; }
  .cover-copy { grid-area: 2 / 1; width: auto; padding: 0 var(--pad) 2rem; margin-top: -.6rem; z-index: 1; }
  h1 { font-size: clamp(3.15rem,9vw,4.8rem); margin: .65rem 0 .9rem; line-height: .96; }
  h1 br:first-of-type { display: none; }
  h1 br:first-of-type::after { content: " "; }
  .cover-actions { margin-top: 1.15rem; }
  .market-cycle-chart { grid-template-columns: 1fr; gap: 1.5rem; }
  .diary { grid-template-columns: 1fr; gap: 1.5rem; }
  .game-head { grid-template-columns: 1fr; gap: 1rem; }
  .chapters { grid-template-columns: 1fr; gap: 2.2rem; }
  .chapters article { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; gap: 1.4rem; }
  .chapters article > div { padding: 0; }
  .cycle { background-position: 64% center; }
}
@media (max-width: 520px) {
  .chapters article { display: block; }
  .chapters article > div { padding: 1rem 0 0; }
  .eyebrow { font-size: .73rem; }
  .button { padding-inline: 1rem; }
  .cover-actions { gap: 1.05rem; }
  h3 { font-size: 1.65rem; }
}
@media (max-width: 360px) {
  .nav-shell { gap: .55rem; }
  .nav-play { padding-inline: .7rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
