:root {
  --paper: #f7f6f1;
  --surface: #ffffff;
  --ink: #173b30;
  --muted: #5f7068;
  --line: #dfe4dc;
  --green: #17483b;
  --green-soft: #e9efe9;
  --gold: #b78635;
  --cream: #fffaf0;
  --radius: 18px;
  --content: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
input,
textarea { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
}

.skip:focus { top: 12px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 20px 0;
  gap: 28px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
}

header::after {
  content: "";
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font: 700 22px/1.1 Georgia, serif;
  letter-spacing: -.4px;
  text-decoration: none;
  white-space: nowrap;
}

.brand small {
  padding-left: 9px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 600 10px/1.1 system-ui, sans-serif;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: #41564d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover { color: var(--ink); }

nav .nav-download {
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

nav .nav-download:hover { color: #fff; background: #0f362c; }

main { min-height: 68vh; }

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(3.25rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.4rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.intro {
  max-width: 580px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 88px);
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.hero-copy { max-width: 560px; }
.hero-copy h1 { max-width: 620px; }
.hero h1 { font-size: clamp(3.2rem, 5vw, 4.35rem); }

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 10px 22px 10px 14px;
  border: 1px solid var(--green);
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 72, 59, .16);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.download-button > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}

.download-button > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.download-button small {
  color: #c9d8d1;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.download-button strong {
  font: 700 1.2rem/1.15 Georgia, serif;
}

.download-button:hover {
  transform: translateY(-2px);
  background: #0f362c;
  box-shadow: 0 15px 32px rgba(23, 72, 59, .22);
}

.learn-link {
  color: var(--green);
  font-size: .9rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  list-style: none;
}

.hero-facts li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--gold);
  font-weight: 800;
}

.hero-art { margin: 0; }

.hero-showcase {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  min-height: 600px;
  padding: 22px 42px 34px;
  isolation: isolate;
}

.showcase-halo {
  position: absolute;
  inset: 10% 2% 8%;
  z-index: -1;
  border-radius: 48%;
  background:
    radial-gradient(circle at 35% 28%, rgba(223, 196, 122, .5), transparent 30%),
    radial-gradient(circle at 65% 70%, rgba(23, 72, 59, .28), transparent 48%),
    #edf0e7;
  filter: blur(2px);
  transform: rotate(-5deg);
}

.showcase-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 30px;
  background: #123f34;
  box-shadow: 0 34px 72px rgba(20, 58, 47, .25), 0 8px 22px rgba(20, 58, 47, .14);
  transform: rotate(1.25deg);
  animation: showcase-float 6s ease-in-out infinite;
}

.showcase-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 25%, transparent 72%, rgba(255, 255, 255, .08));
}

.showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  animation: showcase-cycle 28s ease-in-out infinite both;
}

.showcase-slide:nth-child(1) { animation-delay: 0s; }
.showcase-slide:nth-child(2) { animation-delay: 4s; }
.showcase-slide:nth-child(3) { animation-delay: 8s; }
.showcase-slide:nth-child(4) { animation-delay: 12s; }
.showcase-slide:nth-child(5) { animation-delay: 16s; }
.showcase-slide:nth-child(6) { animation-delay: 20s; }
.showcase-slide:nth-child(7) { animation-delay: 24s; }

.showcase-badge {
  position: absolute;
  right: 0;
  bottom: 58px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  min-width: 188px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 16px;
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 16px 35px rgba(20, 58, 47, .19);
  backdrop-filter: blur(10px);
  animation: showcase-badge 5s ease-in-out infinite;
}

.showcase-badge > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #f0cc68;
}

.showcase-badge strong { font: 700 .92rem/1.2 Georgia, serif; }
.showcase-badge small { color: var(--muted); font-size: .68rem; line-height: 1.3; }

.showcase-progress {
  position: absolute;
  right: 58px;
  bottom: 29px;
  left: 58px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 72, 59, .14);
}

.showcase-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e1c878, var(--green));
  transform-origin: left;
  animation: showcase-progress 28s linear infinite;
}

@keyframes showcase-cycle {
  0%, 11.5% { opacity: 1; transform: scale(1); }
  14.25%, 100% { opacity: 0; transform: scale(1.025); }
}

@keyframes showcase-float {
  0%, 100% { transform: rotate(1.25deg) translateY(0); }
  50% { transform: rotate(-.35deg) translateY(-9px); }
}

@keyframes showcase-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes showcase-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.landscape {
  display: block;
  width: 100%;
  height: 520px;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 22px 55px rgba(23, 59, 48, .12);
}

.hero-art figcaption {
  margin-top: 14px;
  color: #718078;
  font: italic .9rem/1.5 Georgia, serif;
  text-align: right;
}

.play-section,
.journal-preview {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.gameplay-gallery {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.gallery-intro {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.screenshot-rail {
  display: flex;
  gap: 20px;
  margin-top: 52px;
  padding: 10px 4px 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #9caf9f transparent;
}

.screenshot-rail figure {
  flex: 0 0 clamp(210px, 23vw, 265px);
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-rail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid #d9dfd7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(23, 59, 48, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.screenshot-rail figure:hover img {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(23, 59, 48, .18);
}

.screenshot-rail figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 64px;
}

.features article {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.number {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font: italic 1.1rem/1 Georgia, serif;
}

.features h3 { margin-bottom: 14px; }

.features p,
.journal-preview article p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.quiet-note {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(48px, 8vw, 110px);
  width: min(calc(100% - 48px), var(--content));
  margin: 24px auto;
  padding: clamp(48px, 6vw, 76px);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}

.quiet-note .eyebrow { color: #dfc47a; }

.quiet-note > p {
  align-self: end;
  max-width: 500px;
  margin: 0;
  color: #cbd7d1;
  font-size: 1.04rem;
}

.journal-preview { border-top: 0; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.article-grid article {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.article-grid h2,
.article-grid h3 {
  margin-bottom: 18px;
  font-size: 1.48rem;
}

.article-grid article > a {
  margin-top: auto;
  padding-top: 26px;
  color: var(--green);
  font-size: .88rem;
  font-weight: 750;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto 104px;
  padding: 52px 58px;
  border: 1px solid #2f5b4d;
  border-radius: var(--radius);
  background: #11392f;
  color: #fff;
}

.download-panel > div { max-width: 620px; }
.download-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.download-panel p:not(.eyebrow) { margin: 16px 0 0; color: #c6d4ce; }
.download-panel .eyebrow { color: #dfc47a; }

.download-button.light {
  flex: 0 0 auto;
  border-color: var(--cream);
  background: var(--cream);
  color: var(--green);
  box-shadow: none;
}

.download-button.light > span:first-child { background: var(--green); color: #fff; }
.download-button.light small { color: #6b7d75; }
.download-button.light:hover { background: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.button:hover { background: #0f362c; transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--green-soft); }

.document {
  width: min(calc(100% - 48px), 820px);
  margin: 0 auto;
  padding: 88px 0 112px;
}

.document.journal { width: min(calc(100% - 48px), var(--content)); }
.journal-article { max-width: 760px; }
.document h1 { max-width: 760px; font-size: clamp(3rem, 6vw, 4.8rem); }
.document h2 { margin-top: 54px; font-size: 2rem; letter-spacing: -.02em; }
.document h3 { margin-top: 32px; font-size: 1.4rem; }
.document p,
.document li { color: #4f635a; }
.document .intro { max-width: 700px; }
.document .updated { color: #77857e; font-size: .84rem; }

.contents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 34px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.contact {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  overflow-wrap: anywhere;
}

.notice,
.fact-box {
  margin: 34px 0;
  padding: 24px 26px;
  border: 1px solid #d5dfd5;
  border-radius: 12px;
  background: var(--green-soft);
}

.notice p { margin-bottom: 0; }
.fact-box h2 { margin-top: 0; }

details { padding: 22px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }

form {
  margin: 34px 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

label { display: block; margin: 20px 0 8px; font-weight: 700; }
label:first-child { margin-top: 0; }
label span { color: var(--muted); font-weight: 400; }

input:not([type=checkbox]),
textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #aebbb3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea { resize: vertical; }
.field-help { margin-top: 6px; font-size: .8rem; }

.checkbox {
  display: flex;
  align-items: start;
  gap: 12px;
  margin: 24px 0;
  font-size: .9rem;
}

.checkbox input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--green);
}

#request-status {
  overflow-wrap: anywhere;
  white-space: pre-line;
  font-weight: 700;
}

.journal-article blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  color: #344f43;
  font: italic 1.16rem/1.65 Georgia, serif;
}

.check-list { padding-left: 24px; }
.check-list li { margin: 10px 0; }
.journal-article > .button + .button { margin-left: 8px; }

footer {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px 64px;
  padding: 52px max(24px, calc((100% - var(--content)) / 2));
  background: #102f28;
  color: #eef3ef;
}

footer .brand { color: #fff; font-size: 19px; }
footer .brand img { filter: brightness(0) invert(1); opacity: .8; }
footer p { margin: 10px 0 0; color: #aebfb7; font-size: .84rem; }

.footer-links {
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: .82rem;
}

.footer-links a { color: #d9e3de; overflow-wrap: anywhere; }
footer .fine { grid-column: 1 / -1; margin-top: 16px; color: #8ea39a; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 64px 0 88px;
  }

  .hero-copy { max-width: 700px; }
  .hero-art { max-width: 720px; }
  .hero-showcase { justify-self: center; }
  .landscape { height: auto; }
  .features { gap: 24px; }
  .quiet-note { gap: 48px; }
  .download-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 118px; }

  header {
    align-items: flex-start;
    flex-direction: column;
    width: min(calc(100% - 36px), var(--content));
    padding: 15px 0 13px;
    gap: 12px;
  }

  header::after { top: 103px; }
  .brand { font-size: 20px; }
  .brand small { font-size: 9px; }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  nav a { font-size: .78rem; }
  nav a:first-child { display: none; }
  nav .nav-download { padding: 7px 13px; }

  .hero,
  .play-section,
  .gameplay-gallery,
  .journal-preview,
  .quiet-note,
  .download-panel {
    width: min(calc(100% - 36px), var(--content));
  }

  .hero { padding: 52px 0 76px; gap: 42px; }
  h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .intro { font-size: 1.05rem; line-height: 1.7; }

  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-download { width: 100%; max-width: 360px; justify-content: center; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .hero-showcase { min-height: 520px; padding: 18px 28px 30px; }
  .showcase-frame { width: min(100%, 270px); border-width: 6px; border-radius: 25px; }
  .showcase-badge { right: 4px; bottom: 46px; min-width: 174px; }
  .showcase-progress { right: 44px; bottom: 20px; left: 44px; }
  .landscape { border-radius: 18px; }

  .play-section,
  .gameplay-gallery,
  .journal-preview { padding: 72px 0; }

  .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .gallery-intro { max-width: 620px; }
  .screenshot-rail { margin-top: 38px; gap: 15px; }
  .screenshot-rail figure { flex-basis: min(72vw, 245px); }
  .features,
  .article-grid { grid-template-columns: 1fr; gap: 28px; }
  .features { margin-top: 48px; }
  .features article { padding-top: 18px; }
  .number { margin-bottom: 18px; }

  .quiet-note {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-block: 8px;
    padding: 38px 28px;
  }

  .article-grid article { min-height: 0; }

  .download-panel {
    margin-bottom: 72px;
    padding: 38px 28px;
    gap: 32px;
  }

  .download-button.light { width: 100%; }

  .document {
    width: min(calc(100% - 36px), 820px);
    padding: 64px 0 82px;
  }

  .document.journal { width: min(calc(100% - 36px), var(--content)); }
  .document h1 { font-size: clamp(2.75rem, 13vw, 3.8rem); }
  .document h2 { margin-top: 44px; font-size: 1.75rem; }
  form { padding: 22px; }

  .journal-article > .button { width: 100%; margin: 7px 0; }
  .journal-article > .button + .button { margin-left: 0; }

  footer {
    grid-template-columns: 1fr;
    padding: 42px 24px;
  }

  .footer-links { gap: 11px 20px; }
  footer .fine { grid-column: auto; }
}

@media (max-width: 380px) {
  header { width: calc(100% - 28px); }
  .brand { font-size: 18px; }
  .brand img { width: 24px; height: 24px; }
  nav { gap: 7px; }
  nav a { font-size: .72rem; }
  .hero,
  .play-section,
  .gameplay-gallery,
  .journal-preview,
  .quiet-note,
  .download-panel,
  .document,
  .document.journal { width: calc(100% - 28px); }
  .download-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .showcase-frame,
  .showcase-badge,
  .showcase-progress span,
  .showcase-slide { animation: none !important; }
  .showcase-slide { opacity: 0; transform: none; }
  .showcase-slide:first-child { opacity: 1; }
}
