/* WordJump site. Colors are the game's own (design.md v1):
   sky #8FD3FF→#DDF3FF, ink #1D2B3A, orange = "you" #E8590C/#B8430A,
   cream letters #FFF1D6/#E2C99B, grass #5BBF5A, dirt #C98B52/#BD7F47.
   One scheme, like the game: it has no dark mode. */
:root {
  color-scheme: light;
  --ink: #1D2B3A;
  --ink-soft: #3D5266;
  --label: #5A6B7B;
  --accent: #E8590C;
  --accent-text: #B8430A;
  --accent-edge: #B8430A;
  --cream: #FFF1D6;
  --cream-edge: #E2C99B;
  --tile-ink: #3A2A1A;
  --sky-top: #8FD3FF;
  --sky-bottom: #DDF3FF;
  --grass: #5BBF5A;
  --dirt-a: #C98B52;
  --dirt-b: #BD7F47;
  --paper: #FFFFFF;
  --rule: #E6EAEE;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, "SF Pro", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 var(--round);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- The world: sky above, grass and dirt below ---------- */
.sky { background: linear-gradient(var(--sky-top), var(--sky-bottom)); }
.ground {
  height: 64px;
  border-top: 10px solid var(--grass);
  background: repeating-linear-gradient(90deg, var(--dirt-a) 0 32px, var(--dirt-b) 32px 64px);
}

/* ---------- Letter tiles (the signature) ---------- */
.tile {
  --s: 56px;
  display: grid; place-items: center;
  width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * .18);
  font: 900 calc(var(--s) * .54)/1 var(--round);
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 calc(var(--s) * -.09) 0 var(--accent-edge);
  padding-bottom: calc(var(--s) * .08);
}
.tile.cream {
  position: relative;
  color: var(--tile-ink);
  background: var(--cream);
  box-shadow: inset 0 calc(var(--s) * -.09) 0 var(--cream-edge);
  padding-top: calc(var(--s) * .2);
}
/* eyes */
.tile.cream::before {
  content: ""; position: absolute; top: 14%; left: 22%; right: 22%; height: 16%;
  background:
    radial-gradient(closest-side, var(--tile-ink) 92%, transparent) left / 22% 100% no-repeat,
    radial-gradient(closest-side, var(--tile-ink) 92%, transparent) right / 22% 100% no-repeat;
}
/* feet */
.tile.cream::after {
  content: ""; position: absolute; bottom: -11%; left: 12%; right: 12%; height: 14%;
  background:
    linear-gradient(var(--tile-ink), var(--tile-ink)) left / 30% 100% no-repeat,
    linear-gradient(var(--tile-ink), var(--tile-ink)) right / 30% 100% no-repeat;
  border-radius: 6px;
}

/* ---------- Landing page ---------- */
.hero { padding: 56px 24px 0; }
.hero-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: end;
}
.wordmark { margin: 0 0 20px; font: 900 22px/1 var(--round); letter-spacing: -.01em; }
.wordmark span, .logo-j { color: var(--accent-text); }
h1 {
  margin: 0; max-width: 13ch;
  font: 900 clamp(2.5rem, 6.4vw, 4.25rem)/1.02 var(--round);
  letter-spacing: -.035em;
}
.sub { margin: 18px 0 0; max-width: 34ch; font-size: 19px; color: var(--ink-soft); }
.coming { margin: 26px 0 48px; font-weight: 800; }
.badge { display: inline-block; line-height: 0; }
.badge svg { height: 50px; width: auto; display: block; }
.coming small { margin-top: 10px;  display: block; font-weight: 600; font-size: 15px; color: var(--ink-soft); }

.scene { position: relative; height: 330px; }
.stack {
  position: absolute; left: 18%; bottom: 0;
  display: flex; flex-direction: column;
}
.stack .tile { --s: 76px; border-radius: 0; }
.stack .tile:first-child { border-radius: 14px 14px 0 0; }
.stack .tile:last-child { border-radius: 0 0 14px 14px; }
.walker { position: absolute; right: 8%; bottom: 8px; }
.walker .tile { --s: 76px; }
.popup {
  position: absolute; left: calc(18% + 92px); bottom: 170px;
  font: 900 26px/1 var(--round); color: #FFD23F;
  -webkit-text-stroke: 1.5px var(--tile-ink); paint-order: stroke fill;
  letter-spacing: .02em;
}
@media (prefers-reduced-motion: no-preference) {
  .walker { animation: walk 3.2s ease-in-out infinite alternate; }
  @keyframes walk { from { transform: translateX(0); } to { transform: translateX(-28px); } }
}

.rules { width: 100%; max-width: 1088px; margin: 0 auto; padding: 56px 24px 64px; }
.rules ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.rules h2 { margin: 0 0 6px; font: 900 21px/1.2 var(--round); letter-spacing: -.01em; }
.rules p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { color: #fff; }
footer .inner {
  max-width: 1088px; margin: 0 auto; padding: 14px 24px 18px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700;
}
.foot { background: repeating-linear-gradient(90deg, var(--dirt-a) 0 32px, var(--dirt-b) 32px 64px); border-top: 10px solid var(--grass); }
.foot a { color: #fff; }
.foot nav { display: flex; gap: 20px; }
.foot .inner span { text-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* ---------- Support and Privacy ---------- */
.doc-head { padding: 28px 24px 30px; }
.doc-head .inner, .doc { max-width: 680px; margin: 0 auto; }
.brand { margin: 0 0 22px; }
.brand a { display: inline-flex; align-items: center; gap: 10px; font: 900 20px/1 var(--round); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.doc-head h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); max-width: none; }
.lede { margin: 12px 0 0; max-width: 56ch; color: var(--ink-soft); font-size: 18px; }
.doc { width: 100%; max-width: 728px; padding: 36px 24px 56px; }
.doc h2 { margin: 36px 0 8px; font: 900 22px/1.25 var(--round); letter-spacing: -.01em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 24px 0 4px; font: 800 18px/1.35 var(--round); }
.doc p, .doc ul { margin: 0 0 12px; max-width: 65ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.contact {
  display: inline-block; margin: 4px 0 8px;
  font: 900 21px/1.2 var(--round); word-break: break-all;
}
.meta { color: var(--label); font-size: 15px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .scene { height: 250px; }
  .stack .tile, .walker .tile { --s: 60px; }
  .popup { left: calc(18% + 74px); bottom: 130px; font-size: 22px; }
  .coming { margin-bottom: 8px; }
  .rules ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .rules ol { grid-template-columns: 1fr; gap: 22px; }
  .rules { padding-top: 40px; }
}
