:root {
  --ink: #16181d; --ink-soft: #4a4f5a; --line: #e3e5ea;
  --bg: #ffffff; --bg-soft: #f7f8fa;
  --accent: #7d2a3f; --accent-soft: #fdf4f6;
  --warn-bg: #fffbf0; --warn-line: #e8d9b0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaee; --ink-soft: #a6acb8; --line: #2b2f38;
    --bg: #14161a; --bg-soft: #1b1e24;
    --accent: #e8879e; --accent-soft: #24191d;
    --warn-bg: #201c14; --warn-line: #4a4029;
  }
}
:root[data-theme="dark"] {
  --ink: #e8eaee; --ink-soft: #a6acb8; --line: #2b2f38;
  --bg: #14161a; --bg-soft: #1b1e24; --accent: #e8879e; --accent-soft: #24191d;
  --warn-bg: #201c14; --warn-line: #4a4029;
}
:root[data-theme="light"] {
  --ink: #16181d; --ink-soft: #4a4f5a; --line: #e3e5ea;
  --bg: #ffffff; --bg-soft: #f7f8fa; --accent: #7d2a3f; --accent-soft: #fdf4f6;
  --warn-bg: #fffbf0; --warn-line: #e8d9b0;
}

body {
  background: var(--bg); color: var(--ink);
  font: 19px/1.7 Georgia, "Iowan Old Style", "Times New Roman", serif;
  margin: 0;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

header.site { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
header.site .wrap, header.site .wrap-wide {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
}
.brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--accent); }
.tag {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .8rem; color: var(--ink-soft);
}

.crumb {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .78rem; color: var(--ink-soft); margin: 2rem 0 1rem;
}
.crumb a { color: var(--ink-soft); }

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem); line-height: 1.18;
  letter-spacing: -.02em; margin: 0 0 1rem;
}
.meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .8rem; color: var(--ink-soft); margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}

/* Direct answer: typographic emphasis, not a bordered card */
.answer {
  margin: 0 0 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.answer p {
  margin: 0; font-size: 1.22rem; line-height: 1.55;
  font-style: italic; color: var(--ink);
}
.answer strong { font-style: normal; color: var(--accent); }

h2 {
  font-size: 1.45rem; line-height: 1.25; letter-spacing: -.01em;
  margin: 3rem 0 1rem;
}
h3 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
p { margin: 0 0 1.25rem; }

table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .92rem;
}
.scroll { overflow-x: auto; margin: 1.5rem 0; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
th {
  font-weight: 600; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-soft);
}
td strong { color: var(--accent); }

.note {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 4px; padding: 1.25rem; margin: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .95rem; line-height: 1.6;
}
.note strong { display: block; margin-bottom: .4rem; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
li { margin-bottom: .6rem; }

.src {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .85rem; color: var(--ink-soft);
}
a { color: var(--accent); }

.next {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 4px; padding: 1.5rem; margin: 3rem 0;
}
.next h3 { margin-top: 0; font-size: 1.05rem; }
.next p { font-size: .98rem; margin-bottom: .75rem; }
.next p:last-child { margin-bottom: 0; }

.more { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.more h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin: 0 0 1rem;
}
.more a {
  display: block; margin-bottom: .6rem; text-decoration: none;
  color: var(--ink); font-size: 1.05rem;
}
.more a:hover { color: var(--accent); }

footer.site {
  border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .85rem; color: var(--ink-soft);
}
footer.site p { margin: 0 0 .75rem; }
footer.site a { color: var(--accent); }

/* Home page */
.lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 3rem; }
.sect {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); font-weight: 600;
  margin: 3.5rem 0 1.5rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.guide {
  display: block; text-decoration: none; color: inherit;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.guide:hover .guide-title { color: var(--accent); }
.guide-title {
  font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5rem;
  letter-spacing: -.01em; transition: color .15s;
}
.guide-sum { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.guide-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: .4rem;
}
.about {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 4px; padding: 1.5rem; margin: 3.5rem 0;
  font-size: 1rem; color: var(--ink-soft);
}
.about p { margin: 0 0 .75rem; }
.about p:last-child { margin-bottom: 0; }
.about strong { color: var(--ink); }
