/* Light for every visitor, whatever the system setting (founder, 12 Nov); dark only by the visitor's own choice, made
   with the toggle here or on alphapinelab.com and carried by theme.js (the ap_theme cookie), which sets data-theme on
   <html> before first paint. The Terminal app's own theme is its own setting and is not touched. */
:root { color-scheme: light; --bg: #ffffff; --text: #1d1f24; --muted: #5d6675; --line: #e3e7ee; --accent: #1f6fe5; --warn-bg: #fff6e0; --warn: #8a5a00; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #0a0d12; --text: #dfe4ea; --muted: #8b95a5; --line: #1e2530; --accent: #4a9bff; --warn-bg: #2a2110; --warn: #f0b429; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 Inter, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
header a { color: var(--muted); text-decoration: none; font-size: 13px; }
h1 { margin: 18px 0 4px; font-size: 30px; letter-spacing: -0.02em; }
h2 { margin: 34px 0 8px; font-size: 18px; }
p, li { color: var(--text); }
.meta { color: var(--muted); font-size: 13px; }
.draft { margin: 18px 0; padding: 12px 16px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; }
a { color: var(--accent); }
nav.legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
/* The theme toggle: shown only when theme.js runs. */
.theme-toggle { display: none; flex: none; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.theme-toggle svg { display: block; }
.theme-toggle:hover, .theme-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-js .theme-toggle { display: grid; }
