:root {
  --bg: #0f1216;
  --surface: #181c22;
  --border: #2c333d;
  --text: #eceef1;
  --muted: #a3acb8;
  --accent: #6fd3b8;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --border: #dbe1e6;
  --text: #12171c;
  --muted: #55606c;
  --accent: #0e8366;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
header img { width: 44px; height: 44px; border-radius: 10px; }
header a { color: var(--text); font-weight: 600; text-decoration: none; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 36px 0 8px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
a { color: var(--accent); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.card p { margin: 0; }
nav { margin-top: 48px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }

header .theme-toggle { margin-left: auto; }
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon, :root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* Words on the theme button: shows the mode you switch to. */
.theme-toggle { width: auto; padding: 0 12px; gap: 7px; display: inline-flex; align-items: center; font: inherit; font-size: 14px; font-weight: 600; }
.theme-toggle .w-dark, :root[data-theme="light"] .theme-toggle .w-light { display: none; }
:root[data-theme="light"] .theme-toggle .w-dark { display: inline; }
