/* Shared light palette. Dark remains the original editorial palette. */
:root {
    --surface: #181923;
    --surface-raised: #1d1d28;
    --surface-input: #11121a;
    --border: #ffffff24;
    --border-soft: #ffffff18;
    --reading-text: #bfc0cd;
    --reading-strong: #e0d9ce;
    --button-text: #11121a;
    --button-hover: #ebd3b1;
    --nav-bg: #11121aee;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg-dark: #faf7f1;
    --bg-card: #fffdf9;
    --surface: #fffdf9;
    --surface-raised: #f0ebe3;
    --surface-input: #fffcf7;
    --text-primary: #28252e;
    --text-secondary: #57535f;
    --text-muted: #6c6572;
    --gold: #79562c;
    --purple-primary: #67577b;
    --purple-light: #78658f;
    --purple-dark: #eee8f2;
    --blue-accent: #52687d;
    --line: #3d2e201c;
    --border: #3d2e2038;
    --border-soft: #3d2e2024;
    --reading-text: #514b58;
    --reading-strong: #302933;
    --button-text: #fffaf2;
    --button-hover: #67441d;
    --nav-bg: #faf7f1f2;
    --gradient-purple: linear-gradient(120deg, #eee8f2, #f7f3ed);
    --gradient-gold: linear-gradient(120deg, #79562c, #936834);
}
.nav-brand { margin-right: auto; }
.nav-links { order: 1; }
.theme-toggle { order: 2; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); color: var(--gold); }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }
.mobile-toggle { order: 3; flex-shrink: 0; }
[data-theme="light"] .hero { background: radial-gradient(ellipse at 85% 26%, #dccbae60, transparent 53%); }
[data-theme="light"] .moon { background: radial-gradient(circle at 30% 30%, #e6d9c850, transparent 50%), #e7dfd3; box-shadow: inset -7px 1px 4px #79562c, inset -17px 3px 17px #a6866060, 8px 1px 24px #a0804f1c; }
[data-theme="light"] .orbit { border-color: #79562c25; }
[data-theme="light"] .orbit-inner { border-color: #79562c14; }
[data-theme="light"] .dream-preview { background: linear-gradient(135deg, #fffdf9f5, #f0eae0f5); border-color: var(--border); box-shadow: 0 24px 65px #5c45201a; }
[data-theme="light"] :is(.preview-label, .visual-caption, .preview-tags span) { color: var(--text-muted); }
[data-theme="light"] :is(.dream-quote, .preview-insight p) { color: var(--text-secondary); }
[data-theme="light"] :is(.how-section, .tools-section, #platforms) { background: #f2ede5; }
[data-theme="light"] .pricing-card.featured { background: linear-gradient(145deg, #f4e8d6, #fffaf2); border-color: #79562c70; }
[data-theme="light"] .download-section { background: radial-gradient(ellipse at 0 100%, #ded0bd60, transparent 60%), #f0ebe3; }
[data-theme="light"] .tag { color: #685370; background: #67577b08; }
[data-theme="light"] :is(textarea::placeholder, input::placeholder) { color: var(--text-muted); }
[data-theme="light"] .chip { background: var(--bg-card); }
[data-theme="light"] .country-card:hover { background: var(--surface-raised); }
[data-theme="light"] .form-error { color: #a23c2b; }
[data-theme="light"] :is(textarea:focus, input:focus) { outline-color: var(--gold); }
[data-theme="light"] .btn-secondary:hover { background: var(--surface-raised); border-color: var(--gold); }
[data-theme="light"] .article-content .scale-bar { background: var(--border-soft); }
[data-theme="light"] :is(.article-content th, .info-box) { background: var(--surface-raised); }
[data-theme="light"] .article-content tr:nth-child(even) { background: #79562c05; }
[data-theme="light"] .analyze-button:hover { background: var(--button-hover); }
@media (max-width: 1100px) and (min-width: 851px) { .nav-container { gap: 16px; } .nav-links { gap: 15px; } }
@media (max-width: 850px) { .nav-container { gap: 12px; } .theme-toggle { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
