/* =====================================================================
   LIGHT THEME - only active when <html data-theme="light"> (toggle in header).
   The hero banner and footer stay dark on purpose (they are the "stage").
   ===================================================================== */
html[data-theme="light"] {
  color-scheme: light;
  --forest: #F4F1EA !important; --ink: #FFFFFF !important;
  --paper: #14201A; --mute: #5A655F; --line: rgba(20, 32, 26, .14); --line-strong: rgba(20, 32, 26, .28);
  --gold: #8A6A2F; --accent: #8A6A2F;
  --sp-bg: #F4F1EA; --sp-forest: #ECE8DF; --sp-band: #ECE8DF; --sp-card: #FFFFFF;
  --sp-text: #14201A; --sp-mute: #55605A; --sp-gold: #8A6A2F; --sp-border-solid: #D2CCBF;
  --sp-btn: #14201A; --sp-btn-text: #F4F1EA;
  --sp-glass: rgba(255, 255, 255, .78); --sp-border: rgba(20, 32, 26, .10); --sp-hi: rgba(255, 255, 255, .9);
  --sp-gold-line: rgba(138, 106, 47, .45); --sp-glow: rgba(138, 106, 47, .10);
  --sp-shadow-1: 0 1px 2px rgba(20, 32, 26, .08), 0 14px 30px -18px rgba(20, 32, 26, .25);
  --sp-shadow-2: 0 1px 2px rgba(20, 32, 26, .1), 0 24px 44px -20px rgba(20, 32, 26, .3);
}
html[data-theme="light"] body { background: #F4F1EA; color: #14201A; }
html[data-theme="light"] body::before { background: radial-gradient(70% 55% at 12% -5%, rgba(255,255,255,.9), transparent 70%), radial-gradient(55% 45% at 100% 105%, rgba(212,178,122,.18), transparent 70%), #F4F1EA; }

/* dark "stage" areas keep the dark palette */
html[data-theme="light"] .hero, html[data-theme="light"] .site-footer, html[data-theme="light"] .nav-panel,
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) {
  --paper: #F1EEE8; --mute: #9AA39D; --line: rgba(241, 238, 232, .14); --line-strong: rgba(241, 238, 232, .28); --ink: #171717; --forest: #06110C;
  --sp-text: #FFFFFF; --sp-mute: #B5B5B5; --sp-gold: #D4B27A; --gold: #D4B27A; color: #F1EEE8;
}
html[data-theme="light"] .site-footer { background: #0b1511; }
html[data-theme="light"] .hero .eyebrow { color: #D4B27A; }

/* header over pages and when scrolled */
html[data-theme="light"] .site-header.is-scrolled, html[data-theme="light"] body:not([data-page="home"]) .site-header {
  background: rgba(244, 241, 234, .86); border-bottom-color: rgba(20, 32, 26, .12); }
html[data-theme="light"] body:not([data-page="home"]) .site-header::before { opacity: 0; }
html[data-theme="light"] .theme-toggle, html[data-theme="light"] .header-action .btn { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .theme-toggle,
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .header-action .btn { background: rgba(6, 17, 12, .4); }
html[data-theme="light"] .nav a:hover, html[data-theme="light"] .nav a[aria-current="page"] { color: var(--paper); }

/* buttons, cards and form fields on light pages */
html[data-theme="light"] .btn-primary { background: #14201A; color: #F4F1EA; box-shadow: 0 8px 22px -12px rgba(20, 32, 26, .6); }
html[data-theme="light"] .hero .btn-primary { background: linear-gradient(180deg, #f6f2ea, #e6dfd1); color: #111; }
html[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, .6); color: #14201A; border-color: rgba(20, 32, 26, .22); }
html[data-theme="light"] .hero .btn-ghost { background: rgba(6, 17, 12, .35); color: #F1EEE8; border-color: rgba(255, 255, 255, .2); }
html[data-theme="light"] .page-title, html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3 { color: #14201A; }
html[data-theme="light"] .hero h1, html[data-theme="light"] .hero h2, html[data-theme="light"] .hero h3 { color: inherit; }
html[data-theme="light"] .hero-heading { background: linear-gradient(180deg, #fff 30%, #cfc7b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .eyebrow { color: #8A6A2F; }
html[data-theme="light"] .page-hero { background: linear-gradient(180deg, #ECE8DF, #F4F1EA); border-color: rgba(20, 32, 26, .1); }
html[data-theme="light"] .card, html[data-theme="light"] .social-card, html[data-theme="light"] .project-card, html[data-theme="light"] .memory,
html[data-theme="light"] .ab-card, html[data-theme="light"] .share-box, html[data-theme="light"] .auth-panel, html[data-theme="light"] .tool-card,
html[data-theme="light"] .g-toolbar, html[data-theme="light"] .explore-row a, html[data-theme="light"] .lk-card, html[data-theme="light"] .note-card,
html[data-theme="light"] .tool-panel, html[data-theme="light"] .confirm-box {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.7)); border-color: rgba(20, 32, 26, .12);
  box-shadow: 0 1px 2px rgba(20,32,26,.06), 0 16px 34px -22px rgba(20,32,26,.3); color: #14201A; }
html[data-theme="light"] .hero .card { background: #171717; border-color: rgba(255,255,255,.12); color: #F1EEE8; }
html[data-theme="light"] .lk-desc, html[data-theme="light"] .tool-desc, html[data-theme="light"] .note-sum { color: #55605A; }
html[data-theme="light"] .lk-cat { color: #7a857e; } html[data-theme="light"] .lk-host { color: #8A6A2F; }
html[data-theme="light"] .lk-go { color: #7a857e; }
html[data-theme="light"] input, html[data-theme="light"] textarea, html[data-theme="light"] select,
html[data-theme="light"] .lk-search input, html[data-theme="light"] .tools-search input, html[data-theme="light"] .note-search input {
  background: #fff; color: #14201A; border-color: #D2CCBF; }
html[data-theme="light"] input::placeholder { color: #7a857e; }
html[data-theme="light"] .chip { color: #14201A; border-color: #CFC8B8; background: rgba(255,255,255,.5); }
html[data-theme="light"] .chip[aria-pressed="true"] { background: #14201A; color: #F4F1EA; border-color: #14201A; }
html[data-theme="light"] .ab-section--alt { background: #ECE8DF; }
html[data-theme="light"] .ab-quote, html[data-theme="light"] .section--alt { background: #ECE8DF; }
html[data-theme="light"] .ab-title, html[data-theme="light"] .ab-head h2, html[data-theme="light"] .ab-card h3, html[data-theme="light"] .journey-statement { color: #14201A; }
html[data-theme="light"] .ab-text, html[data-theme="light"] .ab-lead, html[data-theme="light"] .ab-card p, html[data-theme="light"] .ab-head p { color: #46524B; }
html[data-theme="light"] .tile { background: #fff; border-color: rgba(20,32,26,.12); }
html[data-theme="light"] .role-badge { color: #8A6A2F; border-color: #8A6A2F; }
html[data-theme="light"] .g-notice, html[data-theme="light"] .tools-none, html[data-theme="light"] .lk-note, html[data-theme="light"] .lk-count { color: #55605A; }
html[data-theme="light"] .field span, html[data-theme="light"] label { color: #55605A; }
html[data-theme="light"] .lightbox { background: rgba(10, 14, 12, .94); }
html[data-theme="light"] ::selection { background: #8A6A2F; color: #fff; }

/* ---- nav links on light pages ---- */
html[data-theme="light"] .nav a, html[data-theme="light"] .nav-panel a.nav-link { color: rgba(20, 32, 26, .72); }
html[data-theme="light"] .nav a:hover, html[data-theme="light"] .nav a[aria-current="page"] { color: #14201A; }
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .nav a { color: rgba(241, 238, 232, .78); }
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .nav a[aria-current="page"],
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .nav a:hover { color: #fff; }
html[data-theme="light"] .brand-text, html[data-theme="light"] .burger span { color: #14201A; }
html[data-theme="light"] .burger span { background: #14201A; }
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .burger span { background: #F1EEE8; }
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .brand-text { color: #F1EEE8; }
html[data-theme="light"] .mark { background: #fff; color: #14201A; }
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .mark { background: #171717; color: #F1EEE8; }
html[data-theme="light"] body[data-page="home"] .site-header:not(.is-scrolled) .theme-toggle { color: #F1EEE8; }
html[data-theme="light"] .menu-open .site-header .brand-text { color: #F1EEE8; }
html[data-theme="light"] .nav-panel { background: #06110C; }

/* ---- About page has its own variable set ---- */
html[data-theme="light"] body[data-page="about"] {
  --a-bg: #F4F1EA; --a-forest: #ECE8DF; --a-dark: #ECE8DF; --a-card: #FFFFFF; --a-text: #14201A; --a-mute: #55605A;
  --a-gold: #8A6A2F; --a-line: #D2CCBF; --a-btn: #14201A; --a-btn-text: #F4F1EA;
}
html[data-theme="light"] .ab-intro::before { background: radial-gradient(circle, rgba(212, 178, 122, .28) 0%, rgba(212, 178, 122, 0) 68%); }
html[data-theme="light"] .ab-quote { background: radial-gradient(70% 90% at 50% 50%, #fff, #F4F1EA 80%); }
html[data-theme="light"] .tl-dot { background: #F4F1EA; }
html[data-theme="light"] .ab-quote p, html[data-theme="light"] .ab-label { color: #14201A; }
