:root {
  --bg: #d5e0c8;
  --bg-deep: #c3d1b4;
  --ink: #15241c;
  --ink-soft: #3d5348;
  --water: #0f534c;
  --water-bright: #1a8a7c;
  --timber: #5c3d2e;
  --oxide: #b34a24;
  --foam: #f3f0e6;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --display: "Syne", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--foam) 35%, transparent), transparent 60%),
    radial-gradient(700px 380px at 0% 80%, color-mix(in srgb, var(--water-bright) 12%, transparent), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--water); }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--foam);
  padding: 0.5rem 0.8rem;
  z-index: 30;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1080px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  color: var(--ink);
}
.site-header.is-stuck {
  position: fixed;
  color: var(--foam);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
}
.page-plain .site-header,
.page-plain .site-header.is-stuck {
  position: sticky;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.page-plain .site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: inherit;
}

.nav { display: flex; gap: 1.35rem; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav a[aria-current="page"],
.nav a:hover { color: var(--ink); }
.site-header.is-stuck .nav a {
  color: color-mix(in srgb, var(--foam) 78%, transparent);
}
.site-header.is-stuck .nav a[aria-current="page"],
.site-header.is-stuck .nav a:hover { color: var(--foam); }
.page-plain .site-header.is-stuck .nav a { color: var(--ink-soft); }
.page-plain .site-header.is-stuck .nav a[aria-current="page"],
.page-plain .site-header.is-stuck .nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--foam);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: drift 36s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 22, 0.28) 0%, rgba(12, 28, 22, 0.08) 32%, rgba(12, 28, 22, 0.55) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 4.5rem;
  width: min(1080px, calc(100% - 2.4rem));
  margin-inline: auto;
}
.hero-copy > * {
  animation: rise 0.9s ease both;
}
.hero-copy > .lede { animation-delay: 0.12s; }
.hero-copy > .hero-actions { animation-delay: 0.22s; }

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.4rem, 16vw, 10.5rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.brand::after {
  content: "";
  display: block;
  width: min(12rem, 40vw);
  height: 4px;
  margin-top: 0.85rem;
  background: var(--water-bright);
  transform-origin: left;
  animation: draw 1.4s ease both 0.35s;
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink-soft);
}
.hero .lede {
  color: color-mix(in srgb, var(--foam) 88%, transparent);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--foam);
  color: var(--ink);
}
.btn-primary:hover { background: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--foam);
  border-color: color-mix(in srgb, var(--foam) 55%, transparent);
}
.page-plain .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}
.page-plain .btn-primary {
  background: var(--water);
  color: var(--foam);
}

.section {
  padding: 5rem 0 0;
}
.section h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.section p { max-width: 62ch; color: var(--ink-soft); }
.section > .wrap > p:last-child { margin-bottom: 0; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
  max-width: 40rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-left: 3.4rem;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--display);
  font-weight: 800;
  color: var(--water);
  letter-spacing: -0.04em;
}
.steps strong {
  font-family: var(--display);
  font-weight: 800;
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.notes {
  max-width: 40rem;
  display: grid;
  gap: 1.6rem;
}
.notes h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}
.notes p { margin: 0; }

.faq {
  max-width: 40rem;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.45rem 0 0; }

.cta-band {
  padding: 5rem 0 4.5rem;
}
.cta-band p { margin: 0 0 1.1rem; }

.site-footer {
  padding: 1.5rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer-inner nav { display: flex; gap: 1.1rem; }
.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
}
.footer-inner a:hover { color: var(--ink); }

.page-plain .hero-page {
  padding: 4.5rem 0 1rem;
}
.page-plain h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.9;
  margin: 0 0 0.85rem;
}
.prose { max-width: 62ch; }
.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.4rem;
  margin: 2.2rem 0 0.6rem;
}
.prose p { color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.play-page { padding: 5.5rem 0 3rem; }
.play-lede { max-width: 38ch; }

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.8rem;
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
}
.hud b { font-weight: 800; color: var(--water); }

.stage {
  width: 100%;
  background: #c8d6ba;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.stage canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

.status {
  min-height: 1.6em;
  margin: 0.85rem 0 1rem;
  color: var(--ink-soft);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.legal-meta { font-size: 0.92rem; }

@keyframes drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, 1.5%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .brand::after,
  .hero-copy > * { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .brand { font-size: clamp(3.6rem, 22vw, 5.4rem); }
  .hero-copy { padding-bottom: 3rem; }
  .section { padding-top: 3.4rem; }
  .cta-band { padding: 3.4rem 0 3rem; }
}
