/* The same atlas, printed on warm survey paper. All semantic color tokens are
   shared with navigation and profile panels so both themes stay coherent. */
:root {
  --nav-bg: rgba(9, 21, 30, .94);
  --visual-bg: #0c1b24;
  --theme-shadow: 0 12px 40px #0000001f;
}

:root[data-theme="dark"] { color-scheme: dark; }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f0;
  --surface: #eaf0e7;
  --ink: #16392e;
  --muted: #4a6357;
  --quiet: #5b7064;
  --mint: #21644f;
  --mint-soft: #e0ecdf;
  --line: #c9d6c9;
  --nav-bg: rgba(244, 246, 240, .95);
  --visual-bg: #eaf0e5;
  --theme-shadow: 0 12px 40px #36554712;
  accent-color: var(--mint);
}

:root[data-theme="light"] ::selection { background: #21644f; color: #fff; }
:root[data-theme="light"] .signal-dot { box-shadow: 0 0 0 4px #21644f0a; }
:root[data-theme="light"] .index-item:hover { background: #e8eee3; }
:root[data-theme="light"] .index-item.is-active {
  background: linear-gradient(90deg, #dcebdc, #e8eee300);
}
:root[data-theme="light"] .atlas-pin {
  background: #f9fcf5f2;
  border-color: #7ba08a;
  box-shadow: 0 4px 15px #294a351a;
}
:root[data-theme="light"] .atlas-pin:hover,
:root[data-theme="light"] .atlas-pin.is-active {
  background: #e4efe0;
  border-color: #21644f;
}
:root[data-theme="light"] .pin-marker { box-shadow: 0 0 0 3px #21644f0c; }
:root[data-theme="light"] .atlas-pin.is-active .pin-marker {
  box-shadow: 0 0 0 4px #21644f18;
}
:root[data-theme="light"] .map-registration { color: var(--quiet); opacity: 1; }
:root[data-theme="light"] .button-primary { color: #fff; }
:root[data-theme="light"] .button-primary:hover { background: #174e3c; border-color: #174e3c; }
:root[data-theme="light"] .project-visual {
  background: radial-gradient(ellipse at 50% 65%, #d6e6d8, transparent 70%), var(--visual-bg);
  border-color: var(--line);
}
:root[data-theme="light"] .about-symbol > span { border-color: #6a927d; }
:root[data-theme="light"] .about-symbol > i { box-shadow: 0 0 0 6px #21644f0c; }
:root[data-theme="light"] .contact-email { border-bottom-color: #8ca78f; }
:root[data-theme="light"] .project-dialog { border-color: #99b19d; box-shadow: 0 24px 100px #183d2c26; }
:root[data-theme="light"] .project-dialog::backdrop { background: #12291ed1; }

/* CSS overrides presentation attributes on both inline project diagrams and
   their copies in the project dialog. Keep their visual hierarchy in daylight. */
:root[data-theme="light"] .project-visual svg [stroke]:not([stroke="none"]):not([stroke^="url("]) {
  stroke: #557e68;
}
:root[data-theme="light"] .project-visual svg [stroke="#a3ebd5"],
:root[data-theme="light"] .project-visual svg [stroke="#6db5a6"],
:root[data-theme="light"] .project-visual svg [stroke="#91d5be"],
:root[data-theme="light"] .project-visual svg [stroke="#87c6b5"] { stroke: #24644c; }
:root[data-theme="light"] .project-visual svg [fill="#10232b"],
:root[data-theme="light"] .project-visual svg [fill="#142c33"],
:root[data-theme="light"] .project-visual svg [fill="#10262d"] { fill: #e3edde; }
:root[data-theme="light"] .project-visual svg [fill="#18363a"] { fill: #cfdfcd; }
:root[data-theme="light"] .project-visual svg [fill="#a3ebd5"],
:root[data-theme="light"] .project-visual svg [fill="#a0ebd1"],
:root[data-theme="light"] .project-visual svg [fill="#b0edda"] { fill: #2b6d4f; }
:root[data-theme="light"] .project-visual svg text { fill: #435f4e; }
:root[data-theme="light"] .project-visual svg stop[stop-color="#94e9d1"] { stop-color: #21644f; }

@media (prefers-contrast: more) {
  :root[data-theme="light"] { --quiet: #3c5546; --muted: #324f3f; --line: #92a98f; }
  :root[data-theme="light"] .atlas-pin { border-color: #21644f; }
}
