/* ==============================================================
   Asumpt e-produkty — v2
   Aesthetic: graphite boutique with restrained cherry accents
   Palette: titanium graphite + deep cherry + clean neutral light mode
   ============================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces */
  --bg-base: #1b1e22;
  --bg-deep: #14171a;
  --bg-elevated: #22262b;
  --bg-line: #30353b;
  --bg-overlay: rgba(20, 23, 26, 0.84);
  --product-bg: #f4f5f7;

  /* semantic accent scale: kept as --gold-* for compatibility, now cherry */
  --gold-50:  #f4f6f8;
  --gold-100: #dce2e8;
  --gold-300: #a9b2bd;
  --gold-500: #9b1c1f;
  --gold-600: #7f171a;
  --gold-700: #641316;
  --gold-900: #3a0b0d;

  /* deeper cherry accent */
  --ember-500: #a52124;
  --ember-700: #6f1518;

  /* kolor naglowkow h1-h4 — jasniejsze bordo, czytelne na ciemnym tle (WCAG 5.6:1) */
  --heading-color: #e05a5e;

  /* type */
  --text-primary:   #f7f8fa;
  --text-secondary: #d4d8de;
  --text-muted:     #858b94;

  /* borders */
  --rule-soft:   rgba(169, 178, 189, 0.18);
  --rule-medium: rgba(155, 28, 31, 0.34);
  --rule-strong: rgba(155, 28, 31, 0.62);

  /* shadows */
  --shadow-sm:   0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md:   0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 18px 60px rgba(155, 28, 31, 0.12);

  /* contextual: text color sitting ON a gold/ember surface */
  --on-gold: #ffffff;

  /* noise grain overlay tint (rgba parts) */
  --grain-r: 0.72;
  --grain-g: 0.76;
  --grain-b: 0.82;
  --grain-a: 0.06;

  /* radial-gradient atmosphere alpha multipliers per theme */
  --aura-gold-alpha: 0.05;
  --aura-ember-alpha: 0.05;

  /* surface-context (dark defaults; overridden by [data-theme="light"]) */
  --header-bg:          rgba(27, 30, 34, 0.82);
  --footer-fade:        rgba(0, 0, 0, 0.40);
  --button-tint:        rgba(0, 0, 0, 0.25);
  --button-tint-strong: rgba(0, 0, 0, 0.45);
  --inset-shade:        rgba(0, 0, 0, 0.25);

  /* layout */
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* typography */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body:    "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* motion */
  --ease-soft: cubic-bezier(0.4, 0.05, 0.2, 1);
  --ease-spring: cubic-bezier(0.32, 1.36, 0.62, 1);
}

/* ---------- 1b. Light theme — clean cool neutral ---------- */
[data-theme="light"] {
  --bg-base:     #f6f7f9;
  --bg-deep:     #e8ebef;
  --bg-elevated: #ffffff;
  --bg-line:     #d8dde4;
  --bg-overlay:  rgba(246, 247, 249, 0.88);
  --product-bg:  #ffffff;

  --gold-50:  #ffffff;
  --gold-100: #303844;
  --gold-300: #7f171a;
  --gold-500: #9b1c1f;
  --gold-600: #7f171a;
  --gold-700: #641316;

  --ember-500: #a52124;
  --ember-700: #6f1518;

  /* w trybie jasnym naglowki zostaja bordowe — kontrast jest OK */
  --heading-color: #9b1c1f;

  --text-primary:   #171a1f;
  --text-secondary: #4b5563;
  --text-muted:     #7b8491;

  --rule-soft:   rgba(48, 56, 68, 0.16);
  --rule-medium: rgba(155, 28, 31, 0.30);
  --rule-strong: rgba(155, 28, 31, 0.58);

  --shadow-sm:   0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md:   0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 18px 60px rgba(155, 28, 31, 0.10);

  --on-gold: #ffffff;

  /* light sepia grain */
  --grain-r: 0.12;
  --grain-g: 0.14;
  --grain-b: 0.18;
  --grain-a: 0.05;

  --aura-gold-alpha: 0.04;
  --aura-ember-alpha: 0.03;

  /* surface-context */
  --header-bg:        rgba(246, 247, 249, 0.86);
  --footer-fade:      rgba(15, 23, 42, 0.04);
  --button-tint:      rgba(48, 56, 68, 0.06);
  --button-tint-strong: rgba(155, 28, 31, 0.08);
  --inset-shade:      rgba(15, 23, 42, 0.04);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s var(--ease-soft), color 0.5s var(--ease-soft);
}
/* atmosphere & grain — separate fixed layer so it's properly painted under content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1200px 600px at 75% -10%, rgba(155,28,31, var(--aura-gold-alpha)), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(148,163,184, var(--aura-ember-alpha)), transparent 70%);
  transition: opacity 0.5s var(--ease-soft);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  background-image: var(--grain-svg, none);
  background-size: 220px 220px;
}
:root {
  --grain-svg:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.72  0 0 0 0 0.76  0 0 0 0 0.82  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="light"] {
  --grain-svg:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.14  0 0 0 0 0.18  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { color: var(--text-muted); } /* alt-text fallback */

a { color: var(--gold-300); text-decoration: none; transition: color 0.25s var(--ease-soft); }
a:hover { color: var(--gold-100); }

button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }

ul, ol { list-style: none; }

::selection { background: var(--gold-500); color: var(--on-gold); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-500);
  color: var(--on-gold);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 999;
  transition: top 0.2s var(--ease-soft);
}
.skip-link:focus { top: 1rem; color: var(--on-gold); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--heading-color);
}
h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
}
h4 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.serif-italic { font-style: italic; color: var(--gold-100); }

p { color: var(--text-secondary); max-width: 68ch; }
p.lead {
  font-size: 1.18rem;
  color: var(--text-primary);
  line-height: 1.65;
  max-width: 62ch;
}
p strong, p b { color: var(--text-primary); font-weight: 600; }

/* eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}

/* roman numeral marker (used to number sections) */
.roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-500);
  opacity: 0.9;
  letter-spacing: 0.02em;
  line-height: 0.9;
  display: inline-block;
}

/* gold rule */
.rule-gold {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  margin: 1.5rem 0;
}
.rule-gold.center { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }

/* ---------- 4. Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
}
.section.compact { padding-block: clamp(3rem, 6vw, 5rem); }

.section-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-header .roman { grid-row: span 2; }
.section-header .eyebrow { align-self: end; }
.section-header h2 { margin-top: 0.4rem; }

@media (max-width: 720px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .section-header .roman { grid-row: auto; font-size: 3.5rem; }
}

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 74px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.site-header__brand img {
  height: 48px;
  width: auto;
  filter: grayscale(1) brightness(1.72) contrast(0.82) drop-shadow(0 1px 0 rgba(0,0,0,0.35));
  opacity: 0.92;
}
[data-theme="light"] .site-header__brand img {
  filter: grayscale(1) brightness(0.42) contrast(1.18) drop-shadow(0 1px 0 rgba(255,255,255,0.45));
  opacity: 0.96;
}
.site-header__brand-meta {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 1px solid var(--rule-soft);
  padding-left: 0.9rem;
}
@media (min-width: 1024px) {
  .site-header__brand-meta { display: block; }
}

.site-nav {
  display: none;
}
@media (min-width: 1024px) {
  .site-nav { display: flex; gap: 2.2rem; align-items: center; }
}
.site-nav a {
  position: relative;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.35s var(--ease-soft), left 0.35s var(--ease-soft);
}
.site-nav a:hover { color: var(--gold-100); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
  left: 0;
}
.site-nav a[aria-current="page"] { color: var(--gold-300); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 10px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  background: var(--button-tint);
  transition: border-color 0.25s var(--ease-soft), background 0.3s var(--ease-soft);
}
.nav-toggle:hover { border-color: var(--rule-medium); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold-300);
  transition: transform 0.3s var(--ease-spring), opacity 0.2s linear;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-soft);
  z-index: 49;
}
.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 86vw);
  background: var(--bg-base);
  border-left: 1px solid var(--rule-soft);
  padding: 6rem var(--gutter) 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
body.nav-open .mobile-drawer { opacity: 1; pointer-events: auto; }
body.nav-open .mobile-drawer__panel { transform: translateX(0); }
body.nav-open { overflow: hidden; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--rule-soft);
  background: var(--button-tint);
  color: var(--gold-300);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
  flex-shrink: 0;
}
[data-theme="light"] .theme-toggle { color: var(--gold-700); }
.theme-toggle:hover {
  border-color: var(--gold-500);
  color: var(--gold-100);
  background: var(--button-tint-strong);
}
[data-theme="light"] .theme-toggle:hover { color: var(--gold-500); }
.theme-toggle svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease-spring), opacity 0.3s var(--ease-soft);
}
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0)      scale(1);   }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0)     scale(1);   }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* mobile drawer variant of toggle */
.mobile-drawer .theme-toggle {
  width: 100%;
  height: auto;
  padding: 0.9rem 1.2rem;
  border-radius: 0;
  border: 1px solid var(--rule-soft);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 1rem;
}
.mobile-drawer .theme-toggle .label-dark,
.mobile-drawer .theme-toggle .label-light { display: none; }
.mobile-drawer .theme-toggle .label-light { display: inline; } /* in dark we say "switch to light" */
[data-theme="light"] .mobile-drawer .theme-toggle .label-light { display: none; }
[data-theme="light"] .mobile-drawer .theme-toggle .label-dark { display: inline; }

.mobile-drawer .theme-toggle svg {
  position: static;
  inset: auto;
  margin: 0;
  width: 18px; height: 18px;
}

.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 1rem;
  display: block;
  transition: color 0.2s var(--ease-soft), padding-left 0.3s var(--ease-soft);
}
.mobile-drawer a:hover { color: var(--gold-300); padding-left: 0.5rem; }
.mobile-drawer__meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--on-gold);
  border: 1px solid var(--gold-500);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-600);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-spring);
  z-index: -1;
}
.btn-primary:hover { color: var(--on-gold); border-color: var(--gold-600); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold-300);
  border: 1px solid var(--rule-medium);
}
[data-theme="light"] .btn-outline { color: var(--gold-700); }
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-spring);
  z-index: -1;
}
.btn-outline:hover { color: var(--on-gold); border-color: var(--gold-500); }
.btn-outline:hover::before { transform: translateX(0); }

.btn-ember {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(183, 58, 44, 0.55);
}
.btn-ember::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember-500);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-spring);
  z-index: -1;
}
.btn-ember:hover { color: #fff; border-color: var(--ember-500); }
.btn-ember:hover::before { transform: scaleY(1); }

.btn-arrow svg { transition: transform 0.3s var(--ease-soft); }
.btn:hover .btn-arrow svg { transform: translateX(4px); }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-soft);
  position: relative;
  transition: border-color 0.3s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.card:hover {
  border-color: var(--rule-medium);
  transform: translateY(-2px);
}

/* corner brackets — apothecary catalog feel */
.card-bracketed { padding: clamp(1.5rem, 3vw, 2.5rem); }
.card-bracketed::before,
.card-bracketed::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold-500);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease-soft), width 0.4s var(--ease-soft), height 0.4s var(--ease-soft);
}
.card-bracketed::before {
  top: 8px; left: 8px;
  border-right: 0;
  border-bottom: 0;
}
.card-bracketed::after {
  bottom: 8px; right: 8px;
  border-left: 0;
  border-top: 0;
}
.card-bracketed:hover::before,
.card-bracketed:hover::after {
  opacity: 1;
  width: 22px;
  height: 22px;
}

/* ---------- 8. Tags / Pills (smaki liquidów) ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
  margin-block: 1.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  transition: all 0.25s var(--ease-soft);
  font-family: var(--font-body);
  position: relative;
  cursor: default;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-right: 0.55rem;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease-soft), transform 0.4s var(--ease-spring);
}
.tag:hover {
  color: var(--gold-100);
  border-color: var(--gold-500);
  transform: translateY(-1px);
}
.tag:hover::before { opacity: 1; transform: scale(1.4); }

/* ---------- 9. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule-soft);
  background: linear-gradient(180deg, transparent, var(--footer-fade));
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: 4rem;
  transition: background 0.5s var(--ease-soft);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}
.site-footer p, .site-footer li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.site-footer__brand img {
  width: min(220px, 100%);
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}
.site-footer__wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.04em;
}
.site-footer__wordmark span {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.site-footer__nav li a { color: var(--text-secondary); }
.site-footer__nav li a:hover { color: var(--gold-300); }
.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--rule-soft);
  border-radius: 50%;
  margin-top: 0.4rem;
  transition: all 0.3s var(--ease-soft);
}
.site-footer__social:hover {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--on-gold);
}
.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- 10. Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px; height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-medium);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s var(--ease-soft);
  z-index: 40;
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-to-top:hover {
  background: var(--gold-500);
  color: var(--on-gold);
  border-color: var(--gold-500);
}

/* ---------- Mobile quick actions ---------- */
.mobile-quick-actions {
  position: fixed;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid var(--rule-soft);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: var(--shadow-md);
}
.mobile-quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule-medium);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.mobile-quick-actions a:first-child {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--on-gold);
}

@media (max-width: 720px) {
  body {
    padding-bottom: 5rem;
  }
  .mobile-quick-actions {
    display: grid;
  }
  .back-to-top {
    bottom: 5.9rem;
    right: 1rem;
  }
}

/* ---------- 11. Reveal animation (used via JS IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 12. Utilities ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold-300); }
.text-muted { color: var(--text-muted); }
.flex-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.flex-row.center { justify-content: center; align-items: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3.5rem; }

/* full-bleed image with gold frame */
.figure-frame {
  position: relative;
  border: 1px solid var(--rule-soft);
  padding: 8px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
.figure-frame img { display: block; width: 100%; }
.figure-frame::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}

/* hairline divider with center ornament */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem auto;
  max-width: 480px;
  color: var(--gold-500);
}
.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-medium), transparent);
}
.ornament-divider svg { flex-shrink: 0; opacity: 0.85; }
