:root {
  color-scheme: dark;
  --bg: #120f0d;
  --card: #1d1815;
  --line: #3d3028;
  --text: #f4eadf;
  --muted: #bcae9f;
  --accent: #f0a24d;
  --accent-soft: #3b2919;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 162, 77, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

a { color: #ffbd73; }
a:hover { color: #ffd19e; }

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #755133;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
}

.hero {
  margin: 48px 0 28px;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(52, 39, 31, 0.95), rgba(26, 22, 19, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 38px;
  font-size: 1.35rem;
  line-height: 1.25;
}

h3 { margin-top: 26px; }

p, li { color: var(--muted); }
strong { color: var(--text); }

.lede {
  max-width: 64ch;
  font-size: 1.08rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  margin: 18px 0;
  padding: 24px clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(29, 24, 21, 0.86);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.button {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 11px 16px;
  border: 1px solid #755133;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #ffd09a;
  font-weight: 750;
  text-decoration: none;
}

.toc a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
}

footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 880px); padding-top: 20px; }
  .hero { margin-top: 30px; border-radius: 22px; }
  .card { border-radius: 18px; }
}

