:root {
  --forest: #15221b;
  --ink: #211a11;
  --cream: #f6eacb;
  --gold: #b69455;
  --gold-bright: #efd69a;
  --frame: #80663d;
  --page-width: 1120px;
  --heading: Consolas, "Lucida Console", "Courier New", monospace;
  --heading-weight: 400;
  font-family: Consolas, "Lucida Console", "Courier New", monospace;
}
html { background: #101712; }
body {
  max-width: var(--page-width);
  margin-inline: auto;
  background: #1b2720;
  box-shadow: 0 0 0 1px #57482f, 0 0 0 5px #111a15, 0 0 0 6px #3a3526;
}
.site-header {
  position: relative;
  min-height: 68px;
  padding: .6rem clamp(.9rem, 3.5vw, 2.4rem);
  gap: 1rem;
  background: linear-gradient(#26271d, #1a2119);
  border-block: 1px solid #7d6641;
  box-shadow: inset 0 0 0 4px #1b2119;
}
.brand { width: 138px; flex: none; }
nav { gap: clamp(.6rem, 2vw, 1.35rem); }
nav a { font-size: 1.05rem; }
.music-control { background: #171e16; }
.play-button, .dialog-return { min-height: 44px; padding: .45rem 1.1rem; font-weight: 700; }
.play-icon { vertical-align: -1px; }

.hero {
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--forest);
  border-bottom: 1px solid #7e6540;
}
.hero::before, .hero::after { content: none; }
.hero-media {
  position: relative;
  isolation: isolate;
  height: clamp(280px, 36vw, 420px);
  background: url("assets/nature-forest-hero.webp") center / cover;
}
.hero-trailer { object-position: 60% center; }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
  max-width: none;
  padding: .9rem clamp(1.05rem, 5vw, 4.2rem);
  border-top: 1px solid #806643;
  background: #1e2b22;
}
.eyebrow, .platform-support {
  font-family: Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .78rem;
  letter-spacing: .14em;
}
.eyebrow { margin-bottom: .55rem; }
.hero-copy h1, .window-copy h2, .seasons h2, .final-callout h2, .dialog-frame h2 {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  font-synthesis: none;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-copy h1 { margin: 0; font-size: clamp(.93rem, 2.6vw, 1.15rem); letter-spacing: .12em; line-height: 1.2; text-shadow: none; }
.hero-intro { max-width: 22rem; margin: .38rem 0 0; font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }
.hero-actions { grid-column: 2; grid-row: 1 / 3; margin: 0; gap: .5rem; }
.motion-toggle {
  position: static;
  background: #1b2319;
  border: 1px solid #886e43;
  font-size: .94rem;
}
.window-copy h2, .seasons h2, .final-callout h2 { font-size: clamp(1.45rem, 2.7vw, 2.25rem); }
.window-copy p:last-child, .seasons-heading p:last-child, .final-callout p:not(.eyebrow) {
  margin: .6rem 0 0;
  font-size: 1.07rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.village-window {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  padding: clamp(1.15rem, 3vw, 2rem) clamp(1rem, 5vw, 3.2rem);
  gap: clamp(1rem, 4vw, 2.7rem);
  background: #1e2b22;
}
.window-frame {
  aspect-ratio: 2.25;
  border: 2px solid #8c7144;
  box-shadow: 0 0 0 3px #22221a, 0 0 0 4px #5c4c31;
}
.window-frame img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.window-copy { grid-row: auto; }
.seasons {
  padding: 1.25rem 0 1.5rem;
  background-color: #d5be86;
  background-image: repeating-linear-gradient(0deg, #f9efcd19 0 1px, transparent 1px 4px), linear-gradient(95deg, #aa86543d, transparent 15% 85%, #aa86543d);
  border-block: 3px double #83633b;
}
.seasons-heading { max-width: 35rem; margin-bottom: .9rem; }
.seasons .eyebrow { color: #694028; }
.season-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding-inline: clamp(1rem, 5vw, 3.2rem); }
.season-strip figure { border: 2px solid #6b5334; box-shadow: 2px 3px #5b492448; }
.season-strip img { aspect-ratio: 2 / 1; }
.season-strip figcaption { padding: .23rem .6rem; border-top-width: 1px; font-size: 1.03rem; }

.evening-spread { display: grid; grid-template-columns: 1.25fr 1fr; border-bottom: 1px solid #6c5735; }
.night-callout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; background: #101c17; }
.night-image { width: 100%; }
.night-image img, .night-aurora { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-callout {
  padding: 1.25rem 1.1rem;
  background-color: #30251e;
  background-image: repeating-linear-gradient(0deg, #f3d5a00c 0 1px, transparent 1px 6px);
  border-left: 1px solid #806643;
}
.final-callout h2 { font-size: clamp(1.45rem, 2.45vw, 2rem); }
.final-callout p:not(.eyebrow) { margin: .45rem auto .8rem; }
.final-emblem { display: none; }
.platform-support { margin-top: .8rem; }
footer { padding: .9rem 1rem 1.15rem; gap: .22rem; }
footer img { width: 105px; margin-bottom: .25rem; }
footer .development-note, footer .copyright { font-size: .87rem; }
.dialog-frame { padding: 2.3rem 1.5rem; }

@media (max-width: 760px) {
  .site-header { min-height: 60px; padding-top: max(.45rem, env(safe-area-inset-top)); }
  .brand { width: 118px; }
  .season-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-header { gap: .35rem .6rem; padding-inline: max(.65rem, env(safe-area-inset-left)) max(.65rem, env(safe-area-inset-right)); }
  .site-header nav { flex: 1 1 auto; }
  .site-header .play-button--small { padding-inline: .6rem; }
  .brand { width: clamp(82px, 25vw, 118px); }
  .music-control { flex: 1; padding: 0 .24rem; gap: .28rem; }
  .music-volume input { min-width: 65px; }
  .hero-media { height: auto; aspect-ratio: 16 / 9; }
  .hero-trailer { object-fit: contain; object-position: center; }
  .hero-copy { display: block; padding-bottom: .9rem; }
  .hero-intro { font-size: 1.03rem; }
  .hero-actions { flex-direction: row; margin-top: .65rem; }
  .hero-actions .play-button, .final-callout .play-button { width: auto; }
  .village-window { grid-template-columns: 1fr; gap: .65rem; }
  .window-copy { grid-row: 1; }
  .seasons { padding-block: 1rem 1.1rem; }
  .evening-spread { grid-template-columns: 1fr; }
  .night-image { aspect-ratio: 2.25; }
  .final-callout { border-left: 0; border-top: 1px solid #806643; }
}

.music-volume, .site-header button, .hero-actions button, .final-callout button, .gate-dialog button { font-family: inherit; }

.dialog-frame h2 { font-size: clamp(1.45rem, 5vw, 2rem); }
h1, h2 { overflow-wrap: anywhere; }

/* Match the tagline typography across the page and the gate dialog. */
.window-copy h2, .final-callout h2, .dialog-frame h2 {
  font-size: clamp(1.08rem, 2.9vw, 1.35rem);
  line-height: 1.2;
}
.hero-copy h1, .window-copy h2, .final-callout h2 { color: var(--gold-bright); }

.window-copy .eyebrow, .final-callout .eyebrow, .final-callout .platform-support {
  color: #bca173;
}

.cloud-overlay {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.cloud-overlay .hero-sky, .cloud-overlay .site-clouds {
  inset: auto 0 auto;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .cloud-overlay { display: none; }
}
