:root {
  --bg: #fffbf7;
  --text: #1c1a17;
  --muted: #4a463f;
  --accent: #8b1a2b;
  --accent-text: #fffbf7;
  --gold: #a87930;
  --rule: #e8e1d6;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1324;
    --text: #f6f3eb;
    --muted: #d0d7e7;
    --accent: #d96674;
    --accent-text: #0d1324;
    --gold: #e7b25c;
    --rule: #263049;
    --card: #141b30;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--rule);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 16px;
  font-size: 0.95rem;
}
nav.site a:last-child { margin-right: 0; }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 40px 0 56px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 2.4rem; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.features li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px;
}

.features strong { display: block; margin-bottom: 4px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
}
th { font-weight: 600; }

.table-scroll { overflow-x: auto; }

.note {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 14px;
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; }
footer.site a { color: var(--muted); margin-right: 16px; }
