/* ==========================================================================
   ASTER WAY — ivory daylight theme
   A warm paper sky for the same instrument. Activated by [data-theme="light"].
   ========================================================================== */

html[data-theme="light"] {
  color-scheme: light;
  --ink: #f4f0e7;
  --ink-2: #efe9dd;
  --ink-3: #e9e1d3;
  --ink-4: #ded4c2;
  --paper: #17140f;
  --paper-soft: #322c23;
  --paper-dim: rgba(23, 20, 15, 0.64);
  --paper-faint: rgba(23, 20, 15, 0.42);
  --gold: #98733a;
  --gold-bright: #8e6931;
  --gold-faint: rgba(152, 115, 58, 0.13);
  --ice: #52667d;
  --red: #a64f43;
  --green: #5c7b61;
  --line: rgba(23, 20, 15, 0.13);
  --line-strong: rgba(23, 20, 15, 0.24);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  background: #f4f0e7;
}

html[data-theme="light"] body {
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(175, 140, 82, 0.19), transparent 62%),
    radial-gradient(ellipse 52% 42% at 88% 22%, rgba(82, 108, 142, 0.1), transparent 68%),
    radial-gradient(ellipse 44% 34% at 8% 62%, rgba(146, 112, 66, 0.09), transparent 72%),
    #f4f0e7;
  color: var(--paper);
}

html[data-theme="light"] body::selection,
html[data-theme="light"] ::selection {
  background: rgba(152, 115, 58, 0.22);
  color: #17140f;
}

html[data-theme="light"] .starfield {
  display: none;
}

html[data-theme="light"] .grain {
  opacity: 0.05;
  mix-blend-mode: multiply;
}

html[data-theme="light"] .page-vignette {
  background:
    linear-gradient(to bottom, rgba(244, 240, 231, 0.24) 0%, transparent 18%, transparent 76%, rgba(228, 218, 201, 0.68) 100%),
    radial-gradient(ellipse at center, transparent 52%, rgba(128, 103, 66, 0.07) 100%);
}

html[data-theme="light"] .scroll-progress {
  background: linear-gradient(to right, transparent, rgba(152, 115, 58, 0.7), #8e6931);
  box-shadow: 0 0 12px rgba(142, 105, 49, 0.24);
}

html[data-theme="light"] .skip-link {
  background: #17140f;
  color: #f7f2e8;
}

/* Header */
html[data-theme="light"] .site-header.is-scrolled {
  border-color: rgba(23, 20, 15, 0.1);
  background: rgba(244, 240, 231, 0.8);
}

html[data-theme="light"] .home-page .site-header::before {
  background: linear-gradient(to bottom, rgba(244, 240, 231, 0.8), transparent);
}

html[data-theme="light"] .home-page .site-header.is-scrolled::before {
  opacity: 0;
}

html[data-theme="light"] .home-page .site-header:not(.is-scrolled) .header-inner::after {
  background: linear-gradient(to right, transparent, rgba(23, 20, 15, 0.1) 25%, rgba(23, 20, 15, 0.1) 75%, transparent);
}

html[data-theme="light"] .brand-mark {
  color: #8e6931;
}

html[data-theme="light"] .brand-cn {
  color: #17140f;
}

html[data-theme="light"] .brand-en {
  color: rgba(23, 20, 15, 0.42);
}

html[data-theme="light"] .site-nav a {
  color: rgba(23, 20, 15, 0.62);
}

html[data-theme="light"] .site-nav a span {
  color: rgba(142, 105, 49, 0.64);
}

html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a[aria-current="page"] {
  color: #17140f;
}

html[data-theme="light"] .header-status {
  color: rgba(23, 20, 15, 0.38);
}

html[data-theme="light"] .header-status i,
html[data-theme="light"] .window-status i,
html[data-theme="light"] .footer-live i {
  box-shadow: 0 0 8px rgba(92, 123, 97, 0.5);
}

html[data-theme="light"] .header-cta,
html[data-theme="light"] .locale-toggle {
  border-color: rgba(23, 20, 15, 0.16);
  background: rgba(255, 252, 246, 0.48);
  color: rgba(23, 20, 15, 0.72);
}

html[data-theme="light"] .header-cta:hover,
html[data-theme="light"] .locale-toggle:hover {
  border-color: rgba(142, 105, 49, 0.46);
  background: rgba(255, 252, 246, 0.82);
  color: #6f5123;
}

html[data-theme="light"] .home-page .header-cta {
  color: rgba(23, 20, 15, 0.78);
}

html[data-theme="light"] .home-page .header-cta:hover {
  border-color: rgba(142, 105, 49, 0.46);
  background: rgba(255, 252, 246, 0.82);
  color: #6f5123;
}

html[data-theme="light"] .locale-toggle-mark {
  color: #98733a;
}

html[data-theme="light"] .theme-toggle-mark {
  color: #6f5123;
}

/* Shared buttons */
html[data-theme="light"] .button-primary {
  border-color: rgba(23, 20, 15, 0.2);
  background: linear-gradient(180deg, #2a251d 0%, #15120e 100%);
  color: #f7f2e8;
  box-shadow:
    0 18px 42px rgba(86, 65, 37, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

html[data-theme="light"] .button-primary:hover {
  background: linear-gradient(180deg, #3a3328 0%, #1e1a14 100%);
  box-shadow:
    0 22px 52px rgba(86, 65, 37, 0.26),
    0 0 32px rgba(152, 115, 58, 0.1);
}

html[data-theme="light"] .button-primary::before {
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.26) 42%, transparent 64%);
}

html[data-theme="light"] .button-quiet {
  border-color: rgba(23, 20, 15, 0.18);
  background: rgba(255, 252, 246, 0.44);
  color: rgba(23, 20, 15, 0.7);
}

html[data-theme="light"] .button-quiet:hover {
  border-color: rgba(142, 105, 49, 0.42);
  background: rgba(255, 252, 246, 0.78);
  color: #6f5123;
}

html[data-theme="light"] .text-link {
  border-color: rgba(23, 20, 15, 0.22);
  color: #322c23;
}

html[data-theme="light"] .text-link:hover {
  border-color: rgba(142, 105, 49, 0.5);
  color: #6f5123;
}

html[data-theme="light"] .text-link span {
  color: #98733a;
}

/* Home tokens */
html[data-theme="light"] .home-page {
  --ed-ivory: #17140f;
  --ed-ivory-soft: rgba(23, 20, 15, 0.68);
  --ed-ivory-faint: rgba(23, 20, 15, 0.36);
  --ed-gold: #98733a;
  --ed-gold-bright: #8e6931;
  --ed-line: rgba(23, 20, 15, 0.13);
  --ed-line-soft: rgba(23, 20, 15, 0.09);
  --ed-card: rgba(255, 252, 246, 0.64);
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(175, 140, 82, 0.2), transparent 62%),
    radial-gradient(ellipse 55% 42% at 86% 22%, rgba(82, 108, 142, 0.09), transparent 66%),
    radial-gradient(ellipse 46% 36% at 9% 58%, rgba(146, 112, 66, 0.075), transparent 70%),
    #f4f0e7;
}

html[data-theme="light"] .home-page .starfield {
  display: none;
}

/* Hero */
html[data-theme="light"] .hero-ambient {
  background:
    radial-gradient(circle at 50% 27%, rgba(190, 151, 88, 0.26), transparent 26%),
    radial-gradient(circle at 50% 34%, rgba(78, 104, 138, 0.11), transparent 44%),
    radial-gradient(ellipse 42% 34% at 50% 82%, rgba(154, 118, 70, 0.12), transparent 72%);
  filter: blur(8px);
}

html[data-theme="light"] .hero-ambient::after {
  background: conic-gradient(from 220deg, transparent, rgba(152, 115, 58, 0.1), transparent 28%, rgba(82, 108, 142, 0.07), transparent 70%);
}

html[data-theme="light"] .hero-coordinate {
  color: rgba(23, 20, 15, 0.3);
}

html[data-theme="light"] .home-page .hero .instrument-frame {
  border-color: rgba(23, 20, 15, 0.16);
  box-shadow: inset 0 0 100px rgba(255, 252, 246, 0.18);
}

html[data-theme="light"] .home-page .hero .instrument-frame::before {
  border-color: rgba(23, 20, 15, 0.13);
}

html[data-theme="light"] .home-page .hero .instrument-frame::after {
  border-color: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .home-page .hero .instrument-haze {
  background:
    radial-gradient(circle at 50% 50%, rgba(190, 151, 88, 0.24) 0%, rgba(84, 108, 140, 0.09) 26%, transparent 62%),
    conic-gradient(from 20deg, transparent, rgba(116, 138, 166, 0.09), transparent 28%, rgba(176, 138, 80, 0.11), transparent 68%);
}

html[data-theme="light"] .home-page .hero .instrument-grid {
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(23, 20, 15, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 15, 0.075) 1px, transparent 1px);
}

html[data-theme="light"] .home-page .hero .instrument-cross,
html[data-theme="light"] .home-page .hero .cross-v {
  background: linear-gradient(to right, transparent, rgba(23, 20, 15, 0.14), transparent);
}

html[data-theme="light"] .home-page .hero .cross-v {
  background: linear-gradient(to bottom, transparent, rgba(23, 20, 15, 0.14), transparent);
}

html[data-theme="light"] .home-page .hero .orbit {
  border-color: rgba(23, 20, 15, 0.22);
}

html[data-theme="light"] .home-page .hero .orbit::before {
  border-top-color: rgba(142, 105, 49, 0.78);
}

html[data-theme="light"] .home-page .hero .orbit-mid {
  border-color: rgba(23, 20, 15, 0.14);
}

html[data-theme="light"] .home-page .hero .orbit-inner {
  border-color: rgba(142, 105, 49, 0.28);
}

html[data-theme="light"] .home-page .hero .orbit-node {
  border-color: rgba(142, 105, 49, 0.85);
  background: #f4f0e7;
  box-shadow: 0 0 12px rgba(142, 105, 49, 0.3);
}

html[data-theme="light"] .home-page .hero .instrument-ticks {
  background: repeating-conic-gradient(from 0deg, rgba(23, 20, 15, 0.32) 0deg 0.34deg, transparent 0.34deg 6deg);
}

html[data-theme="light"] .home-page .hero .eclipse-core {
  background:
    radial-gradient(circle at 38% 32%, rgba(62, 55, 43, 0.98), rgba(21, 18, 14, 0.99) 48%, #0b0907 73%),
    #100e0b;
  box-shadow:
    0 0 82px rgba(142, 105, 49, 0.16),
    0 0 0 1px rgba(255, 252, 246, 0.06) inset,
    inset 0 0 46px rgba(0, 0, 0, 0.9);
}

html[data-theme="light"] .home-page .hero .eclipse-star {
  border-color: rgba(236, 218, 180, 0.5);
}

html[data-theme="light"] .home-page .hero .eclipse-star::before,
html[data-theme="light"] .home-page .hero .eclipse-star::after {
  background: rgba(236, 218, 180, 0.84);
}

html[data-theme="light"] .home-page .hero .instrument-label {
  color: rgba(23, 20, 15, 0.36);
}

html[data-theme="light"] .home-page .hero .instrument-label b {
  color: rgba(142, 105, 49, 0.82);
}

html[data-theme="light"] .signal-node {
  border-color: rgba(23, 20, 15, 0.16);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 56%),
    rgba(250, 246, 238, 0.9);
  box-shadow:
    0 12px 30px rgba(96, 73, 41, 0.16),
    0 0 0 5px rgba(244, 240, 231, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: rgba(23, 20, 15, 0.66);
}

html[data-theme="light"] .home-page .hero-kicker {
  color: rgba(23, 20, 15, 0.5);
}

html[data-theme="light"] .home-page .hero h1 {
  color: #17140f;
}

html[data-theme="light"] .home-page .hero h1 em {
  color: #8e6931;
  text-shadow: 0 0 60px rgba(152, 115, 58, 0.16);
}

html[data-theme="light"] .home-page .hero-sub {
  color: rgba(23, 20, 15, 0.62);
}

html[data-theme="light"] .home-page .button-primary {
  border-color: rgba(23, 20, 15, 0.24);
  background: linear-gradient(180deg, #29241d 0%, #14110d 100%);
  box-shadow:
    0 18px 44px rgba(86, 65, 37, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  color: #fbf6ed;
}

html[data-theme="light"] .home-page .button-primary:hover {
  background: linear-gradient(180deg, #3a3328 0%, #1f1b15 100%);
  box-shadow:
    0 22px 54px rgba(86, 65, 37, 0.3),
    0 0 36px rgba(152, 115, 58, 0.12);
}

html[data-theme="light"] .home-page .button-quiet {
  border-color: rgba(23, 20, 15, 0.18);
  background: rgba(255, 252, 246, 0.48);
  color: rgba(23, 20, 15, 0.72);
}

html[data-theme="light"] .home-page .button-quiet:hover {
  border-color: rgba(142, 105, 49, 0.44);
  background: rgba(255, 252, 246, 0.86);
  color: #6f5123;
}

html[data-theme="light"] .home-page .hero-footnote {
  color: rgba(23, 20, 15, 0.3);
}

html[data-theme="light"] .home-page .hero-footnote span + span::before {
  background: #98733a;
}

html[data-theme="light"] .home-page .hero-scroll {
  color: rgba(23, 20, 15, 0.34);
}

/* Sections */
html[data-theme="light"] .home-page .section-rail {
  color: rgba(23, 20, 15, 0.34);
}

html[data-theme="light"] .home-page .section-rail::before,
html[data-theme="light"] .home-page .section-rail::after {
  background: linear-gradient(to right, transparent, rgba(23, 20, 15, 0.2));
}

html[data-theme="light"] .home-page .section-rail::after {
  background: linear-gradient(to right, rgba(23, 20, 15, 0.2), transparent);
}

html[data-theme="light"] .home-page .section-rail > span:first-child {
  color: rgba(142, 105, 49, 0.76);
}

html[data-theme="light"] .home-page .system-heading h2 em,
html[data-theme="light"] .home-page .capability-heading h2 em,
html[data-theme="light"] .home-page .log-heading h2 em {
  color: #8e6931;
}

html[data-theme="light"] .home-page .system-intro p,
html[data-theme="light"] .home-page .capability-heading > p,
html[data-theme="light"] .home-page .log-heading p {
  color: rgba(23, 20, 15, 0.58);
}

html[data-theme="light"] .home-page .micro-label {
  color: rgba(23, 20, 15, 0.4);
}

/* Prologue */
html[data-theme="light"] .home-page .prologue::before {
  background: radial-gradient(ellipse, rgba(80, 108, 144, 0.09), transparent 68%);
}

html[data-theme="light"] .home-page .wordmark-glow {
  background: radial-gradient(ellipse, rgba(152, 115, 58, 0.14), transparent 64%);
}

html[data-theme="light"] .home-page .wordmark-display > span:first-child {
  -webkit-text-stroke-color: rgba(23, 20, 15, 0.28);
}

html[data-theme="light"] .home-page .wordmark-display .wordmark-open {
  color: #17140f;
  text-shadow: 0 0 90px rgba(152, 115, 58, 0.12);
}

html[data-theme="light"] .home-page .wordmark-etymology {
  color: rgba(23, 20, 15, 0.36);
}

html[data-theme="light"] .home-page .etymology-line {
  background: linear-gradient(to right, transparent, rgba(23, 20, 15, 0.24), transparent);
}

html[data-theme="light"] .home-page .manifesto-layout {
  border-top-color: rgba(23, 20, 15, 0.1);
}

html[data-theme="light"] .home-page .manifesto-quote p {
  color: #17140f;
}

html[data-theme="light"] .home-page .manifesto-quote span {
  color: #8e6931;
}

html[data-theme="light"] .home-page .manifesto-copy p {
  color: rgba(23, 20, 15, 0.56);
}

html[data-theme="light"] .home-page .principles article {
  border-color: rgba(23, 20, 15, 0.1);
  background:
    radial-gradient(circle at 80% 0%, rgba(152, 115, 58, 0.075), transparent 52%),
    rgba(255, 252, 246, 0.58);
  box-shadow: 0 18px 50px rgba(96, 73, 41, 0.045);
}

html[data-theme="light"] .home-page .principles article:hover {
  border-color: rgba(142, 105, 49, 0.28);
  background-color: rgba(255, 252, 246, 0.82);
}

html[data-theme="light"] .home-page .principles p {
  color: rgba(23, 20, 15, 0.54);
}

/* System */
html[data-theme="light"] .home-page .system-section {
  background:
    radial-gradient(ellipse 60% 34% at 50% 28%, rgba(82, 108, 142, 0.11), transparent 72%),
    linear-gradient(to bottom, rgba(239, 233, 221, 0.3), rgba(238, 231, 218, 0.66));
}

html[data-theme="light"] .home-page .product-stage {
  border-color: rgba(23, 20, 15, 0.1);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(152, 115, 58, 0.11), transparent 34%),
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(82, 108, 142, 0.08), transparent 62%),
    rgba(255, 252, 246, 0.58);
  box-shadow:
    0 45px 130px rgba(96, 73, 41, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .home-page .stage-coordinate {
  color: rgba(23, 20, 15, 0.28);
}

html[data-theme="light"] .home-page .floating-note {
  border-color: rgba(23, 20, 15, 0.12);
  background: rgba(250, 246, 238, 0.9);
  box-shadow: 0 22px 60px rgba(96, 73, 41, 0.16);
}

html[data-theme="light"] .home-page .floating-note span {
  color: rgba(142, 105, 49, 0.72);
}

html[data-theme="light"] .home-page .instrument-metrics > div,
html[data-theme="light"] .home-page .instrument-metrics > div:last-child {
  border-color: rgba(23, 20, 15, 0.09);
  background: rgba(255, 252, 246, 0.52);
}

html[data-theme="light"] .home-page .instrument-metrics span,
html[data-theme="light"] .home-page .instrument-metrics small {
  color: rgba(23, 20, 15, 0.38);
}

/* Capabilities */
html[data-theme="light"] .home-page .capability-card {
  border-color: rgba(23, 20, 15, 0.1);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(152, 115, 58, 0.09), transparent 34%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.62), transparent 45%),
    rgba(255, 252, 246, 0.58);
  box-shadow: 0 20px 60px rgba(96, 73, 41, 0.045);
}

html[data-theme="light"] .home-page .capability-card:hover {
  border-color: rgba(142, 105, 49, 0.24);
  background-color: rgba(255, 252, 246, 0.86);
}

html[data-theme="light"] .home-page .card-topline {
  color: rgba(23, 20, 15, 0.38);
}

html[data-theme="light"] .home-page .card-topline span:first-child {
  color: rgba(142, 105, 49, 0.74);
}

html[data-theme="light"] .home-page .card-copy p {
  color: rgba(23, 20, 15, 0.54);
}

html[data-theme="light"] .home-page .card-footnote {
  border-top-color: rgba(23, 20, 15, 0.09);
  color: rgba(23, 20, 15, 0.34);
}

html[data-theme="light"] .home-page .today-orbit,
html[data-theme="light"] .home-page .today-orbit::before,
html[data-theme="light"] .home-page .today-orbit::after {
  border-color: rgba(23, 20, 15, 0.13);
}

html[data-theme="light"] .home-page .today-orbit i {
  background: #98733a;
  box-shadow: 0 0 12px rgba(152, 115, 58, 0.34);
}

html[data-theme="light"] .home-page .today-core {
  border-color: rgba(142, 105, 49, 0.3);
  background: radial-gradient(circle, rgba(255, 252, 246, 0.94), rgba(238, 229, 213, 0.8) 68%);
  box-shadow: 0 0 50px rgba(152, 115, 58, 0.1);
  color: #17140f;
}

html[data-theme="light"] .home-page .today-core small {
  color: rgba(23, 20, 15, 0.42);
}

html[data-theme="light"] .home-page .today-label {
  border-color: rgba(23, 20, 15, 0.11);
  background: rgba(255, 252, 246, 0.88);
  color: rgba(23, 20, 15, 0.44);
}

html[data-theme="light"] .home-page .card-glyph span {
  border-color: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .home-page .card-glyph .icon {
  color: #8e6931;
  filter: drop-shadow(0 0 18px rgba(152, 115, 58, 0.2));
}

html[data-theme="light"] .home-page .search-diagram span {
  border-color: rgba(23, 20, 15, 0.11);
  color: rgba(23, 20, 15, 0.42);
}

html[data-theme="light"] .home-page .search-diagram .search-hit {
  border-color: rgba(142, 105, 49, 0.24);
  background: rgba(152, 115, 58, 0.06);
  color: #7e5d2b;
}

html[data-theme="light"] .home-page .local-terminal {
  border-color: rgba(23, 20, 15, 0.12);
  background: rgba(255, 252, 246, 0.56);
}

html[data-theme="light"] .home-page .terminal-head {
  border-bottom-color: rgba(23, 20, 15, 0.09);
  color: rgba(142, 105, 49, 0.78);
}

html[data-theme="light"] .home-page .terminal-row {
  border-bottom-color: rgba(23, 20, 15, 0.07);
  color: rgba(23, 20, 15, 0.5);
}

html[data-theme="light"] .home-page .terminal-row span:nth-child(2) {
  color: rgba(82, 102, 125, 0.62);
}

html[data-theme="light"] .home-page .terminal-row span:last-child {
  color: rgba(142, 105, 49, 0.76);
}

html[data-theme="light"] .home-page .capability-index {
  border-color: rgba(23, 20, 15, 0.09);
  background: rgba(255, 252, 246, 0.48);
}

html[data-theme="light"] .home-page .capability-index ul {
  color: rgba(23, 20, 15, 0.44);
}

/* Log teaser */
html[data-theme="light"] .home-page .log-teaser {
  background:
    radial-gradient(ellipse 48% 42% at 82% 22%, rgba(82, 108, 142, 0.09), transparent 68%),
    linear-gradient(to bottom, rgba(239, 233, 221, 0.3), rgba(236, 228, 214, 0.58));
}

html[data-theme="light"] .home-page .log-halo {
  border-color: rgba(23, 20, 15, 0.08);
  box-shadow:
    0 0 0 80px rgba(23, 20, 15, 0.015),
    0 0 0 170px rgba(23, 20, 15, 0.01);
}

html[data-theme="light"] .home-page .log-preview {
  border-color: rgba(23, 20, 15, 0.1);
  background: rgba(255, 252, 246, 0.56);
}

html[data-theme="light"] .home-page .log-preview-item {
  border-bottom-color: rgba(23, 20, 15, 0.08);
}

html[data-theme="light"] .home-page .log-preview-item:hover {
  background: rgba(152, 115, 58, 0.06);
}

html[data-theme="light"] .home-page .log-preview-version {
  color: #8e6931;
}

html[data-theme="light"] .home-page .log-preview-title span {
  color: rgba(23, 20, 15, 0.5);
}

/* Signal band */
html[data-theme="light"] .home-page .signal-band-inner {
  border-color: rgba(23, 20, 15, 0.1);
  background:
    radial-gradient(circle at 8% 50%, rgba(152, 115, 58, 0.09), transparent 30%),
    rgba(255, 252, 246, 0.54);
}

html[data-theme="light"] .home-page .signal-band-icon {
  border-color: rgba(142, 105, 49, 0.24);
  background: rgba(152, 115, 58, 0.06);
  color: #8e6931;
}

html[data-theme="light"] .home-page .signal-band p {
  color: rgba(23, 20, 15, 0.52);
}

/* Boarding */
html[data-theme="light"] .home-page .boarding {
  background:
    radial-gradient(circle at 50% 44%, rgba(82, 108, 142, 0.13), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(175, 140, 82, 0.13), transparent 52%);
}

html[data-theme="light"] .home-page .boarding::before {
  border-color: rgba(23, 20, 15, 0.07);
}

html[data-theme="light"] .home-page .boarding-orbit {
  border-color: rgba(23, 20, 15, 0.09);
}

html[data-theme="light"] .home-page .boarding-orbit span {
  border-color: rgba(142, 105, 49, 0.6);
  background: #f4f0e7;
}

html[data-theme="light"] .home-page .boarding-sub {
  color: rgba(23, 20, 15, 0.54);
}

html[data-theme="light"] .home-page .wishlist-panel {
  border-color: rgba(23, 20, 15, 0.13);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.74), transparent 46%),
    rgba(255, 252, 246, 0.84);
  box-shadow:
    0 45px 120px rgba(96, 73, 41, 0.17),
    0 0 70px rgba(152, 115, 58, 0.06);
}

html[data-theme="light"] .home-page .wishlist-panel::before {
  background: linear-gradient(to right, transparent, rgba(142, 105, 49, 0.65), transparent);
}

html[data-theme="light"] .home-page .wishlist-head {
  color: rgba(23, 20, 15, 0.38);
}

html[data-theme="light"] .home-page .wishlist-head span:last-child {
  color: rgba(142, 105, 49, 0.72);
}

html[data-theme="light"] .home-page .wishlist-label-main {
  color: rgba(23, 20, 15, 0.74);
}

html[data-theme="light"] .home-page .wishlist-label-code {
  color: rgba(142, 105, 49, 0.68);
}

html[data-theme="light"] .home-page .wishlist-input-wrap {
  border-color: rgba(23, 20, 15, 0.15);
  background: rgba(255, 252, 246, 0.66);
}

html[data-theme="light"] .home-page .wishlist-input-wrap::before {
  border-color: rgba(142, 105, 49, 0.46);
}

html[data-theme="light"] .home-page .wishlist-input-wrap::after {
  background: linear-gradient(90deg, transparent, rgba(152, 115, 58, 0.12), transparent);
}

html[data-theme="light"] .home-page .wishlist-input-wrap:hover {
  border-color: rgba(142, 105, 49, 0.38);
  background: rgba(255, 252, 246, 0.9);
}

html[data-theme="light"] .home-page .wishlist-input-wrap:focus-within {
  border-color: rgba(142, 105, 49, 0.7);
  background: rgba(255, 252, 246, 0.96);
  box-shadow:
    0 0 0 1px rgba(152, 115, 58, 0.12),
    0 0 34px rgba(152, 115, 58, 0.12);
}

html[data-theme="light"] .home-page .wishlist-input-wrap input {
  color: #17140f;
}

html[data-theme="light"] .home-page .wishlist-input-wrap input::placeholder {
  color: rgba(23, 20, 15, 0.45);
}

html[data-theme="light"] .home-page .wishlist-input-wrap:focus-within input::placeholder {
  color: rgba(23, 20, 15, 0.32);
}

html[data-theme="light"] .home-page .wishlist-input-wrap button {
  border-color: rgba(142, 105, 49, 0.4);
  background: rgba(152, 115, 58, 0.08);
  color: #7e5d2b;
}

html[data-theme="light"] .home-page .wishlist-input-wrap:focus-within button {
  border-color: #8e6931;
  background: #8e6931;
  color: #fffaf0;
  box-shadow: 0 0 26px rgba(142, 105, 49, 0.22);
}

html[data-theme="light"] .home-page .form-note {
  color: rgba(23, 20, 15, 0.4);
}

html[data-theme="light"] .home-page .wishlist-foot {
  border-top-color: rgba(23, 20, 15, 0.08);
}

html[data-theme="light"] .home-page .wishlist-foot > span:first-child,
html[data-theme="light"] .home-page .coordinate-readout {
  color: rgba(23, 20, 15, 0.3);
}

html[data-theme="light"] .home-page .wishlist-success p {
  color: rgba(23, 20, 15, 0.58);
}

html[data-theme="light"] .home-page .success-id {
  color: rgba(142, 105, 49, 0.74);
}

/* Footer */
html[data-theme="light"] .site-footer {
  border-top-color: rgba(23, 20, 15, 0.1);
  background: #eae3d6;
}

html[data-theme="light"] .site-footer::before {
  background: radial-gradient(ellipse, rgba(82, 108, 142, 0.09), transparent 68%);
}

html[data-theme="light"] .footer-statement {
  color: rgba(23, 20, 15, 0.6);
}

html[data-theme="light"] .footer-links > div > span:first-child {
  color: rgba(23, 20, 15, 0.42);
}

html[data-theme="light"] .footer-links a {
  color: rgba(23, 20, 15, 0.62);
}

html[data-theme="light"] .footer-links a:hover {
  color: #6f5123;
}

html[data-theme="light"] .footer-live {
  color: rgba(23, 20, 15, 0.4);
}

html[data-theme="light"] .footer-wordmark {
  -webkit-text-stroke-color: rgba(23, 20, 15, 0.13);
}

html[data-theme="light"] .footer-bottom {
  border-top-color: rgba(23, 20, 15, 0.09);
  color: rgba(23, 20, 15, 0.38);
}

/* --------------------------------------------------------------------------
   Inner pages: changelog, public beacon, report, 404, embeds
   -------------------------------------------------------------------------- */

html[data-theme="light"] .inner-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(82, 108, 142, 0.1), transparent 25%),
    radial-gradient(circle at 11% 28%, rgba(146, 112, 66, 0.08), transparent 30%),
    #f4f0e7;
}

html[data-theme="light"] .inner-page .starfield {
  display: none;
}

html[data-theme="light"] .page-hero {
  border-bottom-color: rgba(23, 20, 15, 0.11);
}

html[data-theme="light"] .page-title > span {
  -webkit-text-stroke-color: rgba(23, 20, 15, 0.28);
}

html[data-theme="light"] .page-title > em {
  color: #8e6931;
}

html[data-theme="light"] .page-intro small,
html[data-theme="light"] .page-meta,
html[data-theme="light"] .page-title-en {
  color: rgba(23, 20, 15, 0.4);
}

html[data-theme="light"] .page-meta i {
  background: #98733a;
}

html[data-theme="light"] .changelog-hero::before {
  background: radial-gradient(circle, rgba(82, 108, 142, 0.1), transparent 66%);
}

html[data-theme="light"] .changelog-hero-orbit {
  border-color: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .changelog-hero-orbit::before {
  border-color: rgba(23, 20, 15, 0.1);
}

html[data-theme="light"] .changelog-hero-orbit::after {
  box-shadow: 0 0 20px rgba(142, 105, 49, 0.3);
}

html[data-theme="light"] .filter-group button span {
  color: rgba(142, 105, 49, 0.68);
}

html[data-theme="light"] .filter-group button.is-active {
  border-color: rgba(23, 20, 15, 0.2);
  background: rgba(152, 115, 58, 0.07);
  color: #6f5123;
}

html[data-theme="light"] .icon-button {
  border-color: rgba(23, 20, 15, 0.14);
  color: rgba(23, 20, 15, 0.42);
}

html[data-theme="light"] .icon-button:hover {
  border-color: rgba(142, 105, 49, 0.4);
  background: rgba(152, 115, 58, 0.06);
  color: #6f5123;
}

html[data-theme="light"] .log-list {
  border-top-color: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .log-list::before {
  background: linear-gradient(to bottom, rgba(23, 20, 15, 0.12), rgba(23, 20, 15, 0.02));
}

html[data-theme="light"] .log-entry {
  border-bottom-color: rgba(23, 20, 15, 0.1);
}

html[data-theme="light"] .log-entry:hover {
  background: linear-gradient(to right, rgba(152, 115, 58, 0.05), transparent 62%);
}

html[data-theme="light"] .log-node {
  border-color: rgba(142, 105, 49, 0.7);
  background: #f4f0e7;
  box-shadow: 0 0 14px rgba(142, 105, 49, 0.2);
}

html[data-theme="light"] .log-version {
  color: #8e6931;
}

html[data-theme="light"] .log-date,
html[data-theme="light"] .log-channel,
html[data-theme="light"] .log-entry-footer {
  color: rgba(23, 20, 15, 0.38);
}

html[data-theme="light"] .log-tags span {
  border-color: rgba(23, 20, 15, 0.12);
  color: rgba(23, 20, 15, 0.46);
}

html[data-theme="light"] .log-summary {
  color: rgba(23, 20, 15, 0.6);
}

html[data-theme="light"] .log-highlights {
  border-top-color: rgba(23, 20, 15, 0.09);
}

html[data-theme="light"] .log-highlights li {
  border-bottom-color: rgba(23, 20, 15, 0.08);
  color: rgba(23, 20, 15, 0.56);
}

html[data-theme="light"] .log-highlight-mark {
  color: rgba(142, 105, 49, 0.76);
}

html[data-theme="light"] .embed-guide {
  border-top-color: rgba(23, 20, 15, 0.1);
  background: rgba(236, 228, 214, 0.5);
}

html[data-theme="light"] .embed-guide::before {
  background: radial-gradient(circle, rgba(152, 115, 58, 0.08), transparent 68%);
}

html[data-theme="light"] .embed-guide p code {
  border-color: rgba(23, 20, 15, 0.12);
  background: rgba(255, 252, 246, 0.66);
  color: #6f5123;
}

html[data-theme="light"] .embed-code {
  border-color: rgba(23, 20, 15, 0.12);
  background: rgba(255, 252, 246, 0.56);
}

html[data-theme="light"] .embed-code code {
  color: rgba(23, 20, 15, 0.58);
}

html[data-theme="light"] .embed-code button {
  border-color: rgba(23, 20, 15, 0.14);
}

html[data-theme="light"] .bugs-hero::before {
  border-color: rgba(23, 20, 15, 0.1);
  box-shadow:
    0 0 0 64px rgba(23, 20, 15, 0.018),
    0 0 0 128px rgba(23, 20, 15, 0.012);
}

html[data-theme="light"] .beacon-meta {
  border-top-color: rgba(23, 20, 15, 0.11);
  border-bottom-color: rgba(23, 20, 15, 0.11);
}

html[data-theme="light"] .beacon-meta > div {
  border-right-color: rgba(23, 20, 15, 0.1);
}

html[data-theme="light"] .bugs-list-footer p {
  color: rgba(23, 20, 15, 0.4);
}

html[data-theme="light"] .bug-grid {
  border-color: rgba(23, 20, 15, 0.12);
  background: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .bug-card {
  background: rgba(255, 252, 246, 0.7);
}

html[data-theme="light"] .bug-card:hover,
html[data-theme="light"] .bug-card:focus-visible {
  background: rgba(255, 252, 246, 0.96);
}

html[data-theme="light"] .bug-card::after {
  background: linear-gradient(to right, transparent, rgba(142, 105, 49, 0.44), transparent);
}

html[data-theme="light"] .status-badge {
  border-color: rgba(23, 20, 15, 0.14);
}

html[data-theme="light"] .status-received,
html[data-theme="light"] .status-reviewing {
  border-color: rgba(142, 105, 49, 0.24);
  color: #7e5d2b;
}

html[data-theme="light"] .status-fixing {
  border-color: rgba(82, 102, 125, 0.28);
  color: #52667d;
}

html[data-theme="light"] .status-resolved {
  border-color: rgba(92, 123, 97, 0.3);
  color: #4f6f55;
}

html[data-theme="light"] .severity-badge {
  color: rgba(23, 20, 15, 0.36);
}

html[data-theme="light"] .severity-high,
html[data-theme="light"] .severity-critical {
  color: #a64f43;
}

html[data-theme="light"] .bug-card-media {
  border-color: rgba(23, 20, 15, 0.1);
  background: rgba(236, 228, 214, 0.5);
}

html[data-theme="light"] .bug-card-media.is-empty {
  color: rgba(23, 20, 15, 0.24);
}

html[data-theme="light"] .bug-card-glyph {
  color: rgba(142, 105, 49, 0.4);
}

html[data-theme="light"] .bug-card-foot {
  border-top-color: rgba(23, 20, 15, 0.08);
  color: rgba(23, 20, 15, 0.38);
}

html[data-theme="light"] .bug-card-id {
  color: rgba(142, 105, 49, 0.72);
}

html[data-theme="light"] .bug-card-open {
  color: rgba(23, 20, 15, 0.32);
}

html[data-theme="light"] .report-prompt {
  border-top-color: rgba(23, 20, 15, 0.1);
  background: rgba(236, 228, 214, 0.5);
}

html[data-theme="light"] .report-prompt-orbit {
  border-color: rgba(23, 20, 15, 0.09);
  box-shadow: 0 0 0 42px rgba(23, 20, 15, 0.015);
}

/* Bug dialog */
html[data-theme="light"] .bug-dialog {
  border-color: rgba(23, 20, 15, 0.18);
  background: #fbf7ef;
  color: #17140f;
  box-shadow: 0 60px 180px rgba(86, 65, 37, 0.3);
}

html[data-theme="light"] .bug-dialog::backdrop {
  background: rgba(60, 48, 31, 0.34);
}

html[data-theme="light"] .bug-dialog-close {
  border-color: rgba(23, 20, 15, 0.14);
  background: rgba(251, 247, 239, 0.9);
  color: rgba(23, 20, 15, 0.6);
}

html[data-theme="light"] .bug-dialog-close:hover {
  border-color: rgba(142, 105, 49, 0.44);
  color: #6f5123;
}

html[data-theme="light"] .bug-dialog-media {
  border-right-color: rgba(23, 20, 15, 0.1);
  background:
    linear-gradient(45deg, rgba(23, 20, 15, 0.025) 25%, transparent 25%, transparent 75%, rgba(23, 20, 15, 0.025) 75%),
    #f0e9dc;
  background-size: 22px 22px;
}

html[data-theme="light"] .bug-dialog-meta span:first-child {
  color: rgba(142, 105, 49, 0.72);
}

html[data-theme="light"] .bug-dialog-section p {
  color: rgba(23, 20, 15, 0.66);
}

/* Report */
html[data-theme="light"] .report-hero {
  border-bottom-color: rgba(23, 20, 15, 0.11);
}

html[data-theme="light"] .report-hero::before {
  border-color: rgba(23, 20, 15, 0.08);
  box-shadow:
    0 0 0 50px rgba(23, 20, 15, 0.014),
    0 0 0 100px rgba(23, 20, 15, 0.009);
}

html[data-theme="light"] .report-reticle::before,
html[data-theme="light"] .report-reticle::after {
  background: linear-gradient(to right, transparent, rgba(23, 20, 15, 0.12), transparent);
}

html[data-theme="light"] .report-reticle-ring {
  border-color: rgba(23, 20, 15, 0.16);
}

html[data-theme="light"] .report-reticle-ring-2 {
  border-color: rgba(82, 102, 125, 0.2);
}

html[data-theme="light"] .report-reticle-mark {
  border-color: rgba(142, 105, 49, 0.26);
  background: radial-gradient(circle, rgba(255, 252, 246, 0.95), rgba(238, 229, 213, 0.85) 72%);
  color: #8e6931;
  box-shadow: 0 0 55px rgba(152, 115, 58, 0.1);
}

html[data-theme="light"] .report-coordinate {
  color: rgba(23, 20, 15, 0.3);
}

html[data-theme="light"] .report-protocol li {
  border-bottom-color: rgba(23, 20, 15, 0.08);
}

html[data-theme="light"] .report-privacy {
  border-color: rgba(23, 20, 15, 0.1);
}

html[data-theme="light"] .report-form-panel {
  border-color: rgba(23, 20, 15, 0.11);
  background: rgba(255, 252, 246, 0.68);
  box-shadow: 0 34px 100px rgba(96, 73, 41, 0.12);
}

html[data-theme="light"] .field > label,
html[data-theme="light"] .severity-field legend,
html[data-theme="light"] .field > legend {
  color: rgba(23, 20, 15, 0.52);
}

html[data-theme="light"] .field > label span,
html[data-theme="light"] .field > legend span {
  color: rgba(23, 20, 15, 0.3);
}

html[data-theme="light"] .field input[type="text"],
html[data-theme="light"] .field input[type="email"],
html[data-theme="light"] .field textarea {
  border-color: rgba(23, 20, 15, 0.13);
  background: rgba(255, 252, 246, 0.66);
  color: #17140f;
}

html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder {
  color: rgba(23, 20, 15, 0.3);
}

html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field textarea:focus {
  border-color: rgba(142, 105, 49, 0.48);
  background: rgba(255, 252, 246, 0.95);
  box-shadow: 0 0 0 3px rgba(152, 115, 58, 0.06);
}

html[data-theme="light"] .field.has-error input,
html[data-theme="light"] .field.has-error textarea,
html[data-theme="light"] .field.has-error .screenshot-drop {
  border-color: rgba(166, 79, 67, 0.56);
}

html[data-theme="light"] .field-error {
  color: #a64f43;
}

html[data-theme="light"] .field-count {
  color: rgba(23, 20, 15, 0.3);
}

html[data-theme="light"] .severity-options {
  border-color: rgba(23, 20, 15, 0.12);
  background: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .severity-options label {
  background: rgba(251, 247, 239, 0.92);
}

html[data-theme="light"] .severity-options label:hover {
  background: rgba(152, 115, 58, 0.06);
}

html[data-theme="light"] .severity-options label i {
  border-color: rgba(23, 20, 15, 0.32);
}

html[data-theme="light"] .severity-options input:checked + span {
  color: #6f5123;
}

html[data-theme="light"] .severity-options input:checked + span i {
  border-color: #8e6931;
  background: #8e6931;
  box-shadow: 0 0 8px rgba(142, 105, 49, 0.3);
}

html[data-theme="light"] .screenshot-drop {
  border-color: rgba(23, 20, 15, 0.17);
  background: rgba(255, 252, 246, 0.5);
}

html[data-theme="light"] .screenshot-drop.is-dragging,
html[data-theme="light"] .screenshot-drop:hover {
  border-color: rgba(142, 105, 49, 0.44);
  background: rgba(152, 115, 58, 0.05);
}

html[data-theme="light"] .screenshot-drop-target .icon {
  color: #8e6931;
}

html[data-theme="light"] .diagnostics {
  border-color: rgba(23, 20, 15, 0.1);
  background: rgba(255, 252, 246, 0.42);
}

html[data-theme="light"] .public-switch {
  border-color: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .switch-track {
  border-color: rgba(23, 20, 15, 0.24);
  background: rgba(23, 20, 15, 0.05);
}

html[data-theme="light"] .public-switch input:checked + .switch-track {
  border-color: rgba(142, 105, 49, 0.5);
  background: rgba(152, 115, 58, 0.14);
}

html[data-theme="light"] .public-switch input:checked + .switch-track i {
  background: #8e6931;
}

html[data-theme="light"] .form-error-summary {
  border-color: rgba(166, 79, 67, 0.34);
  background: rgba(166, 79, 67, 0.06);
  color: #8f3f36;
}

html[data-theme="light"] .report-success-id {
  border-color: rgba(23, 20, 15, 0.12);
}

html[data-theme="light"] .report-success-id strong {
  color: #8e6931;
}

/* 404 */
html[data-theme="light"] .not-found-orbit,
html[data-theme="light"] .not-found-orbit::before {
  border-color: rgba(23, 20, 15, 0.1);
}

html[data-theme="light"] .not-found-orbit::after {
  border-color: rgba(142, 105, 49, 0.18);
}

html[data-theme="light"] .not-found-content h1 em {
  color: #8e6931;
}

html[data-theme="light"] .not-found-footer {
  color: rgba(23, 20, 15, 0.3);
}

/* Toast */
html[data-theme="light"] .toast {
  border-color: rgba(23, 20, 15, 0.16);
  background: rgba(251, 247, 239, 0.97);
  box-shadow: 0 20px 60px rgba(96, 73, 41, 0.18);
  color: rgba(23, 20, 15, 0.72);
}

/* Native form chrome */
html[data-theme="light"] select,
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  color-scheme: light;
}

/* ==========================================================================
   Daylight refinement
   Clearer paper, sharper linework, heavier editorial type, and an ink footer
   that gives the light version a deliberate final chord.
   ========================================================================== */

html[data-theme="light"] {
  --ink: #f7f3ea;
  --ink-2: #f2ece1;
  --ink-3: #ebe4d7;
  --ink-4: #ded4c2;
  --paper: #0e0c08;
  --paper-soft: #2b251c;
  --paper-dim: rgba(14, 12, 8, 0.66);
  --paper-faint: rgba(14, 12, 8, 0.44);
  --gold: #8f6a2f;
  --gold-bright: #7e5a22;
  --gold-faint: rgba(143, 106, 47, 0.14);
  --ice: #4c6078;
  --line: rgba(14, 12, 8, 0.14);
  --line-strong: rgba(14, 12, 8, 0.26);
}

html[data-theme="light"] body {
  background:
    radial-gradient(ellipse 66% 38% at 50% -10%, rgba(182, 143, 80, 0.13), transparent 60%),
    radial-gradient(ellipse 50% 38% at 88% 24%, rgba(82, 108, 142, 0.055), transparent 64%),
    radial-gradient(ellipse 42% 30% at 7% 64%, rgba(143, 106, 47, 0.055), transparent 68%),
    #f7f3ea;
}

html[data-theme="light"] .home-page {
  --ed-ivory: #0e0c08;
  --ed-ivory-soft: rgba(14, 12, 8, 0.7);
  --ed-ivory-faint: rgba(14, 12, 8, 0.38);
  --ed-gold: #8f6a2f;
  --ed-gold-bright: #7e5a22;
  --ed-line: rgba(14, 12, 8, 0.14);
  --ed-line-soft: rgba(14, 12, 8, 0.1);
  --ed-card: rgba(255, 253, 248, 0.86);
  background:
    radial-gradient(ellipse 66% 38% at 50% -10%, rgba(182, 143, 80, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 38% at 88% 24%, rgba(82, 108, 142, 0.055), transparent 64%),
    #f7f3ea;
}

html[data-theme="light"] .home-page .page-vignette {
  background:
    linear-gradient(to bottom, rgba(247, 243, 234, 0.18) 0%, transparent 16%, transparent 78%, rgba(224, 213, 194, 0.42) 100%),
    radial-gradient(ellipse at center, transparent 58%, rgba(92, 72, 43, 0.045) 100%);
}

/* Hero: air, crispness, a little dust */
html[data-theme="light"] .hero-ambient {
  background:
    radial-gradient(circle at 50% 26%, rgba(202, 166, 105, 0.17), transparent 24%),
    radial-gradient(circle at 50% 33%, rgba(76, 96, 120, 0.07), transparent 40%),
    linear-gradient(to bottom, transparent 48%, rgba(177, 146, 96, 0.055) 100%);
  filter: blur(2px);
}

html[data-theme="light"] .hero-ambient::before {
  content: "";
  position: absolute;
  inset: 2% 0 34%;
  opacity: 0.58;
  background:
    radial-gradient(circle at 7% 24%, rgba(14, 12, 8, 0.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 13% 71%, rgba(14, 12, 8, 0.26) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 19% 12%, rgba(14, 12, 8, 0.34) 0 0.9px, transparent 1.4px),
    radial-gradient(circle at 27% 42%, rgba(14, 12, 8, 0.22) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 33% 82%, rgba(14, 12, 8, 0.3) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 18%, rgba(14, 12, 8, 0.34) 0 1px, transparent 1.5px),
    radial-gradient(circle at 79% 63%, rgba(14, 12, 8, 0.24) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 86% 35%, rgba(14, 12, 8, 0.36) 0 1.1px, transparent 1.6px),
    radial-gradient(circle at 91% 78%, rgba(14, 12, 8, 0.22) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 58% 88%, rgba(14, 12, 8, 0.26) 0 0.9px, transparent 1.4px),
    radial-gradient(circle at 42% 9%, rgba(14, 12, 8, 0.28) 0 0.9px, transparent 1.4px);
}

html[data-theme="light"] .hero-ambient::after {
  opacity: 0.58;
  background: conic-gradient(from 220deg, transparent, rgba(143, 106, 47, 0.11), transparent 27%, rgba(76, 96, 120, 0.065), transparent 70%);
}

html[data-theme="light"] .hero-coordinate {
  color: rgba(14, 12, 8, 0.38);
}

html[data-theme="light"] .home-page .hero .instrument-frame {
  border-color: rgba(14, 12, 8, 0.27);
  box-shadow:
    inset 0 0 90px rgba(255, 255, 255, 0.24),
    0 30px 90px rgba(89, 68, 37, 0.045);
}

html[data-theme="light"] .home-page .hero .instrument-frame::before {
  border-color: rgba(14, 12, 8, 0.2);
}

html[data-theme="light"] .home-page .hero .instrument-frame::after {
  border-color: rgba(14, 12, 8, 0.17);
}

html[data-theme="light"] .home-page .hero .orbit {
  border-color: rgba(14, 12, 8, 0.29);
}

html[data-theme="light"] .home-page .hero .orbit::before {
  border-top-color: rgba(126, 90, 34, 0.88);
}

html[data-theme="light"] .home-page .hero .orbit-mid {
  border-color: rgba(14, 12, 8, 0.19);
}

html[data-theme="light"] .home-page .hero .orbit-inner {
  border-color: rgba(126, 90, 34, 0.4);
}

html[data-theme="light"] .home-page .hero .instrument-ticks {
  opacity: 0.82;
  background: repeating-conic-gradient(from 0deg, rgba(14, 12, 8, 0.4) 0deg 0.34deg, transparent 0.34deg 6deg);
}

html[data-theme="light"] .home-page .hero .instrument-grid {
  opacity: 0.42;
}

html[data-theme="light"] .home-page .hero .instrument-label {
  color: rgba(14, 12, 8, 0.44);
}

html[data-theme="light"] .home-page .hero .instrument-label b {
  color: rgba(126, 90, 34, 0.9);
}

html[data-theme="light"] .signal-node {
  border-color: rgba(14, 12, 8, 0.2);
  background:
    radial-gradient(circle at 35% 24%, #fff 0%, transparent 58%),
    #fffdf8;
  box-shadow:
    0 18px 40px rgba(84, 64, 34, 0.18),
    0 0 0 6px rgba(247, 243, 234, 0.7),
    inset 0 1px 0 #fff;
  color: rgba(14, 12, 8, 0.72);
}

html[data-theme="light"] .home-page .hero-kicker {
  color: rgba(14, 12, 8, 0.56);
}

html[data-theme="light"] .home-page .hero h1 {
  color: #0e0c08;
  font-weight: 500;
  letter-spacing: -0.06em;
}

html[data-theme="light"] .home-page .hero h1 em {
  color: #7e5a22;
  font-weight: 500;
  text-shadow: none;
}

html[data-theme="light"] .home-page .hero-sub {
  color: rgba(14, 12, 8, 0.68);
}

html[data-theme="light"] .home-page .hero-footnote {
  color: rgba(14, 12, 8, 0.34);
}

html[data-theme="light"] .home-page .hero-scroll {
  color: rgba(14, 12, 8, 0.38);
}

/* Section type gets a firmer hand */
html[data-theme="light"] .home-page .system-heading h2,
html[data-theme="light"] .home-page .capability-heading h2,
html[data-theme="light"] .home-page .log-heading h2,
html[data-theme="light"] .home-page .boarding-copy h2 {
  font-weight: 500;
}

html[data-theme="light"] .home-page .manifesto-quote p {
  color: #0e0c08;
  font-weight: 500;
}

html[data-theme="light"] .home-page .wordmark-display > span:first-child {
  -webkit-text-stroke-color: rgba(14, 12, 8, 0.38);
}

html[data-theme="light"] .home-page .wordmark-display .wordmark-open {
  color: #0e0c08;
}

/* Surfaces: white paper lifted off the warm ground */
html[data-theme="light"] .home-page .principles article,
html[data-theme="light"] .home-page .instrument-metrics > div,
html[data-theme="light"] .home-page .instrument-metrics > div:last-child,
html[data-theme="light"] .home-page .capability-index,
html[data-theme="light"] .home-page .log-preview,
html[data-theme="light"] .home-page .signal-band-inner,
html[data-theme="light"] .home-page .wishlist-panel {
  border-color: rgba(14, 12, 8, 0.13);
  background: #fffdf8;
  box-shadow:
    0 24px 70px rgba(84, 64, 34, 0.075),
    inset 0 1px 0 #fff;
}

html[data-theme="light"] .home-page .principles article {
  background:
    radial-gradient(circle at 82% 0%, rgba(143, 106, 47, 0.07), transparent 48%),
    #fffdf8;
}

html[data-theme="light"] .home-page .capability-card {
  border-color: rgba(14, 12, 8, 0.13);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(143, 106, 47, 0.085), transparent 34%),
    #fffdf8;
  box-shadow:
    0 26px 80px rgba(84, 64, 34, 0.075),
    inset 0 1px 0 #fff;
}

html[data-theme="light"] .home-page .capability-card:hover {
  border-color: rgba(126, 90, 34, 0.28);
  background-color: #fffefb;
}

html[data-theme="light"] .home-page .product-stage {
  border-color: rgba(14, 12, 8, 0.14);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(143, 106, 47, 0.12), transparent 34%),
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(76, 96, 120, 0.065), transparent 62%),
    #fffdf8;
  box-shadow:
    0 55px 150px rgba(84, 64, 34, 0.13),
    inset 0 1px 0 #fff;
}

html[data-theme="light"] .home-page .capability-index {
  box-shadow: 0 18px 50px rgba(84, 64, 34, 0.05);
}

html[data-theme="light"] .home-page .log-preview {
  box-shadow: 0 28px 80px rgba(84, 64, 34, 0.075);
}

html[data-theme="light"] .home-page .signal-band-inner {
  background:
    radial-gradient(circle at 7% 50%, rgba(143, 106, 47, 0.1), transparent 28%),
    #fffdf8;
}

html[data-theme="light"] .home-page .wishlist-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 106, 47, 0.075), transparent 40%),
    #fffdf8;
  box-shadow:
    0 45px 120px rgba(84, 64, 34, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

html[data-theme="light"] .home-page .wishlist-input-wrap {
  border-color: rgba(14, 12, 8, 0.17);
  background: #f8f3e9;
}

/* Alternate the long sections with a quieter cream band */
html[data-theme="light"] .home-page .system-section {
  background:
    radial-gradient(ellipse 58% 32% at 50% 24%, rgba(76, 96, 120, 0.075), transparent 70%),
    linear-gradient(to bottom, #f1ebdf, #f6f1e7);
}

html[data-theme="light"] .home-page .log-teaser {
  background:
    radial-gradient(ellipse 48% 42% at 82% 20%, rgba(76, 96, 120, 0.07), transparent 68%),
    linear-gradient(to bottom, #f4efe5, #f0e9dd);
}

html[data-theme="light"] .home-page .log-preview-item {
  border-bottom-color: rgba(14, 12, 8, 0.1);
}

html[data-theme="light"] .home-page .log-preview-item:hover {
  background: rgba(143, 106, 47, 0.055);
}

html[data-theme="light"] .home-page .capability-index ul,
html[data-theme="light"] .home-page .card-footnote,
html[data-theme="light"] .home-page .instrument-metrics span,
html[data-theme="light"] .home-page .instrument-metrics small {
  color: rgba(14, 12, 8, 0.46);
}

html[data-theme="light"] .home-page .card-copy p,
html[data-theme="light"] .home-page .principles p,
html[data-theme="light"] .home-page .manifesto-copy p,
html[data-theme="light"] .home-page .boarding-sub {
  color: rgba(14, 12, 8, 0.62);
}

html[data-theme="light"] .home-page .system-intro p,
html[data-theme="light"] .home-page .capability-heading > p,
html[data-theme="light"] .home-page .log-heading p {
  color: rgba(14, 12, 8, 0.62);
}

html[data-theme="light"] .home-page .today-core {
  border-color: rgba(126, 90, 34, 0.4);
  background: radial-gradient(circle, #fffdf8, #efe6d5 72%);
  box-shadow:
    0 0 0 1px #fff inset,
    0 0 50px rgba(143, 106, 47, 0.12);
}

html[data-theme="light"] .home-page .today-label {
  border-color: rgba(14, 12, 8, 0.14);
  background: #fffdf8;
  color: rgba(14, 12, 8, 0.5);
}

/* Footer: a dark horizon under the daylight page */
html[data-theme="light"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: #0f0d0a;
}

html[data-theme="light"] .site-footer::before {
  background: radial-gradient(ellipse, rgba(182, 143, 80, 0.12), transparent 68%);
}

html[data-theme="light"] .site-footer .brand-mark {
  color: #cfae73;
}

html[data-theme="light"] .site-footer .brand-cn {
  color: #f3eee4;
}

html[data-theme="light"] .site-footer .brand-en {
  color: rgba(243, 238, 228, 0.4);
}

html[data-theme="light"] .site-footer .footer-statement {
  color: rgba(243, 238, 228, 0.68);
}

html[data-theme="light"] .site-footer .footer-links > div > span:first-child {
  color: rgba(243, 238, 228, 0.34);
}

html[data-theme="light"] .site-footer .footer-links a {
  color: rgba(243, 238, 228, 0.64);
}

html[data-theme="light"] .site-footer .footer-links a:hover {
  color: #e4d0a5;
}

html[data-theme="light"] .site-footer .footer-live {
  color: rgba(243, 238, 228, 0.4);
}

html[data-theme="light"] .site-footer .footer-wordmark {
  -webkit-text-stroke-color: rgba(243, 238, 228, 0.15);
}

html[data-theme="light"] .site-footer .footer-bottom {
  border-top-color: rgba(243, 238, 228, 0.12);
  color: rgba(243, 238, 228, 0.36);
}

/* Inner pages: same paper, stronger cards */
html[data-theme="light"] .inner-page {
  background:
    radial-gradient(circle at 84% 6%, rgba(76, 96, 120, 0.07), transparent 26%),
    radial-gradient(circle at 9% 28%, rgba(143, 106, 47, 0.065), transparent 30%),
    #f7f3ea;
}

html[data-theme="light"] .page-title {
  font-weight: 500;
  color: #0e0c08;
}

html[data-theme="light"] .page-title > em {
  color: #7e5a22;
}

html[data-theme="light"] .bug-card {
  border: 1px solid rgba(14, 12, 8, 0.11);
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(84, 64, 34, 0.055);
}

html[data-theme="light"] .bug-card:hover,
html[data-theme="light"] .bug-card:focus-visible {
  background: #fffefb;
}

html[data-theme="light"] .report-form-panel {
  border-color: rgba(14, 12, 8, 0.12);
  background: #fffdf8;
  box-shadow: 0 35px 100px rgba(84, 64, 34, 0.12);
}

html[data-theme="light"] .log-list {
  border-top-color: rgba(14, 12, 8, 0.16);
}

html[data-theme="light"] .log-entry {
  border-bottom-color: rgba(14, 12, 8, 0.12);
}

html[data-theme="light"] .log-version {
  color: #7e5a22;
}

html[data-theme="light"] .report-prompt,
html[data-theme="light"] .embed-guide {
  background: #f0e9dd;
}

html[data-theme="light"] .bug-dialog {
  background: #fffdf8;
}

html[data-theme="light"] .bug-card-media {
  background: #f4eee3;
}

/* Doctrine statement — daylight */
html[data-theme="light"] .home-page .statement-band::before {
  background:
    radial-gradient(60% 120% at 50% 50%, rgba(150, 118, 64, 0.07), transparent 62%),
    radial-gradient(40% 80% at 50% 0%, rgba(76, 96, 120, 0.05), transparent 70%);
}

html[data-theme="light"] .home-page .statement-rule {
  background: linear-gradient(90deg, transparent, rgba(23, 20, 15, 0.16), transparent);
}

html[data-theme="light"] .home-page .statement-band p {
  color: #14110c;
}

html[data-theme="light"] .home-page .statement-band p em {
  color: #8a6a35;
}

html[data-theme="light"] .home-page .statement-index {
  color: rgba(23, 20, 15, 0.4);
}

html[data-theme="light"] .home-page .statement-signature {
  color: rgba(138, 106, 53, 0.55);
}

/* Scroll choreography — daylight */
html[data-theme="light"] .showcase-beat {
  border-left-color: rgba(23, 20, 15, 0.11);
}

html[data-theme="light"] .showcase-beat.is-active {
  border-left-color: rgba(152, 115, 58, 0.5);
}

html[data-theme="light"] .showcase-beat::before {
  background: rgba(23, 20, 15, 0.22);
}

html[data-theme="light"] .showcase-beat.is-active::before {
  background: #8a6a35;
  box-shadow:
    0 0 0 4px rgba(152, 115, 58, 0.1),
    0 0 18px rgba(152, 115, 58, 0.45);
}

html[data-theme="light"] .showcase-beat .beat-time {
  color: rgba(23, 20, 15, 0.42);
}

html[data-theme="light"] .showcase-beat.is-active .beat-time {
  color: #8a6a35;
}

html[data-theme="light"] .showcase-beat h3 {
  color: #14110c;
}

html[data-theme="light"] .showcase-beat p {
  color: rgba(23, 20, 15, 0.6);
}

html[data-theme="light"] .showcase-caption {
  color: rgba(138, 106, 53, 0.72);
}

html[data-theme="light"] .showcase-caption span:first-child {
  color: #8a6a35;
}

html[data-theme="light"] .showcase-caption::after {
  background: linear-gradient(90deg, rgba(152, 115, 58, 0.3), transparent);
}

html[data-theme="light"] .showcase[data-beat="0"] .signal-card {
  box-shadow:
    0 0 0 1px rgba(152, 115, 58, 0.3),
    0 16px 42px rgba(120, 92, 48, 0.1);
}

html[data-theme="light"] .showcase[data-beat="1"] .reading-pane {
  box-shadow: inset 0 0 0 1px rgba(152, 115, 58, 0.24);
}

html[data-theme="light"] .showcase[data-beat="1"] .insight-card {
  box-shadow:
    0 0 0 1px rgba(82, 108, 142, 0.28),
    0 16px 42px rgba(82, 108, 142, 0.14);
}

/* Boot sequence — daylight */
html[data-theme="light"] .boot {
  background:
    radial-gradient(ellipse 42% 36% at 50% 46%, rgba(175, 140, 82, 0.16), transparent 72%),
    radial-gradient(ellipse 66% 50% at 50% 104%, rgba(82, 108, 142, 0.1), transparent 70%),
    #f4f0e7;
}

html[data-theme="light"] .boot::after {
  background: linear-gradient(90deg, transparent, rgba(152, 115, 58, 0.6), transparent);
  box-shadow: 0 0 28px 1px rgba(152, 115, 58, 0.25);
}

html[data-theme="light"] .boot-word {
  color: #17140f;
}

html[data-theme="light"] .boot-sigil {
  color: rgba(138, 106, 53, 0.9);
}

html[data-theme="light"] .boot-bar {
  background: rgba(23, 20, 15, 0.14);
}

html[data-theme="light"] .boot-bar i {
  background: linear-gradient(90deg, rgba(152, 115, 58, 0.4), #8e6931);
}

html[data-theme="light"] .boot-meta {
  color: rgba(23, 20, 15, 0.45);
}

html[data-theme="light"] .boot-count {
  color: #8a6a35;
}
