/* The Heart of Nature: dark mode (Robert, 26 Nov 2026). Loaded last, used only when the visitor picks it with the
   sun/moon switch (theme.js); light is the default and the device setting is never followed.
   The brand's own colours made soft and warm: a deep forest green page (not black, not grey), oat-coloured text,
   a light leaf green for buttons and links, and each bread keeps its own colour as a deep tint. */

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #1E3025;
  --c-bg-alt: #24382B;
  --c-surface: #2A4031;
  --c-ink: #F5EFE2;
  --c-ink-soft: #CFC8B6;
  --c-line: #3D5545;
  --c-accent: #93CDA2;        /* buttons (dark text on it) and links */
  --c-accent-deep: #B7E0C1;   /* green text: eyebrows, arrows, notes */
  --c-accent-ink: #15241A;    /* text on the green buttons */
  --c-seed: #E0AD78;
  --c-leaf-soft: #2B4A34;
  --c-sun: #F5C451;
  --c-sun-soft: #3E3522;
  --c-clay: #E59E78;
  --c-clay-soft: #46302A;
  --shadow: 0 1px 2px rgba(10, 20, 14, .3), 0 14px 34px -16px rgba(10, 20, 14, .6);
  --dark-band: #172619;       /* footer and the line above the header: a shade deeper than the page */
}

/* Blocks that are dark green in light mode stay a deep green band, with oat text */
:root[data-theme="dark"] .announcement,
:root[data-theme="dark"] .site-footer { background: var(--dark-band); color: var(--c-ink); }
:root[data-theme="dark"] .scheme-accent { background: #2F5A3D; color: var(--c-ink); }
:root[data-theme="dark"] .scheme-accent .eyebrow { background: rgba(245, 239, 226, .12); color: var(--c-ink); }
:root[data-theme="dark"] .scheme-accent .btn--primary { background: var(--c-ink); color: var(--c-accent-ink); }
:root[data-theme="dark"] .scheme-accent .btn--ghost:hover { background: var(--c-ink); color: var(--c-accent-ink); border-color: var(--c-ink); }
:root[data-theme="dark"] .footer-signup__row .btn { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
:root[data-theme="dark"] .scheme-accent :focus-visible,
:root[data-theme="dark"] .site-footer :focus-visible { outline-color: var(--c-accent); }

/* Text that sits on a light colour keeps dark text */
:root[data-theme="dark"] .btn--sun,
:root[data-theme="dark"] .sticker--sun,
:root[data-theme="dark"] .reel-card__play { color: #1D2A20; }
:root[data-theme="dark"] .btn--sun:hover { background: #EDB536; }
:root[data-theme="dark"] .sticker--clay { background: #C8693F; color: #fff; }
:root[data-theme="dark"] .reel-card__play .icon,
:root[data-theme="dark"] .pills a[aria-current="page"] { color: var(--c-accent-ink); }
:root[data-theme="dark"] .draft-bar, :root[data-theme="dark"] .draft-note { color: #3a3000; }

/* Each bread keeps its colour: a deep tint behind it, a light tint for its words */
:root[data-theme="dark"] .tone-buckwheat { --tone-ink: #F2BA9B; }
:root[data-theme="dark"] .tone-seedful { --tone: #D9A060; --tone-soft: #3F2E1A; --tone-ink: #EDC491; }
:root[data-theme="dark"] .tone-seedful-chia { --tone: #A9B873; --tone-soft: #303622; --tone-ink: #CFD9A6; }
:root[data-theme="dark"] .tone-seedful-cranberries { --tone: #E08A9B; --tone-soft: #42232A; --tone-ink: #F1B0BC; }
:root[data-theme="dark"] .tone-seedful-hemp { --tone: #B6CA5E; --tone-soft: #2F3618; --tone-ink: #D4E294; }
:root[data-theme="dark"] .tone-seedful-sundried-tomato { --tone: #DC8394; --tone-soft: #3F2026; --tone-ink: #EEAAB6; }
:root[data-theme="dark"] .tone-seedful-buckwheat { --tone: #CC9D63; --tone-soft: #382A1A; --tone-ink: #E5C396; }
:root[data-theme="dark"] .tone-seedful-original { --tone: #E9A25A; --tone-soft: #412D18; --tone-ink: #F4C38E; }
:root[data-theme="dark"] .bread-card__go { color: var(--c-accent-ink); }
:root[data-theme="dark"] .families-panel .eyebrow,
:root[data-theme="dark"] .ingredients-fresh__swap { color: #F2BA9B; }

/* Notes and errors */
:root[data-theme="dark"] .form-status.is-error { color: #F3A08E; }
:root[data-theme="dark"] .photo-brief { filter: brightness(.82); }
:root[data-theme="dark"] .drawer__overlay { background: rgba(10, 20, 14, .55); }

/* Pictures: photos keep their own colours; the bread packs keep a soft shadow that still shows on a dark tint */
:root[data-theme="dark"] .hero-stage__pack,
:root[data-theme="dark"] .bread-card__img,
:root[data-theme="dark"] .product__gallery .media img,
:root[data-theme="dark"] .pack .media--contain img { filter: drop-shadow(0 16px 22px rgba(8, 16, 11, .45)); }

/* The sun/moon switch in the header: a moon in light mode (go dark), a sun in dark mode (go light) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon, :root[data-theme="dark"] .theme-toggle .icon-sun { display: grid; place-items: center; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.no-js .theme-toggle { display: none; }
