:root {
  --background: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --text-muted: #5f5c55;
  --border: #e4e0d8;
  --accent: #3f6b4f;
  --accent-soft: #e6efe8;
  --warning-soft: #fbf1dc;
  --measure: 42rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #151513;
    --surface: #1d1d1a;
    --text: #ecebe6;
    --text-muted: #a9a69d;
    --border: #34332f;
    --accent: #8fc2a0;
    --accent-soft: #223027;
    --warning-soft: #2f2a1c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: #151513;
  --surface: #1d1d1a;
  --text: #ecebe6;
  --text-muted: #a9a69d;
  --border: #34332f;
  --accent: #8fc2a0;
  --accent-soft: #223027;
  --warning-soft: #2f2a1c;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.5rem;
}

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

h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

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

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout.warning {
  background: var(--warning-soft);
}

.callout > :last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cards li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.cards a {
  font-weight: 600;
}

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