/* Tidyfox brand tokens (same names as the Atomica guides theme), light and dark.
   Dark applies with [data-theme="dark"], or with the OS setting unless [data-theme="light"]. */
:root {
  --bg: #faf8f6; --bg-soft: #f4f1ed; --bg-sunken: #efebe6; --surface: #ffffff;
  --ink: #1d1823; --text: #322c38; --muted: #645d6b; --faint: #8d8693;
  --line: #e8e3dd; --line-strong: #d8d1c9;
  --orange: #ea580c; --accent: #c2410c; --accent-ink: #9a3412; --accent-soft: #fff1e7; --accent-line: #fdc9a4;
  --ok: #15803d; --ok-soft: #ecf8f0; --ok-line: #b6e2c4;
  --warn: #a16207; --warn-soft: #fdf6e3; --warn-line: #f0d48c;
  --danger: #b91c1c; --danger-soft: #fdeeee;
  --tip: #6d4aa8; --tip-soft: #f3eefb; --tip-line: #d9c9f2;
  --code-bg: #1d1823; --code-ink: #f1edf5; --code-muted: #a49cab; --code-line: #2f2836; --inline-code-bg: #f1ece6;
  --shadow: 0 1px 2px rgb(29 24 35 / 6%); --shadow-lg: 0 14px 36px rgb(29 24 35 / 14%);
  --radius: 8px; --radius-sm: 4px; --topbar: 64px; --sidebar: 280px; --toc: 224px;
  --font: Inter, "Segoe UI", Arial, sans-serif;
  --display: "Instrument Sans", Inter, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --d-box: #ffffff; --d-box-line: #d8d1c9; --d-text: #322c38; --d-muted: #645d6b;
  --d-accent: #ea580c; --d-accent-soft: #fff1e7; --d-green: #15803d; --d-green-soft: #ecf8f0;
  --d-amber: #a16207; --d-amber-soft: #fdf6e3; --d-rose: #b91c1c; --d-rose-soft: #fdeeee; --d-teal: #6d4aa8; --d-teal-soft: #f3eefb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16131a; --bg-soft: #1b1720; --bg-sunken: #221d28; --surface: #1d1923;
    --ink: #f4f0f7; --text: #ddd7e2; --muted: #b1a9b9; --faint: #847c8c; --line: #2c2733; --line-strong: #3b3443;
    --orange: #fb923c; --accent: #fb923c; --accent-ink: #fdba74; --accent-soft: #2a1d16; --accent-line: #5c3418;
    --ok: #4ade80; --ok-soft: #13261a; --ok-line: #285236; --warn: #fbbf24; --warn-soft: #2a2210; --warn-line: #5a4519;
    --danger: #f87171; --danger-soft: #2c1515; --tip: #c4a8f0; --tip-soft: #211a2c; --tip-line: #43345c;
    --code-bg: #110e14; --code-ink: #f1edf5; --code-muted: #948c9b; --code-line: #2a2430; --inline-code-bg: #29232f;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%); --shadow-lg: 0 14px 36px rgb(0 0 0 / 50%);
    --d-box: #1d1923; --d-box-line: #3b3443; --d-text: #ddd7e2; --d-muted: #b1a9b9; --d-accent: #fb923c; --d-accent-soft: #2a1d16;
    --d-green: #4ade80; --d-green-soft: #13261a; --d-amber: #fbbf24; --d-amber-soft: #2a2210; --d-rose: #f87171; --d-rose-soft: #2c1515;
    --d-teal: #c4a8f0; --d-teal-soft: #211a2c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16131a; --bg-soft: #1b1720; --bg-sunken: #221d28; --surface: #1d1923;
  --ink: #f4f0f7; --text: #ddd7e2; --muted: #b1a9b9; --faint: #847c8c; --line: #2c2733; --line-strong: #3b3443;
  --orange: #fb923c; --accent: #fb923c; --accent-ink: #fdba74; --accent-soft: #2a1d16; --accent-line: #5c3418;
  --ok: #4ade80; --ok-soft: #13261a; --ok-line: #285236; --warn: #fbbf24; --warn-soft: #2a2210; --warn-line: #5a4519;
  --danger: #f87171; --danger-soft: #2c1515; --tip: #c4a8f0; --tip-soft: #211a2c; --tip-line: #43345c;
  --code-bg: #110e14; --code-ink: #f1edf5; --code-muted: #948c9b; --code-line: #2a2430; --inline-code-bg: #29232f;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%); --shadow-lg: 0 14px 36px rgb(0 0 0 / 50%);
  --d-box: #1d1923; --d-box-line: #3b3443; --d-text: #ddd7e2; --d-muted: #b1a9b9; --d-accent: #fb923c; --d-accent-soft: #2a1d16;
  --d-green: #4ade80; --d-green-soft: #13261a; --d-amber: #fbbf24; --d-amber-soft: #2a2210; --d-rose: #f87171; --d-rose-soft: #2c1515;
  --d-teal: #c4a8f0; --d-teal-soft: #211a2c;
  color-scheme: dark;
}

/* Tidyfox additions */
.brand-mark img { display: block; width: 34px; height: 34px }
.word { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink) }
.word b { color: var(--orange) }
.download-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; background: var(--orange); color: #fff !important; font-weight: 650; text-decoration: none !important; box-shadow: var(--shadow-lg) }
.download-btn:hover { filter: brightness(1.06) }
.download-btn svg { width: 18px; height: 18px }
.download-meta { color: var(--muted); font-size: 13px; margin-top: 10px }
.hero-logo { width: 88px; height: 88px; margin-bottom: 8px }
.shot { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin: 18px 0 8px }
.shot + .caption { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 18px }
