/* Vaddaa — shared tokens and base styles ("Cut & Paste") */
@font-face { font-family: "Vaddaa Display"; src: url(fonts/bricolage-display.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Vaddaa Text"; src: url(fonts/bricolage-text.woff2) format("woff2"); font-display: swap; }
/* accented letters for the other-language pages; only downloaded when a page uses them */
@font-face { font-family: "Vaddaa Display"; src: url(fonts/bricolage-display-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+00A1-00A3, U+00A5-00A8, U+00AA-00AC, U+00AE-00B6, U+00B8-00D6, U+00D8-00E8, U+00EA-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+0218-021B, U+201A, U+201E; }
@font-face { font-family: "Vaddaa Text"; src: url(fonts/bricolage-text-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+00A1-00A3, U+00A5-00A8, U+00AA-00AC, U+00AE-00B6, U+00B8-00D6, U+00D8-00E8, U+00EA-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+0168-017E, U+0218-021B, U+201A, U+201E; }

:root {
  --paper: #ebe4d6;
  --paper-2: #e0d7c5;
  --slip: #f8f4ec;
  --ink: #18141f;
  --ink-2: #4f4858;           /* body text on paper: 6.9:1 */
  --lav: #c4b5f4;
  --violet: #5a2fe0;          /* the one saturated colour; white on it 7.0:1 */
  --violet-2: #4a22c7;
  --danger: #b3261e;
  --display: "Vaddaa Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Vaddaa Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --torn: polygon(0% 4%, 6% 0%, 13% 3%, 21% 0%, 30% 2%, 38% 0%, 47% 3%, 55% 1%, 64% 3%, 72% 0%, 81% 2%, 90% 0%, 100% 3%, 98% 12%, 100% 24%, 97% 37%, 100% 50%, 98% 63%, 100% 77%, 97% 89%, 100% 97%, 91% 100%, 82% 97%, 73% 100%, 63% 98%, 54% 100%, 45% 97%, 36% 100%, 27% 98%, 18% 100%, 9% 97%, 0% 100%, 2% 88%, 0% 75%, 3% 62%, 0% 49%, 2% 36%, 0% 23%, 3% 12%);
  --torn-wide: polygon(0% 6%, 8% 1%, 17% 5%, 26% 0%, 35% 4%, 44% 1%, 53% 5%, 62% 0%, 71% 4%, 80% 1%, 89% 5%, 100% 1%, 99.2% 30%, 100% 60%, 99.3% 97%, 90% 100%, 80% 95%, 70% 100%, 60% 96%, 50% 100%, 40% 95%, 30% 100%, 20% 96%, 10% 100%, 0% 95%, .8% 64%, 0% 32%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
/* film grain: a tiny SVG noise tile, multiplied over everything */
.grain::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .28; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-underline-offset: .18em; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pen { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* hand-drawn logotype */
.logo { display: block; width: 136px; color: var(--violet); text-decoration: none; }
.logo svg { width: 100%; height: auto; overflow: visible; }
.logo path { stroke-width: 6; }

/* buttons: violet slip with an ink shadow, like something stuck on */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: 4px;
  background: var(--violet); color: #fff;
  font: 400 19px/1 var(--display); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-quiet { background: var(--slip); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

/* torn paper + strips + stickers */
.torn { clip-path: var(--torn); }
.strip { display: inline-block; padding: .02em .16em .1em; background: var(--slip); clip-path: var(--torn); }
.sticker {
  display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%;
  background: var(--violet); color: #fff; text-align: center; font: 400 1.4rem/.95 var(--display);
  transform: rotate(12deg); box-shadow: 2px 3px 0 var(--ink);
}

/* checkbox */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input {
  appearance: none; flex: none; width: 26px; height: 26px; margin: 0;
  border: 2px solid var(--ink); border-radius: 3px; background: #fff; cursor: pointer;
}
.check input:checked { background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M6 13l5 5 9-11' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Ad slots: space is reserved so nothing jumps; hidden entirely when no ad network is configured. */
.ad { display: none; position: relative; margin-inline: auto; overflow: hidden; }
.ads-on .ad { display: block; }
.ad[data-placeholder]::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  border: 2px dashed #18141f40; color: var(--ink-2); font-size: .8rem;
}

/* Consent bar */
.consent {
  position: fixed; z-index: 95; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-inline: auto; padding: 1rem 1.1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  background: var(--slip); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 5px 5px 0 var(--ink); font-size: .9rem;
}
.consent p { margin: 0; flex: 1 1 260px; }
.consent .btn { min-height: 40px; padding: 0 16px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }

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