@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/Nunito_400Regular.ttf) format('truetype'); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/Nunito_700Bold.ttf) format('truetype'); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/Nunito_800ExtraBold.ttf) format('truetype'); }

:root {
  color-scheme: light dark;
  --background: #F6F2EA; --surface: #FFFFFF; --edge: #DCCDB2;
  --text: #1F1B2D; --muted: #6E6780; --accent: #FF6B3D; --plum: #2C2640;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #15131C; --surface: #221F2C; --edge: #0B0910;
    --text: #F4F1FA; --muted: #A59FB6; --accent: #FF7A50;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--background); color: var(--text);
  font: 400 17px/1.6 Nunito, ui-rounded, system-ui, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--accent); text-underline-offset: 2px; }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }

/* Scattered tile outlines behind everything, as in the app; fixed, so they stay while the text scrolls. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop span {
  position: absolute; width: var(--size); height: var(--size); border-radius: calc(var(--size) * 0.24);
  border: 3px solid var(--edge); opacity: 0.55; transform: rotate(var(--tilt));
}
@media (min-width: 900px) { .backdrop span { width: calc(var(--size) * 1.5); height: calc(var(--size) * 1.5); } }

.draft { background: #E4416A; color: #fff; font-weight: 700; text-align: center; padding: 8px 16px; }

.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 760px; margin: 0 auto; width: 100%; padding: 16px;
}
.bar .home { text-decoration: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; }
.bar nav a { color: var(--text); text-decoration: none; }
.bar nav a[aria-current] { color: var(--accent); }
.bar nav .lang { color: var(--muted); }

.logo { display: inline-flex; gap: calc(var(--s) * 0.08); --s: 22px; padding-bottom: calc(var(--s) * 0.4); }
.logo-large { --s: clamp(30px, 9vw, 56px); }
.logo .tile {
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.22);
  display: grid; place-items: center;
  background: var(--face); color: #fff;
  font-weight: 800; font-size: calc(var(--s) * 0.62); line-height: 1;
  box-shadow: 0 calc(var(--s) * 0.1) 0 color-mix(in srgb, var(--face) 70%, #000);
  transform: rotate(var(--tilt));
}
.logo .tile.slid { transform: translateY(calc(var(--s) * 0.3)) rotate(var(--tilt)); }

.hero { text-align: center; padding: 32px 0 16px; }
.hero .mascot { display: block; margin: 0 auto 16px; width: 160px; height: 160px; }
.tagline { font-size: 22px; font-weight: 800; margin: 16px 0 8px; }
.pitch { color: var(--muted); max-width: 34em; margin: 0 auto 16px; }
.soon {
  display: inline-block; background: var(--surface); border-radius: 14px; padding: 10px 18px;
  font-weight: 700; box-shadow: 0 4px 0 var(--edge);
}
.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none;
  border-radius: 14px; padding: 10px 20px; box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 70%, #000);
}

.doc h1 { font-size: 32px; line-height: 1.2; font-weight: 800; margin: 16px 0 4px; }
.doc .as-of { color: var(--muted); margin: 0 0 24px; }
.doc .intro { font-size: 18px; }
.doc section {
  background: var(--surface); border-radius: 18px; padding: 4px 20px 8px; margin: 16px 0;
  box-shadow: 0 4px 0 var(--edge); scroll-margin-top: 16px;
}
.doc h2 { font-size: 20px; font-weight: 800; margin: 16px 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc p, .doc li { overflow-wrap: anywhere; }

footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  padding: 24px 16px 32px; font-size: 15px;
}
footer a { color: var(--muted); }

.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10;
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px 10px 12px;
  background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; border-radius: 999px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 70%, #000);
  transition: transform 0.1s, box-shadow 0.1s;
}
.to-top:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 70%, #000); }
.to-top:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
@supports (animation-timeline: scroll()) {
  .to-top { animation: to-top-in linear both; animation-timeline: scroll(root); animation-range: 0 240px; }
  @keyframes to-top-in {
    from { opacity: 0; translate: 0 12px; visibility: hidden; }
    to { opacity: 1; translate: none; visibility: visible; }
  }
}
