/* ============================================================
   ISABELLA NGUM — DYNAMIC STYLES LAYER (SOP §390, 2026-11-17)
   Style layer ONLY: accent colours via CSS variables.
   Never layout, spacing, font sizes, content, prices, product
   data, photos, link destinations, forms, basket, doors or
   script behaviour.

   SIGNATURE PALETTE — her own current production colours,
   read from the pages' own :root and partners.css (2026-11-17):
     --main   #a0401c  (terracotta — header band, buttons, headings)
     --deep   #6e2a10  (deep clay — nav band, hover)
     --accent #e9a13b  (gold — header rule, hero frame, quotes)
     --edge   #eed9c4  (pale clay edge)
     --stone  #fbf3e8  (warm stone ground)
     partners/design fitted edge #f2c230 (bright gold)
   Choosing "Signature" in the Styles switcher sets
   data-dyn-style="signature", for which NO override below
   applies — her original production colours stand exactly.

   The four seasonal palettes are curated around that same
   terracotta-and-gold family, shifting temperature by season.
   ============================================================ */

/* --- Seasonal palettes (the --dyn-* variables) --- */
html[data-dyn-style="spring"] {
  --dyn-accent: #f0b84e;
  --dyn-accent-2: #b8532a;
  --dyn-deep: #7d3a1c;
  --dyn-soft: #fdf4e6;
  --dyn-edge: #f2ddba;
  --dyn-motif: linear-gradient(135deg, #7d3a1c, #b8532a 55%, #f0b84e);
}
html[data-dyn-style="summer"] {
  --dyn-accent: #f7bd2a;
  --dyn-accent-2: #c0521f;
  --dyn-deep: #8a3410;
  --dyn-soft: #fdf1dc;
  --dyn-edge: #f0d9ac;
  --dyn-motif: linear-gradient(135deg, #8a3410, #c0521f 55%, #f7bd2a);
}
html[data-dyn-style="autumn"] {
  --dyn-accent: #dd8f2e;
  --dyn-accent-2: #8f3a17;
  --dyn-deep: #5c230a;
  --dyn-soft: #f9eee0;
  --dyn-edge: #e7d0ae;
  --dyn-motif: linear-gradient(135deg, #5c230a, #8f3a17 55%, #dd8f2e);
}
html[data-dyn-style="winter"] {
  --dyn-accent: #cf9a52;
  --dyn-accent-2: #7e3b2e;
  --dyn-deep: #4c2317;
  --dyn-soft: #f6eee7;
  --dyn-edge: #e2d2c2;
  --dyn-motif: linear-gradient(135deg, #4c2317, #7e3b2e 55%, #cf9a52);
}

/* --- Mapping: the face's EXISTING accent variables and
       component variables are re-pointed at the seasonal
       palette. Applies only while a seasonal style is active
       (data-dyn-style present and not "signature"). --- */
html[data-dyn-style]:not([data-dyn-style="signature"]) {
  --main: var(--dyn-accent-2);
  --deep: var(--dyn-deep);
  --accent: var(--dyn-accent);
  --edge: var(--dyn-edge);
}
html[data-dyn-style]:not([data-dyn-style="signature"]) .partners-band,
html[data-dyn-style]:not([data-dyn-style="signature"]) .partners-page {
  --partners-accent: var(--dyn-accent-2);
  --partners-deep: var(--dyn-deep);
  --partners-stone: var(--dyn-soft);
  --partners-edge: var(--dyn-accent);
}
html[data-dyn-style]:not([data-dyn-style="signature"]) .design-band,
html[data-dyn-style]:not([data-dyn-style="signature"]) .design-page {
  --design-accent: var(--dyn-accent-2);
  --design-deep: var(--dyn-deep);
  --design-stone: var(--dyn-soft);
  --design-edge: var(--dyn-accent);
}
html[data-dyn-style]:not([data-dyn-style="signature"]) .claim-band,
html[data-dyn-style]:not([data-dyn-style="signature"]) .claim-page {
  --claim-accent: var(--dyn-accent-2);
  --claim-deep: var(--dyn-deep);
  --claim-stone: var(--dyn-soft);
  --claim-edge: var(--dyn-accent);
}
/* Decorative motif: the hero band takes the seasonal gradient. */
html[data-dyn-style]:not([data-dyn-style="signature"]) .hero {
  background: var(--dyn-motif);
}
/* Accent bands that carry inline styles in the page markup. */
html[data-dyn-style]:not([data-dyn-style="signature"]) .referral-banner {
  background: var(--dyn-accent-2) !important;
}
html[data-dyn-style]:not([data-dyn-style="signature"]) .referral-banner a {
  color: var(--dyn-accent) !important;
}
html[data-dyn-style]:not([data-dyn-style="signature"]) header .mark {
  color: var(--dyn-accent) !important;
}
/* The welcome card follows the season's tint and gold. */
html[data-dyn-style]:not([data-dyn-style="signature"]) .welcome-pop {
  border-color: var(--dyn-accent);
  background: var(--dyn-soft);
}

/* --- Motion-polite: colour transitions only, and only when
       the visitor has not asked for reduced motion. --- */
@media (prefers-reduced-motion: no-preference) {
  header, nav, a, button, .btn, .card, .note, th, .hero, blockquote,
  .partners-band, .partners-btn, .claim-band, .claim-btn,
  .design-band, .design-btn, .referral-banner, footer,
  .dyn-styles-btn, .dyn-styles-opt {
    transition: color 0.35s ease, background-color 0.35s ease,
      border-color 0.35s ease;
  }
}

/* --- The Styles switcher control (injected by dyn-styles.js).
       Dressed in the boutique's own language: Georgia serif,
       terracotta and gold. Fixed bottom-left, clear of the
       visitor-flags card and welcome card (bottom-right). --- */
.dyn-styles-btn {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 99980;
  background: var(--dyn-accent-2, #a0401c);
  color: #ffffff;
  border: 1px solid var(--dyn-deep, #6e2a10);
  border-top: 3px solid var(--dyn-accent, #e9a13b);
  padding: 0.45rem 1rem;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua",
    "Times New Roman", serif;
  font-size: 0.95rem;
  cursor: pointer;
}
.dyn-styles-btn:hover, .dyn-styles-btn:focus { text-decoration: underline; }
.dyn-styles-panel {
  position: fixed;
  left: 12px;
  bottom: 64px;
  z-index: 99980;
  background: var(--dyn-soft, #fbf3e8);
  color: #2e1c12;
  border: 1px solid var(--dyn-edge, #eed9c4);
  border-top: 4px solid var(--dyn-accent-2, #a0401c);
  padding: 0.7rem 0.8rem;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua",
    "Times New Roman", serif;
  font-size: 0.98rem;
  box-shadow: 0 8px 26px rgba(46, 28, 18, 0.25);
}
.dyn-styles-panel[hidden] { display: none; }
.dyn-styles-title { margin: 0 0 0.5rem; font-weight: bold; color: var(--dyn-deep, #6e2a10); }
.dyn-styles-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  padding: 0.3rem 0.6rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.dyn-styles-opt:hover, .dyn-styles-opt:focus { text-decoration: underline; }
.dyn-styles-opt[aria-checked="true"] {
  border-left-color: var(--dyn-accent, #e9a13b);
  font-weight: bold;
  color: var(--dyn-accent-2, #a0401c);
}
