:root {
  --bg: #10141c;
  --panel: #181e29;
  --ink: #e8edf4;
  --muted: #9aa6b8;
  --line: #2a3344;
  --accent: #c4a35a;
  --link: #8eb4e3;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 "Georgia", "Times New Roman", serif;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 1.25rem; }
.site-header { border-bottom: 1px solid var(--line); background: #0c1017; }
.header-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem 1.25rem;
  padding: 1rem 1.25rem .95rem;
}
.brand { text-decoration: none; color: inherit; min-width: 0; display: flex; flex-direction: column; }
.brand-name { font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.brand-kicker { display: block; margin-top: .2rem; font: 12px/1.3 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

.nav-drawer {
  position: relative;
  margin-left: auto;
}
.nav-toggle {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.5rem;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { content: ""; }
.nav-toggle:hover,
.nav-drawer[open] .nav-toggle {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-toggle.is-current {
  border-color: var(--accent);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.burger {
  position: relative;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  transition: background .15s ease, box-shadow .15s ease;
}
.nav-drawer[open] .burger {
  background: transparent;
  box-shadow: none;
}
.nav-drawer[open] .burger::before,
.nav-drawer[open] .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.nav-drawer[open] .burger::before { transform: rotate(45deg); }
.nav-drawer[open] .burger::after { transform: rotate(-45deg); }

.site-nav {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  width: min(22rem, calc(100vw - 2.5rem));
  margin-top: .45rem;
  padding: .55rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .38);
  z-index: 40;
}
.site-nav a {
  display: block;
  padding: .55rem .7rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  color: var(--ink);
  text-decoration: none;
  font: 600 14px/1.25 system-ui, sans-serif;
}
.site-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-nav a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1408;
}

@media (max-width: 719px) {
  .header-bar { align-items: center; }
  .nav-drawer { flex: 1 1 100%; }
  .nav-toggle { width: 100%; justify-content: center; }
  .site-nav {
    width: 100%;
    position: static;
  }
}

@media (min-width: 720px) {
  .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
  }
}

main { padding: 2rem 0 4rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 .4rem; }
.meta { color: var(--muted); font: 14px/1.4 system-ui, sans-serif; }
.page .meta { margin: 0; }
.page .meta + .meta { margin-top: .15rem; }
.lede, .home-hero p { color: #d5dbe6; }
.btn { display: inline-block; margin-top: .5rem; padding: .45rem .9rem; background: var(--accent); color: #1a1408; text-decoration: none; font: 600 14px/1.2 system-ui, sans-serif; }
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
.cards li { background: var(--panel); border: 1px solid var(--line); }
.cards a { display: grid; gap: .4rem; padding: 1rem; color: inherit; text-decoration: none; }
.cards img { width: 100%; max-height: 220px; object-fit: cover; }
.cards .deck { color: var(--muted); font-size: .95rem; }
.cards .read-more {
  justify-self: start;
  margin-top: .25rem;
  padding: .35rem .7rem;
  background: var(--accent);
  color: #1a1408;
  font: 600 13px/1.2 system-ui, sans-serif;
}
.index { list-style: none; padding: 0; }
.index li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.index a { color: var(--link); }
.body a { color: var(--link); }
.body img, .hero img { max-width: 100%; height: auto; }
.body iframe { max-width: 100%; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font: 14px/1.5 system-ui, sans-serif; }
.site-footer a { color: var(--link); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem .15rem; }
.last-updated { margin: .65rem 0 0; color: var(--muted); }
.sitemap-block { margin: 2rem 0; }
.sitemap-block h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.sitemap-index li { flex-direction: column; align-items: flex-start; gap: .2rem; }
.sitemap-index .deck { color: var(--muted); font-size: .95rem; }
.sitemap-faq dt { font: 600 1.02rem/1.35 "Georgia", "Times New Roman", serif; margin: 1rem 0 .3rem; }
.sitemap-faq dd { margin: 0; color: #d5dbe6; }
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 1.55rem; }
}
