/* Ryleve Art, design direction A ("Gallery"): warm paper, deep ink, terracotta for buying, sage for value.
   Type: Sael Serif Display (headings), Sael Sans (UI, prices with tabular figures), Sael Serif (long copy),
   Sael Mono (small spec labels), Sael Geo (education). Fonts: /fonts/sael (SIL OFL 1.1). */
@font-face { font-family: 'Sael Sans'; src: url('/fonts/sael/SaelSans.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Sael Sans'; src: url('/fonts/sael/SaelSans-Ext.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+100-17F, U+218-21B, U+1E80-1E85, U+1EF2-1EF3; }
@font-face { font-family: 'Sael Serif Display'; src: url('/fonts/sael/SaelSerifDisplay.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Sael Serif Display'; src: url('/fonts/sael/SaelSerifDisplay-Italic.woff2') format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Sael Serif'; src: url('/fonts/sael/SaelSerif.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Sael Mono'; src: url('/fonts/sael/SaelMono.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Sael Geo'; src: url('/fonts/sael/SaelGeo.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
/* Used inside the 3D card artwork */
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url('/fonts/great-vibes-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --header-h: 72px;
  --paper: #FAF6F1;
  --surface: #fff;
  --ink: #1D2433;
  --ink-2: #3E4656;
  --muted: #5B6170;
  --line: #E7DFD5;
  --line-2: #DCD2C5;
  --accent: #A9462A;
  --accent-hover: #8E3920;
  --sage: #EEF1EA;
  --sage-ink: #3F5A3A;
  --tint: #F3EEE7;
  --radius: 8px;
  --wrap: 1240px;
  --display: 'Sael Serif Display', Georgia, serif;
  --serif: 'Sael Serif', Georgia, serif;
  --sans: 'Sael Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Sael Mono', ui-monospace, Menlo, monospace;
  --geo: 'Sael Geo', 'Sael Sans', system-ui, sans-serif;
  /* names older components still use */
  --brand: var(--ink); --brand-soft: var(--line-2); --sale: var(--sage-ink); --sale-bg: var(--sage); --clay: var(--ink); --rose: var(--accent); --cream: var(--paper); --blush: var(--tint);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; }
code { font-family: var(--mono); font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
main { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 72px; }
.home main, body.home main { padding-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-family: var(--geo); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7em; font-weight: 600; }
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
@media (max-width: 560px) { main { padding: 0 16px 56px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; font: inherit; font-weight: 600; font-size: .98rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: #111724; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-buy { width: 100%; min-height: 56px; font-size: 1.05rem; margin: 16px 0 6px; background: var(--accent); border-color: var(--accent); }
.btn-buy:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* header + footer */
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 40; }
.skip:focus { left: 8px; }
.promo-bar { margin: 0; padding: 9px 16px; background: var(--ink); color: #F4EEE6; text-align: center; font-size: .8rem; letter-spacing: .04em; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(29,36,51,.02); }
.header-in { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-family: var(--display); font-size: 1.75rem; line-height: 1; letter-spacing: .01em; }
.site-nav { display: flex; gap: 4px 22px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { text-decoration: none; font-size: .95rem; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current] { border-color: var(--ink); }
.site-nav .nav-accent { color: var(--accent); }
.search { position: relative; flex: 0 1 300px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input[type=search] { width: 100%; min-height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: inherit; font-size: .92rem; }
@media (max-width: 900px) {
  .header-in { padding: 10px 16px; gap: 10px 16px; }
  .brand span { font-size: 1.5rem; }
  .search { order: 2; flex: 1 1 100%; }
  .site-nav { order: 3; flex: 1 1 100%; gap: 18px; }
  .site-header { position: static; }
}
.site-footer { background: var(--ink); color: #E6DFD5; margin-top: 64px; }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .footer-in { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-logo { font-family: var(--display); font-size: 1.8rem; color: #fff; margin: 0 0 8px; }
.footer-brand p { font-size: .92rem; max-width: 34em; }
.site-footer h2 { font-family: var(--geo); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #B9B1A6; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.site-footer a { text-decoration: none; color: #F4EEE6; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { max-width: var(--wrap); margin: 0 auto; padding: 16px 24px 28px; font-size: .8rem; color: #B9B1A6; border-top: 1px solid #2E3647; }

/* prices: Sael Sans with tabular figures */
.price { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums lining-nums; }
.price-now { font-weight: 600; color: var(--ink); }
.price-from { font-weight: 400; color: var(--muted); font-size: .85em; }
.price-was { color: var(--muted); font-size: .85em; }

/* product cards + grids */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; } }
.product-card { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.product-card:hover { color: inherit; }
.product-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--tint); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-img img { transform: scale(1.035); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--ink); padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.product-title { font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.product-meta .price-now { font-size: 1rem; }
.product-kind { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin: 0 0 22px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.section-head .eyebrow { margin-bottom: 6px; }
.section-head p { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }

/* home */
.home-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.home-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.02; margin-bottom: 18px; }
.home-hero h1 em { font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero-price { color: var(--muted); font-size: .95rem; display: inline-flex; gap: 6px; align-items: baseline; }
.home-hero-art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.1; }
.hero-img { display: block; overflow: hidden; border-radius: 6px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-0 { grid-row: span 2; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 8px 0 56px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.tile-label { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.tile-sub { font-size: .82rem; color: var(--muted); margin-top: -4px; }
.home-shelf { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.topic-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; text-decoration: none; font-size: .92rem; }
.topic-chips a:hover, .topic-chips a[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.band { margin: 0 calc(50% - 50vw); padding: 64px 24px; }
.band-sage { background: var(--sage); }
.band-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.band-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.band-copy p { font-size: 1.08rem; color: var(--ink-2); }
.band-copy .eyebrow { color: var(--sage-ink); }
.band-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.style-card { text-decoration: none; background: #fff; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.style-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.style-card span:first-of-type { font-family: var(--geo); font-weight: 600; }
@media (max-width: 860px) { .band-in { grid-template-columns: 1fr; } }
.home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.home-cards-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.home-cards h2 { font-size: clamp(2rem, 4vw, 3rem); }
.home-cards p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 860px) { .home-cards { grid-template-columns: 1fr; gap: 24px; } }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 32px; }
.trust div { display: flex; flex-direction: column; gap: 4px; }
.trust strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.trust span { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr 1fr; } }
.studio { max-width: 720px; margin: 0 auto; text-align: center; padding: 64px 0 8px; }
.studio h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.studio p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; color: var(--ink-2); }

/* listings: category + search */
.listing-head { padding: 18px 0 8px; max-width: 760px; }
.listing-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 10px; }
.listing-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.search-big { display: flex; gap: 10px; margin-top: 18px; }
.search-big input[type=search] { flex: 1; min-height: 52px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; background: #fff; }
.style-row { margin: 22px 0 6px; }
.style-row-label { font-family: var(--geo); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.style-switch { display: flex; gap: 12px; flex-wrap: wrap; }
.style-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 132px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; font-family: var(--geo); font-weight: 600; font-size: .9rem; text-align: center; }
.style-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.style-tile.is-on, .style-tile:hover { border-color: var(--ink); color: var(--ink); }
.style-row-note { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.listing-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; margin-top: 24px; align-items: start; }
@media (max-width: 899px) { .listing-body { grid-template-columns: 1fr; gap: 12px; } }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 899px) { .filters { position: static; } }
.filters-panel > summary { font-weight: 600; list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.filters-panel > summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .filters-panel > summary { pointer-events: none; font-family: var(--geo); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-height: 0; margin-bottom: 8px; } }
@media (max-width: 899px) { .filters-panel > summary { justify-content: center; border: 1px solid var(--ink); border-radius: 999px; } .filters-panel[open] > summary { margin-bottom: 8px; } }
.facet { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 14px 0; }
.facet legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.facet-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: .92rem; clear: both; }
.facet-opt input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 0; }
.facet-opt span:nth-of-type(1) { flex: 1; }
.facet-n { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-count { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sort select { font: inherit; font-size: .9rem; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: .85rem; }
.active-chip:hover { color: #fff; background: var(--accent); }
.clear-all { font-size: .85rem; }
.grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1200px) { .listing .grid-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-shelf .grid-shop, .pdp-more .grid-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-shelf .grid-shop, .pdp-more .grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.no-results { padding: 40px 0; text-align: center; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); text-decoration: none; font-variant-numeric: tabular-nums; background: #fff; }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; padding-top: 18px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.pdp-info h1 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 10px; }
.pdp-price { margin: 0 0 6px; }
.pdp-price .price-now { font-size: 1.9rem; font-weight: 500; }
.pdp-label { font-size: .92rem; margin: 18px 0 8px; }
.pdp-style-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-style { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; font-family: var(--geo); font-size: .8rem; font-weight: 600; text-align: center; }
.pdp-style img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pdp-style.is-on, .pdp-style:hover { border-color: var(--ink); color: var(--ink); }
.buy-choice fieldset { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.choice-main { flex: 1; display: flex; flex-direction: column; }
.choice-main small { color: var(--muted); font-size: .85rem; }
.choice-price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; }
.choice-price em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--sage-ink); background: var(--sage); border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice-best:has(input:checked) { background: var(--sage); }
.buy-note { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }
.trust-line { font-size: .85rem; color: var(--muted); text-align: center; margin: 4px 0 0; }
.tier-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.tier-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-2); padding: 6px 0; font-variant-numeric: tabular-nums; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 24px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { font-family: var(--geo); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.specs dd { margin: 0; }
.pdp-acc { border-bottom: 1px solid var(--line); padding: 14px 0; }
.pdp-acc summary { font-weight: 600; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.pdp-desc p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.ratio-table { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9rem; margin: 8px 0 0; }
.ratio-table dt { font-family: var(--geo); font-weight: 700; }
.ratio-table dd { margin: 0; color: var(--ink-2); }
.pdp-more { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.pdp-more .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* personalised cards catalogue */
.pc-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0 40px; }
.pc-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.03; }
.pc-hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 860px) { .pc-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } }
.pc-catalogue { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.pc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.pc-card:hover { color: inherit; box-shadow: 0 14px 40px rgba(29, 36, 51, .1); transform: translateY(-2px); }
.pc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tint); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.pc-body strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.pc-body .muted { font-size: .92rem; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.pc-cta { font-weight: 600; color: var(--accent); }
.why { margin: 0 calc(50% - 50vw); padding: 64px 24px; background: var(--sage); }
.why > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.why .eyebrow { color: var(--sage-ink); }
.why-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid li { display: flex; flex-direction: column; gap: 6px; }
.why-grid strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.why-grid span { color: var(--ink-2); }
.how-it { padding: 56px 0 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 4px; }
.steps span:not(.step-n) { color: var(--ink-2); font-size: .95rem; }
.faq { padding: 32px 0 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.faq p { color: var(--ink-2); margin: 8px 0 0; }

/* simple content pages */
.empty { max-width: 680px; margin: 0 auto; padding: 56px 0; }
.empty h1 { font-size: 2.4rem; }
.hero { text-align: center; padding: 48px 0 28px; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.hero p { color: var(--muted); font-size: 1.05rem; }
.hero-sm { padding: 36px 0 18px; }
.checks, .notes { list-style: none; padding: 0; margin: 10px 0; }
.checks li, .notes li { padding-left: 26px; position: relative; margin: 8px 0; font-size: .92rem; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--sage-ink); font-weight: 700; }
.notes li::before { content: '·'; position: absolute; left: 8px; color: var(--muted); font-weight: 700; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 18px 0; background: #fff; }
.panel h2 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.form-error { color: #b3261e; background: #fdecea; padding: 10px 14px; border-radius: 8px; font-size: .92rem; }
.notice { background: #fff6e5; border: 1px solid #f3dfb5; padding: 12px 14px; border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field > span { font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; }
.field small { color: var(--muted); font-weight: 400; }
input[type=text], input[type=password], input[type=search], input[type=email], input[type=number], input[type=url], input:not([type]), textarea, select {
  font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: 2px solid var(--tint); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* ---- carried over: card editor, viewer, cropper, holding page, forms ---- */
/* editor */
.editor { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 28px; align-items: start; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }
.editor-preview { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .editor-preview { position: static; } }
.editor-form h1 { font-size: 1.5rem; margin-top: 10px; }
.swatches { border: 0; padding: 0; margin: 16px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.swatches legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--brand-soft); }


/* 3D stage */
.viewer-stage { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #e6e8ef; position: relative; }
.viewer-stage canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer-stage canvas:active { cursor: grabbing; }
.stage-error { display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.viewer-hint { text-align: center; color: var(--muted); font-size: .88rem; margin: 10px 0 0; }

/* full-screen viewer for a personalised link */
.viewer-body { border-top: 0; background: #1b1b1b; color: #f3eee6; }
.viewer-body main { max-width: none; padding: 0; }
.viewer { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.viewer .viewer-stage { width: min(100%, 1100px); max-height: 78vh; aspect-ratio: 4 / 3; }
.viewer .viewer-hint { color: #b6bacb; }
.viewer-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.viewer .btn-ghost { background: transparent; color: #f3eee6; border-color: #8b91a8; }
.viewer-credit { font-size: .8rem; color: #9ea3b5; text-decoration: none; margin-top: 4px; }
.viewer-credit:hover { color: #fff; }
.viewer-banner { background: #2b3150; color: #eef0f8; padding: 8px 14px; border-radius: 999px; font-size: .88rem; margin: 0; }
.viewer-banner a { color: #fff; }


/* thanks / manage */
.thanks, .manage { max-width: 680px; margin: 0 auto; padding: 48px 0; }
.thanks h1, .manage h1 { font-size: 2.2rem; font-family: var(--display); font-weight: 400; }
.link-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link-box code { font-size: 1rem; padding: 10px 12px; word-break: break-all; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.radio { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.radio input { margin-top: 5px; accent-color: var(--brand); }
.manage-link { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }


/* photo upload + cropper */
.photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-row img { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.cropper { border: 0; border-radius: 16px; padding: 22px; width: min(94vw, 520px); }
.cropper::backdrop { background: rgba(20, 14, 10, .6); }
.cropper h2 { font-size: 1.2rem; margin-bottom: 4px; }
.crop-frame { margin: 12px auto; width: min(100%, 360px); aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.crop-frame canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.crop-zoom { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem; }
.crop-zoom input { flex: 1; accent-color: var(--brand); }


@font-face { font-family: 'Caveat'; src: url('/fonts/caveat-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* viewer lightbox (photo / message) */
.lightbox { border: 0; border-radius: 10px; padding: 14px 14px 8px; background: #fffaf2; color: #26304f; width: min(640px, 92vw); max-height: 92vh; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(20, 12, 8, .55); backdrop-filter: blur(4px); }
.lightbox-photo { width: 100%; height: auto; display: block; border-radius: 4px; }
.lightbox-note { font-family: 'Caveat', cursive; font-weight: 600; font-size: clamp(24px, 4.4vw, 32px); line-height: 1.25; text-align: center; white-space: pre-line; margin: 18px 12px 6px; }
.lightbox-from { font-family: 'Great Vibes', cursive; font-size: clamp(28px, 5vw, 40px); color: #a8263d; text-align: center; margin: 0 0 6px; }
.lightbox .actions { justify-content: center; }
.viewer .lightbox .btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }


/* holding page while the site is locked */
.holding-body { background: radial-gradient(120% 90% at 50% 0%, #fbecec 0%, #fbf8f6 55%, #fff 100%); min-height: 100vh; }
.holding { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 22px; }
.holding-logo { border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(36,51,92,.08); margin-bottom: 26px; }
.holding h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6vw, 2.9rem); color: var(--clay); line-height: 1.1; }
.holding p { color: #4a4f63; font-size: 1.05rem; }
.holding-etsy a { color: var(--rose); font-weight: 600; }
.holding-team { margin-top: 34px; width: 100%; max-width: 340px; text-align: left; }
.holding-team summary { cursor: pointer; text-align: center; color: var(--muted); font-size: .9rem; list-style: none; }
.holding-team summary::-webkit-details-marker { display: none; }
.holding-team form { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.holding-team .btn { width: 100%; }


/* Made-to-order form (/buy/<slug>) */
.made-to-order-note { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
.order-form { max-width: 560px; margin: 32px auto; }
.order-form h1 { font-size: 1.8rem; margin: 20px 0 6px; }
.order-form-product { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.order-form-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.order-form-product span { display: flex; flex-direction: column; gap: 4px; }
.order-form .stack { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.order-form .field { display: flex; flex-direction: column; gap: 6px; }
.order-form .field span { font-weight: 600; }
.order-form input, .order-form textarea { font: inherit; padding: 12px 14px; border: 1px solid #d6d6d6; border-radius: 10px; }
.order-form .form-error { color: #b42318; background: #fef3f2; padding: 10px 14px; border-radius: 10px; }
.order-form .tiers { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.order-form .tiers legend { font-weight: 600; margin-bottom: 8px; }
.order-form .tier { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #d6d6d6; border-radius: 10px; cursor: pointer; }
.order-form .tier span { flex: 1; }
.order-form .tier:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Manage a card (/manage/<slug>): preview + compact tabbed panel; phone first */
.mg { display: grid; gap: 18px; padding: 16px 0 40px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .mg { grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; padding-top: 28px; } .mg-preview { position: sticky; top: calc(var(--header-h) + 20px); } }
.mg-preview .viewer-stage { aspect-ratio: 4 / 3; border-radius: 14px; }
.mg-preview .viewer-hint { margin-top: 6px; }
.mg-panel h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 4px; }
.mg-panel .eyebrow { margin: 0 0 4px; }
.mg-status { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.mg-status-off { color: #b3261e; font-weight: 600; }
.mg-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.mg-link code { flex: 1 1 180px; min-width: 0; background: none; padding: 4px 6px; font-size: .95rem; overflow-wrap: anywhere; }
.mg-tabs { display: flex; gap: 4px; margin: 18px 0 0; padding: 4px; background: var(--tint); border-radius: 12px; }
.mg-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.mg-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mg-pane { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 12px; }
.mg-pane .field { margin: 0; }
.mg-seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.mg-seg legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.mg-seg label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mg-seg label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mg-seg input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.mg-seg span { display: flex; flex-direction: column; }
.mg-seg small { color: var(--muted); font-size: .84rem; }
.mg-toggle { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.mg-toggle input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.mg-wide { width: 100%; }
.mg-more { border-top: 1px solid var(--line); padding: 12px 0; }
.mg-more summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.mg-more p { margin: 8px 0; }
.mg-more textarea { min-height: 60px; margin-bottom: 8px; }
.mg-danger summary { color: #b3261e; }
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn-danger:hover { background: #8f1d17; }
.mg-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .92rem; box-shadow: 0 8px 30px rgba(0,0,0,.2); z-index: 30; max-width: calc(100vw - 32px); text-align: center; }
.mg-done, .expired { max-width: 560px; margin: 0 auto; padding: 56px 0; text-align: center; }
.mg-done h1, .expired h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; }
.mg-done .actions, .expired .actions { justify-content: center; }
.save-box { border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; margin: 18px 0; background: #fffdf8; }
.save-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.find { max-width: 480px; margin: 0 auto; padding: 48px 0; }
.find h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 6px; }
.find-form { margin-top: 18px; }
@media (max-width: 899px) { .mg-preview .viewer-stage { aspect-ratio: auto; height: min(56vw, 40vh); } .mg { padding-top: 10px; } }

/* Manage a card (/manage/<slug>): preview + compact tabbed panel; phone first */
.mg { display: grid; gap: 18px; padding: 16px 0 40px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .mg { grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; padding-top: 28px; } .mg-preview { position: sticky; top: calc(var(--header-h) + 20px); } }
.mg-preview .viewer-stage { aspect-ratio: 4 / 3; border-radius: 14px; }
.mg-preview .viewer-hint { margin-top: 6px; }
.mg-panel h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 4px; }
.mg-panel .eyebrow { margin: 0 0 4px; }
.mg-status { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.mg-status-off { color: #b3261e; font-weight: 600; }
.mg-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.mg-link code { flex: 1 1 180px; min-width: 0; background: none; padding: 4px 6px; font-size: .95rem; overflow-wrap: anywhere; }
.mg-tabs { display: flex; gap: 4px; margin: 18px 0 0; padding: 4px; background: var(--tint); border-radius: 12px; }
.mg-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.mg-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mg-pane { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 12px; }
.mg-pane .field { margin: 0; }
.mg-seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.mg-seg legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.mg-seg label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mg-seg label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mg-seg input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.mg-seg span { display: flex; flex-direction: column; }
.mg-seg small { color: var(--muted); font-size: .84rem; }
.mg-toggle { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.mg-toggle input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.mg-wide { width: 100%; }
.mg-more { border-top: 1px solid var(--line); padding: 12px 0; }
.mg-more summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.mg-more p { margin: 8px 0; }
.mg-more textarea { min-height: 60px; margin-bottom: 8px; }
.mg-danger summary { color: #b3261e; }
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn-danger:hover { background: #8f1d17; }
.mg-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .92rem; box-shadow: 0 8px 30px rgba(0,0,0,.2); z-index: 30; max-width: calc(100vw - 32px); text-align: center; }
.mg-done, .expired { max-width: 560px; margin: 0 auto; padding: 56px 0; text-align: center; }
.mg-done h1, .expired h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; }
.mg-done .actions, .expired .actions { justify-content: center; }
.save-box { border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; margin: 18px 0; background: #fffdf8; }
.save-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.find { max-width: 480px; margin: 0 auto; padding: 48px 0; }
.find h1 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 6px; }
.find-form { margin-top: 18px; }
@media (max-width: 899px) { .mg-preview .viewer-stage { aspect-ratio: auto; height: min(56vw, 40vh); } .mg { padding-top: 10px; } }
.why .section-head, .home-shelf .section-head div { display: block; }
@media (max-width: 560px) { .promo-bar { font-size: .72rem; letter-spacing: .02em; padding: 7px 10px; } }

/* Product gallery (Etsy-style): thumbnail strip as tall as the main image; sliding main image */
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); align-items: start; }
.gallery:not(:has(.g-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.g-thumbs { position: relative; align-self: stretch; }
.g-thumbs-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px; }
.g-thumbs-in::-webkit-scrollbar { display: none; }
.g-thumbs button { flex: none; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--tint); cursor: pointer; opacity: .72; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s, outline-color .15s; }
.g-thumbs button:hover { opacity: 1; }
.g-thumbs button[aria-current] { opacity: 1; outline-color: var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-main { position: relative; border-radius: 8px; overflow: hidden; background: var(--tint); }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 5 / 4; outline: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.g-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; cursor: zoom-in; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); opacity: 0; transition: opacity .2s; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-main:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(29,36,51,.72); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.g-zoom { border: 0; padding: 0; max-width: 96vw; max-height: 94vh; background: transparent; }
.g-zoom::backdrop { background: rgba(20, 22, 30, .88); }
.g-zoom img { max-width: 96vw; max-height: 94vh; object-fit: contain; cursor: zoom-out; border-radius: 4px; }
.g-zoom-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .g-thumbs { order: 2; }
  .g-thumbs-in { position: static; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .g-thumbs button { width: 64px; }
  .g-nav { display: none; }
}
@media (max-width: 900px) { :root { --header-h: 0px; } }
