:root {
  --ink: #07110d;
  --panel: #10241c;
  --panel-2: #173026;
  --line: rgba(231, 197, 106, 0.18);
  --text: #f3f6f1;
  --muted: #b7c7bb;
  --gold: #e7c56a;
  --gold-dim: rgba(231, 197, 106, 0.14);
  --mint: #8ee0b8;
  --max: 1080px;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 420px at 0% -10%, rgba(231, 197, 106, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(46, 125, 90, 0.28), transparent 50%);
}
a { color: var(--mint); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; border-radius: 16px; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; position: relative; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 13, 0.82);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--gold); }
.hero { padding: 4.5rem 0 2rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.8rem; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 46rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 1.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: #1a1406;
  text-decoration: none;
  font-weight: 700;
}
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; }
.card, .shot, table, pre, .callout {
  background: rgba(16, 36, 28, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card { padding: 1.1rem 1.15rem; }
.card h3 { margin: 0 0 0.4rem; }
.muted { color: var(--muted); }
section { padding: 1.2rem 0 2rem; }
.shot { overflow: hidden; margin: 1rem 0 1.6rem; }
.shot img { border-radius: 0; width: 100%; }
.shot figcaption { padding: 0.75rem 1rem 1rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
a.star { display: block; margin: 0.2rem 0 0.4rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
a.star:hover { filter: brightness(1.08); }
a.star img { border-radius: 0; }
.table-wrap { overflow-x: auto; margin: 0.6rem 0 1rem; }
.table-wrap table { min-width: 720px; }
th, td { text-align: start; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 650; }
code, pre { font-family: var(--mono); font-size: 0.92rem; }
pre { padding: 1rem; overflow: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0; }
.pills span { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; color: var(--gold); background: var(--gold-dim); }
footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--gold); color: #1a1406; padding: 0.4rem 0.7rem; z-index: 9; }
@media (max-width: 720px) {
  .top-inner { align-items: flex-start; flex-direction: column; padding: 0.8rem 0; }
}
