/* Version 2 pairs a warm studio ground with a dark industrial finish. */
html[data-theme="light"] {
  color-scheme: light;
  --paper: #fffefa;
  --mist: #eeeee8;
  --ink: #182b37;
  --muted: #455762;
  --line: #cbd1cb;
  --blue: color-mix(in srgb, var(--brand-blue) 70%, black);
  --headline-blue: color-mix(in srgb, var(--brand-blue) 91%, black);
  --nav-underline: color-mix(in srgb, var(--green) 84%, black);
  --studio: #f3f2ed;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #13212d;
  --mist: #1b2a37;
  --ink: #edf2f5;
  --muted: #bac8d1;
  --line: #405464;
  --blue: color-mix(in srgb, var(--brand-blue) 82%, white);
  --headline-blue: var(--brand-blue);
  --nav-underline: var(--green);
  --dark: #101c26;
}
html[data-theme], html[data-theme] body {
  color: var(--ink);
  background: var(--paper);
}
.theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.theme-toggle[hidden], .theme-toggle svg { display: none; }
.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="light"] .theme-toggle .theme-moon,
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
.theme-toggle:hover { background: var(--mist); border-color: var(--blue); }
.theme-toggle:focus-visible { outline-offset: 3px; }
.header-row:has(.legal-home) .theme-toggle { margin-left: auto; }
.header-row .theme-toggle + .legal-home { margin-left: 0; }

[data-theme="light"] .scene {
  color: var(--ink);
  background: linear-gradient(to bottom, var(--studio) 0%, var(--studio) 50%, #eeeee8 100%);
}
[data-theme="light"] .hero { color: var(--ink); }
[data-theme="light"] .hero-shade {
  background: linear-gradient(90deg, rgba(243,242,237,.72), rgba(243,242,237,.52) 42%, rgba(243,242,237,.25) 52%, transparent 61%);
}
[data-theme="light"] .scene-mist { opacity: .92; }
@media (min-width: 701px) {
  [data-theme="light"] .hero-copy { padding-bottom: 68px; }
}
[data-theme="light"] .hero-copy > p,
[data-theme="light"] .hero-foot,
[data-theme="light"] .location-region { color: #354b59; }
[data-theme="light"] .hero-foot a:hover, [data-theme="light"] .hero-contact { color: var(--blue); }
[data-theme="light"] .catalog {
  --ink: #182b37;
  --muted: #435460;
  --line: #bec8c6;
  color: var(--ink);
}
[data-theme="light"] .contact {
  color: var(--ink);
  background: #e6ecec;
}
[data-theme="light"] .contact-top > p, [data-theme="light"] .contact-grid p,
[data-theme="light"] .contact-grid h3 { color: var(--muted); }
[data-theme="light"] .contact-grid { border-color: #a4b4bd; }
[data-theme="light"] .contact .route, [data-theme="light"] .map-switch { color: var(--blue); }
[data-theme="light"] .map-credit, [data-theme="light"] .map-notice { color: #425663; }
[data-theme="light"] .map-site { background: #173246; color: white; }
[data-theme="light"] .site-header, [data-theme="light"] footer { background: var(--paper); border-color: var(--line); }

[data-theme="dark"] .site-header, [data-theme="dark"] footer { background: #101d28; border-color: var(--line); }
[data-theme="dark"] .scene { color: #f3f6f7; }
[data-theme="dark"] .main-nav, [data-theme="dark"] .main-nav > a { border-color: var(--line); }
[data-theme="dark"] .accessories { background: var(--mist); }
[data-theme="dark"] .about { background: var(--paper); }
[data-theme="dark"] .photo-mount { background: #243442; color: #c1cdd4; }
[data-theme="dark"] .photo-mount::before, [data-theme="dark"] .photo-mount::after { color: #597182; }
[data-theme="dark"] .contact { background: #0e1922; }
[data-theme="dark"] .legal-main { background: var(--paper); }
[data-theme="dark"] .skip { color: var(--action-ink); }
html[data-theme="dark"] { scrollbar-color: #617383 #13212d; }
[data-theme="dark"] ::selection { background: var(--blue); color: var(--action-ink); }
@media (max-width: 700px) {
  .header-row { gap: clamp(5px, 1.65vw, 12px); }
  .theme-toggle { height: 44px; width: 44px; flex-basis: 44px; }
  [data-theme="dark"] .main-nav { background: #13232f; }
  [data-theme="light"] .main-nav { background: var(--paper); }
  [data-theme="light"] .hero-shade {
    background: linear-gradient(to bottom, transparent 54%, rgba(243,242,237,.62) 74%, var(--studio) 94%);
  }
}
@media (max-width: 420px) {
  .header-row .nav-contact { display: none; }
  .header-row .mobile-phone, .header-row .menu-toggle { min-width: 44px; }
}
@media print {
  .theme-toggle { display: none; }
}
