/* Wishlist for the givers, on the sand plate. Colours and type come from design/tokens.css (plate
 * and sand). The plate is the fixed canvas underneath; the list is plain text above it. */

body {
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* The module sizes the canvas itself (inline width and height), to the window with a phone's toolbar away. */
#plate { z-index: 1; bottom: auto; }
#page { position: relative; z-index: 2; }
.theme { z-index: 5; }

:root:not(.sand-on) .sand-only { display: none !important; }

.hero {
  min-height: 78vh; min-height: 78svh;
  display: grid; place-items: center;
  padding: var(--s5) var(--gutter);
}
:root:not(.sand-on) .hero { min-height: 0; padding-top: 5rem; padding-bottom: var(--s3); }
.say { max-width: 30em; text-align: center; pointer-events: none; }
.kicker {
  margin: 0 0 var(--s2);
  font: 500 var(--t-kicker)/1.4 var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.focal {
  margin: 0 0 var(--s3);
  font: 360 clamp(1.5rem, 1.1rem + 1.9vw, 2.2rem)/1.3 var(--serif);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.hint { margin: 0; font-size: var(--t-body); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.for-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .for-mouse { display: none; }
  .for-touch { display: block; }
}

.group { padding: 4rem var(--gutter) 4.5rem; }
.group-head, .cards { max-width: 34em; margin: 0 auto; }
.group-head { margin-bottom: var(--s3); pointer-events: none; }
.group-head h2 { margin: 0; font: 360 1.6rem/1.25 var(--serif); letter-spacing: -0.005em; }

.cards { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.card {
  padding: 0.4rem 1.1rem 0.9rem;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: color-mix(in srgb, var(--plate) 78%, transparent);     /* a veil: the sand stays visible under the words */
}
.card a {
  display: block;
  padding: 0.7rem 0 0.55rem;                                           /* with the line: a touch target of 44 px */
  font: 430 1.125rem/1.3 var(--serif);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: var(--select);
}
.card a::after { content: " \2197"; font: 400 0.8em/1 var(--sans); color: var(--muted); }
.card a:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .card a:hover { text-decoration-color: var(--accent); } }
.why { margin: 0 0 0.45rem; font-size: 1rem; line-height: 1.5; color: var(--ink); opacity: 0.86; text-wrap: pretty; }
.meta { margin: 0; font: 400 var(--t-small)/1.4 var(--sans); color: var(--muted); }
.price { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.notes { padding: var(--s5) var(--gutter) 7rem; display: grid; place-items: start center; }
.read {
  max-width: var(--measure);
  padding: var(--s3) var(--s3) var(--s2);
  background: var(--veil);
  box-shadow: 0 0 28px 22px var(--veil);
}
.read h2 { margin: var(--s4) 0 var(--s1); font: 500 var(--t-kicker)/1.4 var(--sans); letter-spacing: 0.04em; color: var(--muted); }
.read p { margin: 0 0 var(--s2); font-size: var(--t-body); line-height: 1.6; }
.stand { font-family: var(--sans); font-size: var(--t-small) !important; color: var(--muted); }

/* ?stats=1 overlay (measurement only) */
.stats {
  position: fixed; z-index: 7; right: 8px; bottom: 8px;
  padding: 6px 8px; background: var(--veil);
  font: 11px/1.45 var(--mono); color: var(--ink); white-space: pre; pointer-events: none;
}

/* Drawings: above each link box the sand draws the wish while it stands in the middle of the screen.
   Without moving sand the same outline shows as a plain line drawing. The default layout is one wish per screen, and a swipe goes to the next wish; ?v=1 gives the plain list. */
.draw { display: none; }
:root.draws .draw { display: block; height: 150px; margin: 0.4rem 0 0.6rem; color: var(--muted); pointer-events: none; }
.draw svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:root.draws.sand-draws .draw svg { opacity: 0; }
:root.draws .cards { gap: 1.5rem; }
:root.v2 { scroll-snap-type: y mandatory; }
:root.v2 .hero { min-height: 100vh; min-height: 100lvh; scroll-snap-align: start; }
:root.v2 .group { padding-top: 0; padding-bottom: 0; }
:root.v2 .group-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:root.v2 .cards { gap: 0; }
:root.v2 .wish {
  display: grid; align-content: center;
  min-height: 100vh; min-height: 100lvh;
  scroll-snap-align: center; scroll-snap-stop: always;
}
:root.v2 .wish::before {
  content: attr(data-group);
  font: 500 var(--t-kicker)/1.4 var(--sans); letter-spacing: 0.04em; color: var(--muted);
  text-align: center; pointer-events: none;
}
:root.v2 .draw { height: 250px; margin: 0.6rem 0 1.2rem; }
:root.v2 .notes { min-height: 100vh; min-height: 100lvh; align-content: center; padding-bottom: var(--s5); scroll-snap-align: start; }
/* Pinch and double-tap zoom are off on this page: a zoomed window pulls the sand lines out of shape. */
html, body { touch-action: pan-y; }

/* The price note stands under the opening lines since the last screen was removed (2026-12-01). */
.say .stand { margin: var(--s3) 0 0; }
