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

:root {
  --bg: #FFFFFF; --ink: #16132E; --muted: #5E5A78; --line: #8D88A9; --field: #FFFFFF;
  --accent: #5B3DF5; --on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16132E; --ink: #F3F2FA; --muted: #ADA9CB; --line: #6E6894; --field: #1E1A3C;
    --accent: #9C8CFF; --on-accent: #16132E;
  }
}

/* overflow-x: the pup's stage is as wide as the window; at some zoom levels that rounds a
   fraction of a pixel past the edge, and a horizontal scrollbar flickering on and off would
   shake the whole page. Nothing here should scroll sideways. */
html { background: var(--bg); color: var(--ink); font: 16px/1.5 Outfit, system-ui, sans-serif; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
main { display: grid; place-items: center; align-content: center; text-align: center; }
h1 { margin: 0; padding: 24px 16px; }
/* The logo (and the pup with it) grows with the window: 80% of a phone, 640 px on a small
   laptop, 60% of anything wider, so it isn't lost on a big screen. */
h1 img { display: block; width: min(80vw, max(640px, 60vw)); height: auto; }
/* logo3d.js: a canvas over the logo spins it in 3D on hover */
.logo { position: relative; display: block; }
.logo3d { position: absolute; pointer-events: none; visibility: hidden; }
.logo3d.on { visibility: visible; }
/* puppy.js: now and then a pup turns up on the logo (sometimes with a ball, a cat or a
   butterfly), and now and then it has a sleep by one of the brackets. It walks on a stage behind
   the letters, or in front of them (.front); copies of the logo (.pup-half) lie over it to part
   the halves or to put some letters in front of it; .pup-fx holds dirt, paw prints, dust and z's. */
.pup-stage { position: absolute; top: 0; height: 100%; overflow: hidden; pointer-events: none; }
.pup-stage.front { z-index: 1; }
.pup { position: absolute; left: 0; top: 0; background-repeat: no-repeat; }
.pup-half { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }
.pup-ball { position: absolute; left: 0; top: 0; overflow: visible; }
.pup-ball circle { fill: var(--bg); stroke: var(--ink); }
.pup-ball path { fill: none; stroke: var(--accent); stroke-linecap: round; }
.pup-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.pup-dirt, .pup-print { fill: var(--muted); }
.pup-z { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.pup-puff { fill: none; stroke: var(--line); transform-box: fill-box; transform-origin: center; }
.pup-fly ellipse { fill: var(--bg); stroke: var(--ink); }
.pup-fly path { fill: none; stroke: var(--ink); stroke-linecap: round; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

footer { display: grid; justify-items: center; padding: 0 16px 24px; }
details { width: min(100%, 440px); text-align: center; }
summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  color: var(--muted); font-weight: 500; list-style: none; cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary:hover, details[open] summary { color: var(--ink); }

form { display: grid; gap: 12px; margin-top: 8px; text-align: left; }
label { display: grid; gap: 4px; color: var(--muted); font-size: 0.875rem; }
input, textarea {
  font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 128px; resize: vertical; }
button {
  justify-self: start; min-height: 44px; padding: 0 24px; border: 0; border-radius: 22px;
  font: inherit; font-weight: 500; color: var(--on-accent); background: var(--accent); cursor: pointer;
}
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 0.875rem; }
.small h1 img { width: min(64vw, 400px); }
.message { margin: 0 16px; font-size: 1.125rem; }
