@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Default Daylight Theme: Solution 9 — Fireside Tea & Walnut Craft (围炉慢叙)
   ========================================================================== */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #ede5d8;
  --bg-elevated: #f3ede2;
  --card-bg: #faf6f0;
  --card-border: #d9cdb8;
  --card-border-hover: #b45309;
  --header-bg: rgba(237, 229, 216, 0.93);
  --text: #211b15;
  --text-secondary: #54483d;
  --muted: #6e6052;

  /* Primary & Secondary Accents */
  --accent-primary: #b45309;
  --accent-primary-hover: #92400e;
  --accent-primary-text: #ffffff;
  --accent-secondary: #1d5c63;

  /* Backward-compatible token aliases */
  --accent-cyan: #b45309;
  --accent-purple: #1d5c63;

  /* Component-specific tokens */
  --logo-bg: #3d2c1e;
  --logo-text: #faf6f0;
  --logo-border: #b45309;

  --banner-bg: #fbf3e4;
  --banner-border: #e6cfa7;
  --banner-text: #5c3409;

  --ghost-bg: #f3ede2;
  --ghost-border: #cfc1aa;
  --ghost-text: #2b2118;
  --ghost-hover-bg: #e6dccb;

  --pill-tag-bg: #fef3c7;
  --pill-tag-border: #fde68a;
  --pill-tag-text: #92400e;

  --copy-btn-bg: #3d2c1e;
  --copy-btn-text: #faf6f0;
  --copy-btn-border: #3d2c1e;

  --highlight-link-bg: #eef5f6;
  --highlight-link-border: #c3dce0;
  --highlight-link-text: #1d5c63;
  --highlight-link-hover-bg: #dfeef0;

  --testimonial-bg: #faf6f0;
  --testimonial-hover-bg: #ffffff;
  --testimonial-text: #2b2118;

  --hero-filter: sepia(20%) saturate(95%) brightness(96%);
  --hero-overlay-bg: linear-gradient(to bottom, rgba(38, 28, 18, 0.25) 0%, rgba(38, 28, 18, 0.72) 55%, rgba(30, 22, 14, 0.9) 100%);
  --hero-sub-highlight: #fcd34d;
  --hero-link: #fde68a;

  --radius: 20px;
  --max: 960px;
  --shadow: 0 8px 26px -6px rgba(55, 40, 25, 0.07);
  --shadow-hover: 0 14px 32px -6px rgba(55, 40, 25, 0.12);
}

/* ==========================================================================
   Evening / Dark Theme: Solution 10 — Cozy Evening Chalet (静夜暖灯 · 护眼晚读)
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1815;
  --bg-elevated: rgba(237, 229, 218, 0.04);
  --card-bg: #26211d;
  --card-border: rgba(235, 224, 210, 0.13);
  --card-border-hover: #e07a5f;
  --header-bg: rgba(28, 24, 21, 0.92);
  --text: #ede5da;
  --text-secondary: #b5aa9d;
  --muted: #9c9083;

  /* Primary & Secondary Accents */
  --accent-primary: #e07a5f;
  --accent-primary-hover: #d06549;
  --accent-primary-text: #1c1815;
  --accent-secondary: #81b29a;

  /* Backward-compatible token aliases */
  --accent-cyan: #e07a5f;
  --accent-purple: #81b29a;

  /* Component-specific tokens */
  --logo-bg: #e07a5f;
  --logo-text: #1c1815;
  --logo-border: transparent;

  --banner-bg: rgba(224, 122, 95, 0.1);
  --banner-border: rgba(224, 122, 95, 0.28);
  --banner-text: #f5dcd6;

  --ghost-bg: rgba(237, 229, 218, 0.05);
  --ghost-border: rgba(235, 224, 210, 0.2);
  --ghost-text: #ede5da;
  --ghost-hover-bg: rgba(224, 122, 95, 0.12);

  --pill-tag-bg: rgba(242, 204, 143, 0.13);
  --pill-tag-border: rgba(242, 204, 143, 0.28);
  --pill-tag-text: #f2cc8f;

  --copy-btn-bg: #e07a5f;
  --copy-btn-text: #1c1815;
  --copy-btn-border: #e07a5f;

  --highlight-link-bg: rgba(129, 178, 154, 0.09);
  --highlight-link-border: rgba(129, 178, 154, 0.28);
  --highlight-link-text: #81b29a;
  --highlight-link-hover-bg: rgba(129, 178, 154, 0.16);

  --testimonial-bg: #2c2622;
  --testimonial-hover-bg: #332c27;
  --testimonial-text: #e6ddd0;

  --hero-filter: sepia(25%) brightness(88%) contrast(95%);
  --hero-overlay-bg: linear-gradient(to bottom, rgba(28, 24, 21, 0.3) 0%, rgba(28, 24, 21, 0.76) 55%, rgba(28, 24, 21, 0.94) 100%);
  --hero-sub-highlight: #f2cc8f;
  --hero-link: #f2cc8f;

  --radius: 22px;
  --max: 960px;
  --shadow: 0 12px 32px -8px rgba(10, 8, 6, 0.45);
  --shadow-hover: 0 16px 36px -8px rgba(10, 8, 6, 0.6);
}

/* CSS fallback when JS hasn't run yet and system prefers dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1c1815;
    --bg-elevated: rgba(237, 229, 218, 0.04);
    --card-bg: #26211d;
    --card-border: rgba(235, 224, 210, 0.13);
    --card-border-hover: #e07a5f;
    --header-bg: rgba(28, 24, 21, 0.92);
    --text: #ede5da;
    --text-secondary: #b5aa9d;
    --muted: #9c9083;
    --accent-primary: #e07a5f;
    --accent-primary-hover: #d06549;
    --accent-primary-text: #1c1815;
    --accent-secondary: #81b29a;
    --accent-cyan: #e07a5f;
    --accent-purple: #81b29a;
    --logo-bg: #e07a5f;
    --logo-text: #1c1815;
    --logo-border: transparent;
    --banner-bg: rgba(224, 122, 95, 0.1);
    --banner-border: rgba(224, 122, 95, 0.28);
    --banner-text: #f5dcd6;
    --ghost-bg: rgba(237, 229, 218, 0.05);
    --ghost-border: rgba(235, 224, 210, 0.2);
    --ghost-text: #ede5da;
    --ghost-hover-bg: rgba(224, 122, 95, 0.12);
    --pill-tag-bg: rgba(242, 204, 143, 0.13);
    --pill-tag-border: rgba(242, 204, 143, 0.28);
    --pill-tag-text: #f2cc8f;
    --copy-btn-bg: #e07a5f;
    --copy-btn-text: #1c1815;
    --copy-btn-border: #e07a5f;
    --highlight-link-bg: rgba(129, 178, 154, 0.09);
    --highlight-link-border: rgba(129, 178, 154, 0.28);
    --highlight-link-text: #81b29a;
    --highlight-link-hover-bg: rgba(129, 178, 154, 0.16);
    --testimonial-bg: #2c2622;
    --testimonial-hover-bg: #332c27;
    --testimonial-text: #e6ddd0;
    --hero-filter: sepia(25%) brightness(88%) contrast(95%);
    --hero-overlay-bg: linear-gradient(to bottom, rgba(28, 24, 21, 0.3) 0%, rgba(28, 24, 21, 0.76) 55%, rgba(28, 24, 21, 0.94) 100%);
    --hero-sub-highlight: #f2cc8f;
    --hero-link: #f2cc8f;
    --radius: 22px;
    --shadow: 0 12px 32px -8px rgba(10, 8, 6, 0.45);
    --shadow-hover: 0 16px 36px -8px rgba(10, 8, 6, 0.6);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient glow spheres: hidden in daylight, soft warm candlelight in evening mode */
.glow-sphere-1,
.glow-sphere-2 {
  display: none;
}

[data-theme="dark"] .glow-sphere-1 {
  display: block;
  position: absolute;
  top: -150px;
  left: 10%;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

[data-theme="dark"] .glow-sphere-2 {
  display: block;
  position: absolute;
  top: 400px;
  right: 5%;
  width: min(550px, 85vw);
  height: min(550px, 85vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 204, 143, 0.06) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
