:root {
  color-scheme: light;
  --ink: #17241f;
  --paper: #f3eddf;
  --muted: #4e5548;
  --pine: #112623;
  --deep: #0c1a18;
  --cream: #f6edda;
  --gold: #dfbd80;
  --rust: #813d2e;
  --serif: "Baskerville", "Times New Roman", Georgia, serif;
  --sans: "Avenir Next", Avenir, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--cream); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(2.85rem, 5.2vw, 5.45rem); line-height: .96; letter-spacing: -.052em; }
h3 { font-size: clamp(1.65rem, 2.45vw, 2.25rem); line-height: 1.08; letter-spacing: -.025em; }
.shell { width: min(100% - var(--gutter) * 2, 74rem); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 20; transform: translateY(-180%); background: var(--paper); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { transform: none; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--gold);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.rule { width: 1.75rem; height: 1px; background: currentColor; flex: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: .7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button-outline { background: #101e1c80; border-color: #dfbd806e; color: var(--cream); }
.button-outline:hover { background: #dfbd8029; border-color: var(--gold); }
.button-gold { background: var(--gold); color: #1b2219; }
.button-gold:hover { background: #f6d69d; }

.masthead { position: relative; z-index: 1; background: #0d1d1b; border-bottom: 1px solid #dfbd803b; }
.masthead-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; white-space: nowrap; font: 500 1.65rem/1 var(--serif); letter-spacing: -.035em; }
.wordmark img { object-fit: contain; flex: none; }
.site-nav { display: flex; gap: clamp(1rem, 3.15vw, 3.1rem); color: #e2daca; font-size: .875rem; font-weight: 550; }
.site-nav a, .footer a { transition: color .18s ease; }
.site-nav a:hover, .footer a:hover { color: var(--gold); }
.masthead-action { min-height: 2.6rem; padding-inline: 1rem; font-size: .875rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #162924; }
.hero::after, .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; object-fit: cover; object-position: 55% 52%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #0d1c1bed 0%, #0e201fdb 22%, #0e201f98 36%, #0e201f3a 55%, transparent 72%),
    linear-gradient(0deg, #0b1919e8 0%, #0b191945 21%, transparent 48%);
}
.hero-inner { min-height: clamp(36rem, 49vw, 48rem); position: relative; display: flex; align-items: center; padding-block: 4rem 5.5rem; }
.hero-copy { max-width: 34rem; }
.hero h1 {
  margin: 1.3rem 0 1.35rem;
  color: #fff3da;
  font-size: clamp(5.15rem, 9.7vw, 9.8rem);
  line-height: .77;
  letter-spacing: -.058em;
  text-shadow: 0 4px 24px #0a161658;
}
.hero h1 em { font-weight: inherit; color: var(--gold); }
.hero-tagline { font: 500 clamp(1.45rem, 2.5vw, 2.35rem)/1.12 var(--serif); margin-bottom: .65rem; letter-spacing: -.015em; }
.hero-description { max-width: 30rem; color: #f0e9d8; font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-caption {
  position: absolute;
  bottom: 1.3rem;
  right: 0;
  display: flex;
  gap: .55rem;
  color: #f1e0bb;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--rust); }
.overview, .gameplay, .atlas, .prototype { padding-block: clamp(4.2rem, 8vw, 7.6rem); }
.overview { border-top: 4px solid #aa774d; }
.overview-intro, .atlas-intro, .gameplay-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1.25rem, 5vw, 5.5rem);
  align-items: end;
}
.overview h2, .gameplay h2, .atlas h2, .prototype h2 { margin-top: .9rem; }
.section-lead { color: var(--muted); font-size: clamp(1.125rem, 1.75vw, 1.36rem); line-height: 1.56; padding-bottom: .15rem; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4.25rem); margin-top: clamp(2.6rem, 5vw, 4.65rem); }
.feature-list article { border-top: 1px solid #b7a380; padding-top: 1.3rem; }
.feature-kicker { color: var(--rust); font-size: .8125rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; margin-bottom: .35rem; }
.feature-list h3 { margin-bottom: .5rem; }
.feature-list article > p:last-child { color: var(--muted); }

.gameplay { background: var(--pine); }
.gameplay-intro > p { max-width: 25rem; color: #e2deca; font-size: 1.125rem; }
.gallery { margin-top: 2.2rem; }
.gallery-tabs { display: flex; gap: clamp(.85rem, 3.75vw, 3.25rem); border-bottom: 1px solid #dfbd8052; }
.gallery-tabs button {
  position: relative;
  min-height: 2.9rem;
  padding: .6rem .1rem;
  background: transparent;
  border: 0;
  color: #d7d4c4;
  font-size: .9375rem;
  font-weight: 600;
  text-align: left;
}
.gallery-tabs button:hover, .gallery-tabs button[aria-selected="true"] { color: var(--gold); }
.gallery-tabs button[aria-selected="true"]::after { content: ""; height: 2px; background: var(--gold); position: absolute; inset: auto 0 -1px; }
.gallery-tabs button:focus-visible { outline-offset: -2px; }
.gallery-panel { margin-top: 1rem; }
.gallery-image { display: block; width: 100%; overflow: hidden; border: 1px solid #dfbd8052; background: #243834; cursor: zoom-in; }
.gallery-image img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; object-position: top; }
.gallery-panel figcaption {
  display: flex;
  align-items: baseline;
  gap: .6rem 1.2rem;
  padding: 1rem 0;
  color: #d8d5c6;
  border-bottom: 1px solid #dfbd8049;
}
.gallery-panel figcaption strong { color: var(--cream); font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; font-weight: 500; }
.capture-note { margin-top: .65rem; color: #c3ccbd; font-size: .875rem; }

.atlas-grid { margin-top: 2.4rem; display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); min-height: 25rem; border: 1px solid #aa9270; }
.atlas-chart { position: relative; min-width: 0; min-height: 25rem; background: #284844; overflow: hidden; isolation: isolate; }
.atlas-chart canvas, .atlas-pins { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-pins { pointer-events: none; }
.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  transform: translate(-50%, -50%);
  color: #f5e1b4;
  border: 0;
  background: transparent;
  pointer-events: auto;
}
.map-pin::before {
  content: "";
  width: .66rem;
  height: .66rem;
  border: 1px solid #fff0cd;
  border-radius: 50%;
  background: #203d38;
  box-shadow: 0 0 0 2px #17312ed1;
}
.map-pin:hover, .map-pin:focus-visible, .map-pin[aria-pressed="true"] { z-index: 2; }
.map-pin:hover::before, .map-pin[aria-pressed="true"]::before { background: #f4d395; box-shadow: 0 0 0 3px #8a4638; }
.map-pin span {
  position: absolute;
  left: 50%;
  top: 76%;
  transform: translateX(-50%);
  border-radius: 1px;
  padding: .1rem .37rem;
  background: #142c29;
  color: #fff1d2;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.map-pin:not(.featured):not([aria-pressed="true"]) span { visibility: hidden; }
.map-pin:not(.featured):not([aria-pressed="true"]):hover span,
.map-pin:not(.featured):not([aria-pressed="true"]):focus-visible span { visibility: visible; }
.compass { position: absolute; bottom: .75rem; right: 1rem; color: #f9e3b5; font: 600 .8rem/1 var(--sans); text-align: center; text-shadow: 0 0 6px #19302e; pointer-events: none; }
.compass span { display: block; font-size: 1.8rem; }
.port-card { padding: clamp(1.2rem, 3vw, 2.1rem); background: #eae0ca; border-left: 1px solid #aa9270; }
.port-card label { display: block; color: var(--ink); font-size: .9rem; font-weight: 650; margin-bottom: .35rem; }
.port-card select {
  appearance: none;
  width: 100%;
  min-height: 2.7rem;
  padding: .4rem 2rem .4rem .8rem;
  border: 1px solid #9a8563;
  border-radius: 2px;
  background: linear-gradient(45deg, transparent 50%, #423e30 50%) calc(100% - 17px) 51% / 5px 5px no-repeat,
    linear-gradient(135deg, #423e30 50%, transparent 50%) calc(100% - 12px) 51% / 5px 5px no-repeat, #f8f2e4;
  color: var(--ink);
  cursor: pointer;
}
.port-details { margin-top: 1.45rem; }
.port-details .eyebrow { font-size: .75rem; letter-spacing: .1em; }
.port-details h3 { margin: .25rem 0 .45rem; font-size: clamp(2rem, 3.1vw, 3rem); overflow-wrap: anywhere; }
.port-details > p:not(.eyebrow) { color: var(--muted); }
.port-details dt { margin-top: .85rem; font-size: .875rem; font-weight: 700; }
.port-details dd { color: var(--muted); overflow-wrap: anywhere; }
.world-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.35rem; border-block: 1px solid #b7a380; text-align: center; }
.world-stats > div { display: flex; flex-direction: column-reverse; gap: .25rem; padding: 1rem .5rem 1.1rem; }
.world-stats > div + div { border-left: 1px solid #b7a380; }
.world-stats dt { color: var(--muted); font-size: .9rem; font-weight: 650; line-height: 1.2; }
.world-stats dd { font: 500 clamp(2.4rem, 4.9vw, 4.25rem)/1 var(--serif); }
.map-credit { margin-top: .65rem; color: var(--muted); font-size: .8125rem; }

.prototype {
  position: relative;
  background: linear-gradient(90deg, #122623f5, #122623d9), url("assets/harbor.jpg") center 68% / cover;
  border-top: 1px solid #95633b;
}
.prototype-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.7rem, 5vw, 5rem); align-items: center; }
.prototype-inner > div:first-child > p:last-child { margin-top: .8rem; color: #e8dfcb; font-size: 1.125rem; max-width: 34rem; }
.launch-card { min-width: 0; padding: clamp(1.25rem, 3vw, 2.15rem); background: #0c1c19dc; border: 1px solid #dfbd8078; }
.launch-card h3 { margin-bottom: .6rem; }
.launch-card p { color: #e8dfcb; }
.launch-card code { color: #f8dca8; font-size: .91em; overflow-wrap: anywhere; }
.launch-card details { border-top: 1px solid #dfbd8052; padding-top: .75rem; margin-top: 1rem; }
.launch-card summary { color: var(--gold); font-weight: 650; }
.launch-card details p { margin-top: .55rem; }
.launch-card pre { white-space: pre-wrap; background: #ffffff10; padding: .75rem; margin: .55rem 0; }
.copy-command { min-height: 2.5rem; }
.copy-status { display: inline-block; font-size: .875rem; margin-left: .5rem; }

.footer { background: #0b1a18; border-top: 1px solid #dfbd803b; color: #e9dfcb; }
.footer-inner { min-height: 6rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 1rem; font-size: .875rem; }
.footer .wordmark { font-size: 1.35rem; }
.image-dialog { color: var(--cream); background: #10221f; border: 1px solid var(--gold); padding: .65rem; max-width: min(96vw, 90rem); max-height: 96dvh; }
.image-dialog::backdrop { background: #020b0be6; }
.image-dialog form { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
.image-dialog form button { min-height: 2.4rem; }
.image-dialog img { max-height: calc(96dvh - 5rem); width: auto; object-fit: contain; }

@media (max-width: 55rem) {
  .masthead-inner { flex-wrap: wrap; gap: 0 1rem; padding-top: .65rem; }
  .site-nav { width: 100%; order: 2; border-top: 1px solid #dfbd8030; gap: 1.5rem; margin-top: .55rem; }
  .site-nav a { padding-block: .55rem; }
  .hero-inner { min-height: 36rem; }
  .hero-art { object-position: 59% 50%; }
  .hero::after { background: linear-gradient(90deg, #0c1b1bec, #0c1b1ba3 45%, #0c1b1b19 95%), linear-gradient(0deg, #0b1919cc, transparent 45%); }
  .atlas-grid { grid-template-columns: 1.7fr 1fr; }
  .map-pin:not([aria-pressed="true"]) span { visibility: hidden; }
  .map-pin:not([aria-pressed="true"]):hover span, .map-pin:not([aria-pressed="true"]):focus-visible span { visibility: visible; }
}
@media (max-width: 40rem) {
  .masthead .wordmark { font-size: 1.2rem; gap: .25rem; }
  .masthead .wordmark img { width: 29px; height: 35px; }
  .masthead-action { font-size: .8125rem; padding-inline: .5rem; }
  .hero-inner { min-height: 38rem; align-items: flex-end; padding-block: 6rem 4.8rem; }
  .hero-art { object-position: 65% 45%; }
  .hero::after { background: linear-gradient(0deg, #0e201ffc 4%, #0e201fe5 38%, #0e201f54 82%, #0e201f23), linear-gradient(90deg, #0e201f60, transparent 90%); }
  .hero h1 { font-size: clamp(4.4rem, 14vw, 6.1rem); }
  .hero-caption { left: 0; right: auto; font-size: .75rem; }
  .overview-intro, .gameplay-intro, .atlas-intro, .prototype-inner, .feature-list, .atlas-grid { grid-template-columns: 1fr; }
  .feature-list { gap: 1.5rem; }
  .gallery-tabs { gap: .8rem; justify-content: space-between; }
  .gallery-tabs button { font-size: .84rem; }
  .gallery-panel figcaption { flex-direction: column; gap: .2rem; }
  .atlas-chart { min-height: 15rem; }
  .port-card { border-left: 0; border-top: 1px solid #aa9270; }
  .footer-inner > span { display: none; }
}
@media (max-width: 24rem) {
  .site-nav { gap: 1rem; }
  .hero-actions { gap: .5rem; }
  .hero-actions .button { padding-inline: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
