:root {
  --bg: #fbfaf7;
  --text: #1f1d1a;
  --muted: #6b665e;
  --rule: #e4e0d8;
  --accent: #8a2b2b;
  --accent-hover: #5e1c1c;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --text: #e8e4dc;
    --muted: #9b958b;
    --rule: #2e2b28;
    --accent: #d9897e;
    --accent-hover: #f0b0a6;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

/* ---------- Header / nav ---------- */

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

.site-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- Typography ---------- */

h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 3rem 0 1rem;
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Intro ---------- */

.intro { margin-bottom: 2rem; }

@media (max-width: 34rem) {
  .page { padding-top: 2.5rem; }
  h1 { font-size: 2rem; }
}

/* ---------- Lists ---------- */

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}

.plain-list li:last-child { border-bottom: 1px solid var(--rule); }

.item-title { display: block; }

.item-meta {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
}

.contact dl {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.contact dt { color: var(--muted); }
.contact dd { margin: 0; }

@media (max-width: 34rem) {
  .contact dl { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: 0.6rem; }
}

.empty {
  color: var(--muted);
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
