/* Piqsy site: shared tokens, fonts, header/footer, and the reading layout for privacy/terms/support. */
@font-face { font-family: "Bagel Fat One"; src: url(/fonts/BagelFatOne-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/Figtree-normal.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/Figtree-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --violet: #5b3df5;
  --ink: #1b1340;
  --yellow: #ffe45c;
  --pink: #ff7ac6;
  --mint: #5cf2b5;
  --bg: #fbf8ff;
  --fg: var(--ink);
  --muted: #5d567a;
  --link: var(--violet);
  --line: 2.5px solid var(--ink);
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #160f33; --fg: #f1edff; --muted: #b3abd6; --link: #b4a5ff; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* Header bar */
.top { background: var(--violet); color: #fff; padding: 14px 16px; border-bottom: var(--line); }
.top-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { font: 30px/1 var(--display); color: #fff; text-decoration: none; letter-spacing: -.01em; }
.pill { font-size: .85rem; font-weight: 700; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
        border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* Reading pages (privacy, terms, support) */
.doc { max-width: 680px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font: 2.6rem/1.05 var(--display); margin: 0 0 .25em; letter-spacing: -.01em; }
.doc h2 { font-size: 1.25rem; font-weight: 800; margin: 2.2em 0 .4em; }
.doc h3 { font-size: 1.05rem; font-weight: 800; margin: 1.6em 0 .2em; }
.doc li { margin: .35em 0; }
.muted { color: var(--muted); font-size: .92em; }
.box { background: var(--yellow); color: var(--ink); border: var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink);
       padding: 6px 22px; margin: 28px 0; transform: rotate(-.6deg); }
.box h2 { margin-top: .9em; }
.box a { color: var(--ink); }

/* Footer */
.foot { border-top: var(--line); padding: 28px 16px 40px; text-align: center; font-size: .92rem; color: var(--muted); }
.foot nav { display: flex; justify-content: center; gap: 22px; font-weight: 700; margin-bottom: 8px; }
.foot nav a { color: var(--fg); }
.foot p { margin: 0; }

/* Mascot: the app icon, with live googly eyes drawn over the baked-in ones (see /eyes.js). */
.mascot { position: relative; display: block; aspect-ratio: 1; border-radius: 23%; overflow: hidden; border: var(--line);
          box-shadow: 5px 5px 0 var(--ink); background: #7a66ff; }
.mascot img, .mascot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mascot ellipse { fill: #fff; stroke: #231a50; stroke-width: 10; }
.mascot .pupil { fill: #231a50; transform: translate(18px, -5px); transition: transform .12s ease-out; }
.mascot .eye { transform-box: fill-box; transform-origin: center; transition: transform .07s; }
.mascot.blink .eye { transform: scaleY(.08); }
