/* Pullstring — system layer (v0.26).
   "A fictional piece of Japanese toy-company software from 2003, rebuilt with 2026 technology."
   Structure is visible and flat: 1px rules, square-ish panels with striped title bars, hard offset shadows,
   a status bar, release numbers. Plastic (vinyl.css) stays on the objects you touch: buttons, chips, pills.
   Type: one confident contemporary grotesk for headlines + one tiny Japanese dot-matrix face for system text. */

:root {
  --grotesk: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --dot: 'DotGothic16', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --rule: color-mix(in srgb, var(--v-ink) 34%, transparent);
  --rule-soft: color-mix(in srgb, var(--v-ink) 16%, transparent);
  --sheet: color-mix(in srgb, var(--ground) 45%, #ffffff);
  --drop: 3px 3px 0 color-mix(in srgb, var(--v1) 38%, transparent);
  --sb-h: 26px;
}

/* ---------- type ---------- */
.brand-title { font-family: var(--grotesk); font-weight: 800; letter-spacing: -0.035em; font-size: 26px; }
.brand-kicker, .sysmini, .sysline, .pb-title, .pb-meta, .file-bar, .card-meta, .k, .pager, .statusbar, .clickfx, .cp-no, .chip.num, .step-name {
  font-family: var(--dot); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase;
}
.brand-kicker { font-size: 10px; letter-spacing: 0.12em; }
.sysmini { font-size: 11.5px; color: var(--muted); }
.doll-sub { font-family: var(--dot); font-size: 13px; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- headline: oversized grotesk, the system line offset off the grid ---------- */
.headline-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 2; }
.headline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 18px; padding-top: 20px; }
.mega {
  margin: 0; font-family: var(--grotesk); font-weight: 800; font-variation-settings: 'opsz' 96;
  font-size: clamp(42px, 8.6vw, 116px); line-height: 0.86; letter-spacing: -0.05em; color: var(--v-ink);
  max-width: 13ch; text-wrap: balance;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--v2) 60%, transparent);
}
.sysline {
  flex: 1 1 260px; font-size: 12px; color: var(--v-ink); padding: 6px 0 10px; margin-left: clamp(0px, 6vw, 90px);
  border-bottom: 1px solid var(--rule); position: relative; top: -6px; min-height: 1.2em;
}
.sysline::before { content: '▸ '; color: var(--v1); }
.main { padding-top: 22px; }
@media (min-width: 900px) { .main { padding-top: 26px; } .headline { padding-top: 30px; } }

/* ---------- panels: the visible interface ---------- */
.panel, .filters.panel, .panel-like {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--drop);
  outline: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; overflow: hidden;
}
.panel-like { padding: 14px 16px; }
.panel-bar {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border-bottom: 1px solid var(--rule);
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--v1) 12%, #fff) 0 2px, #fff 2px 4px);
  color: var(--v-ink); font-size: 12px; list-style: none; cursor: default;
}
.panel-bar::-webkit-details-marker { display: none; }
details > .panel-bar { cursor: pointer; }
.pb-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-meta { color: var(--muted); }
.pb-dots { display: inline-flex; gap: 4px; }
.pb-dots b { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.25); box-shadow: inset 0 2px 2px rgba(255,255,255,0.75); }
.pb-dots b:nth-child(1) { background: var(--v1); } .pb-dots b:nth-child(2) { background: var(--v2); } .pb-dots b:nth-child(3) { background: var(--v3); }
.panel-body { padding: 12px 14px; }
.stack > .panel + .panel, .doll-body > .panel { margin: 0; }

/* filters become the RELEASE DATABASE window */
.filters.panel { gap: 0; }
.filters-body { display: flex; flex-direction: column; gap: 14px; }
.filters legend { font-family: var(--dot); font-weight: 400; letter-spacing: 0.08em; color: var(--v-ink); border-bottom: 1px solid var(--rule-soft); width: 100%; padding-bottom: 4px; margin-bottom: 4px; }
.filters label { font-size: 13.5px; }
.filters label small { font-family: var(--dot); }
.filters-head { padding-bottom: 2px; }
.results-head { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.results-head select { font-family: var(--dot); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; padding: 5px 10px; }

/* doll page panels */
.spec-panel .spec, .panel .spec { background: transparent; border: 0; box-shadow: none; outline: none; padding: 0 14px; backdrop-filter: none; border-radius: 0; }
.spec div { border-bottom: 1px solid var(--rule-soft); }
.spec span:first-child { font-family: var(--dot); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; padding-top: 1px; }
.eyes { gap: 0; border: 1px solid var(--rule-soft); }
.eye { background: #fff; border: 0; border-right: 1px solid var(--rule-soft); border-radius: 0; box-shadow: none; outline: none; backdrop-filter: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; }
.eye:last-child { border-right: 0; }
.eye small:first-child { font-family: var(--dot); text-transform: uppercase; letter-spacing: 0.06em; }
.eye.sp { background: color-mix(in srgb, var(--v3) 22%, #fff); }
.photo-panel .photo { border: 0; border-radius: 0; box-shadow: none; outline: none; background: #fff; backdrop-filter: none; }
.photo-panel .photo::after { border-radius: 0; }
.doll-photo .credit { font-family: var(--dot); text-transform: uppercase; letter-spacing: 0.05em; }
.prose.panel-like h3 { font-family: var(--dot); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--v-ink); margin: 12px 0 4px; }
.prose.panel-like h3:first-child { margin-top: 0; }
.prose.panel-like p { margin: 0; }
.pricebox.panel .panel-body { display: flex; flex-direction: column; gap: 10px; }
.auth { border-radius: 3px; outline: none; box-shadow: var(--drop); background: var(--sheet); border: 1px solid var(--rule); backdrop-filter: none; }

/* ---------- archive cards: release files ---------- */
.card.file { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--drop); gap: 0; overflow: hidden; transition: transform .12s steps(2), box-shadow .12s steps(2); }
.card.file:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 color-mix(in srgb, var(--v1) 45%, transparent); }
.card.file:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 color-mix(in srgb, var(--v1) 45%, transparent); }
.file-bar { display: flex; justify-content: space-between; padding: 4px 8px; font-size: 11px; color: var(--v-ink); border-bottom: 1px solid var(--rule); background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--v1) 10%, #fff) 0 2px, #fff 2px 4px); }
.card.file .card-img { border-radius: 0; border: 0; outline: none; box-shadow: none; backdrop-filter: none; background: #fff; }
.card.file .card-img::after { border-radius: 0; }
/* deliberately low-tech loading: a dither and a dot-matrix LOADING… until the photo arrives */
.card-img:not(.ld) { background: repeating-conic-gradient(color-mix(in srgb, var(--v1) 18%, #fff) 0 25%, #fff 0 50%) 0 0/6px 6px; }
.card-img:not(.ld)::before { content: 'LOADING…'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--dot); font-size: 11px; letter-spacing: 0.08em; color: var(--v-ink); background: #fff; padding: 2px 6px; border: 1px solid var(--rule); z-index: 1; }
.card-img:not(.ld) img { opacity: 0; }
.card-img.ld img { animation: develop .45s steps(4) both; }
@keyframes develop { from { filter: contrast(0.6) brightness(1.25) blur(3px); } to { filter: none; } }
.card-img:has(.ph)::before { display: none; }
.file-body { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; border-top: 1px solid var(--rule); }
.card.file .card-name { font-family: var(--grotesk); font-weight: 700; font-size: 16px; line-height: 1.12; letter-spacing: -0.015em; color: var(--text); }
.card.file .card-meta { font-size: 10.5px; margin: 0; color: var(--muted); }
.file-specs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; align-items: center; }
.fs { display: inline-flex; align-items: center; gap: 3px; }
.k { font-size: 9.5px; color: var(--muted); margin-right: 2px; }
.hairbar { display: inline-block; width: 26px; height: 9px; border: 1px solid rgba(0,0,0,0.3); box-shadow: inset 0 2px 0 rgba(255,255,255,0.45); }
.chipdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.3); box-shadow: inset 0 2px 1px rgba(255,255,255,0.6); }
.chipdot.none { background: transparent; border-style: dashed; }
.chipdot.big { width: 16px; height: 16px; }
.card.file .badge.idx { font-family: var(--dot); font-weight: 400; }

/* ---------- pager: 001 / 002 / 003 ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 18px 0 6px; font-size: 12px; }
.pager button { min-width: 44px; height: 32px; border: 1px solid var(--rule); background: var(--sheet); color: var(--v-ink); font: inherit; border-radius: 2px; cursor: pointer; box-shadow: 2px 2px 0 var(--rule-soft); }
.pager button[aria-current="page"] { background: var(--v1); color: #fff; border-color: color-mix(in srgb, var(--v1) 70%, #000); }
.pager span { padding: 8px 4px; color: var(--muted); }

/* ---------- mechanical feel: everything you press goes down 2px ---------- */
.chip, .btn, .listbtn, .card-add, .pager button, .step, .swatch, .sw { transition: transform .06s steps(1); }
.chip:active, .btn:active, .listbtn:active, .card-add:active, .pager button:active, .step:active, .swatch:active, .sw:active { transform: translateY(2px); }
.clickfx {
  position: absolute; z-index: 60; pointer-events: none; transform: translate(-50%, -100%);
  font-size: 13px; color: var(--v-ink); background: var(--v3); border: 1px solid var(--v-ink); padding: 1px 5px 2px; box-shadow: 2px 2px 0 var(--v-ink);
  animation: clickfx .9s steps(6) forwards;
}
@keyframes clickfx { 0% { opacity: 0; transform: translate(-50%, -60%); } 15% { opacity: 1; transform: translate(-50%, -110%); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -190%); } }

/* ---------- status bar ---------- */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: var(--tab-h); height: var(--sb-h); z-index: 19; display: flex; align-items: center; gap: 10px;
  padding: 0 10px; font-size: 11.5px; color: #fff; background: color-mix(in srgb, var(--v-ink) 88%, #000); border-top: 1px solid rgba(255,255,255,0.25);
}
.sb-sys { background: var(--v1); color: #fff; padding: 1px 6px; border: 1px solid rgba(255,255,255,0.5); flex: none; }
.sb-msg { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-msg::after { content: '▮'; margin-left: 4px; animation: caret 1s steps(1) infinite; color: var(--v3); }
.sb-msg.blink { animation: sbblink .5s steps(2) 2; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes sbblink { 50% { color: var(--v3); } }
.sb-right { flex: none; opacity: 0.8; display: none; }
@media (min-width: 720px) { .sb-right { display: block; } }
.main { padding-bottom: calc(var(--tab-h) + var(--sb-h) + 20px); }
@media (min-width: 900px) { .main { padding-bottom: calc(var(--sb-h) + 48px); } }
.toast { bottom: calc(var(--tab-h) + var(--sb-h) + 14px); }

/* ---------- designer: a toy ---------- */
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.chip.num { min-width: 42px; justify-content: center; font-size: 12px; padding: 0 10px; }
.step { width: 38px; height: 38px; border: 1px solid var(--rule); background: var(--sheet); color: var(--v-ink); border-radius: 2px; cursor: pointer; font-size: 13px; box-shadow: 2px 2px 0 var(--rule-soft); }
.step-name { font-size: 12px; color: var(--v-ink); margin-top: 6px; }
.mock.installed canvas { animation: install .55s steps(5); }
@keyframes install { 0% { filter: brightness(1.6) saturate(0.3); transform: scale(0.985); } 40% { filter: brightness(1.15); transform: scale(1.01); } 100% { filter: none; transform: none; } }

/* ---------- collection pages ---------- */
.pagecfg { margin-top: 18px; }
.pagecfg[open] > .panel-bar { border-bottom: 1px solid var(--rule); }
.pagecfg:not([open]) > .panel-bar { border-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-weight: 400; border: 1px solid var(--rule); border-radius: 2px; padding: 9px 12px; background: #fff; font-size: 16px; }
.field textarea { resize: vertical; }
.cpage { position: relative; }
.cp-note {
  margin: 0 0 22px auto; max-width: 340px; padding: 14px 16px 12px; background: color-mix(in srgb, var(--v3) 45%, #fff);
  border: 1px solid var(--rule); box-shadow: var(--drop); transform: rotate(-1.4deg); font-family: var(--grotesk); font-size: 19px; line-height: 1.25; font-weight: 600;
}
.cp-note p { margin: 0 0 8px; }
.cp-note cite { display: block; text-align: right; font-style: normal; font-family: var(--dot); font-size: 12px; letter-spacing: 0.08em; color: var(--v-ink); font-weight: 400; }
@media (min-width: 900px) { .cp-note { position: absolute; right: 0; top: -96px; z-index: 3; } .cpage { padding-top: 10px; } }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; padding: 10px 0 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cp-item { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
.cp-no { font-size: 12px; color: var(--v1); }
.cp-pic { height: 230px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 3px solid color-mix(in srgb, var(--v-ink) 70%, transparent); padding-bottom: 2px; }
.cp-pic img.cut { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,0.22)); transition: transform .15s steps(3); transform-origin: bottom center; }
.cp-item:hover .cp-pic img.cut { transform: translateY(-4px) rotate(-1deg); }
.cp-item.boxed .cp-pic img { max-height: 92%; max-width: 92%; object-fit: cover; border: 1px solid var(--rule); padding: 3px; background: #fff; box-shadow: var(--drop); }
.cp-item b { font-family: var(--grotesk); font-size: 16px; letter-spacing: -0.01em; line-height: 1.12; margin-top: 6px; }
.cp-item em { font-size: 13px; color: var(--v-ink); }
.cp-foot { margin-top: 14px; }

/* Roller Rink and other dark prints: keep the status bar legible */
:root[data-skin="tsubaki"] .statusbar { background: #1a0d10; }

/* designer: the recipe is a panel too */
.recipe-card { border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--drop); overflow: hidden; }
.recipe-head { border-radius: 0; border-bottom: 1px solid var(--rule); }
.recipe-label { border-radius: 3px; border: 1px solid var(--rule); box-shadow: 2px 2px 0 var(--rule-soft); }
.recipe-label h1, .recipe-label input { font-family: var(--grotesk); font-weight: 800; letter-spacing: -0.03em; }
.recipe-count, .slot-label, .slot-meta { font-family: var(--dot); font-weight: 400; letter-spacing: 0.07em; text-transform: uppercase; }
.mock { border-bottom: 1px solid var(--rule); }
.slot-photo { border-radius: 3px; border: 1px solid var(--rule-soft); }

/* descenders in the oversized headline shouldn't eat the system line */
.mega { padding-bottom: 0.14em; margin-bottom: -0.1em; }
@media (min-width: 900px) { .cp-note { top: -74px; } .cpage + * {} .main > .note { max-width: 62%; } }

/* Headings: back to Shrikhand, the pseudo-Blythe logo face. The dot-matrix font stays for system text. */
:root { --grotesk: 'Figtree', system-ui, sans-serif; }
.mega { font-family: var(--display); font-weight: 400; font-variation-settings: normal; letter-spacing: -0.01em; line-height: 0.95; font-size: clamp(40px, 7.4vw, 100px); }
.brand-title { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.recipe-label h1, .recipe-label input { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.cp-note { font-family: var(--display); font-weight: 400; }

/* ---------- NRFB / boxed dolls: each box printed in her own colours ---------- */
.shelf-doll .box {
  --box: #f2a9c4; --box-trim: #7a4e30; --box-label: #fff6e0;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--box-trim) 55%, transparent) 0 1.6px, transparent 2.2px) 0 0 / 9px 9px,
    linear-gradient(180deg, color-mix(in srgb, var(--box) 78%, #fff) 0%, var(--box) 60%, color-mix(in srgb, var(--box) 82%, #000) 100%);
  border: 2px solid color-mix(in srgb, var(--box) 55%, #000);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.55), inset -3px 0 0 rgba(0,0,0,0.12), 3px 4px 0 rgba(0,0,0,0.16);
}
/* clear acetate window with a glint */
.shelf-doll .win { border: 2px solid color-mix(in srgb, var(--box) 40%, #fff); background: #fff; position: relative; }
.shelf-doll .win::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.55) 38%, rgba(255,255,255,0) 46%); pointer-events: none; }
.shelf-doll .boxlabel {
  margin: 4px -6px 0; padding: 4px 2px 5px; border: 0; border-top: 2px solid color-mix(in srgb, var(--box) 55%, #000); border-radius: 0 0 3px 3px;
  background: var(--box-label); color: var(--box-ink, #2a1a20); outline: none; box-shadow: none; backdrop-filter: none;
  font-family: var(--display); font-size: 13px;
}
/* your own photo gets a little star on the shelf tag */
.shelf-doll .cut.mine { filter: drop-shadow(0 3px 2px rgba(0,0,0,.22)) drop-shadow(0 0 0 transparent); }

/* ---------- Your doll ---------- */
.copy.panel { padding: 0; }
.copy.panel .panel-body { gap: 14px; }
.mydoll { display: flex; gap: 14px; align-items: flex-end; }
.mydoll-pic { width: 120px; height: 170px; flex: none; display: flex; align-items: flex-end; justify-content: center; border: 1px dashed var(--rule); border-radius: 3px; background: repeating-conic-gradient(color-mix(in srgb, var(--v1) 7%, #fff) 0 25%, #fff 0 50%) 0 0/12px 12px; overflow: hidden; }
.mydoll-pic img.cut { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.2)); }
.mydoll-pic img.photo { width: 100%; height: 100%; object-fit: cover; }
.mydoll-pic .sysmini { align-self: center; text-align: center; padding: 6px; }
.mydoll-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.filebtn { cursor: pointer; }

/* ---------- v0.27: modern ease on top of the structure ---------- */
:root { --r: 10px; }
.panel, .filters.panel, .panel-like, .card.file, .auth, .recipe-card, .cp-note { border-radius: var(--r); }
.card.file { border-radius: 12px; }
.card.file .file-bar { border-radius: 11px 11px 0 0; }
.pager button, .step, .field input, .field textarea { border-radius: 8px; }
.eyes { border-radius: 8px; overflow: hidden; }
/* smooth, not stepped */
.card.file { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1); }
.card.file:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--v-ink) 55%, transparent), 4px 5px 0 color-mix(in srgb, var(--v1) 35%, transparent); }
.card-img.ld img { animation: develop .5s ease-out both; }
@keyframes develop { from { opacity: 0; filter: blur(6px) saturate(0.6); transform: scale(1.02); } to { opacity: 1; filter: none; transform: none; } }
.chip, .btn, .listbtn, .card-add, .step, .swatch, .sw, .grailbtn { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.clickfx { animation: clickfx .8s cubic-bezier(.2,.8,.2,1) forwards; }
.mock.installed canvas { animation: install .6s cubic-bezier(.2,.8,.2,1); }

/* sticky header that tucks in as you scroll */
.top { position: sticky; top: 0; z-index: 30; transition: padding .25s ease, box-shadow .25s ease; }






/* loading more as you scroll */
.more { text-align: center; padding: 22px 0 8px; color: var(--v-ink); }
.more.done { color: var(--muted); }
.to-top { position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--sb-h) + 14px); z-index: 25; width: 44px; height: 44px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--v1) 75%, #fff); background: var(--shine), color-mix(in srgb, var(--v1) 85%, #fff); color: #fff; font-size: 14px; cursor: pointer; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--v1) 90%, #000); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* page cross-fade */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ---------- grail ---------- */
.grailbtn {
  align-self: flex-start; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 600 14px var(--font);
  --vt: var(--v3); color: var(--v-ink);
  background: var(--shine), color-mix(in srgb, var(--vt) 30%, rgba(255,255,255,0.6)); border: 2px solid color-mix(in srgb, var(--vt) 75%, #c9a227);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.32), 0 8px 18px -10px color-mix(in srgb, #c9a227 90%, #000);
}
.grailbtn.on { background: var(--shine), linear-gradient(135deg, #ffe48a, #f2c230 55%, #d9a514); color: #5a3a00; border-color: #b8860b; }
.grail-panel { margin-bottom: 16px; }
.grail-panel .panel-bar { background: repeating-linear-gradient(180deg, color-mix(in srgb, #f2c230 22%, #fff) 0 2px, #fff 2px 4px); }
.grail { display: flex; gap: 16px; align-items: flex-end; text-decoration: none; color: inherit; }
.grail-pic { width: 110px; height: 160px; flex: none; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, #f2c230 35%, #fff) 0%, transparent 70%); }
.grail-pic img.cut { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.2)); }
.grail-pic img.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.grail-txt { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; }
.grail-txt b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--v-ink); }
.grail-txt em { font-size: 14px; color: var(--text); }
.grail-panel.empty .panel-body { padding: 12px 14px; }
.filebtn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; font-size: 14px; }
.copy.panel { background: var(--sheet); border: 1px solid var(--rule); }
.shelf { margin-bottom: 4px; }

/* ---------- v0.28: the Pullstring wordmark (direction E) ----------
   Shrikhand, hot pink with a plum outline and a flat lime shadow; the g's tail is a pullstring ending in a pull ring.
   The wordmark keeps its own colours on every skin. */
:root { --wm-pink: #ff2e93; --wm-plum: #7a0f45; --wm-lime: #9fe02a; --wm-cream: #fff8d6; --wm-yellow: #ffe23b; }
.brand { background: var(--wm-cream); border: 3px solid var(--wm-plum); border-radius: 14px; box-shadow: 4px 4px 0 var(--wm-plum); outline: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 8px 34px 14px 16px; color: var(--wm-plum); }
.brand-kicker { color: var(--wm-plum); font-size: 10px; letter-spacing: 0.16em; }
.wordmark {
  font-family: 'Shrikhand', serif; font-size: 34px; line-height: 1; color: var(--wm-pink); white-space: nowrap;
  -webkit-text-stroke: 0.075em var(--wm-plum); paint-order: stroke fill; text-shadow: 0.06em 0.06em 0 var(--wm-lime);
  display: inline-block; position: relative;
}
.wm-g { position: relative; display: inline-block; }
.wm-ring { position: absolute; left: 0.26em; top: 0.78em; width: 1.2em; height: 1.2em; overflow: visible; color: var(--wm-plum); pointer-events: none; }
@media (min-width: 900px) { .wordmark { font-size: 40px; } }


.brand:hover .wm-ring { animation: tug .6s cubic-bezier(.3,1.6,.5,1); transform-origin: 10% 10%; }
@keyframes tug { 0% { transform: none; } 35% { transform: translate(0.04em, 0.12em) rotate(-6deg); } 100% { transform: none; } }

/* headlines take the same flat, outlined toy-box treatment, in each skin's colours */
.mega { color: var(--v1); -webkit-text-stroke: 0.05em var(--v-ink); paint-order: stroke fill; text-shadow: 0.055em 0.055em 0 var(--v2); }

/* ---------- v0.29: the wordmark follows the skin ---------- */
:root { --wm-fill: var(--v1); --wm-line: var(--v-ink); --wm-shadow: var(--v2); --wm-ring: var(--v3); --wm-label: var(--label); }
.brand { background: var(--wm-label); border-color: var(--wm-line); box-shadow: 4px 4px 0 var(--wm-line); color: var(--wm-line); }
.brand-kicker { color: var(--wm-line); }
.wordmark { color: var(--wm-fill); -webkit-text-stroke-color: var(--wm-line); text-shadow: 0.06em 0.06em 0 var(--wm-shadow); }
.wm-ring { color: var(--wm-line); }
.wm-ring-fill { stroke: var(--wm-ring); }
.wm-ring-glint { stroke: #ffffff; opacity: 0.85; }
.wordmark, .brand, .wm-ring-fill { transition: color .35s ease, background-color .35s ease, border-color .35s ease, stroke .35s ease, text-shadow .35s ease, box-shadow .35s ease; }

/* gorgeous bits shared by every skin */
/* a clear vinyl strip laid across the header print: soft top shine and a welded bottom seam */
.top::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.08) 34%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 88%, rgba(0,0,0,0.06) 100%); }
.top-inner { position: relative; z-index: 1; }
/* the ground: pale vinyl with glitter and a faint wash of the skin's colours */
body { background:
  radial-gradient(circle at 20% 30%, rgba(255,255,255,0.95) 0 1.5px, transparent 2.5px) 0 0/58px 58px,
  radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--v1) 20%, transparent) 0 1.5px, transparent 2.5px) 0 0/86px 86px,
  radial-gradient(circle at 40% 60%, color-mix(in srgb, var(--v2) 24%, transparent) 0 1.5px, transparent 2.5px) 0 0/72px 72px,
  radial-gradient(1200px 700px at 100% 0%, color-mix(in srgb, var(--v2) 12%, transparent), transparent 70%) fixed,
  radial-gradient(1000px 700px at 0% 100%, color-mix(in srgb, var(--v3) 22%, transparent), transparent 70%) fixed,
  var(--ground); }

/* v0.30: the sticky header never changes height (that made the page jump and the header flicker); scrolling only adds a shadow */
.top.compact { box-shadow: 0 10px 26px -16px rgba(0,0,0,0.45); }

/* legibility: a heavier outline on the wordmark and headlines, so light fills always read */
.wordmark { -webkit-text-stroke-width: 0.1em; }
.mega { -webkit-text-stroke-width: 0.065em; }

/* skin picker: names only, a grid of vinyl swatches; the chosen one is a fuller vinyl with a tick */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.swatch { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; min-height: 64px; text-align: left; cursor: pointer; font: inherit; }
.swatch i { width: 64px; height: 44px; flex: none; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.swatch b { font-size: 15px; }
.swatch > span:not(.sw-on) { flex: 1; }
.swatch.on { background: var(--shine), color-mix(in srgb, var(--vt) 40%, #fff) !important; border-width: 3px; text-shadow: none; }
.sw-on { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: currentColor; flex: none; }
.sw-on::before { content: '✓'; color: #fff; font-size: 14px; font-weight: 700; }

/* ---------- plans ---------- */
.plans-lede { max-width: 640px; font-size: 17px; line-height: 1.45; margin: 0 0 20px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .panel-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--wm-fill); -webkit-text-stroke: 0.07em var(--wm-line); paint-order: stroke fill; text-shadow: 0.06em 0.06em 0 var(--wm-shadow); }
.plan-price b { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--v-ink); }
.plan-perks { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.plan-perks li { padding-left: 24px; position: relative; font-size: 14.5px; line-height: 1.35; }
.plan-perks li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--v2); border: 1.5px solid var(--v-ink); }
.plan-cta { margin-top: 8px; }
.plan-cta .btn { width: 100%; justify-content: center; text-align: center; display: inline-flex; align-items: center; text-decoration: none; }
.plan.featured { transform: translateY(-6px); box-shadow: 6px 8px 0 color-mix(in srgb, var(--v1) 45%, transparent); border-width: 2px; }
.plan-mailclub .panel-bar { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--v1) 22%, #fff) 0 8px, #fff 8px 16px, color-mix(in srgb, var(--v2) 30%, #fff) 16px 24px, #fff 24px 32px); }
.plan.current { outline: 3px solid var(--v-ink); outline-offset: 2px; }
.plan-cur { pointer-events: none; opacity: .8; }
