:root {
  color-scheme: light dark;
  --bg: #f8f7f3;
  --text: #1a1a18;
  --muted: #5e5a52;
  --line: #ded9cb;
  --ink: #1b4b72;
  --ink-hover: #0e304d;
  --card: #ffffff;
  --call: #eaf1f7;
  --warn: #6e4c12;
  --warn-bg: #fdf3dc;
  --accent: #2e604a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13171a;
    --text: #edeae2;
    --muted: #aba394;
    --line: #2e363e;
    --ink: #8bbce5;
    --ink-hover: #b2d5f5;
    --card: #1c2227;
    --call: #192734;
    --warn: #f0cf85;
    --warn-bg: #2d2616;
    --accent: #5db38e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 48rem;
  padding: 1.25rem 1.15rem 4rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink-hover); text-decoration-thickness: 2px; }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 1rem; z-index: 1000; border: 2px solid var(--ink); }
header.site { margin-bottom: 1.8rem; }
.mark {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  font-weight: 700;
}
.mark a { text-decoration: none; color: inherit; }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.93rem;
}
nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.35rem); line-height: 1.18; margin: 0.3rem 0 0.5rem; font-weight: 700; }
h2 { font-size: 1.35rem; margin-top: 2.2rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }
.lede { font-size: 1.18rem; line-height: 1.55; margin-bottom: 0.8rem; }
.muted, .byline { color: var(--muted); font-size: 0.92rem; }
.pill {
  display: inline-block;
  margin: 0.4rem 0 0.8rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
}
.call, .card, .warn, .case-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  margin: 1.2rem 0;
  border-radius: 4px;
}
.call { background: var(--call); border-left: 4px solid var(--ink); }
.warn { background: var(--warn-bg); color: var(--warn); border-left: 4px solid var(--warn); }
.case-card { border-left: 4px solid var(--accent); }
.call p:last-child, .card p:last-child, .warn p:last-child, .case-card p:last-child { margin-bottom: 0; }
blockquote {
  margin: 1.2rem 0;
  padding: 0.3rem 0 0.3rem 1.1rem;
  border-left: 3px solid var(--ink);
  font-style: italic;
  color: var(--muted);
}
blockquote p { margin: 0.3rem 0; color: var(--text); }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.4rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.2rem 0; }
th, td { text-align: left; vertical-align: top; border-top: 1px solid var(--line); padding: 0.55rem 0.45rem; }
th { font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 0.9em; background: var(--call); padding: 0.15em 0.35em; border-radius: 2px; }
pre code { background: none; padding: 0; }
pre { background: var(--card); border: 1px solid var(--line); padding: 0.8rem; overflow-x: auto; font-size: 0.88rem; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.meta-item { background: var(--card); border: 1px solid var(--line); padding: 0.6rem 0.8rem; border-radius: 3px; font-size: 0.9rem; }
.meta-label { font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); display: block; margin-bottom: 0.2rem; }
@media (max-width: 42rem) {
  body { padding: 1rem 0.9rem 3rem; }
  table, thead, tbody, tr, th, td { display: block; }
  th { padding-bottom: 0; }
}
