/* ==========================================================================
   Starlit Trinkets
   A paper-and-thread workbench under the real Austin sky.
   ========================================================================== */

/* Fonts are served from this site (Latin subset), so there's no wait on another
   server and no jump when they arrive. All three are open-source (SIL OFL). */
@font-face {
  font-family: "Figtree"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/figtree-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/figtree-roman-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/fraunces-roman-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gaegu"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/gaegu-roman-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Sky colors are animatable custom properties so the sky can fade smoothly. */
@property --sky-1 { syntax: "<color>"; inherits: true; initial-value: #232a63; }
@property --sky-2 { syntax: "<color>"; inherits: true; initial-value: #544d8a; }
@property --sky-3 { syntax: "<color>"; inherits: true; initial-value: #c27a86; }
@property --far   { syntax: "<color>"; inherits: true; initial-value: #3b3a6e; }
@property --near  { syntax: "<color>"; inherits: true; initial-value: #1d1d45; }
/* Where the sun and moon sit. Registered as numbers so they can animate too. */
@property --sky-x    { syntax: "<number>"; inherits: false; initial-value: 0.7; }
@property --sky-h    { syntax: "<number>"; inherits: false; initial-value: 0.5; }
@property --sky-sink { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --ink: #232849;
  --ink-2: #474c70;
  --ink-3: #6b6f90;
  --paper: #fbf6ec;
  --paper-2: #f4ead8;
  --paper-3: #e9dbc1;
  --card: #fffaf1;
  --kraft: #e3cba3;
  --kraft-ink: #6a4a1e;
  --gold: #e9b44c;
  --gold-soft: #f6dc9a;
  --gold-text: #8a5a0b;
  --clay: #c5623d;
  --clay-text: #a1461f;
  --sage: #7e9a7a;
  --sage-text: #4c6849;
  --rose: #e8a598;
  --rose-text: #a34a3c;
  --bluebonnet: #4a63b5;
  --night: #141942;
  --line: rgba(35, 40, 73, 0.16);
  --line-strong: rgba(35, 40, 73, 0.32);
  --shadow-sm: 0 1px 0 rgba(35, 40, 73, 0.05), 0 6px 14px -8px rgba(35, 40, 73, 0.35);
  --shadow: 0 2px 0 rgba(35, 40, 73, 0.04), 0 16px 30px -18px rgba(35, 40, 73, 0.5);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--bluebonnet);
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Gaegu", "Bradley Hand", "Comic Sans MS", cursive;

  /* Sky defaults (dusk) until sky.js takes over. */
  --sky-1: #232a63;
  --sky-2: #544d8a;
  --sky-3: #c27a86;
  --far: #3b3a6e;
  --near: #1d1d45;
  --stars: 0.7;
  --lights: 1;
  --sky-text: #fbf6ec;
  --sky-text-2: rgba(251, 246, 236, 0.82);
  --sky-halo: rgba(20, 25, 66, 0.55);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ebdc;
    --ink-2: #d4ccbd;
    --ink-3: #aaa4bd;
    --paper: #151939;
    --paper-2: #1c2146;
    --paper-3: #2a2f5a;
    --card: #1f244d;
    --kraft: #3b3962;
    --kraft-ink: #f0d9ae;
    --gold-text: #f2c66d;
    --clay-text: #f29a74;
    --sage-text: #a9c7a4;
    --rose-text: #f2b2a5;
    --line: rgba(243, 235, 220, 0.16);
    --line-strong: rgba(243, 235, 220, 0.3);
    --shadow-sm: 0 6px 14px -8px rgba(0, 0, 0, 0.6);
    --shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.8);
    --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--gold);
    color-scheme: dark;
  }
}

/* ---------- base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.12; }
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 650;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
ul, ol { padding-left: 1.2em; }
small, .small { font-size: 0.88rem; }
.muted { color: var(--ink-3); }
.hand { font-family: var(--font-hand); font-weight: 700; letter-spacing: 0.01em; }
.big { font-size: 1.5rem; }
.narrow { max-width: 780px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), 780px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
main { display: block; outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #232849; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.eyebrow { margin: 0 0 0.2em; font-size: 1.35rem; color: var(--clay-text); line-height: 1.2; }

/* stitched underline that sews itself in */
.stitched { position: relative; padding-bottom: 0.32em; }
.stitched::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: min(9em, 70%); height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 17px);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.js .stitched:not(.is-sewn)::after { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .js .stitched:not(.is-sewn)::after { transform: none; } }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.7em 1.3em;
  border-radius: 999px; border: 2px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 0 color-mix(in srgb, var(--b-bd) 70%, #000);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 color-mix(in srgb, var(--b-bd) 70%, #000); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 color-mix(in srgb, var(--b-bd) 70%, #000); }
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--gold { --b-bg: var(--gold); --b-fg: #232849; --b-bd: #b9861f; }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--sky-text); --b-bd: currentColor; box-shadow: none; }
.btn--ghost:hover { box-shadow: none; background: color-mix(in srgb, var(--sky-text) 12%, transparent); }
.btn--ghost-ink { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink); box-shadow: none; }
.btn--ghost-ink:hover { box-shadow: none; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn--small { min-height: 40px; padding: 0.5em 1em; font-size: 0.95rem; }
.btn--wide { width: 100%; }
@media (prefers-color-scheme: dark) {
  .btn--ink { --b-bg: var(--gold); --b-fg: #232849; --b-bd: #b9861f; }
}

.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.35em 0.85em; border-radius: 999px;
  border: 1.5px dashed var(--line-strong);
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.chip:hover { border-style: solid; border-color: var(--ink); }

.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--gold); }

/* ==========================================================================
   The sky
   ========================================================================== */
.sky {
  position: relative;
  isolation: isolate;
  color: var(--sky-text);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 62%, var(--sky-3) 100%);
  padding-bottom: clamp(96px, 15vw, 190px);
  overflow: hidden;
}
/* The sky is painted before the page first shows. Only later changes (each
   minute, or "Peek at tonight") get the slow fade, once .is-live is set. */
.sky.is-live { transition: --sky-1 2.5s, --sky-2 2.5s, --sky-3 2.5s, --far 2.5s, --near 2.5s, color 1s; }
.sky--hero { padding-bottom: clamp(120px, 15vw, 215px); }
.sky[data-tone="light"] {
  --sky-text: #232849;
  --sky-text-2: rgba(35, 40, 73, 0.8);
  --sky-halo: rgba(251, 246, 236, 0.6);
}

.sky__field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars); }
.sky.is-live .sky__stars { transition: opacity 2.5s; }
.sky__stars circle, .sky__stars .sparkle { fill: #fff8e4; }
.sky__stars .sparkle { fill: #ffe7a8; }
.tw { animation: twinkle 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tw2 { animation-duration: 4.6s; animation-delay: -1.3s; }
.tw3 { animation-duration: 2.7s; animation-delay: -2.1s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* The sun and moon.
   sky-core.js sets three numbers on each: --sky-x (0 east to 1 west), --sky-h
   (0 at the horizon to 1 overhead) and --sky-sink (0 to 1 below the horizon),
   plus data-show. These rules turn the numbers into a spot in whichever patch
   of sky the page has. Default patch: the right half of the header, low enough
   to rise from behind the skyline. */
.sky__sun, .sky__moon {
  --sky-x: 0.7; --sky-h: 0.5; --sky-sink: 0;
  position: absolute;
  left: calc(46% + 48% * var(--sky-x));
  top: calc(70% - 44% * var(--sky-h) + 26% * var(--sky-sink));
  translate: -50% -50%;
}
.sky__sun { width: clamp(54px, 7vw, 86px); aspect-ratio: 1; opacity: 0; }
.sky__sun::after { /* the disc */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff6d8 0 35%, #ffd98a 60%, #f5b55a 100%);
  box-shadow: 0 0 40px 18px rgba(255, 214, 140, 0.5), 0 0 120px 60px rgba(255, 214, 140, 0.25);
}
.sky__sun::before { /* a soft halo that slowly breathes */
  content: ""; position: absolute; inset: -80%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 165, 0.4) 0 26%, rgba(255, 224, 165, 0) 68%);
}
.sky__moon { width: clamp(46px, 5.4vw, 70px); aspect-ratio: 1; filter: drop-shadow(0 0 18px rgba(255, 243, 210, 0.45)); }
.sky__moon svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* only one is out at a time: the sun while it's up, the moon once it has set */
.sky__sun[data-show="1"], .sky__moon[data-show="1"] { opacity: 1; }
.sky__sun[data-show="0"], .sky__moon[data-show="0"] { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* when the page opens (and whenever one comes into view) it rises from below the horizon */
  .sky__sun, .sky__moon { animation: sky-rise 2.6s cubic-bezier(0.16, 0.84, 0.3, 1) 0.2s backwards; }
  /* later changes glide; the one going out of view sets first, then fades */
  .sky.is-live .sky__sun, .sky.is-live .sky__moon { transition: --sky-x 2s ease, --sky-h 2s ease, --sky-sink 2s ease, opacity 0.5s; }
  .sky.is-live .sky__sun[data-show="0"], .sky.is-live .sky__moon[data-show="0"] { transition: --sky-x 2s ease, --sky-h 2s ease, --sky-sink 2s ease, opacity 0.6s 1.5s; }
  /* and a little life afterwards */
  .sky__sun::before { animation: sun-halo 6s ease-in-out infinite; }
  .sky__moon svg { animation: moon-drift 9s ease-in-out infinite; }
  .sky__stars { animation: sky-fade 2.4s ease 0.1s backwards; }
}
@keyframes sky-rise { from { --sky-h: 0; --sky-sink: 1; } }
@keyframes sky-pop { from { opacity: 0; scale: 0.4; } }
@keyframes sky-fade { from { opacity: 0; } }
@keyframes sun-halo { 50% { transform: scale(1.25); opacity: 0.55; } }
@keyframes moon-drift { 50% { transform: translateY(-5px) rotate(-4deg); } }
.moon-shadow { fill: rgba(200, 205, 235, 0.12); }
.moon-lit { fill: #fbf1d0; }
.moon-crater { fill: rgba(190, 170, 120, 0.25); }

.sky__shooting { position: absolute; inset: 0; }
.shooting-star {
  position: absolute; width: 150px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 246, 220, 0), #fff6dc);
  transform: rotate(var(--angle, 18deg));
  transform-origin: right center;
  animation: shoot 1.4s ease-out forwards;
  pointer-events: auto;
  cursor: pointer;
}
.shooting-star::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 12px 4px rgba(255, 240, 200, 0.8); }
.shooting-star::before { content: ""; position: absolute; inset: -22px -10px; } /* easier to catch */
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  12% { opacity: 1; }
  100% { opacity: 0; translate: 280px 90px; }
}

/* the bottom scene */
.sky__scene {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(130px, 19vw, 270px);
  z-index: -1; pointer-events: none;
}
.sky--hero .sky__scene { height: clamp(160px, 19vw, 280px); }
.sc-hills { fill: var(--far); opacity: 0.55; }
.sc-city, .sc-house { fill: var(--far); }
.sc-tree, .sc-grackle { fill: var(--near); }
.sc-wire path { stroke: var(--near); stroke-width: 1.6; }
.sc-wire rect { fill: var(--near); }
.sc-window { fill: color-mix(in srgb, #ffd98a calc(var(--lights) * 100%), var(--far)); }
.sc-pole { fill: var(--near); }
.sc-roof { fill: #2f3a7a; stroke: var(--near); stroke-width: 2; }
.sc-roof-stripe { fill: #3f4c98; }
.sc-valance { fill: #e9b44c; stroke: var(--near); stroke-width: 1.5; }
.sc-sign { fill: #fbf6ec; }
.sc-table { fill: var(--near); }
.sc-cloth { fill: #c5623d; }
.sc-item--moon { fill: #f6dc9a; }
.sc-item--lamp { fill: #4a63b5; }
.sc-item--dragon { fill: #4d8f86; }
.sc-item--star { fill: #e9b44c; }
.sc-tent-glow { opacity: calc(var(--lights) * 0.85); mix-blend-mode: screen; }
.sc-cord { stroke: var(--near); stroke-width: 1.4; }
.sc-bulb { fill: color-mix(in srgb, #ffe2a0 calc(var(--lights) * 100%), #cfc8b8); }
.sc-halo { opacity: var(--lights); }
.sky.is-live :is(.sc-window, .sc-bulb) { transition: fill 2s; }
.sky.is-live :is(.sc-tent-glow, .sc-halo) { transition: opacity 2s; }
.sc-ground { fill: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .sc-bulb.b1 { animation: bulb 2.8s ease-in-out infinite; }
  .sc-bulb.b2 { animation: bulb 3.6s ease-in-out -1.2s infinite; }
}
@keyframes bulb { 50% { opacity: 0.55; } }

/* top bar */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding-block: 18px;
  position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; transition: transform 0.6s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand__mark { transform: rotate(-18deg) scale(1.06); }
.brand__star { fill: var(--gold); stroke: #8a5a0b; stroke-width: 1.5; stroke-linejoin: round; }
.brand__stitch { fill: none; stroke: #fff4d6; stroke-width: 1.6; stroke-dasharray: 2.6 2.6; stroke-linecap: round; }
.brand__word {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; white-space: nowrap;
  text-shadow: 0 1px 10px var(--sky-halo);
}
.brand__word em { font-style: italic; font-weight: 500; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-weight: 650; text-decoration: none; color: inherit;
  text-shadow: 0 1px 8px var(--sky-halo);
}
.site-nav a:hover { background: color-mix(in srgb, var(--sky-text) 14%, transparent); }
.site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--sky-text) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky-text) 45%, transparent); }

.tote-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--paper); color: #232849;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
@media (prefers-color-scheme: dark) { .tote-btn { background: #fbf6ec; } }
.tote-btn .i-tote { width: 28px; height: 28px; }
.tote-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--clay); color: #fff; font-size: 0.8rem;
}
.tote-btn.is-bump { animation: bump 0.5s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 40% { transform: scale(1.15) rotate(-6deg); } }

.i-tote { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.i-tote__bag { fill: #f4ead8; stroke: #232849; }
.i-tote__handle { stroke: #c5623d; stroke-width: 2.2; }
.i-tote__star { fill: #e9b44c; stroke: #8a5a0b; stroke-width: 0.8; }

.menu-btn { display: none; }

@media (max-width: 940px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 999px; min-height: 42px;
    border: 1.5px solid color-mix(in srgb, var(--sky-text) 55%, transparent);
    background: transparent; color: inherit; font: 700 0.95rem var(--font-body); cursor: pointer;
  }
  .menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after {
    display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform 0.2s;
  }
  .menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; }
  .menu-btn__lines::before { top: -5px; }
  .menu-btn__lines::after { top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: translateY(-5px) rotate(-45deg); }

  .topbar { flex-wrap: wrap; }
  .site-nav { order: 10; width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; animation: drop 0.25s ease-out; }
  .site-nav ul {
    flex-direction: column; gap: 2px; padding: 10px;
    background: var(--paper); color: var(--ink);
    border-radius: 18px; box-shadow: var(--shadow);
  }
  .site-nav a { text-shadow: none; padding: 12px 14px; font-size: 1.1rem; }
  .site-nav a:hover { background: var(--paper-2); }
  .site-nav a[aria-current="page"] { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--gold); border-radius: 10px; }
  .no-js .site-nav ul { flex-wrap: wrap; flex-direction: row; }
}
@media (max-width: 420px) {
  .brand__word { font-size: 1.12rem; }
  .brand__mark { width: 34px; height: 34px; }
  .tote-btn__label, .menu-btn__label { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* readout */
.sky__readout {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 4px; font-size: 0.95rem;
  color: var(--sky-text-2);
}
.sky__readout p { margin: 0; text-shadow: 0 1px 8px var(--sky-halo); }
.sky__place {
  font-weight: 700; color: var(--sky-text); margin-right: 6px;
  padding-right: 10px; border-right: 1.5px solid color-mix(in srgb, var(--sky-text) 35%, transparent);
}
.sky__peek {
  border: 1.5px dashed color-mix(in srgb, var(--sky-text) 55%, transparent);
  background: transparent; color: var(--sky-text);
  border-radius: 999px; padding: 4px 12px; font: 600 0.85rem var(--font-body); cursor: pointer;
}
.sky__peek:hover { border-style: solid; }

/* hero */
.hero {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px); align-items: stretch;
  padding-block: clamp(14px, 3vw, 36px) clamp(14px, 2vw, 24px);
}
.hero__text { position: relative; z-index: 1; }
.hero__side { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; min-width: 0; }
/* The open patch of sky above the ticket. The horizon is the ticket's top edge,
   so the sun and moon rise from behind it and set behind it. */
.hero__sky { position: relative; flex: 1; align-self: stretch; min-height: clamp(150px, 16vw, 230px); }
.hero__sky .sky__sun, .hero__sky .sky__moon {
  left: calc(14% + 72% * var(--sky-x));
  top: calc(84% - 74% * var(--sky-h) + 50% * var(--sky-sink));
}
.hero__side .ticket { position: relative; z-index: 1; }
.hero__hello { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin: 0 0 0.2em; color: var(--sky-text); opacity: 0.95; }
.hero__title { color: var(--sky-text); text-shadow: 0 2px 22px var(--sky-halo); max-width: 17ch; font-size: clamp(2.2rem, 1.4rem + 2.9vw, 3.75rem); }
.hero__lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); max-width: 34em; color: var(--sky-text-2); text-shadow: 0 1px 12px var(--sky-halo); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__side { align-items: flex-start; }
  /* phones: no room for a patch of sky, so the sun or moon tucks in beside the greeting */
  .hero__sky { position: static; flex: none; min-height: 0; }
  .hero__sky .sky__sun, .hero__sky .sky__moon { top: 30px; left: calc(80% + 10% * var(--sky-x)); }
  .hero__sky .sky__moon { width: 42px; }
  .hero__sky .sky__sun { width: 40px; }
  .hero__sky .sky__sun::after { box-shadow: 0 0 24px 10px rgba(255, 214, 140, 0.45); }
}
/* phones have no horizon in that corner, so it pops in instead of rising */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .hero__sky .sky__sun, .hero__sky .sky__moon { animation: sky-pop 1.1s cubic-bezier(0.2, 1.3, 0.4, 1) 0.25s backwards; }
}

/* ticket (next market) */
.ticket {
  --stub: 86px;
  /* the shadow is on the outside so it follows the notched shape */
  filter: drop-shadow(0 18px 22px rgba(10, 12, 40, 0.35));
  transform: rotate(1.2deg);
  max-width: 440px; justify-self: end; width: 100%;
}
.ticket__paper {
  display: grid; grid-template-columns: var(--stub) 1fr;
  background: var(--card); color: var(--ink);
  border-radius: 16px;
  /* two half-circle notches punched out where the stub tears off;
     the sky shows through, whatever colour it is right now */
  -webkit-mask:
    radial-gradient(circle 9px at var(--stub) 0, #0000 8.5px, #000 9px) top / 100% 51% no-repeat,
    radial-gradient(circle 9px at var(--stub) 100%, #0000 8.5px, #000 9px) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 9px at var(--stub) 0, #0000 8.5px, #000 9px) top / 100% 51% no-repeat,
    radial-gradient(circle 9px at var(--stub) 100%, #0000 8.5px, #000 9px) bottom / 100% 51% no-repeat;
}
.ticket__stub {
  display: grid; place-content: center; text-align: center; gap: 0;
  border-right: 2px dashed var(--line-strong);
  background: var(--gold-soft); color: #232849;
  border-radius: 16px 0 0 16px; padding: 12px 6px;
  font-family: var(--font-display); line-height: 1;
}
.ticket__wk, .ticket__mo { font: 700 0.8rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.ticket__day { font-size: 2.6rem; font-weight: 800; margin: 4px 0; }
.ticket__body { padding: 16px 18px 14px; }
.ticket__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 2px; }
.ticket__when { font-size: 1.35rem; color: var(--clay-text); margin: 0; line-height: 1.2; }
.ticket__name { font-size: 1.3rem; margin: 2px 0 6px; }
.ticket__name a { text-decoration: none; }
.ticket__name a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.ticket__meta { font-size: 0.95rem; color: var(--ink-2); margin: 0 0 10px; }
.ticket__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; font-weight: 700; font-size: 0.95rem; }
@media (prefers-color-scheme: dark) { .ticket__stub { background: #e9b44c; } }
@media (max-width: 860px) { .ticket { justify-self: start; transform: rotate(-0.8deg); } }

/* ==========================================================================
   Sections & shared layout
   ========================================================================== */
.section { padding-block: clamp(40px, 7vw, 88px) 0; }
.section:last-child { padding-bottom: clamp(48px, 7vw, 96px); }
main > .section:last-child { padding-bottom: clamp(56px, 8vw, 110px); }
.section-head { margin-bottom: clamp(20px, 3vw, 34px); max-width: 720px; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.section-head__lede { color: var(--ink-2); font-size: 1.1rem; margin: 0.4em 0 0; }

.page-head { padding-top: clamp(10px, 2vw, 24px); margin-bottom: clamp(26px, 4vw, 44px); }
.page-head__lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 40em; color: var(--ink-2); }
.page-head--split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 32px; align-items: center; }
.page-head__sky {
  background: radial-gradient(120% 100% at 30% 20%, #2e3576, #141942);
  border-radius: 24px; padding: 18px; box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
@media (max-width: 760px) {
  .page-head--split { grid-template-columns: 1fr; }
  .page-head__sky { max-width: 300px; order: -1; }
}

.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.9rem; color: var(--ink-3); }
.crumbs li + li::before { content: "✦"; margin: 0 8px 0 4px; color: var(--gold); font-size: 0.7em; vertical-align: 2px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.small-h { font-size: 1.3rem; margin-top: 2em; }

/* ---------- craft constellations (home) ----------------------------------- */
.crafts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 820px) { .crafts { grid-template-columns: 1fr; } }
.craft__card {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: 100%;
  text-decoration: none; color: inherit;
  background: var(--card); border-radius: 22px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.craft__card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow); }
.craft__sky {
  position: relative; display: block;
  background: radial-gradient(120% 120% at 20% 10%, #343c80 0%, #1a1f4d 55%, #121638 100%);
  padding: 18px 18px 8px; aspect-ratio: 5 / 3.4;
}
.craft__sky::before { /* faint background stars */
  content: ""; position: absolute; inset: 0; opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 64% 76%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 36%, #fff 50%, transparent 51%);
}
.craft__sky .constellation { position: relative; width: 100%; height: 100%; }
.craft__const { position: absolute; left: 18px; bottom: 10px; color: var(--gold-soft); font-size: 1.25rem; }
.craft__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 20px 22px; align-content: start; }
.craft__name { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.5rem; font-weight: 650; line-height: 1.1; }
.craft__teaser { color: var(--ink-2); }
.craft__more { font-weight: 700; margin-top: 6px; color: var(--clay-text); }

.constellation line {
  stroke: #f6dc9a; stroke-width: 1.2; stroke-linecap: round;
  stroke-dasharray: 0.06 0.035; opacity: 0.75;
}
.constellation line.faint { stroke-width: 0.8; opacity: 0.42; }
.constellation circle { fill: #fff6dc; }
.constellation .glow { fill: rgba(255, 226, 150, 0.16); }
@media (prefers-reduced-motion: no-preference) {
  .js .craft__card .constellation line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.5s ease calc(var(--i) * 0.04s); }
  .js .craft__card.is-seen .constellation line,
  .js .craft__card:hover .constellation line { stroke-dashoffset: 0; }
  .constellation .glow { animation: twinkle 3s ease-in-out infinite; }
}

/* ---------- hang tags (products) ----------------------------------------- */
.tags {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(22px, 3vw, 36px) clamp(16px, 2.4vw, 28px);
}
.tag-wrap { transform: rotate(var(--tilt, 0deg)); transition: transform 0.35s cubic-bezier(.3,1.4,.5,1); }
.tag-wrap:hover, .tag-wrap:focus-within { transform: rotate(0deg) translateY(-4px); }
.tag {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  filter: drop-shadow(0 10px 14px rgba(35, 40, 73, 0.16)) drop-shadow(0 1px 0 rgba(35, 40, 73, 0.08));
}
.tag::before { /* the tag shape, with clipped top corners */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--card);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
  border-radius: 0 0 14px 14px;
}
.tag__hole {
  position: absolute; top: 12px; left: 50%; translate: -50% 0; z-index: 2;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 3px var(--kraft), inset 0 2px 2px rgba(0,0,0,.15);
}
.tag__string {
  position: absolute; top: -26px; left: calc(50% - 30px); width: 60px; height: 50px; z-index: 3;
  fill: none; stroke: var(--clay); stroke-width: 2.2; stroke-linecap: round;
}
.tag__pic { display: block; margin: 34px 14px 0; border-radius: 12px; overflow: hidden; }
.tag__pic img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6%; transition: transform 0.4s cubic-bezier(.3,1.4,.5,1); }
.tag-wrap:hover .tag__pic img { transform: scale(1.05) rotate(-2deg); }
.tag__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; flex: 1; }
.tag__name { font-size: 1.22rem; margin: 2px 0 0; }
.tag__name a { text-decoration: none; }
.tag__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole tag clickable */
.tag__name a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.tag__blurb { color: var(--ink-2); font-size: 0.96rem; margin: 0; }
.tag__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.tag__price { font-size: 1.85rem; line-height: 1; color: var(--ink); }

.tote-add {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 7px 14px; min-height: 40px;
  font: 700 0.9rem var(--font-body); cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.tote-add:hover { background: var(--ink); color: var(--paper); }
.tote-add.is-in { background: var(--sage); border-color: var(--sage); color: #fff; }
.tote-add--ask { border-style: dashed; }
.no-js [data-add-to-tote] { display: none; }

.stamp {
  align-self: flex-start;
  display: inline-block; margin: 0;
  padding: 2px 10px; border-radius: 6px;
  font: 700 0.72rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  border: 1.5px solid currentColor; transform: rotate(-2deg);
}
.stamp--on-the-table { color: var(--sage-text); }
.stamp--made-to-order { color: var(--gold-text); }
.stamp--sold-out { color: var(--rose-text); }

/* fabric / filament swatches behind product art */
.swatch { background-color: #f6e3dc; }
.swatch--sewn {
  background-color: #f8e6df;
  background-image:
    linear-gradient(90deg, rgba(232, 165, 152, 0.38) 50%, transparent 50%),
    linear-gradient(rgba(232, 165, 152, 0.38) 50%, transparent 50%);
  background-size: 26px 26px;
}
.swatch--3d-printed {
  background-color: #e6ebf5;
  background-image: repeating-linear-gradient(0deg, #e6ebf5 0 5px, #d7deef 5px 6px);
}
.swatch--odds-and-ends {
  background-color: #f3ead6;
  background-image:
    radial-gradient(circle at 20% 30%, #e8a598 0 3px, transparent 3.5px),
    radial-gradient(circle at 70% 20%, #7e9a7a 0 2.5px, transparent 3px),
    radial-gradient(circle at 45% 75%, #e9b44c 0 3px, transparent 3.5px),
    radial-gradient(circle at 85% 65%, #a99bd6 0 2px, transparent 2.5px),
    radial-gradient(circle at 10% 85%, #4a63b5 0 2px, transparent 2.5px);
  background-size: 64px 64px;
}

/* ---------- catalog tools ------------------------------------------------- */
.table-tools {
  display: grid; gap: 12px;
  margin-bottom: clamp(26px, 4vw, 44px);
  padding: 18px; border-radius: 18px;
  background: var(--paper-2); border: 1.5px dashed var(--line-strong);
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group__label { font-family: var(--font-hand); font-weight: 700; font-size: 1.25rem; min-width: 5.2em; color: var(--clay-text); }
.pill {
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; min-height: 38px;
  font: 600 0.92rem var(--font-body); cursor: pointer; transition: all 0.15s;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.table-tools__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 6px; border-top: 1.5px dashed var(--line); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.sort select { min-height: 40px; }
.table-count { margin: 0 0 0 auto; color: var(--ink-3); font-size: 0.95rem; }
.table-empty { text-align: center; padding: 40px 0; }
.table-empty .hand { font-size: 1.8rem; margin: 0; }
.tag-wrap.is-hidden { display: none; }

.cat-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.cat-links a {
  display: grid; gap: 4px; height: 100%;
  padding: 18px 20px; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--line);
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.cat-links a:hover { border-color: var(--ink); transform: translateY(-2px); }
.cat-links strong { font-family: var(--font-display); font-size: 1.2rem; }
.cat-links span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- product page -------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.product__pic {
  position: relative; border-radius: 26px; padding: 8%;
  box-shadow: var(--shadow); transform: rotate(-1.2deg);
  border: 8px solid var(--card);
}
.product__pic img { width: 100%; aspect-ratio: 1; }
.product__pin { position: absolute; top: -12px; left: 50%; width: 26px; height: 26px; border-radius: 50%; translate: -50% 0; background: radial-gradient(circle at 35% 35%, #f19a7a, #c5623d 60%, #8e3d20); box-shadow: 0 4px 6px rgba(0,0,0,.25); }
.product__name { margin: 10px 0 4px; }
.product__price { font-size: 1rem; margin-bottom: 1.2em; }
.product__price .hand { font-size: 2.4rem; color: var(--ink); margin-right: 6px; }
.product__note {
  font-size: 1.35rem; color: var(--clay-text); line-height: 1.3;
  padding: 10px 16px; margin: 1.2em 0;
  background: var(--paper-2); border-radius: 10px; border-left: 4px solid var(--gold);
  transform: rotate(-0.6deg);
}
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0.6em; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 1.6em 0 0; padding: 18px 0 0; border-top: 1.5px dashed var(--line-strong); }
.specs dt { font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; color: var(--clay-text); }
.specs dd { margin: 0; }

/* ---------- tote how-to ---------------------------------------------------- */
.tote-how__inner {
  display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--paper-2); border-radius: 28px; padding: clamp(24px, 4vw, 48px);
  border: 2px dashed var(--line-strong);
}
@media (max-width: 720px) { .tote-how__inner { grid-template-columns: 1fr; } .tote-how__art { max-width: 200px; } }
.tote-how__art svg { width: 100%; }
.th-bag { fill: #f4ead8; stroke: #232849; stroke-width: 5; stroke-linejoin: round; }
.th-handle { fill: none; stroke: #c5623d; stroke-width: 9; stroke-linecap: round; }
.th-stitch { fill: none; stroke: #c9b48c; stroke-width: 3; stroke-dasharray: 8 7; stroke-linecap: round; }
.th-tag { fill: #e3cba3; stroke: #232849; stroke-width: 3; stroke-linejoin: round; }
.th-tag-hole { fill: #232849; }
.th-star { fill: #e9b44c; stroke: #232849; stroke-width: 4; stroke-linejoin: round; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 38px; height: 38px; display: grid; place-items: center;
  font: 800 1.1rem var(--font-display);
  background: var(--gold); color: #232849; border-radius: 50%;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  width: 42px; height: 42px; padding-top: 4px;
}
.steps--small li { padding-left: 46px; font-size: 0.97rem; }
.steps--small li::before { width: 36px; height: 36px; font-size: 0.95rem; }

/* ---------- letter ---------------------------------------------------------- */
.letter {
  max-width: 720px; margin-inline: auto;
  background:
    linear-gradient(transparent 0 calc(1.75em - 1px), rgba(74, 99, 181, 0.16) calc(1.75em - 1px) 1.75em) 0 0.6em / 100% 1.75em,
    var(--card);
  line-height: 1.75;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px);
  border-radius: 6px; box-shadow: var(--shadow);
  transform: rotate(-0.7deg);
  position: relative;
}
.letter::before { /* washi tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 130px; height: 30px; translate: -50% 0; rotate: 3deg;
  background: repeating-linear-gradient(45deg, rgba(233, 180, 76, 0.75) 0 8px, rgba(246, 220, 154, 0.75) 8px 16px);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.letter__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.letter p { margin-bottom: 1.75em; }
.letter__sign { font-size: 1.7rem; color: var(--clay-text); margin: 0 !important; text-align: right; }

/* ---------- market tickets ------------------------------------------------- */
.mtickets { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.mtickets--peek { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mticket {
  display: grid; grid-template-columns: 82px 1fr;
  background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  position: relative; scroll-margin-top: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mticket.is-hot, .mticket:target { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent), var(--shadow); }
.mticket__stub {
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--paper-2); border-right: 2px dashed var(--line-strong); border-radius: 16px 0 0 16px;
  font-family: var(--font-display); padding: 10px 4px;
}
.mticket__wk, .mticket__mo { font: 700 0.75rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mticket__day { font-size: 2.2rem; font-weight: 800; margin: 4px 0; }
.mticket__body { padding: 14px 18px 16px; }
.mticket__soon { margin: 0; color: var(--clay-text); font-size: 1.2rem; line-height: 1.2; min-height: 0; }
.mticket__soon:empty { display: none; }
.mticket__name { margin: 2px 0 6px; font-size: 1.25rem; }
.mticket__meta { font-size: 0.95rem; color: var(--ink-2); margin: 0 0 8px; }
.mticket__note { font-size: 0.95rem; margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--gold); }
.mticket__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mticket__thanks { margin: 0; color: var(--sage-text); font-size: 1.15rem; }
.mticket.is-past { opacity: 0.72; }
.mticket.is-past .mticket__stub { background: transparent; }
.mticket.is-today .mticket__stub { background: var(--gold); color: #232849; }
.mticket.is-today .mticket__wk, .mticket.is-today .mticket__mo { color: #232849; }

.local-note { margin-top: 26px; max-width: 760px; color: var(--ink-2); }

/* market page */
.subscribe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 1.2em; }
.market-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .market-layout { grid-template-columns: 1fr; } }
.starchart {
  margin: 0; position: sticky; top: 20px;
  background: radial-gradient(120% 90% at 50% 40%, #252c68 0%, #161a45 60%, #10132f 100%);
  border-radius: 26px; padding: 14px; box-shadow: var(--shadow);
  color: #f3ebdc;
}
@media (max-width: 900px) { .starchart { position: relative; top: 0; } .starchart svg { max-height: 74vh; } }
.starchart svg { width: 100%; height: auto; display: block; margin-inline: auto; }
.starchart__cap { padding: 10px 8px 4px; font-size: 0.95rem; color: rgba(243, 235, 220, 0.85); }
.starchart__cap .hand { color: #f6dc9a; font-size: 1.2rem; }
.sc-grid line, .sc-grid circle { stroke: rgba(246, 220, 154, 0.08); stroke-width: 1; fill: none; }
.sc-grid circle { stroke-dasharray: 3 6; }
.sc-river { fill: none; stroke: rgba(130, 160, 230, 0.4); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sc-river-label { fill: rgba(150, 175, 235, 0.6); font: italic 13px var(--font-display); letter-spacing: 0.05em; }
.sc-towns circle { fill: rgba(243, 235, 220, 0.5); }
.sc-towns text { fill: rgba(243, 235, 220, 0.6); font: 600 14px var(--font-body); }
.sc-capitol { fill: rgba(243, 235, 220, 0.75); }
.sc-towns .sc-austin { fill: rgba(243, 235, 220, 0.8); font: 800 13px var(--font-body); letter-spacing: 0.12em; }
.sc-thread { fill: none; stroke: #e9b44c; stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; opacity: 0.85; }
.sc-mk { cursor: pointer; }
.sc-mk__star { fill: #f6dc9a; stroke: #e9b44c; stroke-width: 1.5; stroke-linejoin: round; transition: transform 0.3s; }
.sc-mk__glow { opacity: 0.6; }
.sc-mk__label { fill: #fbf1d0; font: 700 18px var(--font-hand); paint-order: stroke; stroke: #161a45; stroke-width: 4px; }
.sc-mk.is-past .sc-mk__star { fill: none; stroke: rgba(246, 220, 154, 0.45); }
.sc-mk.is-next .sc-mk__star { fill: #ffd56b; }
.sc-mk:hover .sc-mk__star, .sc-mk.is-hot .sc-mk__star, .sc-mk:focus .sc-mk__star { transform: scale(1.45); }
@media (prefers-reduced-motion: no-preference) {
  .sc-mk.is-next .sc-mk__glow { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes pulse { 50% { transform: scale(1.5); opacity: 0.25; } }
.sc-compass circle { fill: none; stroke: rgba(246, 220, 154, 0.35); stroke-dasharray: 2 4; }
.sc-compass path { fill: rgba(246, 220, 154, 0.7); }
.sc-compass text { fill: rgba(246, 220, 154, 0.8); font: 700 13px var(--font-body); }

.past-markets { margin-top: 28px; }
.past-markets summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.past-markets .mtickets { margin-top: 12px; }
.organizer-note { margin-top: 32px; padding: 20px 22px; border-radius: 16px; border: 2px dashed var(--line-strong); }
.organizer-note h2 { font-size: 1.3rem; }
.organizer-note p { margin: 0; }

/* ---------- wish banner ---------------------------------------------------- */
.wish-banner__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); gap: 24px; align-items: center;
  background: radial-gradient(120% 140% at 10% 0%, #343c80 0%, #1a1f4d 60%, #141838 100%);
  color: #f3ebdc; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.wish-banner__inner::before {
  content: ""; position: absolute; inset: 0; opacity: 0.7; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 56% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 90% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 50%, #fff 50%, transparent 51%);
}
.wish-banner .eyebrow { color: #f6dc9a; }
.wish-banner h2 { color: #fbf6ec; }
.wish-banner p { max-width: 38em; color: rgba(243, 235, 220, 0.9); }
.wish-banner__star { width: 100%; max-width: 200px; justify-self: center; }
.wish-banner__star path:first-child { fill: #e9b44c; stroke: #fbf1d0; stroke-width: 3; stroke-linejoin: round; }
.wish-banner__stitch { fill: none; stroke: #fff4d6; stroke-width: 2.5; stroke-dasharray: 5 5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .wish-banner__star { animation: float 6s ease-in-out infinite; } }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }
@media (max-width: 640px) { .wish-banner__inner { grid-template-columns: 1fr; } .wish-banner__star { max-width: 110px; order: -1; justify-self: start; } }

.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 24px; border-radius: 18px;
  background: var(--paper-2); border: 1.5px dashed var(--line-strong);
}
.cta-strip p { margin: 0; max-width: 46em; }

/* ---------- forms ---------------------------------------------------------- */
.field { display: grid; gap: 6px; align-content: start; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend, .field > span { font-weight: 700; }
.field small, .field-hint { color: var(--ink-3); font-weight: 400; }
.field-hint { margin: 4px 0 0; color: var(--clay-text); font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 46px;
  font: 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bluebonnet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bluebonnet) 25%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--clay); }
::placeholder { color: var(--ink-3); opacity: 0.8; }
.form-note { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink-3); }
.form-note.is-error { color: var(--clay-text); font-weight: 600; }
.form-note.is-ok { color: var(--sage-text); font-weight: 700; }

/* choice cards */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .choice-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .choice-cards { grid-template-columns: 1fr; } }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span {
  display: grid; gap: 2px; height: 100%;
  padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--card);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.choice small { color: var(--ink-3); font-size: 0.86rem; }
.choice--small > span { padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.choice:hover > span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--gold-soft); color: #232849; box-shadow: 0 3px 0 var(--ink); transform: translateY(-1px); }
.choice input:checked + span small { color: #474c70; }
.choice input:focus-visible + span { box-shadow: var(--focus); }

.swatches legend { margin-bottom: 8px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.swatch-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch-chip__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); position: relative; }
.swatch-chip:has(input:checked) { border-color: var(--ink); background: var(--gold-soft); color: #232849; }
.swatch-chip:has(input:checked) .swatch-chip__dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.swatch-chip:has(input:focus-visible) { box-shadow: var(--focus); }

/* ---------- wish page ------------------------------------------------------ */
.wish-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .wish-layout { grid-template-columns: 1fr; } .wish-side { order: -1; } }
.wish-form {
  background: var(--card); border-radius: 24px; padding: clamp(20px, 4vw, 40px);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.wish-step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.wish-step > legend { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.5rem; font-weight: 650; margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 10px; }
.wish-step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #232849; font-size: 1rem; flex: none; }
.js .wish-form.is-stepped .wish-step { display: none; }
.js .wish-form.is-stepped .wish-step.is-current { display: block; animation: drop 0.3s ease-out; }
.wish-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wish-nav [data-wish-next], .wish-nav [data-wish-submit] { margin-left: auto; }

.wish-progress { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 6px; counter-reset: wp; }
.wish-progress li { flex: 1; font-size: 0.82rem; font-weight: 700; color: var(--ink-3); text-align: center; padding-top: 30px; position: relative; }
.wish-progress li::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 22px; height: 22px;
  background: var(--paper-3);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background 0.3s, transform 0.3s;
}
.wish-progress li::after { content: ""; position: absolute; top: 10px; left: calc(50% + 16px); right: calc(-50% + 16px); border-top: 2px dashed var(--line-strong); }
.wish-progress li:last-child::after { display: none; }
.wish-progress li.is-done::before, .wish-progress li.is-current::before { background: var(--gold); }
.wish-progress li.is-current { color: var(--ink); }
.wish-progress li.is-current::before { transform: translateX(0) scale(1.25) rotate(12deg); }

.wish-side { position: sticky; top: 20px; display: grid; gap: 24px; }
@media (max-width: 900px) { .wish-side { position: static; } }
.wish-card {
  position: relative; min-height: 220px;
  padding: 26px 26px 22px;
  background:
    linear-gradient(transparent 0 calc(2em - 1px), rgba(74, 99, 181, 0.18) calc(2em - 1px) 2em) 0 1.2em / 100% 2em,
    #fffaf0;
  color: #232849; line-height: 2em; font-size: 1.3rem;
  border-radius: 6px; box-shadow: var(--shadow);
  transform: rotate(1.4deg);
  transition: transform 0.4s;
}
.wish-card::before {
  content: ""; position: absolute; top: -12px; right: 30px; width: 100px; height: 26px; rotate: -4deg;
  background: repeating-linear-gradient(-45deg, rgba(232,165,152,.8) 0 8px, rgba(242,196,184,.8) 8px 16px);
}
.wish-card p { margin: 0; }
.wish-card__text { min-height: 4em; }
.wish-card__from { text-align: right; color: var(--clay); }
.wish-card__colors { display: flex; gap: 6px; margin-top: 8px; min-height: 18px; }
.wish-card__colors span { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.15); }
.wish-card.is-sending { animation: wish-send 1.4s cubic-bezier(.5,0,.6,1) forwards; }
@keyframes wish-send {
  0% { transform: rotate(1.4deg); }
  30% { transform: scale(0.6) rotate(-8deg); opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  60% { transform: scale(0.25) rotate(40deg); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: #e9b44c; }
  100% { transform: translateY(-120vh) scale(0.2) rotate(140deg); opacity: 0.2; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: #e9b44c; }
}
.wish-how { background: var(--paper-2); border-radius: 20px; padding: 22px; border: 1.5px dashed var(--line-strong); }
.wish-how h2 { font-size: 1.35rem; }

/* ---------- Q&A -------------------------------------------------------------- */
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq-group { margin-bottom: clamp(30px, 5vw, 56px); scroll-margin-top: 20px; }
.qa-list { display: grid; gap: 10px; }
.qa { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; font-weight: 700; font-size: 1.05rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: transform 0.3s;
}
.qa[open] summary::after { transform: rotate(144deg) scale(1.15); }
.qa[open] { border-color: var(--line-strong); }
.qa__a { padding: 0 18px 4px; color: var(--ink-2); }

/* ---------- about ------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-block { background: var(--card); border-radius: 22px; padding: clamp(22px, 3vw, 34px); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.about-block:nth-child(2) { transform: rotate(0.6deg); }
.about-block:nth-child(3) { transform: rotate(-0.5deg); }
.about-block h2 { font-size: 1.55rem; }
.machines { display: grid; gap: 16px; margin: 0; }
.machines dt { font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; color: var(--clay-text); }
.machines dd { margin: 0; }
.promises { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0; }
.promises li { padding-left: 30px; position: relative; }
.promises li::before { content: "✦"; position: absolute; left: 4px; top: 0; color: var(--gold); }

/* ---------- tote drawer & page ---------------------------------------------- */
.tote-drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  box-shadow: -20px 0 50px -20px rgba(10, 12, 40, 0.5);
}
.tote-drawer::backdrop { background: rgba(16, 19, 47, 0.45); backdrop-filter: blur(2px); }
.tote-drawer[open] { animation: slide-in 0.3s cubic-bezier(.2,.8,.2,1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.tote-drawer__inner { display: flex; flex-direction: column; height: 100%; }
.tote-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1.5px dashed var(--line-strong); }
.tote-drawer__head h2 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.tote-drawer__head .i-tote { width: 34px; height: 34px; }
.tote-drawer__close { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.tote-drawer__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tote-drawer__body { padding: 18px 20px 30px; overflow-y: auto; flex: 1; }
.tote-drawer__intro { color: var(--ink-2); font-size: 0.97rem; }

.tote-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.tote-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); }
.tote-item img { width: 56px; height: 56px; border-radius: 10px; padding: 4px; }
.tote-item__name { font-weight: 700; line-height: 1.2; text-decoration: none; }
.tote-item__price { font-family: var(--font-hand); font-weight: 700; font-size: 1.25rem; color: var(--ink-2); }
.tote-qty { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.tote-qty button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font: 700 1.1rem var(--font-body); cursor: pointer; }
.tote-qty button:hover { background: var(--paper-2); }
.tote-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.tote-total { font-weight: 700; padding: 10px 0 16px; border-bottom: 1.5px dashed var(--line-strong); margin-bottom: 18px; }
.tote-total .hand { font-size: 1.5rem; }
.tote-empty { color: var(--ink-2); }
.js [data-tote-items].is-filled { background: var(--paper-2); font-size: 0.92rem; }

.tote-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .tote-page { grid-template-columns: 1fr; } }
.tote-page__form { background: var(--card); border-radius: 24px; padding: clamp(20px, 3vw, 32px); border: 1.5px solid var(--line); }

.tote-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px 10px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 800;
  box-shadow: 0 10px 24px -8px rgba(10, 12, 40, 0.6);
  animation: drop 0.3s ease-out;
}
@media (prefers-color-scheme: dark) { .tote-float { background: var(--gold); color: #232849; } }
.tote-float .i-tote { width: 30px; height: 30px; }
.tote-float.is-bump { animation: bump 0.5s cubic-bezier(.3,1.8,.5,1); }

/* toasts */
.toast-shelf { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 120; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: #232849; color: #fbf6ec; padding: 12px 14px 12px 18px; border-radius: 14px;
  box-shadow: 0 14px 30px -10px rgba(10, 12, 40, 0.6);
  animation: toast-in 0.35s cubic-bezier(.3,1.4,.5,1);
}
.toast a, .toast button { color: #f6dc9a; font-weight: 700; background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.toast.is-leaving { animation: toast-out 0.3s ease-in forwards; }
@keyframes toast-in { from { transform: translateY(14px) scale(0.96); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }

/* ---------- small pages ------------------------------------------------------ */
.thanks, .lost, .hello { text-align: center; padding-block: clamp(20px, 5vw, 60px) clamp(60px, 8vw, 110px); }
.thanks__star { width: 110px; margin: 0 auto 16px; }
.thanks__star path { fill: var(--gold); stroke: #8a5a0b; stroke-width: 3; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .thanks__star { animation: float 5s ease-in-out infinite; } }
.thanks .btn, .lost .btn { margin: 6px; }
.lost__star { width: 200px; margin: 0 auto 10px; overflow: visible; }
.lost__trail { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 6 8; stroke-linecap: round; }
.lost__body { fill: var(--gold); stroke: #8a5a0b; stroke-width: 2.5; stroke-linejoin: round; }
.lost__star circle { fill: #232849; }
.lost__mouth { fill: none; stroke: #232849; stroke-width: 2; stroke-linecap: round; }
.hello-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; text-align: left; }
.hello-list a { display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; }
.hello-list a:hover { border-color: var(--ink); }
.hello-list span { color: var(--ink-2); }

.guide-section .section-head { margin-bottom: 26px; }

/* ---------- stitch divider --------------------------------------------------- */
.stitch-divider { display: block; width: 100%; height: 30px; }
.stitch-divider path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 0.012 0.008; stroke-linecap: round; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot { position: relative; margin-top: clamp(40px, 6vw, 80px); background: #1a1f4d; color: #efe7d6; }
.site-foot__edge { position: absolute; top: -39px; left: 0; width: 100%; height: 40px; }
.site-foot__edge path { fill: #1a1f4d; }
.site-foot a { color: #fbf1d0; }
.site-foot__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(30px, 5vw, 56px) 30px; }
@media (max-width: 900px) { .site-foot__inner { grid-template-columns: 1fr 1fr; } .star-post { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-foot__inner { grid-template-columns: 1fr; } }
.star-post h2 { color: #f6dc9a; font-size: 1.8rem; }
.star-post p { color: rgba(239, 231, 214, 0.86); }
.star-post__form { display: grid; gap: 4px; }
.star-post__form label { color: #efe7d6; }
.star-post__form .opt { color: rgba(239, 231, 214, 0.7); }
.star-post__form input, .star-post__form select { background: #232a5c; border-color: rgba(239, 231, 214, 0.25); color: #fbf6ec; }
.star-post__form .btn { justify-self: start; }
.star-post__form .form-note { color: rgba(239, 231, 214, 0.75); }
.star-post__form .form-note.is-ok { color: #b9d6b4; }
.star-post__form .form-note.is-error { color: #f6b49b; }
.site-foot__brand { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4em; color: #fbf6ec; }
.site-foot__brand em { font-weight: 500; }
.site-foot__about p { color: rgba(239, 231, 214, 0.86); }
.site-foot__contact, .site-foot__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot__h { font-size: 1.15rem; color: #f6dc9a; font-family: var(--font-hand); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.4em; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px 26px; border-top: 1.5px dashed rgba(239, 231, 214, 0.2); font-size: 0.9rem; color: rgba(239, 231, 214, 0.7); }
.site-foot__base p { margin: 0; }
.site-foot__base .hand { font-size: 1.2rem; color: #f6dc9a; }

/* reveal on scroll for a soft entrance */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.7s ease; }
  .js .reveal.is-seen { opacity: 1; translate: 0 0; }
}

@media print {
  .sky, .site-foot, .tote-float, .toast-shelf, .tote-drawer { display: none !important; }
  body::before { display: none; }
}

/* Inner pages have a short sky, so everything in it is a little smaller. */
.sky:not(.sky--hero) .sky__sun { width: clamp(40px, 4vw, 60px); }
.sky:not(.sky--hero) .sky__sun::after { box-shadow: 0 0 30px 12px rgba(255, 214, 140, 0.45); }
@media (max-width: 860px) {
  .sky:not(.sky--hero) .sky__sun, .sky:not(.sky--hero) .sky__moon { top: calc(84% - 22% * var(--sky-h) + 14% * var(--sky-sink)); }
  .sky:not(.sky--hero) .sky__moon { width: 40px; }
}
.mticket.is-cancelled .mticket__name, .mticket.is-cancelled .mticket__meta { text-decoration: line-through; text-decoration-color: var(--rose); opacity: 0.75; }

/* Phones: keep stars bright above and below the headline, but faint behind the words. */
@media (max-width: 860px) {
  .sky--hero .sky__stars {
    -webkit-mask-image: linear-gradient(180deg, #000 0 11%, rgba(0, 0, 0, 0.2) 15% 58%, #000 66%);
    mask-image: linear-gradient(180deg, #000 0 11%, rgba(0, 0, 0, 0.2) 15% 58%, #000 66%);
  }
}
.mticket__series { margin: -2px 0 8px; font-size: 0.92rem; font-weight: 700; color: var(--sage-text); }
.mticket__series::before { content: "✦ "; color: var(--gold); }
.tickets-empty { padding: 18px 20px; border-radius: 16px; border: 2px dashed var(--line-strong); color: var(--ink-2); }
