:root {
  --brand: oklch(43% 0.21 25);
  --brand-hover: oklch(37% 0.19 25);
  --brand-light: oklch(62% 0.22 25);
  --brand-subtle: oklch(96% 0.018 25);
  --bg: oklch(98% 0.003 80);
  --bg-surface: oklch(95.5% 0.004 80);
  --bg-dark: oklch(9.5% 0.01 255);
  --bg-dark-2: oklch(12.5% 0.011 255);
  --text: oklch(14% 0.008 80);
  --text-secondary: oklch(40% 0.007 80);
  --text-muted: oklch(46% 0.006 80);
  --text-on-dark: oklch(93% 0.003 80);
  --text-muted-dark: oklch(82% 0.004 255);
  --border: oklch(88% 0.005 80);
  --border-dark: oklch(20% 0.008 255);
  --white: oklch(99.5% 0.002 80);
  --success: oklch(50% 0.13 150);
  --shadow: 0 20px 60px oklch(14% 0.008 80 / 0.08);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --container: 1180px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--brand-hover);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(98% 0.003 80 / 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(88% 0.005 80 / 0.78);
}

.nav-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.footer-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--white) !important;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--white);
  transition: border-color 0.2s, transform 0.15s;
}

.button-secondary:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 99px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 0 0 20px;
}

.nav-drawer a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.page-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, oklch(43% 0.21 25 / 0.18), transparent 34%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
}

.page-hero::before,
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(100% 0 0 / 0.024) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 88px 0 84px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-title,
.article-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-lede,
.article-lede {
  margin: 24px 0 0;
  max-width: 58ch;
  color: var(--text-muted-dark);
  font-size: 1.08rem;
}

.hero-actions,
.article-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.article-meta {
  color: var(--text-muted-dark);
  font-size: 0.92rem;
}

.article-byline {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--text-muted-dark);
  font-size: 0.92rem;
}

.article-byline strong {
  color: var(--text-on-dark);
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.35);
}

.stat-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 28px 0;
  border-right: 1px solid var(--border);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-value {
  margin: 0;
  max-width: 24ch;
  font-size: 1rem;
  color: var(--text);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-surface);
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-header p,
.intro-copy {
  margin: 0;
  max-width: 62ch;
  color: var(--text-secondary);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: start;
}

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

.card,
.link-card,
.quote-card,
.faq-item,
.note-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card,
.note-box {
  padding: 24px;
}

.card h3,
.link-card h3,
.note-box h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card p,
.note-box p,
.link-card p {
  margin: 0;
  color: var(--text-secondary);
}

.checklist,
.article-body ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.checklist li,
.article-body ul li {
  position: relative;
  padding-left: 22px;
}

.checklist li::before,
.article-body ul li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.pull-quote {
  padding: 28px;
  border-left: 4px solid var(--brand);
}

.pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  padding: 22px;
  transition: transform 0.15s, border-color 0.2s;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: oklch(43% 0.21 25 / 0.4);
}

.link-card .kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--text-secondary);
}

.cta-panel {
  background:
    radial-gradient(circle at top right, oklch(43% 0.21 25 / 0.18), transparent 40%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
  border-radius: 24px;
  padding: 36px;
}

.cta-panel h2,
.cta-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.cta-panel p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted-dark);
}

.cta-panel .hero-actions {
  margin-top: 22px;
}

.article-main {
  padding: 68px 0 84px;
}

.article-wrap {
  width: min(calc(100% - 48px), 860px);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  font-weight: 600;
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-body h2,
.article-body h3 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.article-body h2 {
  font-size: 2rem;
}

.article-body h3 {
  font-size: 1.3rem;
}

.article-body p,
.article-body ol,
.article-body ul {
  margin: 0;
  color: var(--text-secondary);
}

.article-body ol {
  padding-left: 20px;
  display: grid;
  gap: 14px;
}

.article-body strong {
  color: var(--text);
}

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

.article-breadcrumbs a {
  color: var(--text-muted-dark);
}

.article-breadcrumbs a:hover {
  color: var(--text-on-dark);
}

.article-summary {
  margin: 0 0 28px;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.article-summary h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article-summary p {
  margin: 0 0 14px;
}

.article-summary ul {
  margin-top: 0;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reading-card {
  display: block;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.2s;
}

.reading-card:hover {
  transform: translateY(-2px);
  border-color: oklch(43% 0.21 25 / 0.4);
}

.reading-card .kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.reading-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.article-callout {
  padding: 24px;
  background: var(--brand-subtle);
  border: 1px solid oklch(43% 0.21 25 / 0.18);
  border-radius: 18px;
}

.article-callout p {
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 44px;
}

.footer-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

.footer-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .two-column,
  .link-grid,
  .reading-grid,
  .card-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-drawer.open {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-inner,
  .nav-drawer,
  .hero-inner,
  .footer-inner,
  .article-wrap,
  .stat-grid {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero-inner {
    padding: 72px 0 68px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-panel,
  .card,
  .link-card,
  .note-box {
    padding: 20px;
  }

  .hero-actions,
  .article-meta {
    gap: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
