/* Hazabel — hazabel.nl
   Cut-out coloured cardboard: kraft background, paper pieces with a slightly
   wobbly scissor cut, short hard shadows, stickers glued on top.
   No external requests: fonts and images are all in this folder. */

/* ---------- Fonts (Fredoka, SIL Open Font License: fonts/OFL.txt) ---------- */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colours (lib/config/theme.dart) and paper cuts ---------- */

:root {
  color-scheme: light;

  --kraft: #e3c9a1;
  --kraft-dark: #d2b48a;
  --cream: #fbf5e9;
  --white-paper: #fffdf8;
  --ink: #3b2c24;
  --ink-soft: #6b5646;
  --blue: #4a9ad8;
  --orange: #ee8a3a;
  --green: #6db65b;
  --pink: #e76f8e;
  --purple: #8c6bc8;
  --yellow: #f0be45;
  --red: #e0533d;
  --teal: #3aa39b;
  --glow: #ffd54a;
  --shadow: rgba(68, 42, 18, 0.27);

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Rounded rectangles whose edge wanders 0–3px, like a scissor cut
     (same idea as PaperBorder in the app). Generated once; px-based so the
     wobble is the same on small and large pieces. */
  --cut-1: polygon(18px 0.3px, calc(8.33% + 15px) 0.7px, calc(16.67% + 12px) 1.1px, calc(25% + 9px) 1.6px, calc(33.33% + 6px) 1.6px, calc(41.67% + 3px) 1.7px, 50% 1.7px, calc(58.33% - 3px) 1.6px, calc(66.67% - 6px) 1.4px, calc(75% - 9px) 1.2px, calc(83.33% - 12px) 1.6px, calc(91.67% - 15px) 1.9px, calc(100% - 18px) 2.3px, calc(100% - 11.9px) 3.3px, calc(100% - 6.5px) 6.5px, calc(100% - 2.8px) 11.7px, calc(100% - 1.7px) 18px, calc(100% - 1.9px) calc(8.33% + 15px), calc(100% - 2px) calc(16.67% + 12px), calc(100% - 1.8px) calc(25% + 9px), calc(100% - 1.6px) calc(33.33% + 6px), calc(100% - 1.4px) calc(41.67% + 3px), calc(100% - 1.1px) 50%, calc(100% - 0.8px) calc(58.33% - 3px), calc(100% - 0.5px) calc(66.67% - 6px), calc(100% - 0.4px) calc(75% - 9px), calc(100% - 0.3px) calc(83.33% - 12px), calc(100% - 0.2px) calc(91.67% - 15px), calc(100% - 0.8px) calc(100% - 18px), calc(100% - 2.8px) calc(100% - 11.7px), calc(100% - 6.9px) calc(100% - 6.9px), calc(100% - 12px) calc(100% - 3.5px), calc(100% - 18px) calc(100% - 2.3px), calc(91.67% - 15px) calc(100% - 2.3px), calc(83.33% - 12px) calc(100% - 1.6px), calc(75% - 9px) calc(100% - 0.8px), calc(66.67% - 6px) calc(100% - 0.1px), calc(58.33% - 3px) calc(100% - 0.4px), 50% calc(100% - 0.8px), calc(41.67% + 3px) calc(100% - 1.1px), calc(33.33% + 6px) calc(100% - 1.4px), calc(25% + 9px) calc(100% - 1.6px), calc(16.67% + 12px) calc(100% - 1.8px), calc(8.33% + 15px) calc(100% - 1.3px), 18px calc(100% - 0.8px), 11.2px calc(100% - 1.6px), 5.4px calc(100% - 5.4px), 1.5px calc(100% - 11.2px), 0.1px calc(100% - 18px), 1px calc(91.67% - 15px), 1.9px calc(83.33% - 12px), 2.8px calc(75% - 9px), 2px calc(66.67% - 6px), 1.3px calc(58.33% - 3px), 0.5px 50%, 0.6px calc(41.67% + 3px), 0.6px calc(33.33% + 6px), 0.7px calc(25% + 9px), 0.6px calc(16.67% + 12px), 0.6px calc(8.33% + 15px), 0.5px 18px, 2.2px 11.5px, 6.2px 6.2px, 11.8px 2.9px);
  --cut-2: polygon(18px 2.2px, calc(8.33% + 15px) 2.1px, calc(16.67% + 12px) 2px, calc(25% + 9px) 1.8px, calc(33.33% + 6px) 1.4px, calc(41.67% + 3px) 0.9px, 50% 0.4px, calc(58.33% - 3px) 0.9px, calc(66.67% - 6px) 1.4px, calc(75% - 9px) 1.9px, calc(83.33% - 12px) 1.7px, calc(91.67% - 15px) 1.5px, calc(100% - 18px) 1.3px, calc(100% - 11.8px) 3px, calc(100% - 6.8px) 6.8px, calc(100% - 3.7px) 12.1px, calc(100% - 2.1px) 18px, calc(100% - 1.7px) calc(8.33% + 15px), calc(100% - 1.2px) calc(16.67% + 12px), calc(100% - 1.4px) calc(25% + 9px), calc(100% - 1.5px) calc(33.33% + 6px), calc(100% - 1.7px) calc(41.67% + 3px), calc(100% - 1.5px) 50%, calc(100% - 1.4px) calc(58.33% - 3px), calc(100% - 1.3px) calc(66.67% - 6px), calc(100% - 1.3px) calc(75% - 9px), calc(100% - 1.3px) calc(83.33% - 12px), calc(100% - 1.4px) calc(91.67% - 15px), calc(100% - 1.6px) calc(100% - 18px), calc(100% - 3.1px) calc(100% - 11.8px), calc(100% - 6.7px) calc(100% - 6.7px), calc(100% - 11.9px) calc(100% - 3.2px), calc(100% - 18px) calc(100% - 1.8px), calc(91.67% - 15px) calc(100% - 1.7px), calc(83.33% - 12px) calc(100% - 1.9px), calc(75% - 9px) calc(100% - 2.1px), calc(66.67% - 6px) calc(100% - 2.2px), calc(58.33% - 3px) calc(100% - 2px), 50% calc(100% - 1.8px), calc(41.67% + 3px) calc(100% - 1.5px), calc(33.33% + 6px) calc(100% - 1.5px), calc(25% + 9px) calc(100% - 1.4px), calc(16.67% + 12px) calc(100% - 1.3px), calc(8.33% + 15px) calc(100% - 1.1px), 18px calc(100% - 0.9px), 11.4px calc(100% - 2.1px), 6px calc(100% - 6px), 2.7px calc(100% - 11.7px), 1.8px calc(100% - 18px), 1.4px calc(91.67% - 15px), 1px calc(83.33% - 12px), 0.6px calc(75% - 9px), 0.4px calc(66.67% - 6px), 0.3px calc(58.33% - 3px), 0.2px 50%, 0.6px calc(41.67% + 3px), 1px calc(33.33% + 6px), 1.3px calc(25% + 9px), 1px calc(16.67% + 12px), 0.6px calc(8.33% + 15px), 0.2px 18px, 2px 11.4px, 6.1px 6.1px, 11.7px 2.9px);
  --cut-3: polygon(18px 0.8px, calc(8.33% + 15px) 1.2px, calc(16.67% + 12px) 1.5px, calc(25% + 9px) 1.9px, calc(33.33% + 6px) 2px, calc(41.67% + 3px) 2.1px, 50% 2.2px, calc(58.33% - 3px) 2.1px, calc(66.67% - 6px) 2px, calc(75% - 9px) 1.9px, calc(83.33% - 12px) 1.6px, calc(91.67% - 15px) 1.4px, calc(100% - 18px) 1.1px, calc(100% - 11.7px) 2.7px, calc(100% - 6.6px) 6.6px, calc(100% - 3.4px) 12px, calc(100% - 1.8px) 18px, calc(100% - 1.4px) calc(8.33% + 15px), calc(100% - 1px) calc(16.67% + 12px), calc(100% - 0.9px) calc(25% + 9px), calc(100% - 0.7px) calc(33.33% + 6px), calc(100% - 0.6px) calc(41.67% + 3px), calc(100% - 1.1px) 50%, calc(100% - 1.5px) calc(58.33% - 3px), calc(100% - 2px) calc(66.67% - 6px), calc(100% - 1.5px) calc(75% - 9px), calc(100% - 0.9px) calc(83.33% - 12px), calc(100% - 0.4px) calc(91.67% - 15px), calc(100% - 0.4px) calc(100% - 18px), calc(100% - 1.8px) calc(100% - 11.3px), calc(100% - 5.6px) calc(100% - 5.6px), calc(100% - 11.4px) calc(100% - 2px), calc(100% - 18px) calc(100% - 0.8px), calc(91.67% - 15px) calc(100% - 0.9px), calc(83.33% - 12px) calc(100% - 1.4px), calc(75% - 9px) calc(100% - 1.9px), calc(66.67% - 6px) calc(100% - 2.3px), calc(58.33% - 3px) calc(100% - 2.3px), 50% calc(100% - 2.2px), calc(41.67% + 3px) calc(100% - 2.2px), calc(33.33% + 6px) calc(100% - 1.7px), calc(25% + 9px) calc(100% - 1.3px), calc(16.67% + 12px) calc(100% - 0.8px), calc(8.33% + 15px) calc(100% - 1.2px), 18px calc(100% - 1.5px), 11.8px calc(100% - 3.1px), 6.4px calc(100% - 6.4px), 2.6px calc(100% - 11.6px), 1px calc(100% - 18px), 0.7px calc(91.67% - 15px), 0.4px calc(83.33% - 12px), 0.2px calc(75% - 9px), 0.7px calc(66.67% - 6px), 1.1px calc(58.33% - 3px), 1.6px 50%, 1.1px calc(41.67% + 3px), 0.6px calc(33.33% + 6px), 0.1px calc(25% + 9px), 0.3px calc(16.67% + 12px), 0.5px calc(8.33% + 15px), 0.7px 18px, 2.4px 11.5px, 6.4px 6.4px, 11.9px 3.3px);
  --cut-4: polygon(18px 2.6px, calc(8.33% + 15px) 2px, calc(16.67% + 12px) 1.3px, calc(25% + 9px) 0.7px, calc(33.33% + 6px) 1.3px, calc(41.67% + 3px) 1.8px, 50% 2.4px, calc(58.33% - 3px) 1.6px, calc(66.67% - 6px) 0.8px, calc(75% - 9px) 0, calc(83.33% - 12px) 0.1px, calc(91.67% - 15px) 0.1px, calc(100% - 18px) 0.1px, calc(100% - 11.3px) 1.8px, calc(100% - 5.8px) 5.8px, calc(100% - 2.4px) 11.5px, calc(100% - 1.3px) 18px, calc(100% - 1.5px) calc(8.33% + 15px), calc(100% - 1.7px) calc(16.67% + 12px), calc(100% - 1.8px) calc(25% + 9px), calc(100% - 1.8px) calc(33.33% + 6px), calc(100% - 1.9px) calc(41.67% + 3px), calc(100% - 1.4px) 50%, calc(100% - 0.9px) calc(58.33% - 3px), calc(100% - 0.5px) calc(66.67% - 6px), calc(100% - 1px) calc(75% - 9px), calc(100% - 1.5px) calc(83.33% - 12px), calc(100% - 2.1px) calc(91.67% - 15px), calc(100% - 2px) calc(100% - 18px), calc(100% - 3px) calc(100% - 11.8px), calc(100% - 6.5px) calc(100% - 6.5px), calc(100% - 11.9px) calc(100% - 3.2px), calc(100% - 18px) calc(100% - 2.3px), calc(91.67% - 15px) calc(100% - 2.6px), calc(83.33% - 12px) calc(100% - 2.1px), calc(75% - 9px) calc(100% - 1.6px), calc(66.67% - 6px) calc(100% - 1.1px), calc(58.33% - 3px) calc(100% - 0.9px), 50% calc(100% - 0.8px), calc(41.67% + 3px) calc(100% - 0.6px), calc(33.33% + 6px) calc(100% - 1.1px), calc(25% + 9px) calc(100% - 1.7px), calc(16.67% + 12px) calc(100% - 2.2px), calc(8.33% + 15px) calc(100% - 2px), 18px calc(100% - 1.8px), 11.7px calc(100% - 2.8px), 6px calc(100% - 6px), 1.9px calc(100% - 11.3px), 0 calc(100% - 18px), 0.1px calc(91.67% - 15px), 0.2px calc(83.33% - 12px), 0.3px calc(75% - 9px), 0.7px calc(66.67% - 6px), 1.1px calc(58.33% - 3px), 1.5px 50%, 1.8px calc(41.67% + 3px), 2.2px calc(33.33% + 6px), 2.5px calc(25% + 9px), 1.9px calc(16.67% + 12px), 1.3px calc(8.33% + 15px), 0.7px 18px, 2.5px 11.6px, 6.5px 6.5px, 12px 3.4px);
  --cut-sm: polygon(10px 0.8px, calc(12.5% + 7.5px) 0.8px, calc(25% + 5px) 0.7px, calc(37.5% + 2.5px) 0.6px, 50% 0.6px, calc(62.5% - 2.5px) 0.6px, calc(75% - 5px) 0.6px, calc(87.5% - 7.5px) 0.5px, calc(100% - 10px) 0.5px, calc(100% - 5.2px) 1.7px, calc(100% - 1.9px) 5.3px, calc(100% - 0.7px) 10px, calc(100% - 0.9px) calc(12.5% + 7.5px), calc(100% - 0.9px) calc(25% + 5px), calc(100% - 1px) calc(37.5% + 2.5px), calc(100% - 1px) 50%, calc(100% - 0.9px) calc(62.5% - 2.5px), calc(100% - 0.8px) calc(75% - 5px), calc(100% - 0.8px) calc(87.5% - 7.5px), calc(100% - 0.9px) calc(100% - 10px), calc(100% - 2.3px) calc(100% - 5.5px), calc(100% - 5.6px) calc(100% - 2.4px), calc(100% - 10px) calc(100% - 0.9px), calc(87.5% - 7.5px) calc(100% - 0.6px), calc(75% - 5px) calc(100% - 0.3px), calc(62.5% - 2.5px) calc(100% - 0.2px), 50% calc(100% - 0.2px), calc(37.5% + 2.5px) calc(100% - 0.1px), calc(25% + 5px) calc(100% - 0.1px), calc(12.5% + 7.5px) calc(100% - 0.1px), 10px calc(100% - 0.1px), 5.2px calc(100% - 1.7px), 2px calc(100% - 5.4px), 1.1px calc(100% - 10px), 1px calc(87.5% - 7.5px), 1px calc(75% - 5px), 0.9px calc(62.5% - 2.5px), 1.1px 50%, 1.3px calc(37.5% + 2.5px), 1.4px calc(25% + 5px), 1.3px calc(12.5% + 7.5px), 1.2px 10px, 2.2px 5.5px, 5.5px 2.2px);
  --cut-sm2: polygon(10px 0, calc(12.5% + 7.5px) 0.4px, calc(25% + 5px) 0.8px, calc(37.5% + 2.5px) 1.2px, 50% 1.3px, calc(62.5% - 2.5px) 1.3px, calc(75% - 5px) 1.3px, calc(87.5% - 7.5px) 1.2px, calc(100% - 10px) 1.1px, calc(100% - 5.5px) 2.2px, calc(100% - 2.1px) 5.4px, calc(100% - 0.8px) 10px, calc(100% - 0.7px) calc(12.5% + 7.5px), calc(100% - 0.8px) calc(25% + 5px), calc(100% - 0.8px) calc(37.5% + 2.5px), calc(100% - 0.8px) 50%, calc(100% - 1px) calc(62.5% - 2.5px), calc(100% - 1.2px) calc(75% - 5px), calc(100% - 1.4px) calc(87.5% - 7.5px), calc(100% - 1.4px) calc(100% - 10px), calc(100% - 2.5px) calc(100% - 5.7px), calc(100% - 5.6px) calc(100% - 2.4px), calc(100% - 10px) calc(100% - 1.1px), calc(87.5% - 7.5px) calc(100% - 0.9px), calc(75% - 5px) calc(100% - 0.7px), calc(62.5% - 2.5px) calc(100% - 0.8px), 50% calc(100% - 1px), calc(37.5% + 2.5px) calc(100% - 1.1px), calc(25% + 5px) calc(100% - 0.9px), calc(12.5% + 7.5px) calc(100% - 0.6px), 10px calc(100% - 0.4px), 5.2px calc(100% - 1.7px), 1.6px calc(100% - 5.2px), 0.3px calc(100% - 10px), 0.3px calc(87.5% - 7.5px), 0.4px calc(75% - 5px), 0.4px calc(62.5% - 2.5px), 0.5px 50%, 0.6px calc(37.5% + 2.5px), 0.8px calc(25% + 5px), 0.7px calc(12.5% + 7.5px), 0.7px 10px, 1.9px 5.3px, 5.2px 1.7px);
  --cut-photo: polygon(4px 1.6px, calc(10% + 3.2px) 1.7px, calc(20% + 2.4px) 1.7px, calc(30% + 1.6px) 1.8px, calc(40% + 0.8px) 1.3px, 50% 0.7px, calc(60% - 0.8px) 0.1px, calc(70% - 1.6px) 0.7px, calc(80% - 2.4px) 1.3px, calc(90% - 3.2px) 1.8px, calc(100% - 4px) 1.8px, calc(100% - 2.4px) 2.4px, calc(100% - 1.6px) 4px, calc(100% - 1.2px) calc(10% + 3.2px), calc(100% - 0.7px) calc(20% + 2.4px), calc(100% - 0.3px) calc(30% + 1.6px), calc(100% - 0.3px) calc(40% + 0.8px), calc(100% - 0.2px) 50%, calc(100% - 0.1px) calc(60% - 0.8px), calc(100% - 0.4px) calc(70% - 1.6px), calc(100% - 0.8px) calc(80% - 2.4px), calc(100% - 1.1px) calc(90% - 3.2px), calc(100% - 0.9px) calc(100% - 4px), calc(100% - 1.6px) calc(100% - 1.6px), calc(100% - 4px) calc(100% - 0.4px), calc(90% - 3.2px) calc(100% - 0.8px), calc(80% - 2.4px) calc(100% - 1.2px), calc(70% - 1.6px) calc(100% - 1.6px), calc(60% - 0.8px) calc(100% - 1.1px), 50% calc(100% - 0.6px), calc(40% + 0.8px) calc(100% - 0.1px), calc(30% + 1.6px) calc(100% - 0.6px), calc(20% + 2.4px) calc(100% - 1.1px), calc(10% + 3.2px) calc(100% - 1.6px), 4px calc(100% - 1.4px), 2px calc(100% - 2px), 1px calc(100% - 4px), 1px calc(90% - 3.2px), 1px calc(80% - 2.4px), 1px calc(70% - 1.6px), 1.1px calc(60% - 0.8px), 1.1px 50%, 1.2px calc(40% + 0.8px), 1.1px calc(30% + 1.6px), 1.1px calc(20% + 2.4px), 1px calc(10% + 3.2px), 1.2px 4px, 2.1px 2.1px);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--kraft) url("../img/grain-soft.webp");
  background-size: 170px;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 7px var(--glow);
}

::selection {
  background: var(--glow);
  color: var(--ink);
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  border-radius: 10px;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Paper ---------- */

/* A piece of paper glued on the cardboard. The paper itself is ::before
   (cut with clip-path), the short hard shadow is ::after with the same cut. */
.paper {
  --paper: var(--cream);
  --cut: var(--cut-1);
  position: relative;
  isolation: isolate;
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--cut);
  pointer-events: none;
}

.paper::before {
  z-index: -1;
  background: var(--paper) url("../img/grain.webp");
  background-size: 128px;
}

.paper::after {
  z-index: -2;
  background: var(--shadow);
  translate: 2px 4px;
}

.cut-2 { --cut: var(--cut-2); }
.cut-3 { --cut: var(--cut-3); }
.cut-4 { --cut: var(--cut-4); }

.paper--blue { --paper: var(--blue); }
.paper--orange { --paper: var(--orange); }
.paper--green { --paper: var(--green); }
.paper--pink { --paper: var(--pink); }
.paper--purple { --paper: var(--purple); }
.paper--yellow { --paper: var(--yellow); }
.paper--red { --paper: var(--red); }
.paper--teal { --paper: var(--teal); }
.paper--white { --paper: var(--white-paper); }
.paper--ink { --paper: var(--ink); }

.tilt-l { rotate: -1deg; }
.tilt-r { rotate: 0.8deg; }
.tilt-l2 { rotate: -2deg; }
.tilt-r2 { rotate: 1.8deg; }

/* A sticker glued on the page. */
.sticker {
  display: block;
  width: var(--size, 88px);
  height: auto;
  rotate: var(--r, -6deg);
  filter: drop-shadow(1px 3px 1.5px rgba(68, 42, 18, 0.3));
  pointer-events: none;
  user-select: none;
}

/* Section title on a cream paper strip, like the store screenshots. */
.title-strip {
  --cut: var(--cut-sm);
  display: inline-block;
  padding: 0.3em 0.8em 0.38em;
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  rotate: -1deg;
}

.title-strip .sticker {
  position: absolute;
  right: -0.9em;
  top: -0.65em;
  --size: 1.45em;
}

.title-strip.has-sticker {
  padding-right: 1.25em;
}

.section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.lead {
  font-size: clamp(1.15rem, 2.3vw, 1.35rem);
  font-weight: 500;
  max-width: 44ch;
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-block: 1.1rem 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 22%;
  rotate: -5deg;
  box-shadow: 2px 3px 0 var(--shadow);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.85rem 0.4rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(251, 245, 233, 0.65);
}

.site-nav a[aria-current="page"] {
  background: var(--cream);
  box-shadow: 1px 2px 0 var(--shadow);
}

.site-nav {
  margin-left: auto;
}

.lang-switch {
  --cut: var(--cut-sm2);
  display: inline-block;
  padding: 0.35rem 1rem 0.4rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  rotate: 2deg;
}

.lang-switch:hover {
  --paper: var(--white-paper);
}


/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem 3rem;
  padding-block: clamp(1.5rem, 5vw, 4rem) 0;
}

.hero h1 {
  font-size: clamp(3.6rem, 11vw, 7rem);
  line-height: 0.95;
  margin: 0 0 0.2em;
  letter-spacing: -0.01em;
}

.kicker {
  --cut: var(--cut-sm);
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.8rem 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  rotate: -2deg;
}

.tagline {
  --cut: var(--cut-sm2);
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 0.25em 0.7em 0.3em;
  font-size: clamp(1.45rem, 3.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  rotate: -1.5deg;
}

.pitch {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  max-width: 32ch;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  margin: 1.6rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.store {
  --paper: var(--ink);
  --cut: var(--cut-sm);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.15rem 0.6rem 0.9rem;
  color: var(--cream);
  line-height: 1.12;
}

.store:nth-child(2) {
  --cut: var(--cut-sm2);
  rotate: 1deg;
}

.store svg {
  flex: none;
  width: 30px;
  height: 30px;
}

.store small {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
}

.store strong {
  display: block;
  font-size: 1.3rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem 0.25rem 0.45rem;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(251, 245, 233, 0.7);
  border-radius: 999px;
}

.chips li::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%233b2c24' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(400px, 78vw);
  aspect-ratio: 1;
}

.hero-icon {
  display: block;
  width: 86%;
  height: auto;
  margin: 7%;
  border-radius: 22%;
  rotate: 4deg;
  box-shadow: 4px 7px 0 var(--shadow);
}

.hero-art .sticker {
  position: absolute;
}

.hero-art .s1 { --size: 26%; --r: 12deg; top: -4%; right: -4%; }
.hero-art .s2 { --size: 22%; --r: -14deg; bottom: -2%; left: -6%; }
.hero-art .s3 { --size: 21%; --r: 9deg; bottom: -5%; right: 6%; }
.hero-art .s4 { --size: 17%; --r: -10deg; top: 4%; left: -6%; }

/* ---------- Sections ---------- */

.section {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
}

.sheet {
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

/* ---------- Games ---------- */

.cats {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.25rem);
}

.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  margin-bottom: 1.1rem;
}

.cat-tab {
  --cut: var(--cut-sm);
  display: inline-block;
  margin: 0;
  padding: 0.22em 0.8em 0.3em;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  rotate: -1.5deg;
}

.cat-tab.on-dark {
  color: #fff;
}

.cat-sub {
  margin: 0;
  font-weight: 500;
}

.cat-count {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(251, 245, 233, 0.7);
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.1rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 1rem 0.9rem 0.85rem;
}

.game:nth-child(4n + 2) { --cut: var(--cut-2); rotate: 0.6deg; }
.game:nth-child(4n + 3) { --cut: var(--cut-3); rotate: -0.5deg; }
.game:nth-child(4n + 4) { --cut: var(--cut-4); rotate: 0.35deg; }
.game:nth-child(4n + 1) { rotate: -0.4deg; }

.game .tile {
  --cut: var(--cut-sm);
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  rotate: -4deg;
}

.game:nth-child(even) .tile {
  --cut: var(--cut-sm2);
  rotate: 3deg;
}

.game .tile img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 2px 1px rgba(68, 42, 18, 0.25));
}

.game h4 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.game p {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  line-height: 1.38;
  color: var(--ink-soft);
}

/* ---------- Grows along (features) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2rem 3rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 0.25rem 1.25rem;
  align-items: start;
}

.feature .sticker {
  --size: 84px;
  grid-row: span 2;
}

.feature h3 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.3rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Own world ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem 4rem;
}

.split .copy p {
  max-width: 46ch;
}

.note {
  --cut: var(--cut-sm);
  display: inline-block;
  padding: 0.6rem 1rem;
  font-weight: 500;
  rotate: -0.6deg;
}

.photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 1.5rem;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.photo {
  --paper: var(--white-paper);
  --cut: var(--cut-photo);
  margin: 0;
  padding: 0.65rem 0.65rem 0;
  text-align: center;
}

.photos li:nth-child(1) .photo { rotate: -4deg; }
.photos li:nth-child(2) .photo { rotate: 3deg; translate: 0 1rem; }
.photos li:nth-child(3) .photo { rotate: 2deg; }
.photos li:nth-child(4) .photo { rotate: -3deg; translate: 0 1rem; }

.photo .pic {
  --cut: var(--cut-photo);
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.photo .pic::after {
  display: none;
}

.photo .pic img {
  width: 72%;
  height: auto;
  filter: drop-shadow(1px 3px 1.5px rgba(68, 42, 18, 0.3));
}

.photo figcaption {
  padding: 0.35rem 0 0.55rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 72px;
  height: 22px;
  translate: -50% 0;
  rotate: -5deg;
  background: rgba(240, 190, 69, 0.72);
  clip-path: polygon(0 8%, 6% 0, 100% 4%, 95% 50%, 100% 96%, 4% 100%, 0 52%);
}

/* ---------- Devices ---------- */

.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.device {
  padding: 1.4rem 1.4rem 1.5rem;
}

.devices li:nth-child(1) .device { rotate: -0.8deg; }
.devices li:nth-child(2) .device { --cut: var(--cut-2); rotate: 0.6deg; }
.devices li:nth-child(3) .device { --cut: var(--cut-3); rotate: -0.4deg; }

.device svg {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(2px 4px 0 rgba(68, 42, 18, 0.18));
}

.device h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.device p {
  margin: 0;
  color: var(--ink-soft);
}

.pairing {
  --cut: var(--cut-sm2);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 0.8rem 1.2rem;
  font-weight: 500;
  width: fit-content;
  max-width: 100%;
  rotate: 0.5deg;
}

.pairing .sticker {
  --size: 52px;
  flex: none;
}

/* ---------- Stays at home (privacy) ---------- */

.home-safe {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem 3.5rem;
  align-items: start;
}

.home-safe h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
}

.home-safe .stickers {
  display: flex;
  gap: 0.5rem;
  margin: 0.25rem 0 1.25rem;
}

.home-safe .stickers .sticker { --size: 96px; }
.home-safe .stickers .sticker + .sticker { --r: 14deg; margin-top: 1.4rem; }

.checks {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  font-weight: 500;
}

.checks li::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.05rem;
  border-radius: 45% 55% 50% 48%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%233b2c24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 1px 2px 0 var(--shadow);
}

.button {
  --cut: var(--cut-sm);
  --paper: var(--yellow);
  display: inline-block;
  padding: 0.55rem 1.2rem 0.6rem;
  font-weight: 700;
  text-decoration: none;
  rotate: -1deg;
  transition: translate 0.15s ease, rotate 0.15s ease;
}

.button:hover {
  translate: 0 -2px;
  rotate: 0deg;
}

.button .arrow {
  display: inline-block;
  margin-left: 0.35rem;
}

.site-note {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- Screenshots ---------- */

.screens {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 1.25rem max(var(--gutter), (100% - var(--wrap)) / 2) 2rem;
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  scrollbar-color: var(--ink-soft) transparent;
}

.screens:focus-visible {
  outline-offset: -6px;
  box-shadow: none;
}

.shot {
  --paper: var(--white-paper);
  flex: none;
  margin: 0;
  padding: 0.6rem 0.6rem 0.5rem;
  scroll-snap-align: start;
}

.shot:nth-child(odd) { rotate: -0.9deg; }
.shot:nth-child(even) { --cut: var(--cut-2); rotate: 0.8deg; }

.shot img {
  display: block;
  width: auto;
  height: clamp(220px, 40vw, 380px);
  border-radius: 10px;
  background: var(--kraft);
  color: transparent;
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.3rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.shot .device-tag {
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--kraft);
  color: var(--ink);
}

/* Without any screenshot (tool/website_screens.sh not run yet) the strip
   makes room for a paper note instead. */
.screens-block:not(:has(.shot:not([hidden]))) .screens {
  display: none;
}

.screens-empty {
  display: none;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  padding: 1rem 1.4rem;
  font-weight: 500;
  rotate: -0.6deg;
}

.screens-block:not(:has(.shot:not([hidden]))) .screens-empty {
  display: flex;
}

.screens-empty .sticker {
  --size: 64px;
  flex: none;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.9rem;
  max-width: 50rem;
}

.qa:nth-child(even) {
  --cut: var(--cut-2);
}

.qa summary {
  position: relative;
  padding: 1rem 3.6rem 1.05rem 1.3rem;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  border-radius: 14px;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  translate: 0 -50%;
  border-radius: 46% 54% 50% 50%;
  background: var(--yellow);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 1px 2px 0 var(--shadow);
  transition: rotate 0.2s ease;
}

.qa[open] summary::after {
  content: "–";
}

.qa summary:hover::after {
  rotate: 12deg;
}

.answer {
  padding: 0 1.3rem 1.2rem;
  max-width: 44rem;
}

.answer > :last-child {
  margin-bottom: 0;
}

.answer ol,
.answer ul {
  margin: 0 0 1em;
  padding-left: 1.4rem;
}

.answer li {
  margin-bottom: 0.35rem;
}

.answer li::marker {
  font-weight: 700;
  color: var(--ink);
}

.path {
  font-weight: 700;
}

.more {
  margin-top: 1.75rem;
}

/* ---------- Document pages (privacy, support) ---------- */

.page-top {
  margin-top: clamp(2rem, 6vw, 3.5rem);
}

.page-head {
  padding-block: clamp(1.5rem, 5vw, 3rem) 1.5rem;
}

.page-head h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  margin: 0;
}

.page-head .lead {
  margin-top: 0.8rem;
}

/* Document pages use a narrower, centred column. */
.narrow {
  --wrap: 50rem;
}

.doc {
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

.doc h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  padding-right: clamp(4rem, 16vw, 9rem);
}

.doc h2 {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  margin-top: 1.8em;
}

.doc ul {
  padding-left: 0;
  list-style: none;
}

.doc li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 45% 55% 48% 52%;
  background: var(--orange);
}

.doc li:nth-child(3n + 2)::before { background: var(--blue); }
.doc li:nth-child(3n + 3)::before { background: var(--green); }

.doc .updated {
  color: var(--ink-soft);
}

.doc-stickers {
  position: absolute;
  top: -1.6rem;
  right: -0.6rem;
  display: flex;
}

.doc-stickers .sticker {
  --size: clamp(64px, 12vw, 96px);
}

.doc-stickers .sticker + .sticker {
  --r: 12deg;
  margin-left: -1.2rem;
  margin-top: 1.4rem;
}

/* Placeholders the owner still has to fill in. */
mark.todo {
  white-space: nowrap;
  padding: 0 0.25em;
  border-radius: 4px;
  background: var(--glow);
  color: var(--ink);
  outline: 2px dashed var(--red);
  outline-offset: 1px;
  font-weight: 500;
  font-style: normal;
}

.aside {
  margin-top: 1.75rem;
  padding: 1.1rem 1.4rem;
}

.aside p {
  margin: 0;
}

.contact {
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: center;
}

.contact .sticker {
  --size: 92px;
}

.contact h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin-bottom: 0.4rem;
}

.contact p:last-child {
  margin-bottom: 0;
}

.mail {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-block: 2.5rem 2rem;
  background: var(--kraft-dark) url("../img/grain-soft.webp");
  background-size: 170px;
  clip-path: polygon(0 10px, 8% 4px, 19% 9px, 31% 2px, 44% 8px, 57% 3px, 70% 9px, 82% 2px, 93% 7px, 100% 3px, 100% 100%, 0 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand .sticker {
  --size: 64px;
  --r: -8deg;
}

.footer-brand p {
  margin: 0;
}

.footer-brand strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.footer-brand span {
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.small-print {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.small-print p {
  margin: 0 0 0.3rem;
}

/* ---------- 404 ---------- */

.lost {
  max-width: 40rem;
  margin: clamp(2rem, 8vw, 5rem) auto 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.lost .sticker {
  --size: 110px;
  margin: -4.5rem auto 0.5rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-art {
    order: -1;
    width: min(300px, 70vw);
  }

  .pitch {
    margin-inline: auto;
  }

  .stores,
  .chips {
    justify-content: center;
  }

  .split,
  .home-safe {
    grid-template-columns: 1fr;
  }

  .devices {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.0625rem;
  }

  .site-header {
    justify-content: space-between;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    justify-content: center;
  }

  .doc {
    padding-top: 3.75rem;
  }

  .doc h1 {
    font-size: 1.85rem;
  }

  .doc-stickers {
    top: -1.5rem;
    right: 0.25rem;
  }

  .doc-stickers .sticker {
    --size: 70px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature .sticker {
    --size: 68px;
    grid-row: auto;
    margin-bottom: 0.3rem;
  }

  .title-strip .sticker {
    right: -0.35em;
    top: -0.75em;
    --size: 1.25em;
  }

  .doc h1 {
    padding-right: 0;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #fff;
  }

  .site-header nav,
  .skip,
  .screens-block {
    display: none;
  }

  .paper::before,
  .paper::after {
    display: none;
  }

  .site-footer {
    background: none;
  }
}
