:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f7f7f5;
  --text: #1a1a18;
  --muted: #5c5c56;
  --border: #e2e2dd;
  --accent: #7a4a1e;
  --accent-soft: #f3ece4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1c1c1a;
    --text: #ececea;
    --muted: #a1a19a;
    --border: #2e2e2b;
    --accent: #d9a273;
    --accent-soft: #262119;
  }
}
* { 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, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }

header.masthead {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.6rem;
}
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -0.02em; }
h2 {
  font-size: 1.25rem;
  margin: 3rem 0 0.9rem;
  letter-spacing: -0.01em;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 1rem; margin: 1.9rem 0 0.5rem; color: var(--text); }
p, li { color: var(--text); }
ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
strong { font-weight: 600; }
a { color: var(--accent); text-underline-offset: 2px; }

dl.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0;
  font-size: 0.9rem;
}
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

.lede { font-size: 1.05rem; color: var(--muted); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; min-width: 30rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:last-child td { border-bottom: none; }

footer.contact {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--muted);
}
footer.contact address { font-style: normal; }
footer.contact .name { color: var(--text); font-weight: 600; }
