@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Marcellus&display=swap");

:root {
  --ink: #f3ead8;
  --muted: #c5c1ae;
  --night: #0b1213;
  --forest: #101b1b;
  --panel: #172522;
  --gold: #d8a84e;
  --gold-light: #f0d289;
  --moss: #6da56c;
  --line: rgba(240, 210, 137, 0.22);
  --serif: "Marcellus", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--night);
  background: var(--gold-light);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0 5vw;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 18, 19, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 74%, 50% 100%, 0 74%);
}

.site-nav { display: flex; gap: 2.2rem; }

.site-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--gold-light); }

.nav-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: 8rem 8vw 4rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop,
.hero-shade { position: absolute; z-index: -2; inset: 0; }

.hero-backdrop {
  background: url("assets/background-menu.png") center 38% / cover no-repeat;
  transform: scale(1.015);
  animation: settle 2.2s ease-out both;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 13, 13, 0.94) 0%, rgba(7, 13, 13, 0.73) 43%, rgba(7, 13, 13, 0.14) 72%),
    linear-gradient(0deg, var(--night) 0%, transparent 38%, rgba(6, 12, 12, 0.28) 100%);
}

.hero-content { width: min(44rem, 70vw); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-logo {
  width: min(38rem, 70vw);
  height: auto;
  aspect-ratio: auto 2172 / 724;
  object-fit: contain;
  margin: 0 0 -1.2rem -1.2rem;
  filter: drop-shadow(0 0.8rem 1rem rgba(0, 0, 0, 0.35));
}

h1,
h2,
h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; }

h1 { margin-bottom: 1.3rem; font-size: clamp(2.4rem, 5.2vw, 5.3rem); }
h2 { margin-bottom: 1.5rem; font-size: clamp(2.2rem, 4.2vw, 4.5rem); }
h3 { margin-bottom: 0.6rem; font-size: 1.6rem; }

.hero-copy { max-width: 37rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #111815; background: var(--gold-light); border-color: var(--gold-light); }
.button-primary:hover { background: #f8dfa0; }
.button-quiet { background: rgba(11, 18, 19, 0.35); backdrop-filter: blur(8px); }
.button-quiet:hover { border-color: var(--gold-light); }

.hero-meta {
  position: absolute;
  right: 5vw;
  bottom: 4.5rem;
  display: grid;
  gap: 0.65rem;
  color: rgba(243, 234, 216, 0.68);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta span::before { content: "◇"; margin-right: 0.65rem; color: var(--gold); }

.section { padding: clamp(6rem, 11vw, 10rem) 8vw; }

.gallery-section {
  background: #080e0f;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 4rem;
  max-width: 82rem;
  margin: 0 auto 4rem;
}

.gallery-heading h2 { margin-bottom: 0; }
.gallery-heading > p { max-width: 34rem; margin: 0 0 0.75rem; color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 1.25rem;
  max-width: 82rem;
  margin: auto;
}

.shot,
.season-shot { margin: 0; }
.shot-feature { grid-column: 1 / -1; }
.shot-wide { grid-column: span 1; }

.shot-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #111;
  cursor: zoom-in;
  overflow: hidden;
}

.shot-open::after {
  content: "View full size";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  background: rgba(8, 14, 15, 0.82);
  border: 1px solid var(--line);
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.shot-open:hover::after,
.shot-open:focus-visible::after { opacity: 1; transform: translateY(0); }
.shot-open:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.shot-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms ease; }
.shot-open:hover img { transform: scale(1.012); }

.shot figcaption {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: baseline;
  gap: 0.8rem;
  padding-top: 0.85rem;
}

.shot figcaption span,
.shot figcaption small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.shot figcaption span { color: var(--gold); }
.shot figcaption strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }

.seasons-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  max-width: 82rem;
  margin: 8rem auto 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.seasons-heading p { margin-bottom: 0; }
.seasons-heading > p:last-child { max-width: 31rem; color: var(--muted); }

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 82rem;
  margin: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.season-shot { background: var(--forest); }
.season-shot .shot-open { border: 0; }
.season-shot figcaption { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 1.2rem; }
.season-shot figcaption strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.season-shot figcaption span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.lightbox {
  width: min(94vw, 100rem);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #080e0f;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(3, 7, 7, 0.92); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 0;
  color: var(--ink);
  background: rgba(8, 14, 15, 0.9);
  cursor: pointer;
}

.systems-section {
  background:
    radial-gradient(circle at 10% 25%, rgba(109, 165, 108, 0.12), transparent 30rem),
    var(--forest);
}

.systems-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
  max-width: 82rem;
  margin: 0 auto 4rem;
}

.systems-heading .eyebrow { grid-column: 1 / -1; }
.systems-heading h2 { margin-bottom: 0; }
.systems-heading > p:last-child { align-self: end; max-width: 34rem; margin: 0 0 0.75rem; color: var(--muted); }

.systems-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.65fr);
  align-items: start;
  gap: 1.25rem;
  max-width: 82rem;
  margin: auto;
}

.system-card,
.analysis-card,
.wildlife-feature { margin: 0; }

.system-card { background: #0b1313; border: 1px solid var(--line); }
.system-card .shot-open { border: 0; }
.profession-detail .shot-open img { aspect-ratio: 1219 / 1138; object-fit: cover; }

.system-card figcaption { padding: 1.4rem 1.5rem 1.6rem; }
.system-card figcaption span,
.wildlife-feature figcaption span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-card figcaption strong,
.wildlife-feature figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.system-card figcaption p,
.wildlife-feature figcaption p { margin: 0.75rem 0 0; color: var(--muted); }

.analysis-block { max-width: 82rem; margin: 8rem auto; }
.analysis-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.analysis-intro h3 { max-width: 42rem; margin-bottom: 0; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.analysis-intro > p { max-width: 30rem; margin: 0 0 0.5rem; color: var(--muted); }
.analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.analysis-card { background: #0b1313; }
.analysis-card .shot-open { border: 0; }
.analysis-card figcaption { display: flex; align-items: baseline; gap: 0.8rem; padding: 1rem 1.2rem; }
.analysis-card figcaption span { color: var(--gold); font-size: 0.75rem; }
.analysis-card figcaption strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }

.wildlife-feature { max-width: 82rem; margin: auto; border: 1px solid var(--line); background: #0b1313; }
.wildlife-feature .shot-open { border: 0; }
.wildlife-feature figcaption { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 3rem; padding: 1.5rem; }
.wildlife-feature figcaption p { max-width: 31rem; justify-self: end; }

.multiplayer-section {
  background:
    linear-gradient(135deg, rgba(216, 168, 78, 0.08), transparent 42%),
    #080e0f;
}

.multiplayer-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  max-width: 82rem;
  margin: 0 auto 4rem;
}

.multiplayer-heading h2 { margin-bottom: 0; }
.player-count { display: flex; align-items: center; gap: 1rem; padding-left: 2rem; border-left: 1px solid var(--line); }
.player-count strong { color: var(--gold-light); font-family: var(--serif); font-size: clamp(5rem, 9vw, 8rem); font-weight: 400; line-height: 0.8; }
.player-count span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; }

.multiplayer-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  gap: 1px;
  max-width: 82rem;
  margin: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.multiplayer-map { margin: 0; background: var(--forest); }
.multiplayer-map .shot-open { border: 0; }
.multiplayer-map .shot-open img { aspect-ratio: 1278 / 864; }
.multiplayer-map figcaption { padding: 0.9rem 1.2rem; color: var(--muted); font-size: 0.875rem; }
.play-modes { display: grid; background: var(--forest); }
.play-mode { display: grid; grid-template-columns: 2rem 1fr auto; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.play-mode:last-child { border-bottom: 0; }
.play-mode > span { padding-top: 0.25rem; color: var(--gold); font-size: 0.75rem; }
.play-mode h3 { margin-bottom: 0.45rem; font-size: 1.35rem; }
.play-mode p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.play-mode small { align-self: start; padding: 0.25rem 0.45rem; color: var(--night); background: var(--gold-light); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.warfare-block { max-width: 82rem; margin: 8rem auto 0; }
.warfare-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; margin-bottom: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.warfare-intro .eyebrow { grid-column: 1 / -1; }
.warfare-intro h3 { margin-bottom: 0; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.warfare-intro > p:last-child { align-self: end; max-width: 32rem; margin: 0 0 0.4rem; color: var(--muted); }
.warfare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.warfare-card { display: grid; grid-template-rows: auto 1fr; margin: 0; border: 1px solid var(--line); background: var(--forest); }
.warfare-card .shot-open { display: grid; width: 100%; aspect-ratio: 16 / 9; place-items: center; border: 0; }
.warfare-card .shot-open img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.warfare-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.warfare-card figcaption span { color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.warfare-card figcaption strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }

.gameplay-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(20rem, 1.15fr) minmax(12rem, 0.8fr);
  align-items: center;
  gap: 2vw;
  min-height: 52rem;
  background:
    radial-gradient(circle at 50% 10%, rgba(71, 89, 67, 0.45), transparent 38rem),
    linear-gradient(135deg, #18221d, #0f1715 72%);
  color: var(--ink);
  overflow: hidden;
}

.gameplay-section::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.gameplay-copy { position: relative; z-index: 2; max-width: 44rem; }
.gameplay-copy .eyebrow { color: var(--gold-light); }
.gameplay-copy > p:not(.eyebrow) { max-width: 37rem; color: var(--muted); }

.feature-list { margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.feature-list li > span { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.12em; }
.feature-list strong,
.feature-list small { display: block; }
.feature-list strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.feature-list small { color: var(--muted); font-size: 0.875rem; }

.artifact img { width: min(30rem, 34vw); filter: drop-shadow(0 2.2rem 1.5rem rgba(0, 0, 0, 0.42)); }
.artifact-stone { transform: translateX(-17%) rotate(-4deg); }
.artifact-hut { transform: translateX(11%) rotate(3deg); }

.dev-section { background: var(--panel); }
.dev-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: end;
  gap: 3rem;
  max-width: 82rem;
  margin: auto;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dev-panel h2 { margin-bottom: 0; font-size: clamp(2.1rem, 4vw, 4rem); }
.dev-panel > p { margin: 0; color: var(--muted); }
.project-status { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--gold-light); font-size: 0.875rem; white-space: nowrap; }
.project-status i { width: 0.5rem; height: 0.5rem; background: var(--gold); transform: rotate(45deg); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 5vw;
  color: var(--muted);
  background: #080e0f;
  font-size: 0.875rem;
}

.site-footer p { margin: 0; text-align: center; }
.site-footer small { justify-self: end; }

.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes settle {
  from { transform: scale(1.08); }
  to { transform: scale(1.015); }
}

@media (max-width: 900px) {
  .hero { padding-inline: 6vw; }
  .hero-content { width: min(40rem, 88vw); }
  .hero-meta { display: none; }
  .gameplay-section { grid-template-columns: 0.65fr 1.5fr; }
  .artifact-stone { display: none; }
  .dev-panel { grid-template-columns: 1fr; align-items: start; }
  .gallery-heading { grid-template-columns: 1fr; gap: 1rem; }
  .seasons-grid { grid-template-columns: 1fr; }
  .systems-heading,
  .analysis-intro { grid-template-columns: 1fr; gap: 1rem; }
  .systems-lead { grid-template-columns: 1fr; }
  .profession-detail { display: grid; grid-template-columns: minmax(12rem, 0.75fr) 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .multiplayer-overview { grid-template-columns: 1fr; }
  .warfare-intro { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { display: none; }
}

@media (max-width: 680px) {
  .site-header { min-height: 4.5rem; }
  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    gap: 0.4rem;
    width: 2.75rem;
    height: 2.75rem;
    place-content: center;
    border: 0;
    color: var(--ink);
    background: transparent;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 1.4rem; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(0.22rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-0.22rem) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    align-content: center;
    gap: 1.4rem;
    padding: 12vw;
    background: rgba(11, 18, 19, 0.98);
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; }
  .site-nav a { font-family: var(--serif); font-size: 2rem; }
  .hero { min-height: 48rem; padding: 8rem 6vw 3.5rem; }
  .hero-logo { width: min(28rem, 88vw); margin-left: -0.8rem; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 0%, rgba(7, 13, 13, 0.54) 58%, rgba(6, 12, 12, 0.3) 100%); }
  .section { padding: 5.5rem 6vw; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shot-feature,
  .shot-wide { grid-column: auto; }
  .shot figcaption { grid-template-columns: 1.7rem 1fr; }
  .shot figcaption small { grid-column: 2; }
  .seasons-heading { display: block; margin-top: 5rem; }
  .seasons-heading > p:last-child { margin-top: 0.8rem; }
  .profession-detail { display: block; }
  .analysis-block { margin-block: 5rem; }
  .wildlife-feature figcaption { grid-template-columns: 1fr; gap: 0.25rem; }
  .wildlife-feature figcaption p { justify-self: start; }
  .multiplayer-heading { display: block; }
  .player-count { margin-top: 2.5rem; padding: 1rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .play-mode { grid-template-columns: 1.7rem 1fr; }
  .play-mode small { grid-column: 2; justify-self: start; }
  .warfare-block { margin-top: 5rem; }
  .warfare-grid { grid-template-columns: 1fr; }
  .warfare-card figcaption { display: grid; }
  .gameplay-section { display: block; padding-bottom: 0; }
  .artifact-hut { margin: 2rem auto -10%; transform: none; }
  .artifact-hut img { width: 85vw; }
  .dev-panel { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
