/* ─────────────────────────────────────────────────────────────────────────
   VOLUPTÉ — Aesthetic Atelier
   Maximalist MedSpa template · Rococo × Club-flyer × Riso × Acid pastel
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Acid pastel palette */
  --peach:    #FFB68C;
  --mint:     #B8F0D2;
  --lavender: #C9B6FF;
  --butter:   #FFEFA8;
  --pink:     #FF2D87;
  --acid:     #C4FF4D;
  --sky:      #6DD6FF;
  --tomato:   #FF5B3D;

  /* Neutrals */
  --ink:    #1A1410;
  --cream:  #F7F1E8;
  --paper:  #FCF8F0;
  --gold:   #C9A04A;
  --gilt:   #E8C76A;

  /* System */
  --noise: 0.45;     /* riso grain alpha 0–1, controlled by Tweaks */
  --rotate-amt: 1;   /* multiplier on funky rotations */
  --bg: var(--cream);
  --fg: var(--ink);
  --stroke-bg: var(--ink);  /* stroke for shadows/borders that sit over the page bg */

  /* Fonts (loaded in index.html) */
  --f-bodoni:   "Bodoni Moda", "DM Serif Display", Georgia, serif;
  --f-serif:    "DM Serif Display", "Bodoni Moda", Georgia, serif;
  --f-script:   "Pinyon Script", "Sail", cursive;
  --f-flourish: "Sail", "Pinyon Script", cursive;
  --f-fraktur:  "UnifrakturMaguntia", "Bodoni Moda", serif;
  --f-hand:     "Caveat", "Comic Sans MS", cursive;
  --f-mono:     "Space Mono", "Courier New", monospace;
  --f-fat:      "Bowlby One", "Rubik Mono One", sans-serif;
  --f-chrome:   "Honk", "Rubik Mono One", sans-serif;
  --f-stripe:   "Monoton", "Rubik Mono One", sans-serif;
  --f-mono-d:   "Major Mono Display", "Space Mono", monospace;
  --f-body:     "Bodoni Moda", Georgia, serif;
}

[data-theme="dark"] {
  --bg: #16110D;
  --fg: #FCF8F0;
  --cream: #1F1813;
  --paper: #261D17;
  --stroke-bg: var(--peach);  /* strokes over the dark page bg become bright peach */
}

/* Dark-mode adjustments for surfaces that float over the body bg */
[data-theme="dark"] .hdr {
  background: var(--cream);
  border-bottom-color: var(--stroke-bg);
  box-shadow: 0 4px 0 var(--pink), 0 6px 0 var(--stroke-bg);
}
[data-theme="dark"] .frame { box-shadow: 6px 6px 0 var(--stroke-bg); }
[data-theme="dark"] .tile { box-shadow: 5px 5px 0 var(--stroke-bg); }
[data-theme="dark"] .tile:hover { box-shadow: 8px 8px 0 var(--pink); }
[data-theme="dark"] .btn { box-shadow: 4px 4px 0 var(--stroke-bg); }
[data-theme="dark"] .btn:hover { box-shadow: 6px 6px 0 var(--stroke-bg); }
[data-theme="dark"] .btn:active { box-shadow: 1px 1px 0 var(--stroke-bg); }
[data-theme="dark"] .marquee { border-color: var(--stroke-bg); }
[data-theme="dark"] .acc, [data-theme="dark"] .acc-item { border-color: var(--stroke-bg); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select { border-bottom-color: var(--stroke-bg); color: var(--fg); }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: rgba(252,248,240,.4); }
[data-theme="dark"] .tbl th { border-bottom-color: var(--stroke-bg); }
[data-theme="dark"] .tbl td { border-bottom-color: rgba(255,182,140,.3); }
[data-theme="dark"] .tbl tr:hover td { background: rgba(255,182,140,.12); }
[data-theme="dark"] .chip:not([style*="background"]) { background: var(--cream); color: var(--fg); border-color: var(--stroke-bg); }
[data-theme="dark"] .stamp { border-color: var(--stroke-bg); color: var(--stroke-bg); }
[data-theme="dark"] .divider-orn { color: var(--peach); }
[data-theme="dark"] .ftr { background: #0E0A07; color: #FCF8F0; }
[data-theme="dark"] .ftr a:not(:hover) { color: #FCF8F0; }
[data-theme="dark"] .ftr p { color: #FCF8F0 !important; }
[data-theme="dark"] .ftr .chip[style*="transparent"] { color: #FCF8F0 !important; border-color: #FCF8F0 !important; }
[data-theme="dark"] .ftr-legal { color: rgba(252,248,240,.6) !important; }
[data-theme="dark"] .frame.ink,
[data-theme="dark"] .tile.ink { background: #2A1F18; color: #FCF8F0; }
[data-theme="dark"] .frame.ink .body-mono,
[data-theme="dark"] .tile.ink .body-mono { color: rgba(252,248,240,.7); }
[data-theme="dark"] .frame.ink p,
[data-theme="dark"] .frame.ink li,
[data-theme="dark"] .frame.ink ul { color: #FCF8F0 !important; }
[data-theme="dark"] .cursor-ring { border-color: var(--peach); }

/* Cursor stickers on dark bg need brighter palette by default */
[data-theme="dark"] .cursor-trail { mix-blend-mode: normal; }

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── Riso grain overlay (applied to <body::before>) ─────────────────────── */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: calc(var(--noise) * 0.7); }

/* ── Custom cursor ──────────────────────────────────────────────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pink);
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .15s, height .15s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s;
}
.cursor-trail {
  position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  animation: trail-fade 1.1s linear forwards;
}
@keyframes trail-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(.6) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4) rotate(180deg); }
}

/* ── Page layout ────────────────────────────────────────────────────────── */
.page { position: relative; overflow: hidden; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 28px; }
.col { display: flex; flex-direction: column; }
section { position: relative; padding: 80px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .container, .container-wide { padding: 0 18px; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 500;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--pink), 0 6px 0 var(--ink);
}
/* Keep decorative stickers/sparkles inside their section — never bleed
   over the sticky header. */
section .sticker, section .sparkle-deco { z-index: 1; }
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px; gap: 24px;
}
.hdr-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-bodoni); font-weight: 900;
  font-size: 26px; letter-spacing: -.02em;
  font-style: italic;
}
.hdr-brand .acc {
  font-family: var(--f-script); font-weight: 400; font-style: normal;
  color: var(--pink); font-size: 32px; line-height: .8;
  transform: translateY(2px) rotate(-6deg);
  display: inline-block;
}
.hdr-nav {
  display: flex; gap: 22px; align-items: center;
  font-family: var(--f-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em;
}
.hdr-nav a {
  position: relative; padding: 6px 0;
  transition: color .15s;
}
.hdr-nav a:hover { color: var(--pink); }
.hdr-nav a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--acid);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-nav a.active { color: var(--pink); }
.hdr-nav a.active::after { transform: scaleX(1); background: var(--pink); }
.hdr-cta {
  font-family: var(--f-fat); font-size: 13px;
  background: var(--ink); color: var(--butter);
  padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--ink);
  letter-spacing: .04em;
  transition: transform .15s;
  text-decoration: none;
}
.hdr-cta:hover { transform: rotate(-2deg) scale(1.04); background: var(--pink); color: var(--cream); }
.hdr-burger {
  display: none; background: var(--ink); color: var(--butter);
  border: 0; padding: 8px 12px; border-radius: 8px;
  font-family: var(--f-mono); font-size: 11px;
}
@media (max-width: 880px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: block; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 600;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; padding: 24px;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.7,0,.3,1);
  overflow: hidden;
}
.drawer.open { overflow-y: auto; }
.drawer.open { transform: translateY(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-close {
  background: transparent; border: 0; color: var(--butter);
  font-family: var(--f-fat); font-size: 28px;
}
.drawer ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.drawer a {
  font-family: var(--f-bodoni); font-style: italic;
  font-size: 36px; font-weight: 900; line-height: 1;
  display: block; padding: 6px 0;
  border-bottom: 1px dashed rgba(247,241,232,.3);
}
.drawer a:nth-child(odd) { color: var(--peach); }
.drawer a:nth-child(even) { color: var(--mint); }

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee {
  background: var(--ink); color: var(--butter);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 14px 0; overflow: hidden; position: relative;
  font-family: var(--f-fat); font-size: 24px; letter-spacing: .02em;
  white-space: nowrap;
}
.marquee.pink { background: var(--pink); color: var(--butter); }
.marquee.acid { background: var(--acid); color: var(--ink); }
.marquee.lav  { background: var(--lavender); color: var(--ink); }
.marquee-track {
  display: inline-block; padding-left: 100%;
  animation: marquee 28s linear infinite;
}
.marquee.fast .marquee-track { animation-duration: 14s; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee-track span { margin: 0 18px; }
.marquee-track .star {
  font-family: var(--f-chrome); color: var(--acid); margin: 0 14px;
}
.marquee.pink .marquee-track .star { color: var(--butter); }
.marquee.acid .marquee-track .star { color: var(--pink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── Typography utility ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; height: 1px; width: 24px; background: currentColor;
}
.eyebrow.no-rule::before, .eyebrow.no-rule::after { display: none; }

.h-display {
  font-family: var(--f-bodoni); font-style: italic;
  font-weight: 900; line-height: .88; letter-spacing: -.03em;
  font-size: clamp(48px, 9vw, 144px);
}
.h-display .script {
  font-family: var(--f-script); font-style: normal; font-weight: 400;
  color: var(--pink); letter-spacing: 0;
  font-size: 1.15em; line-height: .7;
  display: inline-block; transform: translateY(.08em) rotate(-4deg);
}
.h-display .fraktur {
  font-family: var(--f-fraktur); font-style: normal; font-weight: 400;
  font-size: .85em;
}
.h-display .chrome {
  font-family: var(--f-chrome); font-style: normal; font-weight: 400;
  font-size: .9em;
}
.h-display .stripe {
  font-family: var(--f-stripe); font-style: normal;
  font-size: .65em; letter-spacing: 0;
}

.lede {
  font-family: var(--f-bodoni); font-style: italic;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.4;
  max-width: 56ch;
}
.body-mono { font-family: var(--f-mono); font-size: 14px; line-height: 1.55; }
.body-hand { font-family: var(--f-hand); font-size: 22px; line-height: 1.35; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-fat); font-size: 15px; letter-spacing: .04em;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--butter); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.pink { background: var(--pink); color: var(--butter); }
.btn.mint { background: var(--mint); }
.btn.lav  { background: var(--lavender); }
.btn.acid { background: var(--acid); }
.btn.ink  { background: var(--ink); color: var(--butter); }

/* ── Cards & frames ─────────────────────────────────────────────────────── */
.frame {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.frame.tilt-l { transform: rotate(calc(-1.5deg * var(--rotate-amt))); }
.frame.tilt-r { transform: rotate(calc(2deg * var(--rotate-amt))); }
.frame.peach  { background: var(--peach); }
.frame.mint   { background: var(--mint); }
.frame.lav    { background: var(--lavender); }
.frame.butter { background: var(--butter); }
.frame.pink   { background: var(--pink); color: var(--butter); }
.frame.acid   { background: var(--acid); }
.frame.ink    { background: var(--ink); color: var(--cream); }

/* Halftone dot pattern */
.dots {
  background-image: radial-gradient(var(--ink) 1.4px, transparent 1.6px);
  background-size: 10px 10px;
}
.dots-lg { background-size: 18px 18px; background-image: radial-gradient(var(--ink) 2.2px, transparent 2.4px); }
.stripes {
  background: repeating-linear-gradient(
    45deg, var(--ink) 0 3px, transparent 3px 14px
  );
}
.stripes-pink {
  background: repeating-linear-gradient(
    -45deg, var(--pink) 0 6px, var(--butter) 6px 14px
  );
}

/* Ornate corner crosshair */
.corner-marks::before, .corner-marks::after,
.corner-marks > i:first-child::before, .corner-marks > i:first-child::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--ink);
}
.corner-marks::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.corner-marks::after  { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.corner-marks > i:first-child::before { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.corner-marks > i:first-child::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* ── Stickers (small floating decorative bits) ──────────────────────────── */
.sticker {
  position: absolute; pointer-events: none;
  font-family: var(--f-fat);
  animation: bob 4s ease-in-out infinite;
}
.sticker.tilted-l { transform: rotate(-12deg); }
.sticker.tilted-r { transform: rotate(14deg); }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* Stamp */
.stamp {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px;
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em;
  border: 2px solid var(--ink);
  background: transparent;
  transform: rotate(-3deg);
}
.stamp.pink { color: var(--pink); border-color: var(--pink); }
.stamp.circle {
  border-radius: 50%; width: 86px; height: 86px;
  padding: 0; text-align: center; line-height: 1.1; font-size: 10px;
}

/* Pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--cream);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ftr {
  background: var(--ink); color: var(--cream);
  padding: 64px 0 24px; margin-top: 80px;
  position: relative; overflow: hidden;
}
.ftr-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; align-items: start;
}
@media (max-width: 880px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.ftr h4 {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--peach); margin: 0 0 14px;
}
.ftr a { display: block; padding: 4px 0; font-family: var(--f-bodoni); font-style: italic; font-size: 17px; }
.ftr a:hover { color: var(--pink); }
.ftr-mega {
  font-family: var(--f-bodoni); font-style: italic; font-weight: 900;
  font-size: clamp(80px, 14vw, 220px); line-height: .85;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--peach);
  margin: 50px 0 0; padding: 0 28px;
  white-space: nowrap; overflow: hidden;
}
.ftr-legal {
  border-top: 1px dashed rgba(247,241,232,.25); margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; color: rgba(247,241,232,.6);
  text-transform: uppercase; letter-spacing: .1em;
}

/* ── Service / Area card grid ───────────────────────────────────────────── */
.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.tile {
  position: relative; padding: 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 240px;
}
.tile:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--pink);
}
.tile-num {
  font-family: var(--f-mono); font-size: 11px;
  color: rgba(0,0,0,.5); letter-spacing: .14em;
}
.tile-title {
  font-family: var(--f-bodoni); font-style: italic; font-weight: 900;
  font-size: 28px; line-height: 1; letter-spacing: -.02em;
  margin: 4px 0 6px;
}
.tile-desc { font-family: var(--f-body); font-size: 14px; line-height: 1.4; }
.tile-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: end;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.tile.peach { background: var(--peach); }
.tile.mint  { background: var(--mint); }
.tile.lav   { background: var(--lavender); }
.tile.butter{ background: var(--butter); }
.tile.acid  { background: var(--acid); }
.tile.pink  { background: var(--pink); color: var(--butter); }
.tile.pink .tile-num,
.tile.pink .tile-foot { color: rgba(255,239,168,.85); }
.tile.ink   { background: var(--ink); color: var(--cream); }
.tile.ink .tile-num,
.tile.ink .tile-foot { color: rgba(247,241,232,.6); }

/* ── Accordion (FAQ) ────────────────────────────────────────────────────── */
.acc { border-top: 2px solid var(--ink); }
.acc-item { border-bottom: 2px solid var(--ink); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 4px; background: transparent; border: 0; text-align: left;
  font-family: var(--f-bodoni); font-style: italic; font-weight: 900;
  font-size: clamp(22px, 3vw, 36px); line-height: 1.1; color: inherit;
  gap: 24px;
}
.acc-q .plus {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--butter); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-fat); font-size: 22px; line-height: 1;
  transition: transform .25s, background .2s;
}
.acc-item.open .acc-q .plus { transform: rotate(45deg); background: var(--pink); color: var(--butter); }
.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4,0,.2,1);
}
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p {
  margin: 0 0 18px;
  font-family: var(--f-body); font-size: 17px; line-height: 1.5;
  max-width: 64ch;
}
.acc-body .extras {
  display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 18px;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  font-family: var(--f-bodoni); font-style: italic;
  font-size: 22px; line-height: 1.2;
  border: 0; border-bottom: 2px solid var(--ink);
  background: transparent; color: inherit;
  padding: 8px 0; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--pink);
}
.field textarea { min-height: 100px; resize: vertical; font-style: normal; }

/* ── Maximalism flavor variants (theme overrides) ───────────────────────── */
[data-flavor="victorian"] {
  --peach: #B8927B; --mint: #6D7F6C; --lavender: #5C4A5E;
  --butter: #D9C28F; --pink: #8B2F3F; --acid: #C9A04A;
  --sky: #2F3E5C; --tomato: #6A2222;
  --cream: #ECE1CB; --paper: #E6D9BD; --ink: #2A1A0F;
  --f-bodoni: "UnifrakturMaguntia", "Bodoni Moda", serif;
  --f-fat: "DM Serif Display", "Bowlby One", serif;
  --f-chrome: "DM Serif Display", "Honk", serif;
}
[data-flavor="y2k"] {
  --peach: #FF7AFF; --mint: #7DF9FF; --lavender: #B8B8FF;
  --butter: #FFFFFF; --pink: #FF1493; --acid: #00FFB3;
  --sky: #00C8FF; --tomato: #FF0066;
  --cream: #E8E8FF; --paper: #F0F0FF; --ink: #1A0033;
}
[data-flavor="memphis"] {
  --peach: #FF6B6B; --mint: #4ECDC4; --lavender: #FFE66D;
  --butter: #FFFFFF; --pink: #FF006E; --acid: #FFD60A;
  --sky: #4A9EFF; --tomato: #E63946;
  --cream: #F1FAEE; --paper: #FFFFFF; --ink: #0A0A0A;
}
[data-flavor="scrapbook"] {
  --peach: #F5A082; --mint: #A8D5BA; --lavender: #C8B6E2;
  --butter: #F5E6A8; --pink: #E94B7E; --acid: #DCD06A;
  --sky: #88B4D8; --tomato: #C4544B;
  --cream: #F0E8D8; --paper: #E8DCC0; --ink: #3A2E20;
}

/* ── Typography pairing variants ────────────────────────────────────────── */
[data-typeset="editorial"] {
  --f-bodoni: "Bodoni Moda", serif;
  --f-fat: "DM Serif Display", serif;
  --f-body: "Bodoni Moda", serif;
  --f-chrome: "DM Serif Display", serif;
}
[data-typeset="grotesk"] {
  --f-bodoni: "Bowlby One", sans-serif;
  --f-fat: "Bowlby One", sans-serif;
  --f-body: "Space Mono", monospace;
}
[data-typeset="mono"] {
  --f-bodoni: "Major Mono Display", monospace;
  --f-fat: "Rubik Mono One", monospace;
  --f-body: "Space Mono", monospace;
  --f-chrome: "Major Mono Display", monospace;
}

/* ── Misc ───────────────────────────────────────────────────────────────── */
.divider-orn {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 28px 0;
  font-family: var(--f-chrome); font-size: 28px;
  color: var(--gold);
}
.divider-orn hr { flex: 1; border: 0; border-top: 1px solid currentColor; }

.price-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--f-fat); font-size: 28px;
  color: var(--pink);
}
.price-tag .from { font-family: var(--f-mono); font-size: 11px; color: var(--ink); letter-spacing: .14em; }

.kicker {
  font-family: var(--f-fraktur); font-size: 38px;
  color: var(--pink); line-height: 1; display: inline-block;
}

/* helper for SVG ornament wrappers */
.orn { display: inline-block; line-height: 0; }
.orn-rotate { animation: spin 30s linear infinite; transform-origin: center; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* slot for illustrated placeholder */
.illus {
  position: relative; aspect-ratio: 1;
  background: var(--paper); border: 2px solid var(--ink);
  display: grid; place-items: center;
  overflow: hidden;
}
.illus .tag {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--butter);
  padding: 4px 8px;
}

/* tabular */
.tbl { width: 100%; border-collapse: collapse; font-family: var(--f-body); }
.tbl th, .tbl td {
  text-align: left; padding: 14px 12px;
  border-bottom: 1.5px dashed var(--ink);
}
.tbl th {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}
.tbl td.price { font-family: var(--f-fat); color: var(--pink); font-size: 18px; }
.tbl tr:hover td { background: var(--butter); }

/* sparkle pulse */
@keyframes sparkle { 0%,100% { transform: scale(1) rotate(0); opacity:.9 } 50% { transform: scale(1.25) rotate(20deg); opacity:1 } }
.sparkle { animation: sparkle 2.4s ease-in-out infinite; transform-origin: center; }

/* ── Mobile (added) ──────────────────────────────────────────────────────── */
html, body { overflow-x: hidden; }

@media (max-width: 720px) {
  /* Override inline grid-template-columns at mobile */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="gap:80px"], [style*="gap: 80px"], [style*="gap:64px"], [style*="gap: 64px"], [style*="gap:56px"], [style*="gap: 56px"] { gap: 32px !important; }
  /* Defang inline aspect-ratio + min-height combos that force width > viewport */
  [style*="aspect-ratio"][style*="min-height"] { min-height: 0 !important; }
  /* Cap fixed inline widths used on decorative figures/SVG containers */
  [style*="width:420px"], [style*="width: 420px"],
  [style*="width:480px"], [style*="width: 480px"],
  [style*="width:500px"], [style*="width: 500px"],
  [style*="width:560px"], [style*="width: 560px"] { width: 100% !important; max-width: 100% !important; }
  /* SVG with intrinsic width attribute must shrink */
  svg[width] { max-width: 100%; height: auto; }
  /* Grid items must allow shrink below intrinsic content size */
  .tile-grid > *, .ftr-grid > * { min-width: 0; }
  /* Long headings should not push container width */
  .h-display, h1, h2, h3 { overflow-wrap: anywhere; word-break: normal; }

  /* Disable custom cursor on touch / small screens */
  .cursor-dot, .cursor-ring, .cursor-trail { display: none !important; }
  /* Tone down decorative noise */
  body::before { opacity: calc(var(--noise) * 0.35); }
  /* Kill rotated transforms on tilt frames (they cause horizontal overflow) */
  .frame.tilt-l, .frame.tilt-r { transform: none; }
  .stamp { transform: none; }
  .sticker.tilted-l, .sticker.tilted-r { transform: none; }
  .orn-rotate { animation: none; transform: none !important; }
  .h-display .script { transform: translateY(.04em); }

  /* Header */
  .hdr-inner { padding: 10px 18px; gap: 14px; }
  .hdr-brand { font-size: 22px; gap: 8px; }
  .hdr-brand .acc { font-size: 26px; }

  /* Typography */
  body { font-size: 16px; }
  .h-display { font-size: clamp(40px, 12vw, 64px); }
  .lede { font-size: 17px; }
  .body-hand { font-size: 19px; }

  /* Marquee */
  .marquee { font-size: 18px; padding: 10px 0; }

  /* Buttons */
  .btn { padding: 12px 18px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
  .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

  /* Tiles */
  .tile-grid { grid-template-columns: 1fr; gap: 18px; }
  .tile { padding: 20px; min-height: 0; box-shadow: 4px 4px 0 var(--ink); }
  .tile-title { font-size: 24px; }

  /* Frames */
  .frame { box-shadow: 4px 4px 0 var(--ink); }

  /* Accordion */
  .acc-q { font-size: 22px; padding: 18px 2px; gap: 16px; }
  .acc-q .plus { width: 36px; height: 36px; font-size: 18px; }
  .acc-body p { font-size: 15px; }

  /* Forms */
  .field input, .field textarea, .field select { font-size: 18px; }

  /* Footer */
  .ftr { padding: 48px 0 20px; margin-top: 56px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 24px; }
  .ftr-mega { font-size: clamp(48px, 17vw, 96px); margin: 28px 0 0; padding: 0 18px; overflow: hidden; }
  .ftr-legal { flex-direction: column; gap: 6px; align-items: flex-start; }

  /* Tables */
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .tbl td.price { font-size: 16px; }

  /* Drawer items */
  .drawer a { font-size: 30px; }

  /* Kicker */
  .kicker { font-size: 28px; }

  /* Divider ornament */
  .divider-orn { font-size: 22px; gap: 10px; margin: 20px 0; }
}

@media (max-width: 480px) {
  .hdr-inner { padding: 10px 14px; gap: 8px; }
  .hdr-brand { font-size: 20px; }
  .hdr-brand .acc { font-size: 22px; }
  .marquee { font-size: 16px; }
  .h-display { font-size: clamp(34px, 11vw, 48px); }
}
