:root {
  --bg: #fbfaf7;
  --text: #1d2321;
  --muted: #5b6662;
  --rule: #dcd9d1;
  --accent: #1f5d63;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141817;
    --text: #e6e8e4;
    --muted: #a2aba7;
    --rule: #2f3634;
    --accent: #7cc4c9;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand a { color: inherit; text-decoration: none; }

nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 2.5rem 1rem 3rem; }

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.3rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }

p { margin: 0 0 0.85rem; }

.intro p { font-size: 1.125rem; }

.item + .item { margin-top: 1.75rem; }

.note { color: var(--muted); font-size: 0.95rem; }

.details {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
}

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

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }
