:root {
  --bg: #080b10;
  --panel: #101722;
  --panel-light: #151f2e;
  --ink: #f5f0e8;
  --muted: #aab3c2;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d4a857;
  --copper: #9f6740;
  --blue: #6d98c7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 168, 87, 0.18), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(109, 152, 199, 0.14), transparent 28%),
    linear-gradient(180deg, #0c1119, var(--bg) 520px);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
}

.consult-link,
.article-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(212, 168, 87, 0.55);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  width: min(100% - 36px, 1180px);
  margin: 30px auto 70px;
}

.hero-text {
  padding: clamp(20px, 4vw, 48px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
blockquote p {
  font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
  max-width: 740px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: 0.98;
}

.summary {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  min-height: 470px;
  object-fit: cover;
  filter: grayscale(0.32) contrast(1.12) brightness(0.78);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 820px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  width: min(100% - 36px, 1180px);
  margin: 0 auto 86px;
}

.toc {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.76);
  backdrop-filter: blur(14px);
}

.toc p {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.toc a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.toc a.is-active {
  color: var(--ink);
}

.article {
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.88);
  box-shadow: var(--shadow);
}

.lead {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(1.16rem, 2vw, 1.38rem);
}

section {
  position: relative;
  padding: 34px 0 34px 74px;
  border-top: 1px solid var(--line);
}

.section-number {
  position: absolute;
  top: 38px;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}

section p,
.article-footer p {
  color: var(--muted);
}

blockquote {
  margin: 22px 0;
  padding: 30px;
  border: 1px solid rgba(212, 168, 87, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.12), rgba(109, 152, 199, 0.08));
}

blockquote p {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.22;
}

.article-footer {
  margin-top: 26px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero,
  .content-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .toc p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .content-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-image img {
    min-height: 280px;
  }

  .toc {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding-left: 0;
  }

  .section-number {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}
