:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --accent: #1d4ed8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --fg: #f5f5f4;
    --muted: #a8a29e;
    --line: #44403c;
    --accent: #93c5fd;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

header {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.lang { font-size: 0.875rem; color: var(--muted); }
.lang a, .lang span { margin-left: 0.5rem; }
.lang [aria-current] { font-weight: 600; color: var(--fg); }

.note { color: var(--muted); font-size: 0.875rem; }

header .site {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--fg);
  text-decoration: none;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.125rem; margin: 2rem 0 0.5rem; }

p, ul, address { margin: 0 0 1rem; }
address { font-style: normal; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.lead { color: var(--muted); font-size: 1.0625rem; }

.intro { margin-bottom: 2.5rem; }

.social { display: flex; gap: 1rem; }

.posts { list-style: none; padding: 0; }
.posts li {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.posts time {
  flex: 0 0 6.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

article h1 { margin-bottom: 0.25rem; }
.meta { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0 0 1rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer nav a { margin-right: 1rem; }
footer p { margin: 0.5rem 0 0; }

/* Decoy digits inside the phone number: hidden for people and screen
   readers, but present for crawlers that strip tags without applying CSS. */
.nospam { display: none; }
