:root {
  --bg: #faf9f7; --text: #22262d; --muted: #64707d;
  --accent: #0f766e; --border: #e7e4de; --surface: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181d; --text: #e8e6e1; --muted: #9aa4af;
    --accent: #45c4b5; --border: #2a2f37; --surface: #1c2027;
  }
}
* { box-sizing: border-box; }
body {
  max-width: 42rem; margin: 0 auto; padding: 0 1.25rem 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.7;
  background: var(--bg); color: var(--text);
}
@media (min-width: 40rem) { body { font-size: 1.125rem; } }

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

header.site { padding: 1rem 0 0.75rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; flex: none; }

h1 { font-size: clamp(1.6rem, 5.5vw, 2rem); line-height: 1.25;
  letter-spacing: -0.02em; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; }
article ul, article ol { padding-left: 1.25rem; margin: 0 0 1rem; }
article li { margin: 0.25rem 0; }

.meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.5rem; }

.aff-note { font-size: 0.85rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem 0.75rem; margin: 0 0 1.5rem; }
.aff-note a { color: var(--muted); }

a.aff { display: inline-block; padding: 0 0.6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent); font-weight: 600; text-decoration: none; }
a.aff::after { content: " ↗"; opacity: 0.7; }
a.aff:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }

.hero { margin: 0.5rem 0 1rem; }
.hero .tagline { color: var(--muted); font-size: 1rem; margin: 0; }
.pl-head { font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin: 2.5rem 0 0; }
ul.postlist { list-style: none; padding: 0; margin: 0; }
ul.postlist li { border-bottom: 1px solid var(--border); }
ul.postlist a { display: block; padding: 1rem 0; text-decoration: none;
  color: var(--text); }
.pl-title { display: block; font-weight: 650; line-height: 1.35;
  color: var(--accent); }
ul.postlist a:hover .pl-title { text-decoration: underline;
  text-underline-offset: 3px; }
.pl-desc { display: block; color: var(--muted); font-size: 0.95rem;
  line-height: 1.55; margin-top: 0.25rem; }
.pl-meta { display: block; color: var(--muted); font-size: 0.8rem;
  margin-top: 0.35rem; }

footer { margin-top: 4rem; padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted); }
footer a { color: var(--muted); }
