/* The blog's whole design system. One static file because `style-src 'self'`
   forbids inline styles, and a stylesheet built from tenant data would be a
   stylesheet a tenant can inject into.

   No webfont: `font-src 'self'` and a self-hosted font would be a network
   round trip on a page whose only job is to render text fast. The stack starts
   at the same Geist the dashboard uses when the reader happens to have it. */

:root {
  --bg: #f7f9f7;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #69736d;
  --line: #e2e7e3;
  --green: #18794e;
  --green-dark: #105d3b;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Geist, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

main, .masthead, .footer {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 24px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.logo { border-radius: var(--radius); object-fit: contain; }

.source { color: var(--muted); font-size: 15px; text-decoration: none; }
.source:hover { color: var(--green-dark); }

main { padding-top: 40px; padding-bottom: 64px; }

h1 { font-size: 2rem; font-weight: 600; line-height: 1.25; text-wrap: balance; margin: 0 0 12px; }
h2 { font-size: 1.4rem; font-weight: 600; margin: 40px 0 12px; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 32px 0 8px; }

p { text-wrap: pretty; margin: 0 0 20px; }

.lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }
.empty { color: var(--muted); }

a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--green); }

/* Index list: bordered rows, not a card grid (DESIGN.md anti-reference). */
.index { list-style: none; margin: 0; padding: 0; }
.index li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.index a { font-weight: 500; text-decoration: none; }
.index a:hover { text-decoration: underline; }

time {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

article time { display: block; margin-bottom: 32px; }

article img { max-width: 100%; height: auto; border-radius: var(--radius); }

blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

.footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

.status { padding-top: 96px; text-align: center; }
.status p { color: var(--muted); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
