:root{
  --bg:#06060a;
  --panel:#0d0f16;
  --ink:#eef0f6;
  --muted:#b8bccb;
  --gold:#d6b25e;
  --line:rgba(214,178,94,.26);
  --shadow:0 14px 44px rgba(0,0,0,.55);
  --radius:18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(214,178,94,.12), transparent 55%),
    radial-gradient(820px 560px at 82% 8%, rgba(120,160,255,.12), transparent 58%),
    radial-gradient(900px 720px at 50% 92%, rgba(214,178,94,.08), transparent 62%),
    linear-gradient(180deg, #040409 0%, #06060a 45%, #040409 100%);
  color:var(--ink);
  line-height:1.55;
}
a{color:var(--gold); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1120px; margin:0 auto; padding:28px 18px 96px}
.hero{
  position:relative;
  padding:34px 26px 24px;
  background:linear-gradient(180deg, rgba(214,178,94,.12), rgba(13,15,22,.62));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(480px 240px at 10% 20%, rgba(214,178,94,.22), transparent 72%),
    radial-gradient(420px 240px at 88% 30%, rgba(120,160,255,.16), transparent 74%),
    linear-gradient(135deg, rgba(214,178,94,.12), transparent 45%);
  pointer-events:none;
}
.hero > *{position:relative}
.kicker{letter-spacing:.18em; text-transform:uppercase; color:var(--muted); font-size:12px}
.h1{margin:10px 0 8px; font-size:34px; letter-spacing:.01em}
.sub{margin:0; color:var(--muted); font-size:16px; max-width:78ch}
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.badge{
  font-size:12px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(13,15,22,.58);
  color:var(--muted);
}
.grid{margin-top:16px; display:grid; grid-template-columns: 1.2fr .8fr; gap:14px}
@media (max-width: 920px){ .grid{grid-template-columns:1fr} }
.card{
  background:rgba(13,15,22,.60);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card .hd{padding:16px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:12px; align-items:baseline}
.card .hd h2{margin:0; font-size:15px; letter-spacing:.05em; text-transform:uppercase}
.card .hd .meta{color:var(--muted); font-size:12px}
.card .bd{padding:18px}
.small{color:var(--muted); font-size:12px}
.hr{height:1px; background:var(--line); margin:16px 0}
.quote{
  border-left:3px solid var(--gold);
  padding:10px 12px;
  margin:12px 0;
  background:rgba(214,178,94,.06);
  border-radius:12px;
}
.toc a{display:block; padding:9px 10px; border-radius:12px; border:1px solid transparent}
.toc a:hover{border-color:var(--line); background:rgba(214,178,94,.06)}
.section{
  margin-top:14px;
  padding:18px 18px 10px;
  background:rgba(13,15,22,.60);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.section h2{margin:0 0 10px; font-size:18px; letter-spacing:.02em}
.section h3{margin:18px 0 10px; font-size:15px; color:var(--gold); letter-spacing:.02em}
details{
  border:1px solid rgba(214,178,94,.18);
  background:rgba(6,6,10,.44);
  border-radius:14px;
  padding:10px 12px;
  margin:10px 0 14px;
}
details summary{
  cursor:pointer;
  list-style:none;
  font-weight:600;
  color:var(--ink);
}
details summary::-webkit-details-marker{display:none}
details summary:after{
  content:"▾";
  float:right;
  color:var(--muted);
}
details[open] summary:after{content:"▴"}
pre{
  font-family:var(--mono);
  font-size:12.5px;
  line-height:1.55;
  white-space:pre-wrap;
  word-break:break-word;
  margin:10px 0 6px;
  color:#f2f3f8;
}
.pillrow{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0}
.pill{
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(214,178,94,.22);
  background:rgba(214,178,94,.06);
  color:var(--muted);
}
.footer{
  margin-top:16px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(13,15,22,.58);
  color:var(--muted);
  font-size:12px;
}
kbd{
  font-family:var(--mono);
  border:1px solid var(--line);
  padding:2px 6px;
  border-radius:8px;
  background:rgba(13,15,22,.70);
  color:var(--muted);
}
