/* ==========================================================================
   Weimar — theme for andersmuskens.com
   A white, light site: Weimar Klassik / Empire ornament, contemporary layout.
   - Gold appears only as gilt-bronze mounts, placed where Empire furniture carries them: on the
     frieze between sections, under headings, as bezels and fillets round jasper and enamel,
     as drops on the stiles. Never as frames round photographs.
   - Wedgwood jasper (blue / porphyry) for reliefs and Greek-key friezes.
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR) ---------- */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("../fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  /* paper & ink */
  --paper: #fdfdfc;
  --stone: #f8f8f6;           /* pale limestone panels */
  --marble: #eceae5;
  /* Whitewashed lime: a hint of material beneath quiet, bright surfaces. */
  --stucco: linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)), url("../images/stucco-ivory.webp");
  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --muted: #7d7b78;
  --hairline: rgba(29, 29, 31, .1);

  /* Chalky, desaturated jasper grounds with white bisque relief. */
  --jasper: #a6b4c2;
  --jasper-deep: #46688d;
  --porphyry: #a18d90;
  --relief: #faf9f6;          /* the white of the relief */

  /* Pale champagne gold for the small typographic rules. */
  --gild: linear-gradient(105deg, #9b8b60, #d6c89e 24%, #f5eed9 38%, #c4b384 55%, #e9dfc0 76%, #a79870);

  --link: var(--jasper-deep);

  /* Ghost's font settings (Design → Brand) override these when set */
  --display: var(--gh-font-heading, "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif);
  --serif: var(--gh-font-body, "EB Garamond", Garamond, Georgia, serif);
  /* spaced Garamond capitals for navigation, buttons and labels, as on a period title page */
  --caps: "EB Garamond", Garamond, Georgia, serif;
  --track: .01em;        /* tracking 10: navigation, buttons, links */
  --track-label: .02em;  /* tracking 20: small labels */
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 12px 40px -12px rgba(20, 20, 30, .14);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--stucco); background-size: auto, 768px 768px;
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--serif);
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: rgba(91, 126, 163, .2); }
:focus-visible { outline: 2px solid var(--jasper); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Garamond capitals, widely spaced: labels, navigation, buttons */
.caps, .eyebrow, .btn, .more, .site-nav a, .nav-toggle, .card__meta, .album__meta, .date__month, .site-foot h4,
.crumb, .chip, .prose h4, .kg-btn, .dn-listen__links a, .dn-consent__load, .pager__count, .basket-btn, .skip {
  text-transform: uppercase; font-variant-numeric: lining-nums; font-kerning: normal; }
.eyebrow {
  font: 500 .82rem/1.2 var(--caps);
  letter-spacing: var(--track-label);
  color: var(--muted);
}
.lede { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; color: var(--ink-2); font-style: italic; }

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--stone { background-color: var(--stone); background-image: var(--stucco); background-size: auto, 768px 768px; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(26px, 3.5vw, 44px); }
.section__head .eyebrow { display: block; margin-bottom: 14px; }
.section__head p { color: var(--ink-2); margin-top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 500 .9rem/1 var(--caps); letter-spacing: var(--track);
  padding: .95em 1.7em .9em; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: transform .3s var(--ease), background .3s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { background: rgba(0,0,0,.04); }
.more { font: 500 .86rem/1.2 var(--caps); letter-spacing: var(--track); color: var(--link); }
.more::after { content: " ›"; }

/* ---------- Header: white glass with a shallow Greek-key cornice ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-head.is-scrolled { border-bottom-color: var(--hairline); }
.site-head__bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.site-logo { font: 500 1.15rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.site-logo:hover { text-decoration: none; }
.site-nav ul { display: flex; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-nav a { font: 500 .8rem/1 var(--caps); color: var(--ink-2); letter-spacing: var(--track); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; background: none; border: 0; padding: 8px; font: 500 .85rem var(--caps); letter-spacing: var(--track); color: var(--ink); }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--hairline); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--hairline); }
}

/* ---------- Gilt-bronze mounts (ormolu), set on the white walls as on Empire furniture ----------
   Photographic cut-outs in images/mounts/ (sources: assets/ormolu-*.png, design/mounts.py).
   Each is pinned flat to the wall: a short contact shadow, and a glint that crosses the
   gilding as it moves up the screen (site.js sets --shine on .mount and .gild-rule). */
.mount { position: relative; display: block; width: 100%;
  filter: drop-shadow(0 1px .6px rgba(58, 38, 12, .30)) drop-shadow(0 3px 4px rgba(58, 38, 12, .14)); }
.mount img { width: 100%; height: auto; }
.mount::after, .gild-rule::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat;
  background: linear-gradient(102deg, rgba(255, 247, 222, 0) 38%, rgba(255, 247, 222, .9) 50%, rgba(255, 247, 222, 0) 62%)
    var(--shine, 50%) 50% / 320% 100% no-repeat;
  mix-blend-mode: soft-light; }

/* between sections: one mount centred in its own band */
.ornament { display: flex; justify-content: center; padding-block: clamp(8px, 1.5vw, 20px); }
.ornament .mount { width: min(var(--w, 400px), 66%); }
.ornament--escutcheon { --w: 420px; }
.ornament--eagle { --w: 290px; }
.ornament--lyre { --w: 150px; }
.ornament--mask { --w: 110px; }
.ornament--wreath { --w: 120px; }
.ornament--frieze { --w: 660px; padding-block: clamp(20px, 3vw, 36px); }
.ornament--frieze .mount { width: min(var(--w), 100% - 2 * var(--gutter)); }

/* an emblem above a heading */
.crest { position: relative; display: block; width: min(var(--w, 170px), 60%); margin-inline: auto; }
.crest--mask { --w: 150px; }
.crest--hero { margin-bottom: 26px; }

/* under headings: a small lapis-set bar mount in place of a plain gilt rule */
.gild-rule { --src: url("../images/mounts/bar-lapis.webp");
  position: relative; display: block; width: 150px; aspect-ratio: 480 / 90; margin: 22px auto 0;
  background: var(--src) center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px .5px rgba(58, 38, 12, .30)) drop-shadow(0 2px 3px rgba(58, 38, 12, .12)); }

/* ==========================================================================
   Wedgwood jasperware: matte stoneware with white relief.
   ========================================================================== */
.jasper {
  --ground: var(--jasper);
  position: relative;
  background-color: var(--ground);
  /* The same fine lime grain carries through the coloured plaster grounds. */
  background-image: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.025)), url("../images/stucco-ivory.webp");
  background-size: auto, 512px 512px;
  background-blend-mode: soft-light, multiply;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.08), inset 0 0 24px rgba(0,0,0,.045);
}
.jasper--porphyry { --ground: var(--porphyry); }

/* ==========================================================================
   Scagliola / marble panels, set in white mouldings (no gold frames).
   A panel is a recessed marble field inside a cream bolection moulding.
   ========================================================================== */
.marble--rose     { --marble: url("../images/marble-rose.webp"); }
.marble--siena    { --marble: url("../images/marble-siena.webp"); }
.marble--blue     { --marble: url("../images/marble-blue.webp"); }
.marble--grey     { --marble: url("../images/marble-grey.webp"); }
.marble--porphyry { --marble: url("../images/marble-porphyry.webp"); }
.marble, .panel { background: var(--marble, var(--stone)) center / cover; }
.panel {
  position: relative;
  border-radius: 3px;
  /* moulding: hairline, cream band, shadow line; then the field is recessed */
  box-shadow:
    0 0 0 1px rgba(60, 50, 40, .22),
    0 0 0 6px #ffffff,
    0 0 0 7px rgba(60, 50, 40, .20),
    0 0 0 10px #fbfaf6,
    0 0 0 11px rgba(60, 50, 40, .12),
    0 16px 32px 6px rgba(40, 30, 20, .12),
    inset 0 2px 5px rgba(0, 0, 0, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .35);
}
/* polished sheen across the stone */
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.12)); }
/* a small ivory plaque on a marble field, for text */
.plaque-ivory { position: relative; z-index: 1; background: rgba(253, 252, 249, .94); border-radius: 2px; padding: 26px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 6px 16px -6px rgba(0,0,0,.25); }

/* Greek key in raised lime stucco. Geometry repeats exactly; light stays fixed. */
.frieze { --key-size: 36px; height: 64px; display: flex; align-items: center; overflow: hidden; }
.frieze__band { position: relative; width: 100%; height: var(--key-size);
  filter: drop-shadow(0 -1px .35px rgba(255,255,255,.70)) drop-shadow(0 1.5px 1px rgba(18,29,38,.26)); }
.frieze__band::before, .frieze__band::after { content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background-color: var(--relief); background-image: var(--stucco); background-size: auto, 384px; }
.frieze__band::before { top: -7px; }
.frieze__band::after { bottom: -7px; }
.frieze__key { position: absolute; inset: 0;
  background: linear-gradient(180deg, #fff, #f0efeb);
  -webkit-mask: url("../images/ornaments/meander.svg") center / var(--key-size) var(--key-size) repeat-x;
          mask: url("../images/ornaments/meander.svg") center / var(--key-size) var(--key-size) repeat-x; }
.frieze--nav { --key-size: 16px; height: 30px; background-color: #fcfcfb; background-image: var(--stucco); background-size: auto, 768px;
  box-shadow: inset 0 1px rgba(100,100,95,.06), inset 0 -1px rgba(100,100,95,.08); }
.frieze--nav .frieze__band { filter: drop-shadow(0 -1px .3px #fff) drop-shadow(0 1px .6px rgba(83,69,48,.26)); }
.frieze--nav .frieze__band::before { top: -4px; height: 1px; }
.frieze--nav .frieze__band::after { bottom: -4px; height: 1px; }

/* Photographs mounted as on Empire furniture: an oval in a beaded gilt-bronze bezel, a long
   print in a beaded fillet. The bezel's opening is about 92% x 86% of its box, so the photo
   (an oval of aspect 1.54, images/photos/panel-*.webp) runs just under the beads. */
.bezel { position: relative; width: 250px; max-width: 100%; aspect-ratio: 1.54; margin: 0 auto; }
.bezel img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bezel::after { content: ""; position: absolute; inset: -6.2% -3.2%; pointer-events: none;
  background: url("../images/mounts/bezel-oval-beaded.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px .6px rgba(58, 38, 12, .32)) drop-shadow(0 4px 5px rgba(58, 38, 12, .16)); }
.fillet { position: relative; margin: 0; aspect-ratio: 2 / 1; box-shadow: 0 18px 36px -18px rgba(40, 28, 12, .35); }
.fillet img { width: 100%; height: 100%; object-fit: cover; }
.fillet::after { content: ""; position: absolute; inset: -5px; pointer-events: none;
  border: 13px solid transparent; border-image: url("../images/mounts/frame-rect-beaded.webp") 31 stretch;
  filter: drop-shadow(0 1px .6px rgba(58, 38, 12, .32)) drop-shadow(0 4px 6px rgba(58, 38, 12, .16)); }

/* ---------- Hero ---------- */
/* The portrait runs edge to edge from the very top of the page, under the header (56px bar +
   30px Greek-key band), which stays clear until the page scrolls. The nameboard plaque (the h1)
   hangs across the photo's lower edge; tagline and buttons follow below. */
.hero { --plaque: min(440px, 72vw, 50vh); margin-top: -86px; text-align: center; }
.hero__stage { position: relative; }
/* --plaque-h is the plaque's height (0.704 of its width); the photo stops short enough that the whole
   plaque, which hangs 46% below it, is in view before the page scrolls. */
.hero { --plaque-h: calc(var(--plaque) * .704); --fold: calc(100svh - var(--plaque-h) * .46 - clamp(14px, 2.5vh, 28px)); }
.hero__media { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: min(520px, var(--fold)); max-height: var(--fold);
  overflow: hidden; background: #15110d; }
/* a soft shade at the top keeps the white navigation legible over the photo */
.hero__media::after { content: ""; position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none;
  background: linear-gradient(rgba(10, 8, 6, .5), rgba(10, 8, 6, 0)); }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%;
  transform: translateY(var(--parallax, 0)); will-change: transform; }
.hero__plaque { position: absolute; z-index: 2; left: 50%; bottom: 0; width: var(--plaque); margin: 0;
  transform: translate(-50%, 46%); line-height: 0; }
.hero__plaque img { width: 100%; height: auto;
  filter: drop-shadow(0 2px 2px rgba(73, 53, 28, .28)) drop-shadow(0 18px 28px rgba(20, 14, 6, .35)); }
/* clear the part of the plaque below the photo */
.hero .lede { max-width: 640px; margin: calc(var(--plaque-h) * .46 + clamp(18px, 3vw, 30px)) auto 26px; }
.hero__actions:first-child { margin-top: calc(var(--plaque-h) * .46 + clamp(18px, 3vw, 30px)); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .hero__media { aspect-ratio: 4 / 5; min-height: 0; max-height: min(86svh, var(--fold)); } .hero__media img { object-position: 74% 30%; } }

/* Homepage header at the top: transparent over the photo, white type; glass again once scrolled. */
.home-template .site-head:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home-template .site-head .frieze--nav { transition: opacity .3s; }
.home-template .site-head:not(.is-scrolled) .frieze--nav { opacity: 0; }
.home-template .site-head:not(.is-scrolled) :is(.site-logo, .nav-toggle, .basket-btn) { color: #fff; }
.home-template .site-head:not(.is-scrolled) .basket-btn { border-color: rgba(255, 255, 255, .45); }
@media (min-width: 861px) {
  .home-template .site-head:not(.is-scrolled) .site-nav a { color: rgba(255, 255, 255, .9); }
}

/* ---------- Pillars (three domains, each under a medallion) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); text-align: center; }
.pillars h3 { margin-bottom: 10px; }
.pillars p { color: var(--ink-2); font-size: 1.08rem; max-width: 32ch; margin-inline: auto; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: inherit; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20,20,30,.04), 0 24px 60px -18px rgba(20,20,30,.22); }
.card__media { aspect-ratio: 3 / 2; background: var(--marble); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 1.4rem; }
.card__body p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.card__meta { font: 500 .78rem/1.3 var(--caps); letter-spacing: var(--track-label); color: var(--muted); }

/* ---------- Discography shelf (horizontal, snap) ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px;
  margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.album { scroll-snap-align: start; color: inherit; }
.album:hover { text-decoration: none; }
.album__cover { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--marble);
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 36px -14px rgba(0,0,0,.35);
  transition: transform .6s var(--ease); }
.album:hover .album__cover { transform: translateY(-6px) rotate(-.4deg); }
.album__cover img { width: 100%; height: 100%; object-fit: cover; }
.album h3 { font: 400 1.12rem/1.25 var(--display); margin-top: 18px; }
.album__meta { font: 500 .78rem/1.4 var(--caps); letter-spacing: var(--track-label); color: var(--muted); margin-top: 6px; }
.shelf-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.shelf-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline); background: #fff;
  font: 400 1.1rem/1 var(--ui); color: var(--ink); cursor: pointer; }

/* ---------- Concerts (programme list) ---------- */
.programme { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.programme li { display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.date { text-align: center; font-family: var(--display); }
.date__day { display: block; font-size: 2.6rem; line-height: 1; }
.date__month { display: block; font: 500 .74rem/1 var(--caps); letter-spacing: var(--track-label); color: var(--muted); margin-top: 8px; }
.programme h3 { font-size: 1.35rem; }
.programme .venue { color: var(--muted); font-size: 1rem; margin: 6px 0 0; }
@media (max-width: 640px) { .programme li { grid-template-columns: 72px 1fr; } .programme li > :last-child { grid-column: 2; } }

/* ---------- Instrument cabinet ---------- */
.cabinet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .cabinet { grid-template-columns: repeat(2, 1fr); } }
.instrument { background: #fff; border-radius: var(--radius); padding: 18px 18px 22px; color: inherit; box-shadow: var(--shadow); }
.instrument:hover { text-decoration: none; }
.instrument__img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--marble); }
.instrument__img img { width: 100%; height: 100%; object-fit: cover; }
.instrument h3 { font-size: 1.12rem; margin-top: 16px; line-height: 1.25; }
.instrument .card__meta { margin-top: 8px; display: block; }

/* ---------- Newsletter ---------- */
.subscribe { display: flex; gap: 10px; max-width: 480px; margin: 28px auto 0; }
.subscribe input { flex: 1; min-width: 0; font: 400 1rem var(--ui); padding: .9em 1.2em; border-radius: 999px;
  border: 1px solid var(--hairline); background: #fff; color: var(--ink); }
@media (max-width: 480px) { .subscribe { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-foot { background-color: var(--stone); background-image: var(--stucco); background-size: auto, 768px 768px; padding: 56px 0 40px; font: 400 .98rem/1.6 var(--serif); color: var(--muted); }
.site-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h4 { font: 500 .78rem/1 var(--caps); letter-spacing: var(--track-label); color: var(--ink); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--ink-2); }
.site-foot__brand { font: 400 1.5rem/1.1 var(--display); color: var(--ink); letter-spacing: .06em; }
.site-foot__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Templates
   ========================================================================== */
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; font: 500 .85rem var(--caps); letter-spacing: var(--track); }
.skip:focus { left: 12px; }
.center { text-align: center; }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.list-title { font-size: 1.5rem; margin: 48px 0 18px; }
.list-title:first-child { margin-top: 0; }
.crumb { font: 500 .8rem var(--caps); letter-spacing: var(--track); margin: 0 0 28px; }

/* page heads */
.page-head { text-align: center; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(16px, 2vw, 28px); }
.page-head .eyebrow { display: block; margin-bottom: 16px; }
.page-head .eyebrow a { color: inherit; }
.page-head h1 { max-width: 18ch; margin-inline: auto; }
.page-head .lede { max-width: 640px; margin: 22px auto 0; }
.gild-rule--left { margin-left: 0; }

/* homepage wall of scagliola panels; on wide screens the stiles between them carry gilt oak drops */
.wall { --stile: clamp(56px, 6vw, 84px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 52px); }
@media (min-width: 861px) {
  .wall { column-gap: var(--stile); }
  .wall__panel + .wall__panel::before { content: ""; position: absolute; top: -3px; left: calc(-.5 * var(--stile) - 15px);
    width: 30px; aspect-ratio: 120 / 831; pointer-events: none;
    background: url("../images/mounts/chute-oak.webp") top center / 100% 100% no-repeat;
    filter: drop-shadow(0 1px .6px rgba(58, 38, 12, .32)) drop-shadow(1px 4px 4px rgba(58, 38, 12, .14)); }
}
.wall__panel { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 34px;
  padding: 44px 26px 26px; min-height: 440px; text-align: center; }
.wall__panel .bezel { margin: 6px 0 0; }
.wall__panel .plaque-ivory { width: 100%; min-height: 196px; display: flex; flex-direction: column; justify-content: center; }
.wall__panel h3 { margin-bottom: 8px; }
.wall__panel p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 12px; }
@media (max-width: 860px) { .wall { grid-template-columns: 1fr; } .wall__panel { min-height: 0; } }

/* concert date tiles on blue scagliola */
.programme li.is-upcoming h3 a { color: var(--jasper-deep); }
.programme h3 a { color: inherit; }
.date { border-radius: 4px; padding: 14px 6px 12px; color: #fff; text-shadow: 0 1px 2px rgba(0, 20, 40, .45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 0 3px #fff, 0 0 0 4px rgba(60,50,40,.15), 0 6px 14px -6px rgba(0,0,0,.3); }
.date .date__month { color: rgba(255,255,255,.92); }
.date--big { position: relative; width: 128px; margin: 0 auto 30px; padding: 18px 8px 16px; border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 8px 18px -8px rgba(0,0,0,.35); }
/* the big date is set like an enamel dial, in a moulded gilt-bronze frame */
.date--big::after { content: ""; position: absolute; inset: -9px; pointer-events: none;
  border: 13px solid transparent; border-image: url("../images/mounts/frame-rect-moulded.webp") 42 stretch;
  filter: drop-shadow(0 1px .6px rgba(58, 38, 12, .32)) drop-shadow(0 3px 5px rgba(58, 38, 12, .16)); }
.date--big .date__day { font-size: 3.4rem; }

/* discography grid */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 44px 32px; }
.albums--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .albums--4 { grid-template-columns: repeat(2, 1fr); } }
.shelf-nav { align-items: center; justify-content: space-between; }
.shelf-nav button + button { margin-left: 8px; }

/* research feature */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: inherit; margin-bottom: 36px; }
.feature:hover { text-decoration: none; }
.feature__media { min-height: 340px; background: var(--marble); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature__body p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature__media { min-height: 220px; } }
.card__placeholder { display: block; width: 100%; height: 100%; }

/* instruments */
.cabinet--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cabinet--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cabinet, .cabinet--3 { grid-template-columns: 1fr; } }
.instrument-hero { margin: 8px auto clamp(48px, 6vw, 72px); padding: clamp(18px, 3vw, 36px); max-width: 1000px; }
.instrument-hero img { position: relative; z-index: 1; width: 100%; border-radius: 2px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); }

/* video */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.chip { font: 500 .8rem/1 var(--caps); letter-spacing: var(--track); padding: .65em 1.1em; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
.video-card { color: inherit; }
.video-card:hover { text-decoration: none; }
.video-card[hidden] { display: none; }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--marble); box-shadow: var(--shadow); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.video-card:hover .video-card__thumb img { transform: scale(1.04); }
.video-card__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(253,252,249,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.video-card__play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--ink); }
.video-card .card__meta { display: block; margin-top: 16px; }
.video-card h3 { font-size: 1.15rem; margin-top: 8px; line-height: 1.3; }

/* articles & prose (Ghost content) */
.article__hero { margin: clamp(16px, 3vw, 36px) auto clamp(28px, 4vw, 48px); }
.article__hero img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article__hero figcaption, .prose figcaption { font: italic 400 .95rem/1.5 var(--serif); color: var(--muted); text-align: center; margin-top: 12px; }
.prose { width: min(720px, 100% - 2 * var(--gutter)); margin: 0 auto clamp(36px, 5vw, 64px); font-size: 1.22rem; line-height: 1.68; }
.prose--flush { width: auto; margin: 0; }
.prose p { margin: 0; }
.prose > * + *, .prose > * + p { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 2em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.7em; }
.prose h4 { font: 500 .85rem/1.2 var(--caps); letter-spacing: var(--track-label); color: var(--muted); margin-top: 2em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(70,104,141,.4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 1.2em; border-left: 2px solid; border-image: var(--gild) 1; font-style: italic; color: var(--ink-2); }
.prose hr { border: 0; margin: 2.4em auto; width: min(240px, 60%); aspect-ratio: 1040 / 253;
  background: url("../images/mounts/bar-palmette-oval.webp") center / contain no-repeat;
  filter: drop-shadow(0 1px .6px rgba(58, 38, 12, .30)) drop-shadow(0 3px 4px rgba(58, 38, 12, .12)); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 2em 0; }
.prose .kg-width-wide { width: min(1040px, 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); }
.prose .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.prose .kg-width-full img { border-radius: 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 10px; width: min(1040px, 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); }
.kg-gallery-row { display: flex; gap: 10px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
.prose--video { width: min(1040px, 100% - 2 * var(--gutter)); }
.prose--video > p, .prose--video > h2, .prose--video > ul { max-width: 720px; margin-inline: auto; }
.kg-bookmark-card a { display: flex; gap: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 16px; color: inherit; text-decoration: none; }
.kg-callout-card { display: flex; gap: 12px; background: var(--stone); padding: 20px 24px; border-radius: var(--radius-sm); }
.kg-button-card { text-align: center; }
.kg-btn { display: inline-block; font: 500 .9rem var(--caps); letter-spacing: var(--track); padding: .9em 1.5em; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none !important; }

/* album page */
.album-page__grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.album-page__side { position: sticky; top: 84px; }
.album-page__cover img { width: 100%; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 30px 60px -22px rgba(0,0,0,.45); }
.album-page__links:empty { display: none; }
.album-page__links { margin-top: 24px; }
.album-page__main h1 { margin: 14px 0 0; }
.album-page__main .gild-rule { margin-bottom: 32px; }
@media (max-width: 820px) { .album-page__grid { grid-template-columns: 1fr; } .album-page__side { position: static; max-width: 420px; } }

/* listen block (shared standard with DNMO; see CLAUDE.md) */
.dn-listen { margin: 0 0 2.4rem; font-family: var(--caps); }
.dn-listen__links { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 10px; }
.dn-listen__links li { margin: 0 !important; }
.dn-listen__links a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff;
  border: 1px solid var(--hairline); color: var(--ink) !important; text-decoration: none !important; font: 500 .86rem/1.2 var(--caps); letter-spacing: var(--track);
  transition: transform .3s var(--ease), box-shadow .3s; }
.dn-listen__links a:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.dn-listen__links a::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.dn-listen__links a::after { content: "↗"; margin-left: auto; opacity: .45; }
.dn-listen__links .dn-listen__buy { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.dn-listen__buy span { opacity: .7; margin-left: 4px; }
.dn-listen__buy { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 7.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Zm0 1.8a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E"); }
.dn-listen__service.is-spotify { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 14.4a.62.62 0 0 1-.86.2c-2.35-1.43-5.3-1.76-8.79-.96a.62.62 0 1 1-.28-1.21c3.81-.87 7.08-.5 9.72 1.12.3.18.39.56.21.85Zm1.22-2.72a.78.78 0 0 1-1.07.26c-2.69-1.65-6.79-2.13-9.970-1.17a.78.78 0 1 1-.45-1.49c3.63-1.1 8.150-.57 11.23 1.33.37.22.48.7.26 1.07Zm.1-2.83C14.7 8.94 9.38 8.76 6.3 9.7a.94.94 0 1 1-.54-1.8c3.53-1.07 9.4-.86 13.1 1.34a.94.94 0 0 1-.95 1.61Z'/%3E%3C/svg%3E"); }
.dn-listen__service.is-apple { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3.2v11.6a3.2 3.2 0 1 1-1.8-2.88V7.3l-8 1.66v7.84a3.2 3.2 0 1 1-1.8-2.88V5.6Z'/%3E%3C/svg%3E"); }
.dn-listen__service.is-youtube { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 3.6a6.4 6.4 0 1 0 0 12.8 6.4 6.4 0 0 0 0-12.8Zm0 1.4a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm-1.7 2.2v5.6l4.6-2.8Z'/%3E%3C/svg%3E"); }
.dn-listen__player { display: block; margin: 18px 0 0 !important; }
.dn-listen__player iframe { display: block; width: 100%; border: 0; border-radius: var(--radius-sm); }
.dn-listen__note { margin: 8px 0 0 !important; font: italic 400 .95rem var(--serif); color: var(--muted); }

/* privacy gate for third-party players (iframes carry data-dn-src) */
.dn-consent-wrap { position: relative; display: grid; width: 100%; min-height: 12rem; border-radius: var(--radius-sm); overflow: hidden; }
.dn-consent-wrap.is-video { aspect-ratio: 16 / 9; min-height: 0; }
.dn-consent-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.dn-consent { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px 32px;
  background: var(--marble) url("../images/marble-grey.webp") center / cover; font-family: var(--serif); }
.dn-consent__title { font: 400 1.6rem/1.1 var(--display) !important; margin: 0 0 8px !important; color: var(--ink); }
.dn-consent__text { font-size: .88rem !important; color: var(--ink-2); max-width: 34rem; margin: 0 0 16px !important; line-height: 1.5 !important; }
.dn-consent__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 !important; font-size: .85rem !important; color: var(--ink-2); }
.dn-consent__actions label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.dn-consent__load { font: 500 .85rem var(--caps); letter-spacing: var(--track); padding: .8em 1.4em; border-radius: 999px; background: var(--ink); color: #fff; border: 0; cursor: pointer; }

/* newsletter */
.subscribe-block { text-align: center; }
.subscribe-block h2 { margin-top: 14px; }
.subscribe__msg { display: none; font: italic 400 1rem var(--serif); margin-top: 16px; }
.subscribe.success ~ .subscribe__msg--ok, .subscribe.error ~ .subscribe__msg--err { display: block; }
.subscribe.loading button { opacity: .6; }

/* pagination */
.pager { display: flex; justify-content: space-between; align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }
.pager__count { font: 500 .8rem var(--caps); letter-spacing: var(--track); color: var(--muted); }

/* footer: secondary navigation in the legal line */
.site-foot__about { margin: 10px 0 0; max-width: 36ch; }
.site-foot__legal ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Basket (shop/cart.js). Glass drawer on the right.
   ========================================================================== */
.site-head__tools { display: flex; align-items: center; gap: 6px; order: 3; }
.basket-btn { display: none; align-items: center; gap: 8px; font: 500 .8rem/1 var(--caps); letter-spacing: var(--track); color: var(--ink); background: none;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.basket-btn.has-items { display: inline-flex; }
.basket-btn__count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .72rem; display: inline-grid; place-items: center; padding: 0 6px; }
.basket[hidden] { display: none; }
.basket { position: fixed; inset: 0; z-index: 100; }
.basket__scrim { position: absolute; inset: 0; background: rgba(20, 20, 24, .28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.basket__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
  background: rgba(253, 252, 249, .92); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .3); font-family: var(--ui); animation: basket-in .35s var(--ease); }
@keyframes basket-in { from { transform: translateX(40px); opacity: 0; } }
.basket__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 14px; border-bottom: 1px solid var(--hairline); }
.basket__head h2 { font-size: 1.7rem; }
.basket__close { font: 300 1.8rem/1 var(--ui); background: none; border: 0; cursor: pointer; color: var(--ink-2); }
.basket__body { padding: 18px 26px 28px; overflow-y: auto; flex: 1; }
.basket__empty { color: var(--muted); }
.basket__lines { list-style: none; margin: 0; padding: 0; }
.basket__lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.basket__lines img, .basket__noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--marble); box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }
.basket__title { font: 400 1rem/1.3 var(--display); margin: 0; }
.basket__meta { font-size: .78rem; color: var(--muted); margin: 4px 0 8px; }
.basket__qty { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.basket__qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hairline); background: #fff; cursor: pointer; color: var(--ink); }
.basket__qty .basket__remove { width: auto; border: 0; background: none; color: var(--link); font-size: .78rem; margin-left: 6px; }
.basket__line-total { font-size: .9rem; white-space: nowrap; }
.basket__region { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 6px; font-size: .9rem; }
.basket__region select { font: 400 .9rem var(--ui); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--hairline); background: #fff; color: var(--ink); }
.basket__sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 16px 0; font-size: .9rem; }
.basket__sum dd { margin: 0; text-align: right; }
.basket__sum .basket__total { font-weight: 600; font-size: 1rem; padding-top: 8px; border-top: 1px solid var(--hairline); }
.basket__note { font-size: .76rem; color: var(--muted); margin: 0 0 16px; }
.basket__checkout { width: 100%; justify-content: center; }
.basket__checkout[disabled] { opacity: .55; cursor: default; }
.basket__error { color: #a3312f; font-size: .85rem; margin: 10px 0 0; min-height: 1em; }
html.basket-open { overflow: hidden; }
.dn-listen__buy.is-soldout { opacity: .55; pointer-events: none; }
@media (max-width: 860px) { .site-head__bar { gap: 10px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { transform: none; }
}

/* Thumbnail framing: cards crop the feature image to 3:2 from the centre. An internal tag moves
   the crop window: #thumb-top (portraits: keep the head), #thumb-bottom. The post page is unchanged. */
.tag-hash-thumb-top .card__media img { object-position: 50% 15%; }
.tag-hash-thumb-bottom .card__media img { object-position: 50% 85%; }
