/* ── Light / dark theme ──
   Every page defines the dark palette in :root (--dark, --ivory, --gold …).
   The light theme swaps those same variables, so most of the site follows
   automatically; the rest of this file covers colours a page hard-codes. */

html[data-theme="light"] {
  --dark: #faf7f2;        /* page background (warm ivory) */
  --charcoal: #f3ede3;    /* cards and panels */
  --warm: #ebe3d5;        /* inputs and raised surfaces */
  --ivory: #1c1814;       /* main text */
  --light: #4f463d;       /* secondary text */
  --mid: #73675c;         /* muted text */
  --gold: #8c6c32;        /* deeper gold so it reads on a light background */
  --gold-light: #a3814a;
  color-scheme: light;
}
html[data-theme="light"] body { background: var(--dark); }

/* Text that sits on photographs keeps the dark-theme (light) colours. */
html[data-theme="light"] .hero,
html[data-theme="light"] .col-info,
html[data-theme="light"] .lightbox,
html[data-theme="light"] .insta-cell-overlay,
html[data-theme="light"] .page-home #nav:not(.scrolled) {
  --ivory: #f5f0e8;
  --light: #e2d9cc;
  --mid: #c4b9ab;
  --gold: #d4b07a;
  --gold-light: #e2c494;
  --dark: #0e0c0a;
}

/* Menu bar once it has a background */
html[data-theme="light"] nav.scrolled,
html[data-theme="light"] .page-shop nav {
  background: rgba(250, 247, 242, .96);
  border-bottom-color: rgba(140, 108, 50, .2);
}

/* Full-screen reading panel (journal posts) */
html[data-theme="light"] .post-overlay { background: rgba(250, 247, 242, .98); }

/* Softer dimming behind pop-ups */
html[data-theme="light"] .pay-overlay,
html[data-theme="light"] .product-modal-overlay,
html[data-theme="light"] .booking-overlay,
html[data-theme="light"] .cart-overlay { background: rgba(28, 24, 20, .55); }

/* Gold lines and borders are a touch stronger on light backgrounds */
html[data-theme="light"] .gold-divider::before,
html[data-theme="light"] .gold-divider::after { background: rgba(140, 108, 50, .3); }

/* ── The sun / moon button ── */
.theme-toggle {
  flex: none; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(184, 151, 90, .3); color: var(--light);
  cursor: pointer; transition: border-color .3s, color .3s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 17px; height: 17px; }
/* Shows the theme you'd switch to: a sun in dark mode, a moon in light mode. */
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
