/* humbleha.us — shared experiment chrome (nav, dark toggle, donation block).
   Every experiment page MUST include the standard chrome per CLAUDE.md; this
   stylesheet is the single copy of its styles. Load with:

     <link rel="preload" href="/experiments.css" as="style">
     <link rel="stylesheet" href="/experiments.css">

   New experiments get this automatically via scripts/new-experiment.mjs.
   Existing experiments migrate opportunistically (no forced sweep — see the
   externalize-by-default policy, 2026-05-13). Page-specific styles stay in
   the page or its local stylesheet — this file is chrome only.

   Extracted 2026-06-10 from the scaffolder template so scaffold output is
   visually identical. Mobile rules satisfy CLAUDE.md responsiveness: nav
   never wraps, 44px tap targets, reduced padding under 540px. */

:root {
  --bg: #f6f5f1; --bg-card: #ffffff; --text: #111110; --text-muted: #4a4844;
  --border: #e5e3dd; --accent: #e8531a; --accent-bg: #fef0ea;
}
[data-dark="true"] {
  --bg: #0e0d0b; --bg-card: #211f1b; --text: #f0ede6; --text-muted: #a09e97;
  --border: #2e2b26; --accent: #f06535; --accent-bg: #1c0e07;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); }

/* ── Standard nav ── */
nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); }
@media (max-width: 540px) { nav { padding: 0.75rem 1rem; } }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 1; min-width: 0; }
.nav-brand a { color: inherit; text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.donate-link { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; white-space: nowrap; position: relative; }
.donate-link::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; min-width: 44px; height: 44px; transform: translateY(-50%); }
.dark-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; position: relative; }
.dark-toggle::after { content: '☀️'; }
.dark-toggle::before { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
[data-dark="true"] .dark-toggle::after { content: '🌙'; }
.exp-badge { font-family: ui-monospace, Menlo, monospace; font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 0.25rem; background: var(--accent-bg); color: var(--accent); flex-shrink: 0; letter-spacing: 0.08em; }

/* ── Ko-fi donation block ── */
.donation-block { max-width: min(600px, calc(100% - 2rem)); margin: 3rem auto 1.5rem; text-align: center; padding: 1.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 1.25rem; }
.donation-text { color: var(--text-muted); margin-bottom: 0.875rem; font-size: 0.875rem; }
.donation-btn { display: inline-block; padding: 0.7rem 1.75rem; min-height: 44px; background: var(--accent); color: #fff; border-radius: 9999px; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: opacity 0.15s; }
[data-dark="true"] .donation-btn { color: #0c0a09; }
.donation-btn:hover { opacity: 0.88; }
