/* Shower Thoughts 4-Stone Architectural Design Tokens
   Synced via localStorage ('showerthoughts_theme') with the 3D shower stall */

:root,
:root[data-theme="travertine"] {
  color-scheme: light;

  /* Warm Morning Travertine (default, matches 3D homepage) */
  --bg: #f4efe6;
  --bg-elevated: #ece5d9;
  --bg-card: #fbf8f2;
  --bg-card-top: #f2ece1;
  --bg-glass: rgba(244, 239, 230, 0.84);
  --bg-glass-strong: rgba(251, 248, 242, 0.94);
  --bg-code: #211d19;
  --bg-code-top: #2b2621;
  --code-ink: #efe7d8;
  --code-muted: #aba193;

  /* Ink */
  --ink: #1e1a16;
  --ink-secondary: #564e44;
  --ink-tertiary: #847a6d;
  --ink-inverse: #faf6ef;

  /* Borders & Specular */
  --line: rgba(30, 26, 22, 0.11);
  --line-strong: rgba(30, 26, 22, 0.21);
  --line-accent: rgba(154, 105, 62, 0.44);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --shadow-card: 0 12px 34px rgba(34, 26, 18, 0.07);
  --shadow-elevated: 0 22px 56px rgba(34, 26, 18, 0.12);
  --ambient-glow: rgba(196, 146, 98, 0.13);

  /* Accents */
  --accent: #9a693e;
  --accent-soft: rgba(154, 105, 62, 0.12);
  --live: #237445;
  --live-bg: rgba(35, 116, 69, 0.10);
  --live-border: rgba(35, 116, 69, 0.28);

  /* Typography */
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layout & Motion */
  --max-width: 1060px;
  --gutter: clamp(18px, 4vw, 36px);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  --ease-spring: cubic-bezier(0.22, 1.12, 0.36, 1);
}

:root[data-theme="terracotta"] {
  color-scheme: light;

  --bg: #f3e8df;
  --bg-elevated: #eadad0;
  --bg-card: #faf3ed;
  --bg-card-top: #f0e2d8;
  --bg-glass: rgba(243, 232, 223, 0.85);
  --bg-glass-strong: rgba(250, 243, 237, 0.95);
  --bg-code: #261b17;
  --bg-code-top: #32241f;
  --code-ink: #f3e8de;
  --code-muted: #b59e92;

  --ink: #241814;
  --ink-secondary: #5f453b;
  --ink-tertiary: #8d6e62;
  --ink-inverse: #faf3ed;

  --line: rgba(36, 24, 20, 0.11);
  --line-strong: rgba(36, 24, 20, 0.22);
  --line-accent: rgba(166, 83, 54, 0.45);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --shadow-card: 0 12px 34px rgba(52, 26, 16, 0.08);
  --shadow-elevated: 0 22px 56px rgba(52, 26, 16, 0.14);
  --ambient-glow: rgba(196, 114, 82, 0.15);

  --accent: #a65336;
  --accent-soft: rgba(166, 83, 54, 0.12);
  --live: #2a7448;
  --live-bg: rgba(42, 116, 72, 0.11);
  --live-border: rgba(42, 116, 72, 0.28);
}

:root[data-theme="emerald"] {
  color-scheme: dark;

  --bg: #0b140f;
  --bg-elevated: #111f17;
  --bg-card: #13221a;
  --bg-card-top: #182b21;
  --bg-glass: rgba(11, 20, 15, 0.84);
  --bg-glass-strong: rgba(19, 34, 26, 0.94);
  --bg-code: #08100c;
  --bg-code-top: #111f17;
  --code-ink: #ece4d4;
  --code-muted: #909488;

  --ink: #f3ecde;
  --ink-secondary: #c0bbaa;
  --ink-tertiary: #878578;
  --ink-inverse: #0c1510;

  --line: rgba(243, 236, 222, 0.12);
  --line-strong: rgba(243, 236, 222, 0.24);
  --line-accent: rgba(204, 160, 110, 0.48);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --shadow-card: 0 14px 38px rgba(0, 0, 0, 0.34);
  --shadow-elevated: 0 24px 62px rgba(0, 0, 0, 0.50);
  --ambient-glow: rgba(204, 160, 110, 0.10);

  --accent: #cca06e;
  --accent-soft: rgba(204, 160, 110, 0.15);
  --live: #7ad39c;
  --live-bg: rgba(29, 86, 52, 0.36);
  --live-border: rgba(122, 211, 156, 0.34);
}

:root[data-theme="basalt"] {
  color-scheme: dark;

  --bg: #101318;
  --bg-elevated: #171b22;
  --bg-card: #1a1f27;
  --bg-card-top: #212731;
  --bg-glass: rgba(16, 19, 24, 0.84);
  --bg-glass-strong: rgba(26, 31, 39, 0.94);
  --bg-code: #0c0e12;
  --bg-code-top: #171b22;
  --code-ink: #eaedf2;
  --code-muted: #8a929e;

  --ink: #eef0f4;
  --ink-secondary: #b5bcc7;
  --ink-tertiary: #7e8694;
  --ink-inverse: #101318;

  --line: rgba(238, 240, 244, 0.12);
  --line-strong: rgba(238, 240, 244, 0.24);
  --line-accent: rgba(201, 160, 110, 0.48);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --shadow-card: 0 14px 38px rgba(0, 0, 0, 0.38);
  --shadow-elevated: 0 24px 62px rgba(0, 0, 0, 0.54);
  --ambient-glow: rgba(154, 174, 204, 0.09);

  --accent: #c9a06e;
  --accent-soft: rgba(201, 160, 110, 0.15);
  --live: #7ad39c;
  --live-bg: rgba(29, 86, 52, 0.34);
  --live-border: rgba(122, 211, 156, 0.32);
}
