/* Dracula's published palette is the default. The light colors adapt its hues for contrast. */
:root {
  color-scheme: dark;
  --ink: #f8f8f2;
  --muted: #d3d5e0;
  --blue: #8be9fd;
  --orange: #bd93f9;
  --line: #44475a;
  --theme-bg: #282a36;
  --theme-surface: #343746;
  --theme-raised: #44475a;
  --theme-text: #f8f8f2;
  --theme-muted: #d3d5e0;
  --theme-label: #ffb86c;
  --theme-highlight: #ff79c6;
  --theme-link: #8be9fd;
  --theme-band-text: #282a36;
  --theme-about: #343746;
  --theme-footer: #20212b;
  --theme-hero-start: #44475a;
  --theme-hero-end: #282a36;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #282a36;
  --muted: #484a60;
  --blue: #0b5d75;
  --orange: #6b45a5;
  --line: #c6c7d4;
  --theme-bg: #f8f8f2;
  --theme-surface: #fff;
  --theme-raised: #e9e5f0;
  --theme-text: #282a36;
  --theme-muted: #484a60;
  --theme-label: #854910;
  --theme-highlight: #813b70;
  --theme-link: #0b5d75;
  --theme-band-text: #fff;
  --theme-about: #e9e5f0;
  --theme-footer: #e4e1ec;
  --theme-hero-start: #eeebf6;
  --theme-hero-end: #f8f8f2;
}

html, body { background: var(--theme-bg); color: var(--theme-text); }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1s; animation-timing-function: ease-in-out; }
  html.theme-transitioning, html.theme-transitioning * { transition: background-color 1s ease-in-out, color 1s ease-in-out, border-color 1s ease-in-out, box-shadow 1s ease-in-out; }
}
a { color: var(--theme-link); }
a:hover, a:focus { color: var(--orange); }
:focus-visible { outline-color: var(--theme-label); }
.skip-link { background: var(--theme-surface); color: var(--theme-text); }

#hero-banner { background: linear-gradient(120deg, var(--theme-hero-start), var(--theme-hero-end)); color: var(--theme-text); }
#hero-banner h1 strong { color: var(--theme-highlight); }
#hero-banner .hero-eyebrow, .section-kicker { color: var(--theme-label); }
#hero-banner .hero-copy > p:not(.hero-eyebrow) { color: var(--theme-muted); }
#hero-banner .hero-link { border-color: var(--orange); color: var(--theme-text); }
#hero-banner .hero-link:hover { border-color: var(--orange); background: var(--orange); color: var(--theme-band-text); }
.hero-product { border-color: var(--line); background: var(--theme-raised); color: var(--theme-text); box-shadow: none; }
.hero-product-label, .hero-product figcaption { color: var(--theme-text); }
.hero-product img { border-color: var(--line); }
.hero-product .theme-shot--light { display: none; }
html[data-theme="light"] .hero-product .theme-shot--dark { display: none; }
html[data-theme="light"] .hero-product .theme-shot--light { display: block; }

.heroText { background: var(--orange); color: var(--theme-band-text); }
.hero-band h2, .hero-band p, .band-button { color: var(--theme-band-text); }
.band-button { border-color: var(--theme-band-text); }
.band-button:hover { background: var(--theme-band-text); color: var(--orange); }
.section-header .section-title { color: var(--theme-text); }
.section-header p { color: var(--theme-muted); }

#about { background: var(--theme-about); color: var(--theme-text); }
.about-intro > p:not(.section-kicker), .process-list p { color: var(--theme-muted); }
.about-intro a, .process-list span { color: var(--theme-link); }
.process-list li, .process-list li:last-child { border-color: var(--line); }
.process-list h3 { color: var(--theme-text); }
.contact-layout p:not(.section-kicker) { color: var(--theme-muted); }
#contact-us { background: var(--theme-bg); }
.contact-email { color: var(--theme-link); }
#footer { background: var(--theme-footer); color: var(--theme-text); }
#footer a { color: var(--theme-link); }
