:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f4efe6;
  --bg-card: rgba(255, 255, 255, 0.94);
  --text-primary: #1a1a1a;
  --text-secondary: #4f4a45;
  --text-muted: #7f766e;
  --accent: #0071e3;
  --accent-dark: #005bb8;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --border: #e6ddd2;
  --shadow-sm: 0 10px 30px rgba(24, 18, 10, 0.06);
  --shadow-md: 0 24px 50px rgba(24, 18, 10, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 113, 227, 0.08), transparent 28%),
    linear-gradient(180deg, #fcfbf8 0%, var(--bg-primary) 56%, #f4efe6 100%);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(250, 248, 245, 0.84);
  border-bottom: 1px solid rgba(230, 221, 210, 0.9);
}

.topbar-inner,
.page,
.footer-inner {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.topnav a.active,
.topnav a:hover {
  color: var(--accent);
}

.page {
  padding: 42px 0 72px;
}

.hero-panel,
.content-panel,
.cta-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(230, 221, 210, 0.95);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}

.hero-panel {
  padding: 34px clamp(24px, 4vw, 48px) 40px;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.14), transparent 68%);
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  max-width: 12ch;
}

.hero-title.wide {
  max-width: 16ch;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 68ch;
  margin: 0;
}

.meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.meta-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.summary-grid,
.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

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

.summary-card,
.resource-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.summary-card h2,
.resource-card h2,
.resource-card h3 {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.summary-card p,
.resource-card p {
  margin: 0;
  color: var(--text-secondary);
}

.content-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  padding: 28px;
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, rgba(244, 239, 230, 0.78));
  border: 1px solid var(--border);
}

.toc-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li + li {
  margin-top: 8px;
}

.toc a {
  color: var(--text-secondary);
  font-weight: 600;
}

.toc a:hover {
  color: var(--accent);
}

.article-content {
  min-width: 0;
}

.article-content section + section {
  margin-top: 40px;
}

.article-content h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.article-content h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 24px 0 10px;
}

.article-content p,
.article-content li {
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
  margin: 14px 0 0;
}

.article-content li + li {
  margin-top: 8px;
}

.note,
.callout {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--text-secondary);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 620px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(244, 239, 230, 0.7);
}

tr:last-child td {
  border-bottom: 0;
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.cta-panel {
  margin-top: 28px;
  padding: 28px;
}

.cta-panel h2 {
  font-family: "Syne", sans-serif;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.cta-panel p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1492ff);
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.22);
}

.button:hover {
  color: #fff;
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  transform: translateY(-1px);
}

.footer {
  padding: 0 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-note {
  max-width: 74ch;
  margin: 0;
}

@media (max-width: 980px) {
  .content-panel {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .summary-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding: 26px 0 56px;
  }

  .hero-panel,
  .content-panel,
  .cta-panel {
    padding: 22px;
  }

  .hero-title {
    max-width: none;
  }

  .button-row {
    flex-direction: column;
  }

  .button,
  .button-secondary {
    width: 100%;
  }
}
