/* MaxBeautifulDesigns shop. Warm paper, ink type, small square color markers. 8px spacing grid.
   Type (owner feedback 2026-10-23, "more distinctive, a notch more elegant"): Fraunces with the soft axis for headings
   (echoes the serif of the banner), Figtree for text. Both OFL, self-hosted, latin subset (docs/design/font-compare.png).
   Structure and proportions follow Etsy's shop, search and listing pages (measured: docs/ETSY-PATTERNS.md).
   Mobile first: the base rules are for phones (360 to 430 px), min-width queries add tablet (600, 760) and desktop (960) layouts.
   Nothing may be wider than the viewport: scripts/check-overflow.mjs fails on horizontal overflow at 360, 375, 390 and 414 px. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2?v=852de95a7e") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2?v=852de95a7e") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --sun: #FFC93C; --coral: #FF6B6B; --teal: #2EC4B6; --sky: #3A86FF; --grape: #7B4BB7;
  --ink: #1F2A44; --ink-2: #2B3756; --cream: #FFF8EC; --paper: #FFFFFF; --sand: #F6EEDF; --sand-2: #EFE4D0;
  --line: #E6DAC4; --line-strong: #CDBE9F; --muted: #535E78; --link: #2257C7; --ok: #138A7E;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: 12px;
  --header-h: 57px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .05), 0 6px 20px rgba(31, 42, 68, .06);
  --shadow-lift: 0 2px 4px rgba(31, 42, 68, .08), 0 16px 40px rgba(31, 42, 68, .12);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --header-h: 73px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
html.zoom-lock { overflow: hidden; }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); letter-spacing: -.015em; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(1.625rem, 1rem + 3vw, 3.5rem); line-height: 1.1; font-weight: 600; }
h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); line-height: 1.15; font-weight: 600; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 var(--s2); }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.small { font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 599px) { .hide-phone { display: none !important; } }

.wrap { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
.narrow { max-width: 720px; }
.section { padding-block: 40px; }
.section-tight { padding-block: var(--s3); }
@media (min-width: 600px) { .section, .section-tight { padding-block: var(--s6); } }
@media (min-width: 900px) { .section { padding-block: var(--s7); } .section-tight { padding-block: var(--s6); } }
.section-sand { background: var(--sand); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s1) var(--s4); margin-bottom: var(--s3); }
.section-head > div { min-width: 0; }
.section-head p { margin: var(--s1) 0 0; color: var(--muted); max-width: 56ch; }
.section-head .text-link { min-height: 44px; }
@media (min-width: 600px) { .section-head { margin-bottom: var(--s4); gap: var(--s2) var(--s4); } }

/* Small caps label with a square color marker (no pills, no rounded badges). */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s1); font: 700 .8125rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--marker, var(--sun)); flex: none; }
@media (min-width: 600px) { .eyebrow { margin-bottom: var(--s2); } }
[data-color="sun"] { --marker: var(--sun); } [data-color="teal"] { --marker: var(--teal); } [data-color="sky"] { --marker: var(--sky); }
[data-color="coral"] { --marker: var(--coral); } [data-color="grape"] { --marker: var(--grape); }

/* Buttons: 48 px primary (Etsy CTA height), 44 px small (tap targets). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--cream); font: 700 1rem/1.2 var(--text); letter-spacing: .01em; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: #111A30; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 42, 68, .18); }
.btn:active { transform: none; box-shadow: none; }
.btn .icon { width: 20px; height: 20px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFD666; color: var(--ink); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px var(--s2); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.text-link:hover { border-color: var(--ink); color: var(--ink); }
.text-link .icon { width: 18px; height: 18px; transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }

/* Skip link, service line, header */
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { top: 8px; }
.serviceline { background: var(--ink); color: #F4EEE2; font: 600 .75rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.serviceline .wrap { display: flex; justify-content: center; align-items: center; gap: 12px; padding-block: 8px; white-space: nowrap; overflow: hidden; }
.serviceline .sep { width: 4px; height: 4px; background: var(--sun); flex: none; }
.sl-wide { display: none; }
/* Product pages on phones: the same facts sit right by the Buy button, so the line gives its height to the gallery and CTA. */
@media (max-width: 599px) { .page-product .serviceline, .page-home .serviceline { display: none; } }
@media (min-width: 600px) { .serviceline { font-size: .8125rem; letter-spacing: .14em; } .serviceline .wrap { gap: 16px; padding-block: 10px; } .sl-wide { display: inline; } .serviceline .sep.sl-wide { display: block; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 236, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: var(--ink); text-decoration: none; font: 600 1.125rem/1 var(--display); letter-spacing: -.01em; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
@media (max-width: 359px) { .brand { font-size: 1rem; gap: 8px; } .brand img { width: 28px; height: 28px; } }
.brand:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.quiet-link { display: none; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; color: var(--ink); font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.cart-link .icon { width: 24px; height: 24px; }
.cart-word { display: none; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 4px; display: inline-grid; place-items: center; background: var(--sun); color: var(--ink); font: 800 .75rem/1 var(--text); border-radius: 2px; }
.cart-count[hidden] { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 8px; margin-right: -8px; border: 0; background: none; color: var(--ink); font: 700 1rem/1 var(--text); text-decoration: none; cursor: pointer; border-radius: var(--radius); }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-close { display: none; }
.nav-open .menu-open { display: none; }
.nav-open .menu-close { display: inline-flex; }
.menu-open, .menu-close { align-items: center; }
.menu-open { display: inline-flex; }
/* Main nav on phones and tablets: a panel under the header, opened by the menu button. */
.main-nav { display: none; }
.nav-open .main-nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: 4px var(--gutter) var(--s2); background: var(--cream); border-bottom: 1px solid var(--line-strong); box-shadow: 0 16px 32px rgba(31, 42, 68, .12); }
.main-nav a { display: flex; align-items: center; min-height: 52px; color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.main-nav a:last-child { border-bottom: 0; }
@media (min-width: 600px) {
  .brand { font-size: 1.25rem; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .cart-link { border: 2px solid var(--ink); padding: 0 14px; }
  .cart-link:hover { background: var(--ink); color: var(--cream); }
  .cart-word { display: inline; }
  .cart-count { position: static; }
  .header-actions { gap: var(--s1); }
  .menu-word { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .menu-btn { margin-right: 0; }
}
/* Full inline nav only from 1280 px (7 links + brand + cart need the room); below that the menu button. */
@media (min-width: 1280px) {
  .bar { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); min-height: 72px; }
  .main-nav, .nav-open .main-nav { display: flex; position: static; gap: var(--s3); justify-content: center; padding: 0; background: none; border: 0; box-shadow: none; }
  .main-nav a { min-height: 44px; font-size: 1rem; font-weight: 700; border-bottom: 2px solid transparent; }
  .main-nav a:hover, .quiet-link:hover { border-color: var(--sun); color: var(--ink); }
  .main-nav .nav-extra { display: none; }
  .quiet-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
  .header-actions { gap: var(--s3); }
  .menu-btn { display: none; }
}

/* Home, laid out like an Etsy shop page (docs/ETSY-PATTERNS.md): 4:1 banner, shop identity row, stats, search,
   category row, then the product grid. */
.banner { background: var(--sand); border-bottom: 1px solid var(--line); }
/* Phones get banner-mobile (its own 1000 x 460 crop, larger type than the 4:1 strip); each file is shown at its own ratio. */
.banner img { width: 100%; aspect-ratio: 1000 / 460; object-fit: cover; }
@media (min-width: 600px) { .banner img { aspect-ratio: 2172 / 543; } }
.shop-id { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding-top: 12px; }
.shop-logo { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 2px 8px rgba(31, 42, 68, .08); }
.shop-id h1 { font-size: 1.5rem; line-height: 1.15; font-weight: 600; }
@media (max-width: 359px) { .shop-id h1 { font-size: 1.3125rem; } }
.shop-id p { margin: 0; font-size: .875rem; line-height: 1.4; }
.shop-stats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.shop-stats li { display: grid; align-content: center; text-align: center; padding: 8px 4px; border-left: 1px solid var(--line); min-height: 56px; }
.shop-stats li:first-child { border-left: 0; }
.shop-stats a { display: grid; align-content: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.shop-stats strong { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: 700 .9375rem/1.3 var(--text); }
.shop-stats span { font-size: .875rem; color: var(--muted); line-height: 1.3; }
.shop-stats .icon { width: 16px; height: 16px; fill: var(--sun); stroke: #B78600; }
@media (min-width: 720px) {
  .shop-head { border-bottom: 1px solid var(--line); padding-bottom: var(--s3); }
  .shop-id { grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s2); padding-top: var(--s3); }
  .shop-logo { width: 72px; height: 72px; }
  .shop-id h1 { font-size: 2rem; }
  .shop-stats { display: flex; gap: var(--s4); border: 0; background: none; margin-top: var(--s2); }
  .shop-stats li { border: 0; padding: 0; text-align: left; min-height: 0; display: flex; gap: 6px; align-items: center; }
  .shop-stats a { display: flex; gap: 6px; align-items: center; }
}

/* Search field (Etsy style: one large field with the button inside, our 8 px radius instead of a pill). */
.search { position: relative; display: flex; margin-top: 12px; }
.search input { flex: 1; min-width: 0; min-height: 52px; padding: 10px 56px 10px 16px; font: inherit; font-size: max(1rem, 16px); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 1px 2px rgba(31, 42, 68, .04); -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus { border-color: var(--ink); }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--ink); color: var(--cream); cursor: pointer; }
.search button .icon { width: 22px; height: 22px; }
@media (min-width: 720px) { .search { max-width: 640px; margin-top: var(--s2); } }

/* Home category navigation (owner feedback 2026-10-23): Etsy style round photos of a real page, name below, count small.
   Phones: one row that scrolls sideways; the last circle is cut off and the edge fades, so more is visible. No pills. */
.cat-circles { padding-block: 20px 4px; }
.cat-list { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px 16px 8px; scroll-padding-inline: 16px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.cat-list.at-end { -webkit-mask-image: none; mask-image: none; }
.cat-list::-webkit-scrollbar { display: none; }
.cat-list li { flex: 0 0 96px; min-width: 0; scroll-snap-align: start; }
.cat-list a { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2px; color: var(--ink); text-decoration: none; text-align: center; }
.cat-img { display: block; width: 80px; height: 80px; margin-bottom: 6px; border-radius: 50%; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(31, 42, 68, .08); transition: box-shadow .2s; }
/* Square 256 px motif files (scripts/home-crops.py) in square boxes: no ratio crop, no upscaling up to 3x screens. */
.cat-img img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cat-list a:hover .cat-img, .cat-list a:focus-visible .cat-img { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--marker, var(--ink)); }
.cat-name { max-width: 100%; font: 600 .875rem/1.25 var(--text); }
.cat-count { font-size: .75rem; line-height: 1.3; color: var(--muted); }
.cat-list a:hover .cat-name { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) {
  .cat-circles { padding-block: var(--s4) var(--s1); }
  .cat-list { justify-content: center; gap: var(--s4); margin: 0; padding-inline: 0; scroll-padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .cat-list li { flex: 0 0 128px; }
  .cat-img { width: 112px; height: 112px; margin-bottom: 10px; }
  .cat-name { font-size: .9375rem; }
  .cat-count { font-size: .8125rem; }
}

/* Grid sections */
.section-grid { padding-block: var(--s3) var(--s2); }
.grid-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: 12px; }
.grid-head h2 { font-size: 1.5rem; line-height: 1.2; }
.grid-head .text-link { min-height: 44px; border-bottom: 0; font-size: .9375rem; }
@media (min-width: 720px) { .section-grid { padding-block: var(--s4) var(--s3); } .grid-head { margin-bottom: var(--s3); } .grid-head h2 { font-size: 2rem; } }

/* Product grid: Etsy's search grid proportions. Phones: 2 columns, 9 px page edge and 6 px gap (the wrap gutter is 12 px,
   the grid pulls out by 3 px). 3 columns from 720 px, 4 from 1100 px with 18 px gaps. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 6px; margin-inline: -3px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; margin-inline: 0; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: grid; grid-template-rows: auto 1fr; min-width: 0; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); }
.card[hidden] { display: none; }
.card-media { position: relative; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(31, 42, 68, .04); transition: box-shadow .25s; }
.card:hover .card-media { box-shadow: 0 0 0 1px var(--line-strong), 0 10px 24px rgba(31, 42, 68, .10); }
/* Listing covers keep all content in the central square (Etsy thumbnail rule), so a 1:1 crop shows all of it, as large as possible. */
.card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.03); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-body { display: grid; gap: 2px; padding-top: 8px; align-content: start; }
.card-meta { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.card-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta .icon { width: 14px; height: 14px; }
.card-body h3, .article-body .card-body h3 { margin: 0; font: 400 .875rem/1.6 var(--text); letter-spacing: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: 2px 0 0; font: 700 1rem/1.4 var(--text); color: var(--ink); }
.ribbon { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .95); color: var(--ink); font: 700 .875rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 2px; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 1px 3px rgba(31, 42, 68, .15); }
.ribbon::before { content: ""; width: 7px; height: 7px; background: var(--sun); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: var(--s2); }
.step-num { font: 700 2.25rem/1 var(--display); color: var(--marker); display: block; }
.steps h3 { margin-bottom: 4px; font-size: 1.25rem; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
  .steps li { display: block; border-radius: 10px; padding: var(--s4) var(--s3) var(--s3); }
  .step-num { font-size: 3.5rem; margin-bottom: var(--s2); }
  .steps h3 { margin-bottom: var(--s1); font-size: 1.375rem; }
}

/* Trust */
.trust { display: grid; gap: var(--s2); }
.trust-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.trust-item .icon-box { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.trust-item h3 { font-size: 1.125rem; margin-bottom: 2px; }
.trust-item p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (min-width: 760px) {
  .trust { grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
  .trust-item { grid-template-columns: none; gap: var(--s1); }
  .trust-item .icon-box { width: 48px; height: 48px; margin-bottom: var(--s1); }
}
.proof { margin-top: var(--s4); display: grid; gap: var(--s2); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: var(--s3) 20px; }
@media (min-width: 760px) { .proof { margin-top: var(--s5); grid-template-columns: auto 1fr auto; padding: var(--s4); gap: var(--s4); } }
.proof-score { font: 700 2.75rem/1 var(--display); display: flex; align-items: baseline; gap: var(--s1); }
.proof-score small { font: 700 1rem/1 var(--text); color: var(--muted); }
.proof p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 56px; padding: 12px 0; font: 600 1.0625rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .acc > summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after, .acc[open] > summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq .answer { padding: 0 0 var(--s2); color: var(--ink-2); max-width: 68ch; }
.faq .answer p:last-child { margin: 0; }
.faq-layout { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .faq summary { font-size: 1.1875rem; padding: 18px 0; } .faq .answer { padding-bottom: var(--s3); } }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 1fr 2fr; gap: var(--s6); } }

/* Page heads (shop, cart) */
.page-head { padding-block: var(--s5) var(--s4); }
.page-head h1 { margin-bottom: var(--s2); }
.page-head-compact { padding-block: 16px 0; }
.page-head-compact h1 { margin: 0; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
@media (min-width: 600px) { .page-head-compact { padding-block: var(--s4) 0; } .page-head-compact .lead { margin: 0; } }

/* Collection row (home and shop): one sticky row of tabs with square markers, underline for the active tab, no pills. */
.filters { position: sticky; top: var(--header-h); z-index: 30; margin-top: 12px; background: rgba(255, 248, 236, .97); border-bottom: 1px solid var(--line); }
.filters-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.filters-row::-webkit-scrollbar { display: none; }
@media (max-width: 719px) { .filters .wrap { width: 100%; padding-inline: 6px; } }
/* Shop tabs: text with a 2 px underline in the collection color for the active one (no square dots, no pills). */
.filters a { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 48px; padding: 0 12px; color: var(--ink-2); font-weight: 600; font-size: .9375rem; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.filters a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.filters a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--marker, var(--ink)); }
.tab-count { color: var(--muted); font-weight: 500; font-size: .8125rem; }
.results-line { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.shop-section { padding-block: var(--s2) var(--s3); scroll-margin-top: calc(var(--header-h) + 64px); }
.shop-section[hidden] { display: none; }
.shop-section .grid-head h2 { font: 600 1.25rem/1.3 var(--display); letter-spacing: -.01em; }
@media (min-width: 720px) { .shop-section { padding-block: var(--s3) var(--s4); } .shop-section .grid-head h2 { font-size: 1.5rem; } }

/* Breadcrumb (tablet and desktop only, the header menu covers phones) */
.crumbs { display: none; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); padding-top: var(--s2); margin: 0; list-style: none; padding-left: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
@media (min-width: 720px) { .crumbs { display: flex; } }

/* Product page in Etsy's listing structure (docs/ETSY-PATTERNS.md).
   Phones: full bleed 1:1 gallery, price, title, rating line, 48 px buttons, accordions, seller card, more from this shop.
   From 720 px: gallery left, buy column right (432 px at desktop) with the accordions; seller card and more items under the gallery. */
.listing { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "seller" "goes" "more"; padding-bottom: var(--s5); }
.gallery { grid-area: gallery; min-width: 0; margin-inline: calc(-1 * var(--gutter)); }
.listing-side { grid-area: side; min-width: 0; }
.seller { grid-area: seller; min-width: 0; }
.more { grid-area: more; min-width: 0; }
.listing .goes-with { grid-area: goes; }
@media (min-width: 720px) {
  .listing { grid-template-columns: minmax(0, 1fr) clamp(300px, 32vw, 432px); column-gap: clamp(32px, 4vw, 60px); grid-template-areas: "gallery side" "seller side" "goes side" "more side"; grid-template-rows: auto auto auto 1fr; align-items: start; padding-top: var(--s2); }
  .gallery { margin-inline: 0; }
}

/* Gallery: swipe track with scroll snap. Every shop image is a 1:1 square, so each slide is a 1:1 frame showing the whole image
   (no crop, no letterbox; "contain" only guards against a non-square file). */
.gallery-stage { position: relative; min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 0; background: var(--paper); scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .gallery-track { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); } }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.gallery-slide.zoomable { cursor: zoom-in; }
.gallery-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--paper); }
.gallery-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; place-items: center; background: rgba(255, 255, 255, .96); border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(31, 42, 68, .25); transition: background .15s, opacity .15s; }
.gallery-nav:hover { background: var(--ink); color: #fff; }
.gallery-nav.prev { left: 16px; } .gallery-nav.next { right: 16px; }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 960px) { .gallery-nav { display: grid; } }
.gallery-counter, .gallery-hint { position: absolute; bottom: 10px; background: rgba(31, 42, 68, .84); color: #fff; font: 700 .875rem/1 var(--text); letter-spacing: .04em; padding: 8px 10px; border-radius: 6px; pointer-events: none; }
.gallery-counter { right: 10px; }
.gallery-hint { left: 10px; display: inline-flex; align-items: center; gap: 6px; transition: opacity .6s; }
.gallery-hint[hidden] { display: none; }
.gallery-hint .icon { width: 16px; height: 16px; }
.gallery-hint.fade { opacity: 0; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 6px var(--gutter) 0; list-style: none; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs li { flex: 0 0 64px; }
.gallery-thumbs button { display: block; width: 100%; min-height: 44px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--paper); cursor: pointer; opacity: .72; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
/* Whole square image visible in the thumb. */
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; background: #fff; }
@media (min-width: 720px) { .gallery-thumbs { padding: var(--s1) 0 0; } .gallery-thumbs li { flex-basis: 80px; } }
/* Desktop: Etsy's vertical thumbnail column (60 px) left of the stage. */
@media (min-width: 960px) {
  .gallery { display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "thumbs stage"; gap: var(--s2); }
  .gallery-stage { grid-area: stage; }
  .gallery-thumbs { grid-area: thumbs; flex-direction: column; gap: 8px; padding: 0; height: 0; min-height: 100%; overflow-y: auto; overflow-x: hidden; }
  .gallery-thumbs li { flex: none; }
}

/* Buy column */
.buybox { display: grid; gap: 12px; padding-top: 12px; }
@media (min-width: 720px) { .buybox { padding-top: 0; } }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.price-big { font: 700 1.5rem/1.2 var(--text); color: var(--ink); }
.price-note { color: var(--muted); font-size: .875rem; }
.buybox h1 { font-size: 1.375rem; line-height: 1.25; font-weight: 600; margin-top: -8px; }
@media (min-width: 960px) { .buybox h1 { font-size: 1.75rem; } }
.rating-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-height: 44px; margin-block: -10px; font-size: .875rem; color: var(--ink); text-decoration: none; }
.rating-line:hover span { text-decoration: underline; }
.stars { display: inline-flex; gap: 1px; }
.stars .icon { width: 16px; height: 16px; fill: var(--sun); stroke: #B78600; }
.proof .stars .icon { width: 24px; height: 24px; }
.buy-actions { display: grid; gap: 12px; }
.buy-actions form { margin: 0; }
.buy-micro { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--ink); font-weight: 700; }
.buy-micro .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.added-note { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin: 0; min-height: 44px; }
.added-note.show { display: flex; flex-wrap: wrap; }
.added-note .icon { color: var(--ok); }
.assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.assurances li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.assurances .icon { width: 16px; height: 16px; color: var(--ink); margin-top: 2px; }
.assurances strong { color: var(--ink); }

/* Accordions (Etsy: Item details, Delivery, FAQs). Item details starts open; app.js opens the others from 960 px. */
.acc-group { margin-top: var(--s3); border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line); }
.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 56px; padding: 8px 0; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary h2 { font: 700 1rem/1.3 var(--text); letter-spacing: 0; margin: 0; }
.acc-body { padding-bottom: var(--s3); font-size: .9375rem; }
.acc-body .lead { font-size: 1rem; }
.sub-h { font: 700 .9375rem/1.3 var(--text); letter-spacing: 0; margin: var(--s3) 0 var(--s1); }
.acc-body > .sub-h:first-child { margin-top: 0; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.45; }
.highlights .icon { width: 20px; height: 20px; color: var(--ink); }
.included { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.included li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.included li:last-child { border-bottom: 0; }
.included .num { font: 700 .9375rem/1.45 var(--display); color: var(--muted); }
.included strong { display: block; font-weight: 700; line-height: 1.4; }
.included span { color: var(--muted); font-size: .875rem; }
.file-names { margin: var(--s2) 0 var(--s1); font-size: .875rem; }
.file-names summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--link); font-weight: 700; }
.file-names ul { margin: 0; padding-left: 18px; color: var(--muted); overflow-wrap: break-word; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: h; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.howto li::before { content: counter(h); width: 28px; height: 28px; display: grid; place-items: center; background: var(--sun); font: 700 .9375rem/1 var(--display); border-radius: 2px; }
.note-box { background: var(--sand); border-left: 4px solid var(--marker, var(--sun)); padding: 12px var(--s2); border-radius: 2px; color: var(--ink-2); }
.note-box p { margin: 0; }
.acc .faq { border-top: 0; }
.acc .faq summary { font-size: 1rem; min-height: 52px; padding: 10px 0; }

/* Meet your seller (Etsy's seller card): bordered box, avatar, name, shop, place, rating, message button. */
.seller { margin-top: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: var(--s2); display: grid; gap: 12px; }
.seller h2 { font: 700 1.125rem/1.3 var(--text); letter-spacing: 0; }
.seller-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.seller-avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); }
.seller-name { margin: 0; font: 600 1.25rem/1.2 var(--display); }
.seller-head .small { margin: 0; }
.seller p { margin: 0; }
.seller .rating-small { font-size: .875rem; margin-block: -4px; }
.seller-mail { text-align: center; }
@media (min-width: 720px) { .seller { padding: var(--s3); } }

/* More from this shop: 2 columns on phones, 4 under the gallery on desktop (Etsy shows 4). */
.more { margin-top: var(--s4); }
.grid-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid-more { gap: 24px 12px; } }
@media (min-width: 1100px) { .grid-more { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sticky mobile buy bar */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(31, 42, 68, .08); transform: translateY(110%); transition: transform .25s; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.sticky-buy.show { transform: none; }
.sticky-buy .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sb-text { display: grid; gap: 2px; min-width: 0; }
.sticky-buy .sb-name { font: 600 .9375rem/1.2 var(--display); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .sb-price { font: 700 1.25rem/1 var(--display); }
.sticky-buy form { margin: 0; flex: none; }
.sticky-buy .btn { min-height: 48px; }
body.has-sticky-buy .site-footer { padding-bottom: calc(var(--s4) + 72px); }
@media (min-width: 720px) { .sticky-buy { display: none; } }

/* Image zoom (full screen dialog) */
.zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.zoom::backdrop { background: rgba(31, 42, 68, .9); }
.zoom-bar { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px var(--gutter); border-bottom: 1px solid var(--line); }
.zoom-counter { font: 700 .875rem/1 var(--text); letter-spacing: .06em; }
.zoom-help { flex: 1; font-size: .875rem; color: var(--muted); min-width: 0; }
.zoom-close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.zoom-close .icon { width: 26px; height: 26px; }
.zoom-stage { overflow: auto; display: grid; place-items: center; background: var(--paper); cursor: zoom-in; overscroll-behavior: contain; }
.zoom-stage img { width: 100%; max-width: 1600px; max-height: 100%; object-fit: contain; }
.zoom-stage.zoomed { place-items: start; cursor: zoom-out; }
.zoom-stage.zoomed img { width: 250%; max-width: none; max-height: none; }
.zoom-nav { display: flex; justify-content: center; gap: 12px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.zoom-nav .btn { flex: 1; max-width: 220px; }

/* Cart */
.cart-layout { display: grid; gap: var(--s4); padding-block: var(--s3) var(--s5); }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; gap: var(--s5); padding-bottom: var(--s6); } }
.cart-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.cart-items li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .cart-items li { grid-template-columns: 112px minmax(0, 1fr) auto; gap: var(--s2); padding: var(--s2) 0; } }
.cart-items img { border-radius: 4px; border: 1px solid var(--line); aspect-ratio: 1 / 1; object-fit: cover; }
.cart-items .eyebrow { display: none; }
@media (min-width: 600px) { .cart-items .eyebrow { display: inline-flex; } }
.cart-items h3 { font-size: 1rem; line-height: 1.3; }
.cart-items h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.cart-items .remove { min-height: 44px; background: none; border: 0; padding: 0; color: var(--muted); font: 700 .9375rem var(--text); text-decoration: underline; cursor: pointer; }
.cart-items .line-price { font: 700 1.125rem/1 var(--display); align-self: start; padding-top: 4px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: var(--s2); }
@media (min-width: 600px) { .summary { padding: var(--s4) var(--s3); } }
@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total { font: 700 1.75rem/1 var(--display); }
.empty-state { text-align: left; padding: var(--s3) 0; }

/* Forms, notices, downloads */
form.stack { display: grid; gap: var(--s2); max-width: 480px; }
label { font-weight: 700; display: grid; gap: 6px; }
input[type=email], input[type=text] { font: inherit; font-size: max(1rem, 16px); padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-height: 52px; width: 100%; }
ul.files { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
ul.files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
ul.files .btn { flex: 1 1 100%; }
@media (min-width: 600px) { ul.files .btn { flex: none; } }
.file-meta { display: grid; gap: 2px; min-width: 0; }
.file-meta .eyebrow { margin: 0 0 4px; }
.file-meta .small { overflow-wrap: break-word; }
.notice { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: var(--s2) 20px; border-radius: 4px; margin: var(--s4) 0; }
.notice p { margin: 0 0 var(--s1); }
.notice p:last-child { margin: 0; }
.notice-title { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tips { margin: var(--s4) 0; }
.tips h2 { font-size: 1.375rem; margin-bottom: var(--s2); }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
ul.checks .icon { color: var(--ok); }
/* A list item without an icon spans both columns (never squeeze text into the 24 px icon column). */
ul.checks li > :only-child { grid-column: 1 / -1; }
/* Plain list of in-page links (help page questions): full width rows, 44 px tap targets. */
.link-list { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1px solid var(--line); }
ul.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; line-height: 1.35; overflow-wrap: normal; }
.todo { background: #FFF1C2; border: 1px dashed var(--ink); padding: 0 4px; border-radius: 2px; font-weight: 700; }
.prose { max-width: 72ch; padding-block: var(--s4) var(--s5); }
@media (min-width: 600px) { .prose { padding-block: var(--s5) var(--s6); } }
.prose h1 { margin-bottom: var(--s3); }
.prose h2 { font-size: 1.375rem; margin: var(--s4) 0 var(--s2); }
.prose h3 { margin: var(--s3) 0 var(--s1); }
.prose li { margin-bottom: 6px; }
.prose a { overflow-wrap: break-word; }

/* Footer: links are 44 px tall on phones. */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s4); }
.footer-grid { display: grid; gap: var(--s3) var(--s2); grid-template-columns: repeat(2, minmax(0, 1fr)); scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s5); } .site-footer { padding-top: var(--s6); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); margin-top: var(--s2); max-width: 40ch; }
.footer-col { display: grid; gap: 0; align-content: start; min-width: 0; }
/* Phones: Shop and Legal side by side, Help (with the long email address) full width below. */
.footer-col[aria-label="Help"] { grid-column: 1 / -1; order: 3; }
@media (min-width: 600px) { .footer-col[aria-label="Help"] { grid-column: auto; order: 0; } .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col .eyebrow { margin-bottom: 4px; }
.footer-col a { display: flex; align-items: center; min-height: 44px !important; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.footer-col a:hover { text-decoration: underline; }
@media (min-width: 900px) { .footer-col a { min-height: 36px; } }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-strong); font-size: .875rem; color: var(--muted); }
.footer-base p { margin: 0; }

/* Utilities (no inline styles: the CSP allows only style-src 'self'). */
.pt0 { padding-top: 0; }
/* Long German compound words in headings break at a hyphen (lang="de"), never mid-word. */
.hyphenate { -webkit-hyphens: auto; hyphens: auto; }
.mt2 { margin-top: var(--s2); }
.eyebrow.flush { margin: 0; }
.eyebrow.tight { margin: 0 0 4px; }

/* Maker card: a real person behind the shop (trust for cold ad traffic). */
/* Phones: avatar above the text, so the text (with the email address) gets the full card width. */
.maker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: var(--s2); margin-bottom: var(--s4); }
@media (min-width: 600px) { .maker { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); padding: var(--s3); } }
.maker-avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); }
.maker h3 { margin: 0 0 4px; font-size: 1.25rem; }
.maker p { margin: 0; color: var(--ink-2); }

/* Legal and order information (pre-contract notices, withdrawal function) */
.withdraw-link { text-decoration: underline; text-underline-offset: 3px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px var(--s2); margin: var(--s2) 0 var(--s3); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: break-word; }
.order-info { margin: var(--s2) 0 0; padding: var(--s2) 0 0; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.5; color: var(--muted, var(--ink)); }
.order-info p { margin: 0 0 var(--s1); }
.order-info strong { color: var(--ink); }
.checkout-notice { font-size: 0.875rem; line-height: 1.45; margin: var(--s1) 0 0; }

.order-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); font-size: 0.9375rem; line-height: 1.5; }
.order-info-list li { margin: 0; }
.consent { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 4px; font-size: .875rem; line-height: 1.4; }
.consent label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 44px; padding: 4px 0; font-weight: 400; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }

.buybox { scroll-margin-top: 72px; }

/* Bilingual legal texts: app.js shows the visitor's language (html[data-ui]) and a switch; without JS both are shown. */
.t-de, .t-en { display: block; }
.t-de + .t-en { margin-top: 4px; color: var(--ink-2); }
html[data-ui="en"] .t-de, html[data-ui="de"] .t-en { display: none; }
.lang-switch { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font: 700 .875rem/1.2 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lang-switch[hidden] { display: none; }

/* Order area (F3, F10): declarations, highlighted summary box, statutory button; notice, payment line and withdrawal below. */
.buy-actions form { display: grid; gap: 8px; }
.order-summary { margin: 0; padding: 7px 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); font-size: .875rem; line-height: 1.35; }
.order-summary p { margin: 0; }
.order-summary strong { font-weight: 700; }
.order-summary ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.order-summary li { display: flex; justify-content: space-between; gap: 12px; }
.order-summary .os-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.0625rem; }
.btn-order { min-height: 52px; font-size: 1.0625rem; }
.consent label .t-de, .consent label .t-en { display: inline; margin: 0; color: inherit; }
html[data-ui="en"] .consent label .t-de, html[data-ui="de"] .consent label .t-en { display: none; }
.consent .consent-details a { font-weight: 700; padding: 14px 8px; margin: -14px -8px; }
.text-btn { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font: 700 .9375rem/1.2 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn[hidden] { display: none; }
.trust-line { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.trust-line .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
@media (max-width: 719px) { .gallery-thumbs { display: none; } }
.order-details { font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.order-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.order-details summary::-webkit-details-marker { display: none; }
.order-details[open] { display: grid; gap: 8px; }
.checkout-notice { font-size: .875rem; line-height: 1.45; margin: 0; color: var(--ink-2); }
.pay-line { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.withdraw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: .875rem; color: var(--muted); }
.withdraw-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 700 .9375rem/1.2 var(--text); text-decoration: none; }
.withdraw-btn:hover { background: var(--ink); color: var(--cream); }
.footer-withdraw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 1px solid var(--line-strong); font-size: .9375rem; color: var(--ink-2); }
.buybox .rating-line { margin-block: -6px; }

/* Card note (cross-sell): a factual line, e.g. "Includes Dopamine Menu Printable". */
.card-note { margin: 2px 0 0; font-size: .875rem; line-height: 1.4; color: #0B6B61; font-weight: 700; }

/* Free Week 1 signup box */
.lead-box { display: grid; gap: var(--s3); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 8px; padding: 20px 16px; }
.lead-img { display: none; }
.lead-body h2, .lead-body h3 { font-size: 1.375rem; line-height: 1.2; margin-bottom: 8px; }
.lead-body > p { color: var(--ink-2); }
.lead-form { display: grid; gap: 12px; max-width: 520px; }
.lead-form .small { margin: 0; }
.lead-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400; font-size: .875rem; line-height: 1.45; cursor: pointer; min-height: 44px; }
.lead-consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.lead-soon { background: var(--sand); padding: 12px 14px; border-radius: 4px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 760px) { .lead-box { grid-template-columns: 280px minmax(0, 1fr); align-items: center; padding: var(--s4); } .lead-img { display: block; width: 280px; border-radius: 6px; border: 1px solid var(--line); } .lead-box:not(:has(.lead-img)) { grid-template-columns: minmax(0, 1fr); } }
.side-lead { margin-top: var(--s4); }
.side-lead .lead-box { padding: 16px; }
.section-lead .featured-row { display: grid; gap: var(--s3); }
@media (min-width: 960px) { .section-lead .featured-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; } }
.featured { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s2); align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px; color: var(--ink); text-decoration: none; }
.featured img { width: 112px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.featured h2 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 6px; }
.featured p { margin: 0 0 8px; color: var(--ink-2); font-size: .9375rem; }
.featured .card-price { font-size: 1.125rem; }
.featured:hover h2 { text-decoration: underline; }
@media (min-width: 760px) { .featured { grid-template-columns: 200px minmax(0, 1fr); padding: var(--s3); } .featured img { width: 200px; } }

/* Free week landing page: headline and form first, then the picture and the contents (friction audit #9) */
.fw-hero { display: grid; gap: var(--s3); padding-block: var(--s2) var(--s3); }
.fw-media { margin-inline: calc(-1 * var(--gutter)); }
.fw-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.fw-head .lead-box { margin: var(--s2) 0 0; }
.fw-hero h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin-bottom: 12px; }
.fw-head .lead { margin-bottom: 0; }
.fw-list { margin: var(--s2) 0; }
.fw-h2 { font-size: 1.5rem; margin: var(--s4) 0 var(--s2); }
.fw-inside .fw-h2 { margin-top: 0; }
@media (min-width: 900px) {
  .fw-hero { grid-template-columns: 440px minmax(0, 1fr); grid-template-areas: "media head" "media inside"; grid-template-rows: auto 1fr; gap: var(--s4) var(--s5); align-items: start; padding-top: var(--s4); }
  .fw-head { grid-area: head; }
  .fw-inside { grid-area: inside; }
  .fw-media { grid-area: media; margin-inline: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
  .fw-media img { aspect-ratio: 4 / 5; border-radius: 8px; border: 1px solid var(--line); }
}

/* Cart: bundle hint and complete the set */
.bundle-hint { margin-top: var(--s2); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 4px; padding: 12px 16px; font-size: .9375rem; }
.bundle-hint p { margin: 0 0 8px; }
.bundle-hint[hidden], .complete-set[hidden] { display: none; }
.complete-set { padding-bottom: var(--s5); }

/* Guides: long reading (68ch, generous line height), breadcrumb visible on phones too. */
.crumbs-all { display: flex; }
.article { max-width: 68ch; margin-inline: auto; padding-block: var(--s2) var(--s5); }
.article-head h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.12; margin-bottom: 12px; }
.article-meta { color: var(--muted); font-size: .9375rem; }
.article-body { font-size: 1.0625rem; line-height: 1.72; }
@media (min-width: 720px) { .article-body { font-size: 1.125rem; } }
.article-body h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin: var(--s5) 0 var(--s2); scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body h3 { font-size: 1.1875rem; margin: var(--s4) 0 var(--s1); }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--muted); }
.article-body code { font-size: .9em; background: var(--sand); padding: 1px 4px; border-radius: 2px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-weight: 700; background: var(--sand); }
.table-wrap tr:last-child td { border-bottom: 0; }
.toc { margin: var(--s2) 0 var(--s3); padding: 0 16px; background: var(--sand); border-radius: 6px; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 14px; height: 14px; margin-left: auto; flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .2s; }
.toc[open] summary::after { transform: rotate(45deg); }
.toc-count { font-weight: 600; font-size: .875rem; color: var(--muted); }
.toc nav { padding-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
/* Compact product strip in the first screen of a guide (friction audit #6) */
.guide-strip { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s2); align-items: center; margin: var(--s2) 0 var(--s2); padding: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 8px; }
.guide-strip-img img { display: block; width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.guide-strip-text p { margin: 0; font-size: .9375rem; line-height: 1.4; }
.guide-strip-text .text-link { min-height: 44px; margin-top: 2px; font-size: .9375rem; }
@media (min-width: 720px) { .guide-strip { grid-template-columns: 96px minmax(0, 1fr); padding: var(--s2); } .guide-strip-img img { width: 96px; height: 96px; } }
.guide-product { margin: var(--s4) 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.guide-product-row { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: var(--s2); align-items: start; }
.guide-product-text p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 720px) { .guide-product-row { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s3); } }
.article .lead-box { margin: var(--s4) 0; }
.article-more { margin-top: var(--s3); }
.guide-list { list-style: none; margin: var(--s3) 0 var(--s5); padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
.guide-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s2); align-items: start; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; height: 100%; }
.guide-card img { width: 96px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.guide-card h2 { font-size: 1.1875rem; line-height: 1.25; margin-bottom: 6px; }
.guide-card p { margin: 0 0 8px; font-size: .9375rem; color: var(--ink-2); }
.guide-card:hover h2 { text-decoration: underline; }
.guide-read { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; }
.guide-read .icon { width: 18px; height: 18px; }
@media (min-width: 600px) { .guide-card { grid-template-columns: 140px minmax(0, 1fr); padding: var(--s3); } .guide-card img { width: 140px; } }
.empty-state[hidden] { display: none; }
@media (max-width: 719px) { .crumbs-all li[aria-current] { display: none; } }

/* ---------- Seasonal showcase (home window) and landing pages (/halloween, /christmas). Dates: scripts/seasons.mjs ---------- */
[data-from][hidden], [data-until][hidden] { display: none !important; }
.season-window { padding-block: var(--s4); background: var(--sand); border-block: 1px solid var(--line); }
.season-head { display: grid; gap: 4px var(--s4); margin-bottom: var(--s2); }
.season-head h2 { font-size: 1.375rem; line-height: 1.2; }
.season-line { margin: 4px 0 0; color: var(--ink-2); max-width: 56ch; }
.season-head .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
@media (min-width: 720px) { .season-window { padding-block: var(--s5); } .season-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: var(--s3); } .season-head h2 { font-size: 1.75rem; } .season-head .text-link { justify-self: end; } }
/* Odd numbers of cards stay centered (flex rows instead of a left-aligned grid). */
.grid-season { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-season > .card { flex: 0 0 calc(50% - 3px); min-width: 0; }
@media (min-width: 720px) { .grid-season > .card { flex-basis: calc((100% - 36px) / 3); } }
@media (min-width: 1100px) { .grid-season > .card { flex-basis: calc((100% - 54px) / 4); } }
.season-hero { padding-block: var(--s4) var(--s5); text-align: center; }
.season-hero .eyebrow { justify-content: center; }
.season-hero h1 { max-width: 20ch; margin-inline: auto; }
.season-hero .lead { margin: var(--s2) auto var(--s3); }
.season-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: center; color: var(--ink-2); font-weight: 700; }
.season-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
@media (min-width: 720px) { .season-hero { padding-block: var(--s5) var(--s6); } .season-facts { grid-auto-flow: column; justify-content: center; gap: var(--s4); } }
.season-more-line { text-align: center; margin: 0; }
.season-more { padding-block: var(--s3) var(--s5); }

.brand, .main-nav a { white-space: nowrap; }
.brand span { overflow: visible; text-overflow: clip; }

/* Contextual lines written by the Worker per request (src/personalize.js): paper size, audience headline, visit note */
.paper-line, .visit-lines p { margin: 0; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.paper-line { margin-top: -6px; }
.visit-lines { display: grid; gap: 6px; margin-top: -4px; }
.visit-lines .ad-headline { font-weight: 700; font-size: .9375rem; line-height: 1.35; color: var(--ink); }
.visit-lines .visit-note { font-size: .875rem; color: var(--muted); }
/* Visit from a Meta or Pinterest ad: slim header (logo and cart), no menu, no breadcrumb, nothing else to click before the buy button */
body[data-visit="ad"] .main-nav, body[data-visit="ad"] .menu-btn, body[data-visit="ad"] .quiet-link, body[data-visit="ad"] .crumbs { display: none !important; }
