/* The game's own look (Design/ui-prototype/src): strawberry milk to lilac to sky, DynaPuff and Nunito. */
@font-face { font-family: 'DynaPuff'; src: url('/fonts/dynapuff.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --sky-a: #FFE3F1; --sky-b: #E9DDFF; --sky-c: #D8EEFF;
  --card: #FFFFFF; --text: #2B1A47; --muted: #6B5D8C; --accent: #D63B84; --ring: #49B2FF;
  --display: 'DynaPuff', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --ui: 'Nunito', ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--sky-b); }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--sky-a), var(--sky-b) 55%, var(--sky-c)) fixed;
  color: var(--text); font: 700 17px/1.6 var(--ui);
}
a { color: inherit; text-decoration: none; }
a:focus-visible, canvas:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: 8px; }

/* the front page: the name, and a squishy to press */
.home main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.home h1 {
  margin: clamp(28px, 7svh, 72px) 0 0; text-align: center;
  font: 600 clamp(52px, 13vw, 128px)/1 var(--display); letter-spacing: -.02em;
  text-shadow: 0 3px 0 rgba(255, 255, 255, .7);
}
.home canvas { flex: 1 1 0; width: 100%; height: 0; min-height: 320px; display: block; touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.home canvas:focus:not(:focus-visible) { outline: none; }
.still { display: block; width: min(62vw, 420px); height: auto; margin: 4vh auto; }

footer { display: flex; justify-content: center; gap: 32px; padding: 20px 24px max(24px, env(safe-area-inset-bottom)); }
footer a { padding: 6px 2px; color: var(--muted); }
footer a:hover { color: var(--text); }

/* a page to read */
.page main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 28px 24px 48px; }
.page .back { display: inline-block; font: 600 22px/1 var(--display); }
.page h1 { margin: 44px 0 20px; font: 600 clamp(38px, 8vw, 56px)/1.05 var(--display); letter-spacing: -.01em; }
.page h2 { margin: 36px 0 6px; font: 600 22px/1.25 var(--display); }
.page p { margin: 0 0 14px; font: 400 17px/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.page p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
