/* Wordkiln: tokens from design/tokens.md (stoneware by day, kiln-dark by night). */
:root {
  --ground: #EEE7DD;
  --surface: #F8F4EE;
  --ink: #2B2420;
  --ink2: #5E534B;
  --line: #D8CCBC;
  --glaze: #7FAE9E;
  --glaze-ink: #13201B;
  --slot: #E2D8CA;
  --cobalt: #28457F;
  --on-cobalt: #FFFFFF;
  --cobalt-shade: #1B3360;
  --ember: #D9662F;
  --wheel: #B98B6A;
  --wheel-rim: #9C7254;
  --wheel-ring: #A87D5E;
  --tile: #F8F4EE;
  --tile-ink: #2B2420;
  --kiln: #2B2420;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1C1917;
    --surface: #27221F;
    --ink: #EDE4D8;
    --ink2: #B5A898;
    --line: #3A332E;
    --glaze: #86B3A3;
    --slot: #3A332E;
    --cobalt: #8FA9E0;
    --on-cobalt: #141A2A;
    --cobalt-shade: #5F79B0;
    --ember: #E98552;
    --wheel: #2F2925;
    --wheel-rim: #4A3F37;
    --wheel-ring: #3A322C;
    --tile: #EDE4D8;
    --tile-ink: #1C1917;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 Rubik, system-ui, sans-serif;
}
a { color: var(--cobalt); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.bar nav { display: flex; gap: 18px; font-weight: 500; }
.bar nav a { color: var(--ink2); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 32px 0 64px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--ink2); margin: 0 0 24px; max-width: 34rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-grid; place-items: center; min-height: 56px; padding: 0 26px;
  border-radius: 18px; font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--cobalt); color: var(--on-cobalt); box-shadow: 0 4px 0 var(--cobalt-shade);
}
.btn.ghost { background: transparent; color: var(--cobalt); border: 2px solid var(--cobalt); box-shadow: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cobalt-shade); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; color: var(--ink2); display: grid; gap: 6px; }

/* Playable level in the hero */
.play { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 20px; display: grid; gap: 14px; justify-items: center; }
.play-note { margin: 0; color: var(--ink2); font-size: 15px; min-height: 1.6em; text-align: center; }
.board { display: grid; gap: 6px; }
.cell { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 22px; }
.cell.slot { background: var(--slot); }
.cell.on { background: var(--glaze); color: var(--glaze-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); animation: fire .65s ease-out; }
@keyframes fire {
  0% { transform: scale(.6); box-shadow: 0 0 22px 6px var(--ember); }
  35% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.word { min-height: 44px; display: grid; place-items: center; }
.word span { background: var(--cobalt); color: var(--on-cobalt); font-weight: 700; font-size: 22px; letter-spacing: 4px; padding: 4px 16px; border-radius: 12px; }
.wheel { position: relative; width: 240px; height: 240px; border-radius: 50%; background: var(--wheel); box-shadow: inset 0 0 0 10px var(--wheel-rim), inset 0 0 0 46px var(--wheel), inset 0 0 0 48px var(--wheel-ring), inset 0 0 0 82px var(--wheel), inset 0 0 0 84px var(--wheel-ring); touch-action: none; user-select: none; -webkit-user-select: none; }
.wheel svg { position: absolute; inset: 0; pointer-events: none; }
.wheel button {
  position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 0;
  background: var(--tile); color: var(--tile-ink); font: 700 28px Rubik, system-ui, sans-serif;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); cursor: pointer; display: grid; place-items: center;
}
.wheel button.sel { background: var(--cobalt); color: var(--on-cobalt); }
.wheel button:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.play-tools { display: flex; gap: 10px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: 500 15px Rubik, system-ui, sans-serif; cursor: pointer; }

section { padding: 56px 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pains p { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 28px 0; }
.feature:nth-child(even) .shot { order: -1; }
.feature h3 { font-size: 1.5rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink2); }
.shot { margin: 0; justify-self: center; }
.shot img { width: min(280px, 100%); border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(43,36,32,.45); }

.video { aspect-ratio: 9 / 16; width: min(340px, 100%); margin: 24px auto 0; border-radius: 24px; overflow: hidden; background: var(--kiln); }
.video iframe { width: 100%; height: 100%; border: 0; }
.poster { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; position: relative; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(43,36,32,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23FFF6EC'/%3E%3C/svg%3E") center / 40px no-repeat; }
.poster:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-top: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink2); }

.band { background: var(--kiln); color: #FFF6EC; border-radius: 32px; padding: 48px 24px; text-align: center; margin: 32px 0 56px; }
.band p { color: #F3C9A8; margin: 0 0 24px; }
.band .btn { background: #8FA9E0; color: #141A2A; box-shadow: 0 4px 0 #5F79B0; }

.doc { max-width: 720px; padding: 16px 0 64px; }
.doc h1 { font-size: 2.4rem; margin: 8px 0; }
.doc .meta { color: var(--ink2); }
.doc h2 { font-size: 1.35rem; margin: 32px 0 8px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink2); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; }

@media (max-width: 860px) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .shot { order: 0; }
  .pains { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cell.on { animation: none; }
  .btn:active { transform: none; }
}
