:root {
  --bg: #ffffff;
  --surface: #f3f5f8;
  --text: #0f1216;
  --muted: #5b6370;
  --line: #e2e6ec;
  --accent: #0a6cf0;
  --accent-text: #ffffff;
  --warn: #b7791f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #161a22;
    --text: #f2f4f7;
    --muted: #a0a8b5;
    --line: #262c37;
    --accent: #4d9bff;
    --accent-text: #06101f;
    --warn: #f0b429;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, system-ui, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
header.site .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
header.site .brand img { width: 34px; height: 34px; border-radius: 8px; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.1; margin: 28px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 34px 0 8px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; }
.button {
  display: inline-block; padding: 13px 20px; border-radius: 999px; background: var(--accent);
  color: var(--accent-text); font-weight: 650; text-decoration: none;
}
.button.secondary { background: var(--surface); color: var(--text); }
.card { background: var(--surface); border-radius: 18px; padding: 18px; margin: 14px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 14px; }
.day { border-left: 5px solid var(--accent); padding-left: 14px; margin: 22px 0; }
.day h2 { margin: 0 0 2px; font-size: 21px; }
.day ol { margin: 10px 0 6px; padding-left: 22px; }
.day li { margin: 4px 0; }
.sleep { font-weight: 600; margin-top: 8px; }
.pill { display: inline-block; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); }
@media (max-width: 420px) { header.site nav a { margin-left: 10px; } }
