:root {
  --bg: #141416;
  --raise: #1c1c20;
  --raise-2: #242428;
  --sink: #0e0e10;
  --line: #34343a;
  --text: #f3f1ea;
  --muted: #aaa79f;
  --faint: #74726c;
  --amber: #e8a317;
  --amber-ink: #1a1408;
  --teal: #6ec8c4;
  --paper: #f6f1e6;
  --paypal: #ffc439;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Source Sans 3", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --header: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 .6rem;
}
p { margin: 0 0 1rem; }
code, .mono { font-family: var(--mono); }
p code, li code, td code, .fine code {
  font-size: .86em;
  background: #2a2a30;
  padding: .08em .35em;
}

.palette {
  height: 6px;
  background: linear-gradient(90deg,
    #1a2140 0 12.5%,
    #3e5168 0 25%,
    #e8a317 0 37.5%,
    #f4e7c5 0 50%,
    #6ec8c4 0 62.5%,
    #d45d4a 0 75%,
    #6f8f3c 0 87.5%,
    #8b7ec8 0 100%);
}
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--amber);
  color: var(--amber-ink);
  padding: .4rem .7rem;
  z-index: 10;
}
.skip:focus { top: .6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--text); }
.mark { width: 32px; height: 32px; display: block; }
.site-nav { margin-left: auto; display: flex; gap: .25rem; }
.has-download .site-nav { order: 1; }
.has-download .btn-nav { order: 2; margin-left: .75rem; }
.has-download .nav-burger { order: 3; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .45rem .75rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--raise);
  place-items: center;
  cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

.hero {
  padding: 4.2rem 0 3rem;
}
.kicker {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 11em; }
.lede { color: var(--muted); font-size: 1.22rem; max-width: 42rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
button.btn { font: inherit; font-weight: 600; }
button.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #f0b42e; color: var(--amber-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-paypal { background: var(--paypal); color: #111; }
.btn-paypal:hover { background: #ffd15a; color: #111; }
.btn-small { min-height: 36px; padding: 0 .8rem; font-size: .92rem; }

.hero-stage {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: #0c1220;
  overflow: hidden;
}
.scene-frame {
  position: absolute;
  inset: 0;
  container-type: size;
  pointer-events: none;
}
.scene {
  position: absolute;
  width: max(100cqw, calc(100cqh * 1280 / 720));
  height: max(100cqh, calc(100cqw * 720 / 1280));
}
.hero-stage .scene {
  left: 68%;
  top: 50%;
  transform: translate(-68%, -50%);
}
.scene .forest {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}
.actor {
  position: absolute;
  display: block;
  max-width: none;
  image-rendering: pixelated;
}
.actor-hero {
  left: calc(707 / 1280 * 100%);
  top: calc(436 / 720 * 100%);
  width: calc(168 / 1280 * 100%);
  height: calc(186 / 720 * 100%);
}
.actor-wolf {
  left: calc(867 / 1280 * 100%);
  top: calc(494 / 720 * 100%);
  width: calc(104 / 1280 * 100%);
  height: calc(132 / 720 * 100%);
}
.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 18, .88) 0%, rgba(8, 10, 18, .62) 38%, rgba(8, 10, 18, .18) 68%, rgba(8, 10, 18, .08) 100%),
    linear-gradient(180deg, rgba(8, 10, 18, .35) 0%, rgba(8, 10, 18, 0) 28%, rgba(8, 10, 18, .45) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 7.5rem 0 3.6rem;
}
.hero-stage h1 {
  font-size: clamp(3.4rem, 7.4vw, 6rem);
  max-width: 8em;
  color: #f7f4ee;
}
.hero-stage .lede { color: #ddd9cf; max-width: 34rem; }
.download-pair { display: inline-flex; align-items: stretch; margin-top: 1.4rem; }
.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  background: #243044;
  color: #f7f4ee;
  font-family: var(--mono);
  border: 1px solid #243044;
}
.platforms-line {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  margin: 1.5rem 0 .3rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: #f7f4ee;
}
.platforms-line .later { color: #8e8b84; }
.hero-stage .fine { color: #b7b3aa; margin: 0; }

.beat {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.4rem;
  align-items: center;
}
.beat + .beat { margin-top: 3.2rem; }
.beat-flip { grid-template-columns: .85fr 1.15fr; }
.beat-flip .beat-copy { order: -1; }
.beat h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.beat p { margin: 0; color: var(--muted); font-size: 1.2rem; max-width: 28rem; }
.beat .setup-link { margin-top: 1.15rem; font-size: 1.05rem; }
.beat-stack { grid-template-columns: 1fr; }
.beat-stack .beat-copy,
.beat-stack p { max-width: 46rem; }
.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.picture-still {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c1220;
}
.picture-still .scene {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
.pixel-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: #0c1220;
}
.pixel-crop .crop-zoom {
  position: absolute;
  inset: 0;
  transform: scale(2.35);
  transform-origin: 62% 84%;
}
.pixel-crop .scene {
  left: 62%;
  top: 84%;
  transform: translate(-62%, -84%);
}
.size-card {
  border: 1px solid var(--line);
  background: var(--raise);
  min-height: 16rem;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.size-card p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .95rem; }
.size-card p + p { margin-top: .45rem; }
.size-card .size-figure {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: .85rem;
}
.cta-final { padding: 2.2rem 2rem; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-final .btn { min-height: 54px; padding: 0 1.35rem; }

.section { padding: 4.2rem 0; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 18ch; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.grid-4, .grid-3, .grid-2 { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--raise);
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.2rem;
}
.card h3 { font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.num {
  font-family: var(--mono);
  color: var(--amber);
  font-size: .78rem;
  margin: 0 0 .7rem;
}

pre {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.6;
  background: var(--sink);
  border: 1px solid var(--line);
}
.tree {
  font-family: var(--mono);
  font-size: .86rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--sink);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  overflow-x: auto;
}
.tree b { color: var(--text); font-weight: 500; }

.page-intro { padding: 3.2rem 0 1.2rem; }
.page-intro h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }

.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1rem; align-items: start; }
.card h2 { font-size: 1.7rem; }
dl.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0 0 1.1rem; }
dl.meta div { border-top: 1px solid var(--line); padding-top: .45rem; }
dl.meta dt { color: var(--faint); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
dl.meta dd { margin: .15rem 0 0; font-family: var(--mono); font-size: .92rem; }
.checklist { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.checklist li { padding: .35rem 0 .35rem 1.1rem; position: relative; }
.checklist li::before { content: ""; width: 6px; height: 6px; background: var(--amber); position: absolute; left: 0; top: .7rem; }
.donate p { color: var(--muted); }
.fine { color: var(--faint); font-size: .9rem; }
.section .fine { margin-top: 1.4rem; }
.stack { display: grid; gap: .7rem; justify-items: start; }
.contact-form { display: grid; gap: .95rem; max-width: 36rem; }
.contact-form label { display: grid; gap: .35rem; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--sink);
  color: var(--text);
  border: 1px solid var(--line);
  padding: .7rem .8rem;
  font: inherit;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; }
.form-status { margin: 0; min-height: 1.4em; color: var(--muted); }
.form-status.is-error { color: #e07a6a; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--raise);
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tr.is-latest td:first-child { color: var(--amber); }
.search {
  background: var(--sink);
  color: var(--text);
  border: 1px solid var(--line);
  min-height: 40px;
  padding: 0 .7rem;
  font: inherit;
  min-width: 12rem;
}

.doc-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
}
.doc-nav {
  position: sticky;
  top: calc(var(--header) + 1.2rem);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  align-self: start;
}
.doc-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .35rem .5rem;
  border-left: 2px solid transparent;
}
.doc-nav a:hover { color: var(--text); }
.doc-nav a[aria-current="page"] { color: var(--text); border-left-color: var(--amber); }
.doc-content { min-width: 0; }
.doc-content h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.doc-content h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.doc-content p, .doc-content li { max-width: 68ch; }
.doc-content ul, .doc-content ol { padding-left: 1.2rem; }
.doc-content li { margin: .25rem 0; }
.doc-content .table-wrap, .doc-content pre, .doc-content .tree { margin: 0 0 1rem; }

.cta {
  background: var(--raise);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.cta h2 { margin: 0 0 .3rem; font-size: 1.8rem; }
.cta p { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer .mono { color: var(--faint); }

@media (max-width: 980px) {
  .split, .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .beat, .beat-flip { grid-template-columns: 1fr; }
  .beat-flip .beat-copy { order: 0; }
  .doc-shell { grid-template-columns: 1fr; gap: 1rem; }
  .doc-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    padding-bottom: .6rem;
  }
  .doc-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .doc-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
}
.hero-stage.compact { min-height: 70vh; }
@media (max-width: 760px) {
  .nav-burger { display: inline-grid; }
  .has-download .btn-nav { margin-left: auto; }
  .has-download .nav-burger { margin-left: .5rem; }
  .has-download .site-nav { order: 4; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding: 0 0 .8rem; margin-left: 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--amber); }
  .split, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stage { min-height: 100vh; }
  .scrim {
    background:
      linear-gradient(180deg, rgba(8, 10, 18, .45) 0%, rgba(8, 10, 18, .2) 30%, rgba(8, 10, 18, .82) 100%);
  }
  .cta { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
