:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #fdfdfc;
  --rule: #e4e2dd;
  --accent: #8a5a2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e9e7e2;
    --muted: #9a968e;
    --bg: #14140f;
    --rule: #2a2a24;
    --accent: #d9a066;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 44rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 ui-serif, Charter, "Iowan Old Style", Georgia, serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.brand { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }

nav { display: flex; gap: 1rem; font: 14px/1.4 ui-sans-serif, system-ui, sans-serif; color: var(--muted); }

h1, h2, h3 { font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.015em; }
h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 2.75rem 0 1rem; font-weight: 600; }

.intro p { font-size: 1.1rem; }
.intro p:first-child { margin-top: 0; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 6px; }
.card a { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; text-decoration: none; }
.card-name { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600; }
.card-kind { font: 11px/1 ui-sans-serif, system-ui, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.card p { margin: 0.4rem 0 0.5rem; font-size: 0.9rem; color: var(--fg); }
.host { font: 12px/1 ui-monospace, SFMono-Regular, monospace; color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; }
.list a:hover { text-decoration: underline; }

.meta { font: 12px/1 ui-sans-serif, system-ui, sans-serif; color: var(--muted); margin-left: auto; }
.desc { font-size: 0.9rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.95rem; }

footer { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--muted); }
.sep { padding: 0 0.35rem; }

article p, article li { hyphens: auto; }
