@font-face { font-family: 'Caveat'; font-weight: 400; font-display: swap; src: url(/fonts/caveat-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url(/fonts/caveat-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Patrick Hand'; font-weight: 400; font-display: swap; src: url(/fonts/patrick-hand-latin-400-normal.woff2) format('woff2'); }

:root {
  --bg: #0d0e1b;
  --bg2: #171a33;
  --ink: #1c1b2e;
  --paper: #fff7e6;
  --chalk: #f4efe6;
  --muted: #9a9cc0;
  --c1: #ffd95a; --c2: #ff8fc0; --c3: #6ee7b7; --c4: #7cc4ff; --c5: #ffa45c; --c6: #c9aaff;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --body: 'Patrick Hand', 'Segoe Print', 'Comic Sans MS', sans-serif;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--chalk); font-family: var(--body); }
body {
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, #2a2060aa, transparent 70%),
    radial-gradient(ellipse 55% 45% at 90% 95%, #0f4a5c88, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
/* scribbled doodles layer */
.doodles { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55; }
.doodles svg { position: absolute; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: bob 7s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(var(--r, 0deg)); } to { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); } }

h1.title {
  font-family: var(--hand); font-weight: 700; margin: 0; line-height: 1.02; letter-spacing: .5px;
  color: var(--c1); text-shadow: 3px 3px 0 #0008;
}
h1.title .hl { color: var(--c2); }
.caret { display: inline-block; width: .06em; height: .85em; background: var(--c1); margin-left: .08em; vertical-align: -.08em; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.squiggle { display: block; width: min(420px, 70%); height: 16px; margin-top: 6px; }
.squiggle path { stroke: var(--c2); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
