html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
.theme-toggle{display:inline-grid;place-items:center;flex:0 0 35px;width:35px;height:35px;padding:8px;border:1px solid var(--line);border-radius:3px;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}
.theme-toggle:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.theme-toggle svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-icon-sun{display:none}
[data-theme="dark"] .theme-toggle .theme-icon-sun{display:block}
[data-theme="dark"] .theme-toggle .theme-icon-moon{display:none}
.language-picker option{background:var(--theme-option-bg,#f2f1e9);color:var(--theme-option-ink,#252a24)}
[data-theme="dark"]{--theme-option-bg:#202623;--theme-option-ink:#efeee6}
.header-actions{gap:14px}
html[data-theme="light"]:has(.header){--bg:#f2f0e7;--ink:#223027;--gold:#755d39;--muted:#5a655b;--line:#263d292e}
html[data-theme="light"] .header{background:var(--bg)}
html[data-theme="light"] .header-note{color:#62705f}
html[data-theme="light"] .hero{background:#e8e8df}
html[data-theme="light"] .hero-shade{background:linear-gradient(90deg,#f2f0e7fa 0%,#f2f0e7e8 29%,#f2f0e75c 55%,#f2f0e700 78%),linear-gradient(0deg,#f2f0e7d4,transparent 18%)}
html[data-theme="light"][dir="rtl"] .hero-shade{background:linear-gradient(270deg,#f2f0e7fa 0%,#f2f0e7e8 29%,#f2f0e75c 55%,#f2f0e700 78%),linear-gradient(0deg,#f2f0e7d4,transparent 18%)}
html[data-theme="light"] .hero h1 em{color:#705737}
html[data-theme="light"] .hero-text{color:#3e4b40}
html[data-theme="light"] .primary-link{border-color:#755d3980;background:#f2f0e7a6;color:#4e432e}
html[data-theme="light"] .primary-link:hover{background:#fffdf3;color:#223027}
html[data-theme="light"] .hero-footnote{color:#58634f}
html[data-theme="light"] .art-note{color:#26372c;background:#f2f0e7c9;padding:4px 6px}
html[data-theme="light"] .footer{color:#56614f}
html[data-theme="light"] .footer a{color:#655233}
@media(max-width:700px){
  .header-actions{gap:8px}
  .header-actions .language-picker select{width:112px}
  .header-row{gap:8px}
  .wordmark{font-size:21px;letter-spacing:2px}
  html[data-theme="light"] .hero-shade,html[data-theme="light"][dir="rtl"] .hero-shade{background:linear-gradient(180deg,#f2f0e7 0%,#f2f0e7 39%,#f2f0e7e0 47%,#f2f0e725 66%,#f2f0e700 78%,#f2f0e7 100%)}
}
@media(max-width:359px){.header-actions .language-picker select{width:102px}.header-row{gap:6px}.wordmark{font-size:20px;letter-spacing:1.5px}}
@media print{.theme-toggle{display:none!important}}
