:root {
  --bg: #f6f6f2;
  --fg: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #2b3a4a;
  --rule: #d8d6d0;
  --code-bg: #ebeae4;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141a;
    --fg: #e8e6df;
    --muted: #8a8d94;
    --accent: #8fb0dd;
    --rule: #2a2c32;
    --code-bg: #1b1d23;
  }
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
.mono, nav, .label, .tag, code, pre {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
h2 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 0.5rem; }
h3 { font-size: 0.95rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--muted); }

p { margin: 0.75rem 0; }

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

hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.9rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
}
.site-head .brand {
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-head .brand:hover { color: var(--accent); }
.site-head nav { display: flex; gap: 1.1rem; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--accent); }
.site-head nav a.active { color: var(--fg); }

.status-line {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  margin: 1.25rem 0 2rem;
  display: inline-block;
}

.entry {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
}
.entry:last-child { border-bottom: none; }
.entry .entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.entry h3 { margin: 0; color: var(--fg); font-size: 1rem; }
.entry .status {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}
.entry .status.live { color: var(--accent); border-color: var(--accent); }

dl.facts { font-size: 0.85rem; margin: 1rem 0; }
dl.facts div { display: grid; grid-template-columns: 9rem 1fr; padding: 0.3rem 0; border-bottom: 1px dashed var(--rule); }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
