/* Shared styles for the static pages (about, contact, sourcing, privacy,
   terms) and the edge-rendered editorial pages. Tokens mirror the SPA's
   Day/Night themes (src/index.css); the pre-paint theme script in each
   page sets data-theme before this loads. */
:root {
  color-scheme: light;
  --bg: #faf9f5;
  --surface: #ffffff;
  --border: #e6e4db;
  --text: #14140d;
  --text-muted: #7d7c74;
  --accent: #e24a1c;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d11;
  --surface: #17171d;
  --border: #26262d;
  --text: #f3f3ef;
  --text-muted: #8f8f98;
  --accent: #5dcaa5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
header {
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.wordmark {
  font-family: "Space Grotesk Variable", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark span {
  color: var(--accent);
}
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
h1,
h2 {
  font-family: "Space Grotesk Variable", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h1 {
  font-size: 1.9rem;
  margin: 0 0 0.25rem;
}
h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.5rem;
}
.effective {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
a {
  color: var(--accent);
}
ul {
  padding-left: 1.25rem;
}
li {
  margin: 0.35rem 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  margin: 1rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  min-width: 34rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border-bottom: none;
}
th {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
td:first-child {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  white-space: nowrap;
}
.page-footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.page-footer a {
  color: var(--text-muted);
}
.byline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.byline a {
  color: inherit;
}
.lede {
  font-size: 1.1rem;
  line-height: 1.55;
}
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0.6rem;
  background: var(--surface);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}
.callout p {
  margin: 0.25rem 0;
}
dl {
  margin: 1rem 0;
}
dt {
  font-weight: 600;
  margin-top: 1rem;
}
dd {
  margin: 0.25rem 0 0;
}
.post-list {
  list-style: none;
  padding: 0;
}
.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}
.post-list h2 a {
  color: var(--text);
  text-decoration: none;
}
.post-list h2 a:hover {
  text-decoration: underline;
}
.post-list .byline {
  margin: 0 0 0.4rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
