:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --text: #221a14;
  --muted: #6b5d52;
  --line: #e7ded4;
  --accent: #8a4b1f;
  --accent-ink: #ffffff;
  --answer: #f4ebe0;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --surface: #211b17;
    --text: #efe7df;
    --muted: #b3a498;
    --line: #3a302a;
    --accent: #e0a270;
    --accent-ink: #1b140f;
    --answer: #2a211b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--accent); }

main { padding-top: 20px; padding-bottom: 48px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.2; margin: .2em 0 .3em; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 1.8em 0 .5em; }
.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.meta { font-size: .85rem; color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }

.answer { background: var(--answer); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 4px 20px 8px; margin: 20px 0; }
.answer h2 { margin-top: .7em; font-size: 1.15rem; }
.note { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; color: var(--muted); margin: 20px 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--answer); }
tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); }
.card span { color: var(--muted); font-size: .9rem; }
.card:hover { border-color: var(--accent); }

details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .6em 0 .2em; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0 28px; }
.site-footer p { margin: .5em 0; }
