* { box-sizing: border-box; }
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.55 "Segoe UI", system-ui, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .22; background-image: radial-gradient(#073b60 0.7px, transparent 0.7px); background-size: 9px 9px; }
a { color: var(--text); text-underline-offset: .25em; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-alt); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: var(--text); color: var(--surface); }
.skip-link:focus { top: 1rem; }
.hero, main, footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.hero { padding: 1.2rem 0 3rem; }
nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .4rem 1.3rem; border-bottom: 2px solid var(--text); }
nav a { display: inline-flex; min-height: 46px; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 70vh; padding: 3rem 0 1rem; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker { margin: 0 0 .7rem; color: var(--accent); font-size: .74rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 8ch; margin: 0 0 .25em; font-size: clamp(4rem, 9vw, 8.3rem); font-weight: 500; letter-spacing: -.07em; line-height: .82; }
h2 { margin: .15em 0 .5em; font-size: clamp(2rem, 4vw, 4.1rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.lede { max-width: 52ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
dl div { border-left: 4px solid var(--accent); padding-left: .8rem; }
dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
dd { margin: .15rem 0 0; font-weight: 750; }
.mountain-poster { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 12px solid var(--surface); outline: 2px solid var(--text); background: #86cbd8; box-shadow: 18px 18px 0 #3d91ae; }
.sun { position: absolute; width: 26%; aspect-ratio: 1; right: 10%; top: 9%; border-radius: 50%; background: var(--accent); }
.ridge { position: absolute; display: block; inset-inline: -15%; bottom: -2%; clip-path: polygon(0 100%, 17% 59%, 27% 70%, 49% 15%, 62% 52%, 75% 37%, 100% 100%); }
.ridge-far { height: 76%; background: #3d91ae; }
.ridge-near { height: 58%; background: var(--text); clip-path: polygon(0 100%, 22% 55%, 36% 75%, 57% 28%, 100% 100%); }
.station { position: absolute; left: 42%; bottom: 17%; width: 35%; height: 16%; background: var(--surface); clip-path: polygon(0 100%, 0 28%, 50% 0, 100% 28%, 100% 100%); }
.reactor { position: absolute; left: 52%; bottom: 25%; width: 17%; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--accent-alt); background: var(--text); box-shadow: 0 0 0 9px var(--surface); }
.signal { position: absolute; left: 18%; bottom: 12%; width: 4px; height: 28%; background: var(--surface); transform: rotate(57deg); transform-origin: bottom; }
.guest { position: absolute; bottom: 8%; width: 8px; height: 23px; border-radius: 50% 50% 2px 2px; background: var(--accent); }
.guest-one { left: 25%; }
.guest-two { left: 31%; transform: scale(.75); transform-origin: bottom; }
.poster-caption { margin: 1rem 0 0 auto; max-width: 46ch; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .07em; text-align: right; text-transform: uppercase; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--text); }
.metrics div { min-height: 9rem; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 2px solid var(--text); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.metrics div:last-child { border-right: 0; }
.metrics strong { color: var(--accent); font: 2rem/1 Georgia, serif; }
.metrics span { color: var(--muted); font-size: .78rem; }
.warning { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin: 5rem 0; padding: 1.5rem; border: 2px solid var(--text); border-left: 14px solid var(--accent); background: var(--surface); }
.warning-mark { margin: 0; color: var(--accent); font: 6rem/.75 Georgia, serif; }
.warning h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.4rem); }
.warning p:last-child { max-width: 72ch; color: var(--muted); }
.guide, .catalog { padding: 3rem 0; }
.section-heading { max-width: 770px; }
.section-heading > p:last-child { color: var(--muted); }
.phase-controls { display: flex; gap: .55rem; flex-wrap: wrap; margin: 2rem 0 .5rem; }
.phase-controls button { min-height: 44px; border: 2px solid var(--text); padding: .55rem .85rem; background: transparent; color: var(--text); cursor: pointer; font-weight: 800; }
.phase-controls button[aria-pressed="true"] { background: var(--text); color: var(--surface); }
.filter-status { min-height: 1.6em; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; counter-reset: operations; }
.guide-card { grid-column: span 6; min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 2px solid var(--text); background: var(--surface); box-shadow: 8px 8px 0 #3d91ae; }
.guide-card:nth-child(3n) { grid-column: span 7; }
.guide-card:nth-child(3n + 1) { grid-column: span 5; }
.guide-card[hidden] { display: none; }
.guide-card h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.guide-card > p:not(.kicker) { color: var(--muted); }
.section-cards { padding-top: 1rem; border-top: 1px solid #3d91ae; font-size: .87rem; }
.section-cards strong { color: var(--text); }
.catalog-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; margin: 2rem 0; padding: 1rem; background: var(--text); color: var(--surface); }
label { display: grid; gap: .3rem; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
input, select { width: 100%; min-height: 46px; border: 2px solid var(--surface); border-radius: 0; padding: .6rem .75rem; background: var(--surface); color: var(--text); }
#catalog-status { min-width: 11rem; margin: 0; color: var(--surface); font-size: .8rem; }
.deck-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 0; padding: 0; }
.deck-card { min-width: 0; padding: .9rem; border-bottom: 3px solid #3d91ae; background: var(--surface); }
.deck-card div { display: grid; gap: .25rem; }
.deck-card span, .deck-card p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.deck-card[hidden] { display: none; }
footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 5rem; padding: 2rem 0 4rem; border-top: 2px solid var(--text); color: var(--muted); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .mountain-poster { width: min(100%, 500px); margin-inline: auto; }
  .poster-caption { text-align: left; margin-left: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 2px solid var(--text); }
  .guide-card, .guide-card:nth-child(3n), .guide-card:nth-child(3n + 1) { grid-column: span 12; }
  .catalog-controls, .deck-grid { grid-template-columns: 1fr 1fr; }
  #catalog-status { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero, main, footer { width: min(100% - 1.1rem, 1180px); }
  h1 { font-size: clamp(3.4rem, 19vw, 5.2rem); }
  dl, .metrics, .catalog-controls, .deck-grid { grid-template-columns: 1fr; }
  .metrics div, .metrics div:nth-child(2) { border-right: 0; border-bottom: 2px solid var(--text); }
  .metrics div:last-child { border-bottom: 0; }
  .warning { grid-template-columns: 1fr; }
  .warning-mark { font-size: 4rem; }
  footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
