/* Asya Patterns — shared stylesheet. Light by default, dark follows the visitor's system setting. */

:root {
  --plum: #3d1e3f;
  --plum-2: #5a2d5c;
  --coral: #ff6b5b;
  --coral-soft: #ffd9d3;
  --marigold: #f4a62a;
  --marigold-soft: #fde7bf;
  --mint: #8fd6bd;
  --mint-soft: #dcf3ea;
  --paper: #fffaf3;
  --ink: #2a1a2b;
  --muted: #6e5a6f;
  --line: #ecdfd6;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Karla", system-ui, sans-serif;
  --f-hand: "Caveat", cursive;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;

  /* semantic colours (light) */
  --bg: var(--paper);
  --surface: #fff;
  --text: var(--ink);
  --heading: var(--plum);
  --brand: var(--plum);
  --on-brand: var(--paper);
  --header-bg: rgba(255,250,243,.92);
  --tint-mint: var(--mint-soft);
  --tint-coral: var(--coral-soft);
  --tint-marigold: var(--marigold-soft);
  --texture: rgba(61,30,63,.022);
  --chip-bg: var(--paper);
  --flap: var(--plum);
  --box-bg: var(--plum);
  --footer-bg: var(--plum);
  --shadow: rgba(61,30,63,.14);
  --fabric: brightness(1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  overflow-x: hidden;
}
/* faint linen texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, var(--texture) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--texture) 0 1px, transparent 1px 4px);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--coral); font-size: 1.6em; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.5em;
  border-radius: 999px;
  font: 700 1rem/1 var(--f-body);
  text-decoration: none;
  border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--coral); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: var(--plum); }
.btn-coral:hover { box-shadow: 0 4px 0 var(--heading); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-ghost:hover { background: var(--brand); color: var(--on-brand); }
.btn svg { width: 1.2em; height: 1.2em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--f-display); color: var(--heading); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo svg [fill="#3d1e3f"] { fill: var(--heading); }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; padding: .55em .9em; border-radius: 999px; }
.nav a:not(.btn):hover { background: var(--tint-mint); }
.nav a[aria-current="page"] { background: var(--tint-marigold); }
.nav .btn { padding: .65em 1.1em; }
.theme-btn {
  width: 38px; height: 38px; flex: none; margin-left: 4px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--heading); border: 2px solid var(--line);
  transition: border-color .15s ease, background .15s ease;
}
.theme-btn[hidden] { display: none; }
.nav-yt svg { display: none; width: 22px; height: 22px; }
.theme-btn:hover { border-color: var(--heading); background: var(--tint-marigold); }
.theme-btn svg { width: 18px; height: 18px; display: none; }
.theme-btn[data-mode="auto"] .i-auto, .theme-btn[data-mode="light"] .i-light, .theme-btn[data-mode="dark"] .i-dark { display: block; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); color: var(--heading); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lede { margin: 20px 0 30px; font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero .hand { display: block; margin-bottom: 14px; }
.hero-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-swatches .swatch:nth-child(1) { transform: rotate(-4deg); }
.hero-swatches .swatch:nth-child(2) { transform: rotate(3deg) translateY(18px); }
.hero-swatches .swatch:nth-child(3) { transform: rotate(-2deg); }
.hero-swatches .swatch:nth-child(4) { transform: rotate(2deg) translateY(-6px); }
.hero-swatches .swatch:nth-child(5) { transform: rotate(-3deg) translateY(12px); }
.hero-swatches .swatch:nth-child(6) { transform: rotate(4deg); }

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* floating stickers (inc/stickers.php): pattern drawings in the swatch fabrics, die-cut */
.stickers { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1.1; container-type: inline-size; }
.st { position: absolute; display: block; rotate: var(--r, 0deg); color: inherit; text-decoration: none;
  transform: translate(calc(var(--px, 0) * var(--z, 1) * 1cqw), calc(var(--py, 0) * var(--z, 1) * 1cqw));
  filter: drop-shadow(0 .4cqw .3cqw rgba(0,0,0,.18)) drop-shadow(0 4cqw 3.4cqw var(--shadow));
  animation: st-bob var(--t, 6s) ease-in-out infinite; animation-delay: var(--d, 0s); transition: transform .35s ease-out, scale .25s ease; }
.st img, .st svg { display: block; width: 100%; height: auto; overflow: visible; }
a.st::after { content: attr(data-name); position: absolute; left: 50%; top: 100%; translate: -50% 1.5cqw; white-space: nowrap; z-index: 6;
  background: var(--plum); color: #fffaf3; font: 700 max(12px, 2.8cqw)/1 var(--f-body); padding: 1.4cqw 2.6cqw; border-radius: 99px;
  border: .8cqw solid #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
a.st:hover::after, a.st:focus-visible::after { opacity: 1; }
a.st:hover, a.st:focus-visible { scale: 1.06; z-index: 5; }
a.st:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; border-radius: 8px; }
.st:hover { animation: st-wiggle .5s ease-in-out 2; }
.st.pop { animation: st-pop .45s cubic-bezier(.3,1.6,.5,1); }
.st-leya { left: 2%; top: 2%; width: 30%; --r: -7deg; --d: -1s; --z: 1.6; }
.st-size { left: 34%; top: 5%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); color: var(--plum);
  display: grid; place-content: center; text-align: center; border: 1.3cqw solid #fff; --r: 12deg; --d: -2.5s; --t: 5.5s; --z: 2.6; }
.st-size b { font: 800 3.2cqw/1 var(--f-display); } .st-size small { font: 700 1.9cqw/1.15 var(--f-body); margin-top: .5cqw; }
.st-vest { left: 56%; top: 1%; width: 24%; --r: 6deg; --d: -3.5s; --t: 7s; --z: 1.2; }
.st-scissors { left: 82%; top: 4%; width: 16%; --r: 20deg; --d: -2s; --t: 6.2s; --z: 3; }
.st-dress { left: 2%; top: 30%; width: 25%; --r: -4deg; --d: -4s; --t: 7.4s; --z: 1.5; }
.st-astrid { left: 31%; top: 33%; width: 40%; --r: -3deg; --d: -2s; --t: 6.5s; --z: 2.2; }
.st-trousers { left: 84%; top: 29%; width: 12%; --r: 7deg; --d: -4.5s; --t: 7.5s; --z: 1.4; }
.st-skirt { left: 30%; top: 60%; width: 26%; --r: 5deg; --d: -1.2s; --t: 6.9s; --z: 1.8; }
.st-planner { left: 61%; top: 58%; width: 20%; --r: -8deg; --d: -3.2s; --t: 7.1s; --z: 2; }
.st-needle { left: 4%; top: 66%; width: 22%; --r: -25deg; --d: -5s; --t: 6s; --z: 3.2; }
.st-spool { left: 86%; top: 65%; width: 10%; --r: -12deg; --d: -5.5s; --t: 6.8s; --z: 3; }
.st-bag { left: 4%; top: 79%; width: 25%; --r: 4deg; --d: -2.8s; --t: 7.8s; --z: 1.3; }
.st-tape { left: 36%; top: 88%; width: 44%; background: var(--marigold); color: var(--plum); border: 1cqw solid #fff; border-radius: 1cqw;
  padding: 3.4cqw 2cqw 1.3cqw; font: 800 2.8cqw/1 var(--f-display); text-align: center; --r: -2.5deg; --d: -3s; --t: 8s; --z: .9;
  background-image: repeating-linear-gradient(90deg, var(--plum) 0 .3cqw, transparent .3cqw 1.3cqw); background-size: 100% 1.2cqw; background-repeat: no-repeat; }
@keyframes st-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2cqw; } }
@keyframes st-wiggle { 0%, 100% { rotate: var(--r); } 25% { rotate: calc(var(--r) - 6deg); } 75% { rotate: calc(var(--r) + 6deg); } }
@keyframes st-pop { 0% { scale: 1; } 40% { scale: .86; } 100% { scale: 1.06; } }
@media (prefers-reduced-motion: reduce) { .st, .st:hover, .st.pop { animation: none; transition: none; } }

/* fabric swatch tile with pinked edge */
.swatch {
  aspect-ratio: 1;
  filter: var(--fabric) drop-shadow(0 6px 10px var(--shadow));
  transition: transform .25s ease;
}
.swatch svg { width: 100%; height: 100%; }
.swatch:hover { transform: rotate(0) scale(1.04) !important; }

/* ---------- stitch dividers (three distinct motifs) ---------- */
.stitch { height: 22px; margin: 0 var(--gutter); background-repeat: repeat-x; background-position: center; }
/* 1: running stitch */
.stitch-running {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22'%3E%3Cline x1='2' y1='11' x2='18' y2='11' stroke='%23ff6b5b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* 2: zigzag stitch */
.stitch-zigzag {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22'%3E%3Cpolyline points='0,15 6,7 12,15 18,7 24,15' fill='none' stroke='%238fd6bd' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* 3: cross stitch row */
.stitch-cross {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Cg stroke='%23f4a62a' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='9' y1='5' x2='21' y2='17'/%3E%3Cline x1='21' y1='5' x2='9' y2='17'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- sections ---------- */
section { padding: clamp(40px, 5vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--heading); }
.section-head p { color: var(--muted); max-width: 46ch; }

/* pick your path: three filter buttons for the video row */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path {
  position: relative;
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  padding: 22px; width: 100%;
  border-radius: var(--radius);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--surface);
  border: 2px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.path:hover { border-color: var(--heading); transform: translateY(-3px); }
.path[aria-pressed="true"] { border-color: var(--heading); box-shadow: 0 5px 0 var(--heading); transform: translateY(-3px); }
.path-text { display: flex; flex-direction: column; }
.path-title { font: 800 1.45rem/1.05 var(--f-display); letter-spacing: -.02em; color: var(--heading); }
.path-desc { color: var(--muted); font-size: .98rem; margin-top: 6px; }
.path .go { font-weight: 700; color: var(--coral); margin-top: 10px; }
.path[aria-pressed="true"] .go { color: var(--heading); }
.path:nth-child(1) { background: var(--tint-mint); }
.path:nth-child(2) { background: var(--tint-coral); }
.path:nth-child(3) { background: var(--tint-marigold); }

/* compact video row: one scrollable line, links open on YouTube */
.video-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
.video-status { font: 700 1.05rem var(--f-body); color: var(--heading); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.video-status .n { color: var(--muted); font-weight: 400; }
.show-all { font: 700 .85rem var(--f-body); color: var(--coral); background: none; border: 0; padding: 4px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.arrows { display: flex; gap: 8px; }
.arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--heading); border: 2px solid var(--line);
  transition: border-color .15s ease;
}
.arrow:hover { border-color: var(--heading); }
.arrow svg { width: 18px; height: 18px; }
.video-row {
  list-style: none; margin: 0; padding: 4px 2px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.video-row li { scroll-snap-align: start; min-width: 0; }
.video-row li[hidden] { display: none; }
.vcard { display: block; text-decoration: none; }
.vthumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--tint-coral); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vcard:hover .vthumb img { transform: scale(1.05); }
.vthumb .len { position: absolute; right: 6px; bottom: 6px; background: rgba(42,26,43,.85); color: #fffaf3; font: 700 .75rem/1 var(--f-body); padding: 4px 6px; border-radius: 6px; }
.vtitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font: 700 .95rem/1.3 var(--f-body); color: var(--text); }
.vcard:hover .vtitle { color: var(--coral); }

/* waitlist */
.waitlist .box {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--box-bg); color: var(--paper);
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(28px, 4vw, 52px);
  background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
}
.waitlist h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.waitlist p { color: #e9d8ea; margin-top: 12px; }
.waitlist .hand { color: var(--marigold); }
.waitlist form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: .95em 1.2em; border-radius: 999px; border: 2px solid transparent;
  font: 400 1rem var(--f-body); background: var(--paper); color: var(--ink);
}
.waitlist input[type="email"]:focus { outline: none; border-color: var(--marigold); }
.waitlist .fine { font-size: .88rem; color: #cdb6cf; margin-top: 12px; width: 100%; }

/* ---------- shop ---------- */
.shop-hero { padding: clamp(36px, 5vw, 64px) 0 20px; }
.shop-hero .wrap { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.shop-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); color: var(--heading); font-weight: 800; }
.shop-hero p { color: var(--muted); max-width: 44ch; font-size: 1.1rem; }

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 2px solid var(--heading); border-radius: var(--radius);
  background: var(--surface); margin: 24px 0 32px;
}
.trust li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: .98rem; }
.trust li + li { border-left: 2px dashed var(--line); }
.trust svg { width: 30px; height: 30px; flex: none; filter: var(--fabric); }
.trust svg circle { stroke: var(--heading); }
.trust small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
ul.trust { list-style: none; padding: 0; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding-bottom: 20px; }

/* pattern-envelope card */
.envelope {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.envelope:hover { transform: translateY(-4px); border-color: var(--heading); }
.envelope .flap {
  height: 30px; background: var(--flap);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%);
}
.envelope:nth-child(4n+2) .flap { background: var(--coral); }
.envelope:nth-child(4n+3) .flap { background: var(--marigold); }
.envelope:nth-child(4n+4) .flap { background: var(--mint); }
.envelope .no {
  position: absolute; top: 40px; right: 14px;
  z-index: 2;
  font: 600 1.4rem/1 var(--f-hand); color: var(--heading);
  background: var(--chip-bg); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.envelope .art { padding: 16px 16px 0; }
.envelope .art .swatch { aspect-ratio: 4/3; }
.envelope .photo { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.envelope .photo .swatch { position: absolute; inset: 0; filter: var(--fabric); }
.envelope .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.envelope:hover .photo img { transform: scale(1.04); }
/* shop card gallery: real photos first, swipe or arrows (patterns.php, $galleries in config.php) */
.gal { position: relative; border-radius: 8px; overflow: hidden; background: #fff; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
.gal-slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; scroll-snap-stop: always; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #1a1120; }
.gal-yt { position: absolute; inset: 0; display: block; background: #1a1120; }
.gal-yt img { opacity: .92; }
.gal-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.gal-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--plum); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.gal-yt:hover .gal-play { scale: 1.08; }
.gal-slide.t-video figcaption { z-index: 1; }
.gal-slide.t-drawing img { object-fit: contain; padding: 8%; background: #fff; }
.gal-slide.t-pdf img { object-fit: contain; padding: 5%; background: #efe7df; }
.gal-slide figcaption { position: absolute; inset: 0; pointer-events: none; }
.gal-type, .gal-n { position: absolute; top: 10px; font: 700 .72rem/1 var(--f-body); color: #fffaf3; background: rgba(26,17,32,.72); padding: 5px 9px; border-radius: 99px; }
.gal-type { left: 10px; } .gal-n { display: none; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 22px; background: linear-gradient(transparent, rgba(26,17,32,.7)); color: #fffaf3; font: 600 1.2rem/1.05 var(--f-hand); }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,250,243,.92); color: var(--plum); font: 800 1.2rem/1 var(--f-display); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; transition: opacity .2s; }
.gal-nav.prev { left: 8px; } .gal-nav.next { right: 8px; }
.gal:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
@media (hover: none) { .gal-nav { display: none; } }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,250,243,.55); transition: width .2s; }
.gal-dots i.on { width: 16px; border-radius: 99px; background: #fffaf3; }
.envelope .meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.envelope .meta li { font: 700 .78rem/1 var(--f-body); padding: .45em .7em; border-radius: 999px; background: var(--tint-mint); color: var(--text); }
.envelope .meta li:first-child { background: var(--tint-marigold); }
.envelope .watch { font-weight: 700; font-size: .92rem; color: var(--coral); text-decoration: none; margin-top: 4px; }
.envelope .watch:hover { text-decoration: underline; text-underline-offset: 3px; }
.envelope-soon { border-style: dashed; }
.envelope-soon .body { justify-content: center; }
.envelope .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.envelope h3 { font-size: 1.3rem; color: var(--heading); }
.envelope p { color: var(--muted); font-size: .95rem; }
.envelope .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.envelope .price { font: 800 1.2rem var(--f-display); color: var(--heading); }
.envelope .btn { padding: .7em 1.1em; font-size: .95rem; }
.btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* help card in the shop grid */
.help {
  border: 2px dashed var(--heading); border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: var(--tint-mint);
}
.help h3 { font-size: 1.4rem; color: var(--heading); }
.help p { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(32px, 4vw, 56px); background: var(--footer-bg); color: var(--paper); border-top: 1px solid var(--line); }
.elsewhere { border-bottom: 1px solid rgba(255,255,255,.14); }
.elsewhere .wrap { display: flex; align-items: center; gap: 10px 14px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.elsewhere .label { font: 600 1.5rem/1 var(--f-hand); color: var(--marigold); margin-right: 6px; }
.elsewhere a, .elsewhere span.soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .45em .9em; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.35);
  font-size: .92rem; font-weight: 700; text-decoration: none;
}
.elsewhere a:hover { background: var(--paper); color: var(--plum); }
.elsewhere .soon { opacity: .6; border-style: dashed; font-weight: 400; }
.elsewhere .soon em { font-style: normal; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mint); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: .92rem; color: #dcc9dd; }
.foot a { color: var(--paper); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid, .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-row { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .path { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .path .swatch { width: 56px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 2px dashed var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 60px; gap: 12px; }
  .logo { font-size: 1rem; gap: 5px; }
  .logo svg { width: 24px; height: 24px; }
  .nav { gap: 2px; }
  .nav a { padding: .45em .5em; font-size: .88rem; }
  .theme-btn { width: 32px; height: 32px; margin-left: 2px; }
  .nav-yt { display: grid; place-items: center; }
  .nav-yt svg { display: block; }
  .nav-yt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .theme-btn svg { width: 16px; height: 16px; }
  .nav .btn { display: none; }
  .hero .wrap, .waitlist .box { grid-template-columns: 1fr; }
  .hero-swatches { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .hero .lede { font-size: 1.05rem; }
  .grid, .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .path { grid-template-columns: 1fr; padding: 10px; gap: 8px; align-items: start; }
  .path .swatch { width: 40px; }
  .path-title { font-size: 1rem; }
  .path-desc { display: none; }
  .path .go { margin-top: 6px; font-size: .85rem; }
  .video-bar { margin-top: 22px; }
  .arrows { display: none; }
  .video-row { grid-auto-columns: 62%; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); }
  .vtitle { font-size: .9rem; }
  .envelope .meta li { font-size: .7rem; }
  .envelope h3 { font-size: 1.05rem; }
  .envelope p { font-size: .86rem; }
  .envelope .body { padding: 12px; }
  .envelope .art { padding: 10px 10px 0; }
  .envelope .row { flex-direction: column; align-items: stretch; }
  .envelope .btn { justify-content: center; }
  .envelope .no { top: 36px; right: 8px; font-size: 1.1rem; }
  .trust li { padding: 12px; font-size: .9rem; gap: 6px; flex-direction: column; align-items: flex-start; }
  .trust small { font-size: .76rem; overflow-wrap: anywhere; }
  .help { padding: 14px; }
  .help h3 { font-size: 1.1rem; }
  .help p { font-size: .86rem; }
  .help .btn { padding: .65em .6em; font-size: .82rem; justify-content: center; }
  .help .btn svg { display: none; }
  .elsewhere a, .elsewhere span.soon { font-size: .85rem; }
  .trust svg { width: 24px; height: 24px; }
  .video h3 { font-size: .95rem; }
  .video .play { width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .site-header .wrap { gap: 6px; }
  .logo { font-size: .92rem; }
  .nav a { padding: .45em .4em; font-size: .84rem; }
}

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

/* waitlist form states (PHP) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .form-error { width: 100%; margin-top: 10px; color: #ffd0c9; font-weight: 700; }
.waitlist .form-done h3 { font: 800 1.5rem var(--f-display); color: var(--marigold, #f4a62a); }
.waitlist .form-done p { color: #cdb6cf; margin-top: 6px; }

/* ---------- dark version: follows the visitor's system setting ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1120;
    --surface: #251829;
    --text: #ecdfe9;
    --muted: #b9a5ba;
    --line: #3e2c42;
    --heading: #fbe8f1;
    --brand: #fbe8f1;
    --on-brand: #3d1e3f;
    --header-bg: rgba(26,17,32,.9);
    --tint-mint: rgba(143,214,189,.13);
    --tint-coral: rgba(255,107,91,.14);
    --tint-marigold: rgba(244,166,42,.17);
    --texture: rgba(255,255,255,.02);
    --chip-bg: #1a1120;
    --flap: #6e3d71;
    --box-bg: #3d1e3f;
    --footer-bg: #120b16;
    --shadow: rgba(0,0,0,.45);
    --fabric: brightness(.88);
    color-scheme: dark;
  }
}
/* forced dark (used by the preview toggle) */
:root[data-theme="dark"] {
  --bg: #1a1120;
  --surface: #251829;
  --text: #ecdfe9;
  --muted: #b9a5ba;
  --line: #3e2c42;
  --heading: #fbe8f1;
  --brand: #fbe8f1;
  --on-brand: #3d1e3f;
  --header-bg: rgba(26,17,32,.9);
  --tint-mint: rgba(143,214,189,.13);
  --tint-coral: rgba(255,107,91,.14);
  --tint-marigold: rgba(244,166,42,.17);
  --texture: rgba(255,255,255,.02);
  --chip-bg: #1a1120;
  --flap: #6e3d71;
  --box-bg: #3d1e3f;
  --footer-bg: #120b16;
  --shadow: rgba(0,0,0,.45);
  --fabric: brightness(.88);
  color-scheme: dark;
}

/* About Asya (home) */
.about .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-photos { margin: 0; position: relative; padding: 0 clamp(40px, 7vw, 110px) clamp(40px, 5vw, 70px) 0; }
.about-photos img { border-radius: var(--radius); background: var(--tint-coral); }
.about-main { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 18px 40px -22px var(--shadow); }
.about-snap { position: absolute; right: 0; bottom: 0; width: 46%; height: auto; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--surface); transform: rotate(3deg); box-shadow: 0 14px 30px -16px var(--shadow); transition: transform .3s ease; }
.about-photos figcaption { position: absolute; left: 4px; bottom: 0; font-size: 1.5rem; color: var(--coral); transform: rotate(-3deg); }
.about-photos:hover .about-snap { transform: rotate(0deg) translateY(-4px); }
.about-text .hand { display: block; margin-bottom: 10px; }
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--heading); margin-bottom: 18px; }
.about-text p { margin: 0 0 14px; max-width: 62ch; }
.about-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about-facts li { padding: .5em 1em; border-radius: 999px; background: var(--chip-bg); border: 2px dashed var(--line); font-weight: 700; font-size: .92rem; color: var(--heading); }
@media (max-width: 760px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about-photos { max-width: 420px; padding: 0 22% 40px 0; }
  .about-snap { border-width: 6px; }
  .about-photos figcaption { font-size: 1.15rem; }
  .about-text p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .about-snap { transition: none; }
}

/* unsubscribe page (reuses the waitlist box) */
.unsub { padding: clamp(36px, 6vw, 80px) 0; min-height: 52vh; display: flex; align-items: center; }
.unsub h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--paper); overflow-wrap: anywhere; }
.unsub p { overflow-wrap: anywhere; }
.unsub .hand { display: block; margin-bottom: 10px; }
.unsub .btn-ghost { color: var(--paper); border-color: var(--paper); }
.unsub .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.unsub a:not(.btn) { color: var(--marigold); }

/* shop notices (checkout cancelled / test mode) */
.shop-note { margin: 0 0 20px; padding: 12px 18px; border-radius: var(--radius); background: var(--surface); border: 2px dashed var(--line); color: var(--text); font-weight: 700; }
.shop-note a { color: var(--coral); }
.envelope .row form { margin: 0; }

/* buy: withdrawal consent under price + button (digital content) */
.envelope .consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .8rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.envelope .consent input { margin: 2px 0 0; accent-color: var(--coral); flex: none; width: 16px; height: 16px; }
.envelope .consent a { color: inherit; text-decoration: underline; }

/* terms + privacy: wide grid of short cards */
.legal { padding: clamp(28px, 4vw, 52px) 0 8px; }
.legal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 24px; }
.legal-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--heading); line-height: 1; }
.legal-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.legal-head a, .legal-card a { color: var(--coral); }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.legal-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; scroll-margin-top: 90px; }
.legal-card h2 { font-size: 1.25rem; color: var(--heading); margin: 0 0 8px; }
.legal-card p { margin: 0 0 8px; font-size: .97rem; overflow-wrap: anywhere; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card:target { border-color: var(--coral); }

/* ---------- announcement bar (text set in /admin) ---------- */
.notice-bar { background: var(--tint-marigold); border-bottom: 1px solid var(--line); }
.notice-bar .wrap { padding-top: 9px; padding-bottom: 9px; text-align: center; font-weight: 700; color: var(--heading); font-size: .95rem; }
.notice-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- "Ask me a question" in the help card ---------- */
.help .ask summary { list-style: none; cursor: pointer; justify-content: center; }
.help .ask summary::-webkit-details-marker { display: none; }
.help .ask[open] summary { display: none; }
.help .ask form { display: grid; gap: 6px; }
.help .ask label { font-weight: 700; color: var(--heading); font-size: .9rem; }
.help .ask input, .help .ask textarea { width: 100%; padding: .65em .8em; border-radius: 10px; border: 2px solid var(--line); font: inherit; background: var(--bg); color: var(--text); resize: vertical; }
.help .ask .btn { justify-content: center; margin-top: 6px; }
.help .ask .form-error { color: var(--coral); font-weight: 700; font-size: .9rem; }
.help .ask-done { font-weight: 700; color: var(--heading); }
.help:has(.ask[open]) { grid-column: 1 / -1; }
@media (min-width: 761px) { .help:has(.ask[open]) { grid-column: auto; } }

/* Christmas bags strip on /patterns (until 24 Dec) */
.xmas { margin: 44px 0 0; display: grid; gap: 18px; }
.xmas-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 32px; align-items: end; }
.xmas-head h2 { margin: 2px 0 0; color: var(--heading); }
.xmas-head p { margin: 0; max-width: 60ch; }
.xmas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.xmas-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.xmas-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 760px) {
  .xmas-head { grid-template-columns: 1fr; }
  .xmas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- pattern tester page (/test) ---------- */
.tester { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.tester .wrap { max-width: 860px; }
.tester h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--heading); margin-top: 6px; overflow-wrap: anywhere; }
.tester .t-head p { margin-top: 12px; max-width: 60ch; }
.t-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-top: 22px; }
.t-download { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: var(--tint-marigold); border-color: transparent; }
.t-download p { flex: 1 1 260px; margin: 0; }
.t-form h2 { font-size: 1.35rem; color: var(--heading); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px dashed var(--line); }
.t-form h2:first-of-type { margin-top: 4px; }
.t-form label, .t-form legend { font-weight: 700; color: var(--heading); }
.t-form input[type=text], .t-form textarea { display: block; width: 100%; margin-top: 6px; padding: .75em 1em; border-radius: 12px; border: 2px solid var(--line); font: inherit; font-weight: 400; background: var(--bg); color: var(--text); }
.t-form input[type=text]:focus, .t-form textarea:focus { outline: none; border-color: var(--coral); }
.t-form textarea { resize: vertical; min-height: 5.5em; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.t-grid .wide { grid-column: 1 / -1; }
.t-form .req { font-weight: 400; color: var(--muted); font-size: .85em; }
.t-ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.t-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; cursor: pointer; }
.t-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--coral); }
.t-fit { display: grid; gap: 10px; }
.t-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-fit legend { float: left; width: 7.5em; padding-top: .45em; }
.t-pill { position: relative; cursor: pointer; }
.t-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t-pill span { display: inline-block; padding: .45em .9em; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--text); background: var(--bg); }
.t-pill input:checked + span { background: var(--coral); border-color: var(--coral); color: var(--plum); }
.t-pill input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.t-area { display: block; margin-top: 14px; }
.t-rating { margin-top: 18px !important; }
.t-rating legend { width: 100%; margin-bottom: 8px; }
.t-rating .t-pill span { min-width: 2.6em; text-align: center; }
.t-hint { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.t-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.t-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--tint-coral); }
.t-file input { font: inherit; max-width: 100%; margin-bottom: 14px; }
.t-send { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 24px; }
.t-send .t-hint { margin: 0; }
.t-done { background: var(--tint-mint); border-radius: 12px; padding: 12px 16px; font-weight: 700; margin: 0 0 8px; }
.t-err { background: var(--tint-coral); border-radius: 12px; padding: 12px 16px; font-weight: 700; margin: 0 0 8px; }
@media (max-width: 640px) {
  .t-grid, .t-ticks { grid-template-columns: 1fr; }
  .t-fit legend { float: none; width: 100%; padding-top: 0; }
  .t-pill span { font-size: .86rem; padding: .45em .75em; }
}

/* /lessons */
.lessons .trust { margin: 28px 0; }
.lesson-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.lesson-card { background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.lesson-card svg { width: 40px; height: 40px; filter: var(--fabric); }
.lesson-card h2 { font-size: 1.3rem; color: var(--heading); margin: 0; }
.lesson-card p { margin: 0; color: var(--muted); }
.lesson-card .lesson-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--heading); }
.lesson-card .btn { margin-top: auto; justify-content: center; }
.founding { border: 2px dashed var(--coral); border-radius: 10px; padding: 22px; margin-bottom: 28px; background: var(--tint-coral, var(--surface)); }
.founding h2 { color: var(--heading); margin: 0 0 6px; }
.founding p { margin: 0; max-width: 70ch; }
.lesson-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 48px; align-items: start; }
.lesson-two h2 { color: var(--heading); font-size: 1.4rem; }
.lesson-ideas { padding-left: 1.2em; margin: 0 0 22px; line-height: 1.8; }
.lesson-form .ask form { display: grid; gap: 6px; }
.lesson-form select { width: 100%; padding: .65em .8em; border-radius: 10px; border: 2px solid var(--line); font: inherit; background: var(--bg); color: var(--text); }
@media (max-width: 760px) { .lesson-prices, .lesson-two { grid-template-columns: 1fr; } }
.lesson-form .lbl { font-weight: 700; color: var(--heading); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.chip span { display: inline-block; padding: .45em .8em; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-size: .9rem; }
.chip b { display: block; font-size: .95rem; }
.chip.day span { text-align: center; min-width: 64px; }
.chip input:checked + span { border-color: var(--heading); background: var(--brand); color: var(--on-brand); }
.chip input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.chip[hidden] { display: none; }
.lesson-total { margin: 0; font-weight: 700; color: var(--heading); }
.muted-s { margin: 0; color: var(--muted); font-size: .9rem; }

/* /testers (tester call) and the download row on /test */
.t-dl { display: flex; flex-wrap: wrap; gap: 10px; }
.t-download .t-due { flex-basis: 100%; }
.testers .tc-h { color: var(--heading); font-size: 1.6rem; margin: 8px 0 4px; }
.tc-legend { margin-bottom: 14px; }
.tc-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin: 0 4px 0 8px; border: 2px solid var(--heading); }
.tc-key:first-child { margin-left: 0; }
.tc-key.taken { border-color: var(--line); background: var(--line); }
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.tc-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 16px; }
.tc-card img { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.tc-card h3 { color: var(--heading); font-size: 1.2rem; margin: 0 0 2px; }
.tc-sizes { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tc-size { display: inline-block; min-width: 44px; text-align: center; padding: .4em .55em; border: 2px solid var(--heading); border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--heading); text-decoration: none; }
a.tc-size:hover, a.tc-size:focus-visible { background: var(--brand); color: var(--on-brand); }
.tc-size.taken { border-color: var(--line); background: var(--line); color: var(--muted); text-decoration: line-through; }
.tc-apply { margin-top: 8px; }
.tc-apply ol.lesson-ideas { padding-left: 1.4em; }
.tc-agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; margin-top: 6px; }
.tc-agree input { width: auto !important; margin-top: 4px; }
.chip.off span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.lesson-form select + .lbl, .lesson-form .chips + label { margin-top: 4px; }
@media (max-width: 900px) { .tc-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .tc-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; } .tc-card img { width: 84px; height: 84px; } }
/* header fits phones 381-430 px since the Lessons link (was 25 px too wide at 390) */
@media (max-width: 430px) {
  .site-header .wrap { gap: 6px; }
  .logo { font-size: .92rem; }
  .nav a { padding: .45em .35em; font-size: .84rem; }
}
.tc-key.first, .tc-size.first, .chip.first span { background: var(--tint-coral); }
.tc-key.first { border-color: var(--coral); }
a.tc-size.first { border-color: var(--coral); }
