:root {
  --bg: #1c1c1c;
  --surface: #262626;
  --border: #3a3a3a;
  --text: #e4e4e4;
  --muted: #9e9e9e;
  --accent: #87d787;
  --accent-2: #d7d7af;
  --danger: #d75f5f;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f5;
    --surface: #e8e8e8;
    --border: #cfcfcf;
    --text: #1c1c1c;
    --muted: #5a5a5a;
    --accent: #556b2f;
    --accent-2: #6b6b00;
    --danger: #a04040;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a {
  color: var(--muted);
  margin-left: 20px;
  text-decoration: none;
  font-size: 15px;
}

nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 48px 0 64px; }

h1 {
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 22px;
  margin: 40px 0 8px;
  color: var(--accent);
}

h3 { font-size: 18px; margin: 24px 0 4px; }

p, li { color: var(--text); }

.lede {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 28px;
}

.clock {
  font: 700 clamp(56px, 16vw, 96px)/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--accent);
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 20px 0;
}

.card p:first-child, .card ul:first-child { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

ul { padding-left: 1.2em; }
li { margin: 6px 0; }

a { color: var(--accent); }

.pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

a.pill:hover { background: var(--accent); color: var(--bg); }

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer .wrap { padding-top: 20px; padding-bottom: 32px; }
footer a { color: var(--muted); }

.updated { color: var(--muted); font-size: 15px; }
