/* =============================================================
   KHALIS — Theme stylesheet · V3 · "Be Khalis — a journal"
   ----
   Editorial fashion folio × handwritten zine.
   Signature: Fraunces editorial type with Caveat marginalia in the
   gutters, hand-drawn doodles that draw in on scroll, generous paper.
   ============================================================= */

:root {
  /* — palette · v3 · option 5 — */
  --paper:      #fdfbf5;   /* page bg — bright off-white */
  --paper-2:    #f7f1e3;   /* warmer band */
  --ivory:      #ece4d1;   /* card / surface */
  --ink:        #2a2823;   /* primary text */
  --ink-soft:   #3d3a32;
  --charcoal:   #4a463d;
  --taupe:      #766b58;   /* secondary / mute */
  --taupe-mute: #9c9482;

  /* accents — collection 1 watercolour adjacent */
  --wheat:      #c4a87a;   /* warm tan — primary accent */
  --wheat-deep: #a8895a;
  --sage:       #9eb19a;   /* soft sage — cool accent */
  --sage-deep:  #6e8470;
  --blush:      #d8a18a;   /* terracotta blush — feminine accent */
  --blush-deep: #b87867;
  --brick:      #7a3e2a;   /* deep terracotta */

  /* lines */
  --line:       rgba(42,40,35,0.14);
  --line-soft:  rgba(42,40,35,0.07);
  --line-strong: rgba(42,40,35,0.32);

  /* semantic */
  --bg:        var(--paper);
  --bg-alt:    var(--paper-2);
  --bg-band:   var(--ivory);
  --fg:        var(--ink);
  --fg-mute:   var(--taupe);
  --accent:    var(--brick);

  /* — type · v3 — */
  --f-serif:   'Fraunces', 'PP Editorial New', 'Tiempos Headline', 'EB Garamond', Georgia, serif;
  --f-display: var(--f-serif);
  --f-sans:    'Geist', 'Söhne', 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-hand:    'Caveat', 'Reenie Beanie', 'Bradley Hand', cursive;     /* marginalia */
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-deva:    'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;

  /* type scale — fluid, editorial */
  --t-xs:   clamp(10px, 0.68vw, 11px);
  --t-sm:   clamp(11px, 0.78vw, 12px);
  --t-base: clamp(13px, 0.95vw, 14px);
  --t-md:   clamp(15px, 1.1vw, 17px);
  --t-lg:   clamp(18px, 1.4vw, 22px);
  --t-xl:   clamp(24px, 2vw, 32px);
  --t-2xl:  clamp(34px, 3.4vw, 56px);
  --t-3xl:  clamp(48px, 5.2vw, 88px);
  --t-4xl:  clamp(64px, 7.6vw, 128px);
  --t-5xl:  clamp(84px, 10.5vw, 184px);
  --t-mega: clamp(110px, 16vw, 280px);

  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px; --s-11: 96px; --s-12: 128px; --s-13: 168px;

  /* radii — mostly sharp, slight curvature for chips */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-pill: 999px;

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.4,.2,.2,1);
  --dur-1: 200ms; --dur-2: 360ms; --dur-3: 720ms; --dur-4: 1200ms;

  /* grid */
  --max:      1440px;
  --max-wide: 1760px;
  --max-text: 720px;
  --gutter:   clamp(20px, 4vw, 56px);
  --rail:     clamp(48px, 6vw, 88px);   /* outer rail where marginalia hangs */
}

/* — reset — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  font-feature-settings: 'ss01','ss02','cv02','cv11';
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* — wraps — */
.wrap     { max-width: var(--max);      margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide{ max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text{ max-width: var(--max-text); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-bleed { padding: 0 var(--gutter); }

/* — bands — */
.band-paper { background: var(--paper); color: var(--ink); }
.band-warm  { background: var(--paper-2); color: var(--ink); }
.band-ivory { background: var(--ivory); color: var(--ink); }
.band-ink   { background: var(--ink); color: var(--paper); }
.band-ink .f-mute { color: rgba(253,251,245,0.6); }
.band-ink hr, .band-ink .hr { border-color: rgba(253,251,245,0.15); }

/* — typography utilities — */
.serif    { font-family: var(--f-serif); }
.sans     { font-family: var(--f-sans); }
.hand     { font-family: var(--f-hand); }
.deva     { font-family: var(--f-deva); }
.mono     { font-family: var(--f-mono); }
.italic   { font-style: italic; }
.up       { text-transform: uppercase; letter-spacing: 0.18em; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: '◆'; font-size: 7px; opacity: 0.6; }
.eyebrow.no-bullet::before { display: none; }

.eyebrow-n {  /* numbered eyebrow */
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* display headings — Fraunces flex */
.h-display {
  font-family: var(--f-display);
  font-weight: 350;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h-display em, .display-it em { font-style: italic; font-variation-settings: "SOFT" 100, "opsz" 144; }

.h-1 { font-family: var(--f-serif); font-size: var(--t-4xl); font-weight: 350; line-height: 0.94; letter-spacing: -0.024em; font-variation-settings: "SOFT" 50, "opsz" 144; }
.h-2 { font-family: var(--f-serif); font-size: var(--t-3xl); font-weight: 350; line-height: 0.96; letter-spacing: -0.02em; font-variation-settings: "SOFT" 50, "opsz" 96; }
.h-3 { font-family: var(--f-serif); font-size: var(--t-2xl); font-weight: 400; line-height: 1.02; letter-spacing: -0.014em; font-variation-settings: "SOFT" 50, "opsz" 60; }
.h-4 { font-family: var(--f-serif); font-size: var(--t-xl);  font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.h-5 { font-family: var(--f-serif); font-size: var(--t-lg);  font-weight: 500; line-height: 1.15; }

.lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.32;
  color: var(--ink-soft);
  font-variation-settings: "SOFT" 100, "opsz" 60;
  max-width: 40ch;
}

.body-md { font-size: var(--t-md); line-height: 1.7; color: var(--ink-soft); }
.body-sm { font-size: var(--t-sm); line-height: 1.65; color: var(--fg-mute); }
.f-mute  { color: var(--fg-mute); }

/* marginalia — handwritten note in the rail */
.marg {
  font-family: var(--f-hand);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.18;
  color: var(--brick);
  letter-spacing: 0.005em;
  transform: rotate(-2deg);
  max-width: 22ch;
  position: relative;
}
.marg.sage  { color: var(--sage-deep); }
.marg.taupe { color: var(--taupe); }
.marg.ink   { color: var(--ink-soft); }
.marg.tilt-r { transform: rotate(1.5deg); }
.marg.tilt-rr { transform: rotate(3deg); }
.marg.tilt-l { transform: rotate(-3.5deg); }

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--f-sans);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--brick); border-color: var(--brick); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-lg { padding: 18px 32px; font-size: var(--t-base); }
.btn-sm { padding: 9px 16px; font-size: 11px; }

.link-u {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-family: var(--f-sans);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.link-u:hover { color: var(--brick); }

/* chip / pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(253,251,245,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .brand {
  font-family: var(--f-serif);
  font-size: clamp(22px, 1.6vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variation-settings: "SOFT" 50, "opsz" 30;
}
.site-header .brand em { font-style: italic; }
.site-header .nav {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--f-sans);
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
}
.site-header .nav a { color: var(--ink); position: relative; padding: 4px 0; }
.site-header .nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width var(--dur-2) var(--ease);
}
.site-header .nav a:hover::after { width: 100%; }
.site-header .right {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.site-header .right .icon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--r-pill);
  transition: background var(--dur-1) var(--ease);
}
.site-header .right .icon:hover { background: rgba(42,40,35,0.06); }
.site-header .bag-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--brick); color: var(--paper);
  border-radius: 999px; font-size: 10px;
  font-family: var(--f-mono);
}

/* — hamburger button — */
.ham-btn {
  display: none;
  background: none;
  border: none;
  padding: 7px;
  margin-left: 4px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  transition: background var(--dur-1) var(--ease);
  flex-shrink: 0;
}
.ham-btn:hover { background: rgba(42,40,35,0.06); }

@media (max-width: 880px) {
  .site-header .nav { display: none; }
  .ham-btn { display: inline-flex; }
  /* on mobile: hide search / theme / account, keep bag + hamburger */
  .site-header .right .icon:not(.bag-link) { display: none; }
  .site-header .right .bag-link span { display: none; } /* hide "Bag N" text, keep icon */
}

/* — mobile nav overlay — */
.mnav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mnav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mnav-overlay .mnav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(253,251,245,0.1);
  margin-bottom: 40px;
}
.mnav-overlay .mnav-brand {
  font-family: var(--f-serif);
  font-size: clamp(22px,1.6vw,26px);
  font-weight: 400;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.04em;
  font-variation-settings: "SOFT" 50, "opsz" 30;
}
.mnav-overlay .mnav-brand em { font-style: italic; }
.mnav-overlay .mnav-close {
  background: none;
  border: 1px solid rgba(253,251,245,0.2);
  cursor: pointer;
  color: var(--paper);
  padding: 8px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.mnav-overlay .mnav-close:hover { background: rgba(253,251,245,0.08); border-color: rgba(253,251,245,0.4); }
.mnav-overlay .mnav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.mnav-overlay .mnav-links a {
  font-family: var(--f-serif);
  font-size: clamp(38px, 11vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "opsz" 96;
  color: rgba(253,251,245,0.78);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color var(--dur-1) var(--ease), letter-spacing var(--dur-2) var(--ease);
}
.mnav-overlay .mnav-links a:hover { color: var(--paper); letter-spacing: -0.01em; }
.mnav-overlay .mnav-links a[aria-current="page"] {
  color: var(--blush);
  font-style: italic;
}
.mnav-overlay .mnav-sub {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(253,251,245,0.12);
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253,251,245,0.45);
}
.mnav-overlay .mnav-sub a {
  color: rgba(253,251,245,0.55);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.mnav-overlay .mnav-sub a:hover { color: var(--paper); }

/* — footer — */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 6vw, 96px) var(--gutter) 32px;
  position: relative;
}
.site-footer .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  max-width: var(--max-wide);
  margin: 0 auto;
}
.site-footer h6 {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(253,251,245,0.5);
  margin: 0 0 20px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer a { color: var(--paper); opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--blush); }
.site-footer .colophon {
  border-top: 1px solid rgba(253,251,245,0.15);
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 28px;
  max-width: var(--max-wide);
  margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(253,251,245,0.5);
}
@media (max-width: 800px) {
  .site-footer .row { grid-template-columns: 1fr 1fr; }
  .site-footer .colophon { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* — hero treatments shared — */
.bleed-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}
.bleed-img.warm { filter: contrast(1.05) saturate(0.86) sepia(0.08); }
.bleed-img.cool { filter: contrast(1.04) saturate(0.86); }

/* — product cards — shared across PLP, related, you-might-like — */
.pcard {
  display: block;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.pcard .photo {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--ivory);
  overflow: hidden;
  margin-bottom: 14px;
}
.pcard .photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease);
}
.pcard:hover .photo img { transform: scale(1.03); }
.pcard .photo .alt-img {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.pcard:hover .photo .alt-img { opacity: 1; }
.pcard .badge {
  position: absolute; top: 12px; left: 12px;
  z-index: 2; padding: 4px 9px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
}
.pcard .badge.ink { background: var(--ink); color: var(--paper); }
.pcard .badge.wheat { background: var(--wheat); color: var(--ink); }

.pcard h3 {
  font-family: var(--f-serif);
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.2;
  font-variation-settings: "SOFT" 50, "opsz" 30;
}
.pcard h3 em { font-style: italic; }
.pcard .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 6px;
}
.pcard .px { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink); }
.pcard .sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-mute); }
.pcard .swatches { display: flex; gap: 4px; margin-top: 8px; }
.pcard .swatches span {
  width: 10px; height: 10px; border-radius: 999px;
  border: 1px solid var(--line);
}

/* — divider lines, decorative — */
.hr-cross {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-mute);
}
.hr-cross::before, .hr-cross::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.hr-cross.ink { color: rgba(253,251,245,0.6); }
.hr-cross.ink::before, .hr-cross.ink::after { background: rgba(253,251,245,0.15); }

/* — running marquee — */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.4vw, 56px);
  font-weight: 350;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variation-settings: "SOFT" 50, "opsz" 60;
}
.marquee .track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  width: max-content;
}
.marquee .track em { font-style: italic; color: var(--brick); }
.marquee .track .dot { color: var(--wheat-deep); font-style: normal; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* — scroll-draw doodles — */
.doodle { display: block; pointer-events: none; }
.doodle path, .doodle line, .doodle circle, .doodle ellipse, .doodle polyline, .doodle polygon {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.6s var(--ease-soft);
}
.doodle.is-in path, .doodle.is-in line, .doodle.is-in circle,
.doodle.is-in ellipse, .doodle.is-in polyline, .doodle.is-in polygon {
  stroke-dashoffset: 0;
}

/* on-scroll reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.rv.is-in { opacity: 1; transform: none; }
.rv-2 { transition-delay: 120ms; }
.rv-3 { transition-delay: 240ms; }
.rv-4 { transition-delay: 360ms; }

/* — accent helpers — */
.tag-sage  { background: var(--sage); color: var(--ink); }
.tag-wheat { background: var(--wheat); color: var(--ink); }
.tag-blush { background: var(--blush); color: var(--ink); }
.tag-ink   { background: var(--ink); color: var(--paper); }

/* — number rule, top-of-section — */
.sect-rule {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-mute);
}
.sect-rule .n {
  font-family: var(--f-serif); font-size: var(--t-lg);
  font-weight: 400; color: var(--ink);
  font-variation-settings: "opsz" 60;
  font-style: italic;
}

/* — utility — */
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 40px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 40px; } .mt-10 { margin-top: 72px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 40px; }
.center { text-align: center; }
.uppercase { text-transform: uppercase; }
.relative { position: relative; }

/* — section wrappers — */
.section {
  padding-top: clamp(72px, 8vw, 144px);
  padding-bottom: clamp(72px, 8vw, 144px);
}
.section-sm {
  padding-top: clamp(48px, 5vw, 96px);
  padding-bottom: clamp(48px, 5vw, 96px);
}

/* — image-slot fallback styling — */
image-slot, .img-slot {
  background: var(--ivory);
  position: relative;
}

/* — dark theme — */
html[data-theme="dark"] {
  --bg: var(--ink);
  --bg-alt: #1f1d18;
  --bg-band: #25221d;
  --fg: var(--paper);
  --fg-mute: rgba(253,251,245,0.6);
  --line: rgba(253,251,245,0.14);
  --line-soft: rgba(253,251,245,0.08);
  --line-strong: rgba(253,251,245,0.32);
}
html[data-theme="dark"] body { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .site-header { background: rgba(42,40,35,0.86); border-color: rgba(253,251,245,0.1); }
html[data-theme="dark"] .site-header a, html[data-theme="dark"] .site-header .brand { color: var(--paper); }
html[data-theme="dark"] .band-paper, html[data-theme="dark"] .band-warm { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .band-ivory { background: #2f2c26; }
html[data-theme="dark"] .h-display, html[data-theme="dark"] .h-1, html[data-theme="dark"] .h-2, html[data-theme="dark"] .h-3, html[data-theme="dark"] .h-4, html[data-theme="dark"] .h-5 { color: var(--paper); }
html[data-theme="dark"] .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
html[data-theme="dark"] .btn:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }
html[data-theme="dark"] .btn-line { background: transparent; color: var(--paper); border-color: var(--paper); }
html[data-theme="dark"] .btn-line:hover { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .pcard { color: var(--paper); }
html[data-theme="dark"] .pcard .badge { background: var(--ink-soft); color: var(--paper); }
html[data-theme="dark"] .chip { background: transparent; color: var(--paper); border-color: rgba(253,251,245,0.2); }
html[data-theme="dark"] .chip.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
html[data-theme="dark"] .marg { color: var(--blush); }

/* — focus ring — */
:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}
