/* System is the default. Explicit choices override it without a reload. */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --paper: #f9f8f4; --ink: #23231f; --muted: #53534b; --rule: #d2cfc4;
  --accent: #9d3d27; --accent-hover: #792d1b; --button-bg: #9d3d27;
  --black: #f9f8f4; --white: #23231f; --cream: #39382f;
  --gray: #656157; --gray-light: #555247;
  --accent-dim: #792d1b; --accent-glow: #a83d24;
  --green: #276145; --blue: #255789;
  --foreground-rgb: 35,35,31; --nav-bg: rgba(249,248,244,.94);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #151713; --ink: #f1eee4; --muted: #b9b9aa; --rule: #42463b;
    --accent: #ffad8b; --accent-hover: #ffd1bc; --button-bg: #9d3d27;
    --black: #151713; --white: #f1eee4; --cream: #ded9ca;
    --gray: #b9b9aa; --gray-light: #d0cbbd;
    --accent-dim: #e99a78; --accent-glow: #ffbc9e;
    --green: #86c69c; --blue: #91b9e5;
    --foreground-rgb: 241,238,228; --nav-bg: rgba(21,23,19,.94);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151713; --ink: #f1eee4; --muted: #b9b9aa; --rule: #42463b;
  --accent: #ffad8b; --accent-hover: #ffd1bc; --button-bg: #9d3d27;
  --black: #151713; --white: #f1eee4; --cream: #ded9ca;
  --gray: #b9b9aa; --gray-light: #d0cbbd;
  --accent-dim: #e99a78; --accent-glow: #ffbc9e;
  --green: #86c69c; --blue: #91b9e5;
  --foreground-rgb: 241,238,228; --nav-bg: rgba(21,23,19,.94);
}
.theme-control { display: inline-flex; align-items: center; gap: .5rem; font: 500 .8rem/1.4 system-ui, sans-serif; color: var(--ink); white-space: nowrap; }
.theme-control[hidden] { display: none; }
.theme-control select { font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; padding: .4rem .5rem; min-width: 5.5rem; }
.theme-control select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero-actions .button { background: var(--button-bg); color: #fff; }
.hero-actions .button:hover { background: #792d1b; color: #fff; }
@media (max-width: 700px) { .header-layout { flex-wrap: wrap; padding-block: .7rem; } }
