@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("/fonts/Inter_300Light.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/Inter_500Medium.ttf") format("truetype"); }
:root {
  --bg: #f9f8f6;
  --card: #ffffff;
  --text: #3c3c3b;
  --muted: #5f5e5b;
  --link: #4f6a4b;
  --line: rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #262a26;
    --card: #30352f;
    --text: #e7e5e0;
    --muted: #c2bfb9;
    --link: #b9cdb5;
    --line: rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  --bg: #262a26;
  --card: #30352f;
  --text: #e7e5e0;
  --muted: #c2bfb9;
  --link: #b9cdb5;
  --line: rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.top, main, footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px; }
.brand img { border-radius: 8px; }
main { padding-top: 32px; padding-bottom: 48px; }
h1 { font-weight: 300; letter-spacing: -0.02em; font-size: clamp(28px, 6vw, 38px); line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 19px; font-weight: 500; margin: 32px 0 8px; }
p, li { color: var(--muted); }
.intro { color: var(--text); font-size: 18px; }
.updated { font-size: 14px; margin-top: 0; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
section { border-top: 1px solid var(--line); margin-top: 24px; }
footer { padding-bottom: 40px; font-size: 14px; color: var(--muted); }
button { font: inherit; font-size: 16px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer; }
button:hover { border-color: var(--link); }
button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Light/dark switch at the top (theme.js). The icon shows where it will take you. */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 160ms, background-color 160ms; }
.theme-toggle:hover { color: var(--ink, var(--text)); background: var(--step, var(--card)); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
