:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #e3e3e3;
  --accent: #c9a25a;
  --card-bg: #fafafa;
  --code-bg: #f1f1f1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --fg: #e8e8e8;
    --muted: #9aa0a6;
    --rule: #2a2f37;
    --accent: #d4af6a;
    --card-bg: #1b1f26;
    --code-bg: #20252d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

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

header.site .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

header.site h1 {
  font-size: 1.85rem;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

header.site .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

nav.back {
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

nav.back a {
  color: var(--accent);
  text-decoration: none;
}

nav.back a:hover { text-decoration: underline; }

h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.6rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--fg);
}

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

ul, ol { padding-left: 1.4rem; }

li { margin-bottom: 0.35rem; }

a { color: var(--accent); }

strong { color: var(--fg); }

code {
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.placeholder {
  background: var(--code-bg);
  border: 1px dashed var(--accent);
  padding: 0.05em 0.45em;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent);
}

.identity {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.identity dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
}

.identity dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.identity dd { margin: 0; }

.doc-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.doc-list li {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--card-bg);
}

.doc-list a {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.doc-list a:hover { text-decoration: underline; }

.doc-list .summary {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.notice {
  border-left: 3px solid var(--accent);
  background: var(--card-bg);
  padding: 0.85rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

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

footer.site a { color: var(--muted); }
