:root {
  --ink: #18212f;
  --muted: #667085;
  --line: #d9e1ea;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #d97706;
  --red: #be3a34;
  --blue: #2563eb;
  --shadow: 0 18px 48px rgba(24, 33, 47, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(251, 252, 253, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 7vw, 84px) 5vw;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: var(--panel);
}

.dashboard-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.chart-card,
.topic-card,
.article-list article,
.article-directory article,
.topic-stack article,
.sidebar-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chart-card {
  min-height: 168px;
  padding: 18px;
}

.chart-card.wide {
  grid-column: span 2;
  min-height: 260px;
}

.label,
.tag {
  display: inline-flex;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.chart-card strong {
  display: block;
  margin: 24px 0 8px;
  color: var(--red);
  font-size: 2.2rem;
  line-height: 1;
}

.chart-card small {
  color: var(--muted);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  height: 178px;
  margin-top: 22px;
  padding: 12px;
  background: #f4f7f9;
  border-radius: 8px;
}

.bar-chart i {
  display: block;
  min-height: 28px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
  border-radius: 6px 6px 2px 2px;
}

.section,
.page,
.article-page {
  padding: clamp(48px, 7vw, 86px) 5vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

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

.topic-card {
  min-height: 190px;
  padding: 22px;
  text-decoration: none;
}

.topic-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--amber);
  font-weight: 800;
}

.topic-card p,
.article-list p,
.article-directory p,
.topic-stack p,
.post-summary,
.post-meta,
.page p,
.process-list {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f3f8f7;
}

.text-link {
  color: var(--teal);
  font-weight: 780;
}

.process-list {
  margin: 0;
  padding: 26px 26px 26px 48px;
  background: var(--panel);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.process-list li + li {
  margin-top: 14px;
}

.article-list,
.article-directory,
.topic-stack,
.resource-grid {
  display: grid;
  gap: 16px;
}

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

.article-list article,
.article-directory article,
.topic-stack article,
.resource-card {
  padding: 22px;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.resource-card h2 {
  margin-top: 10px;
  font-size: 1.35rem;
}

.resource-card ul {
  color: var(--muted);
  padding-left: 20px;
}

.resource-card .button {
  margin-top: 8px;
}

.featured-resource {
  grid-column: span 2;
}

.resource-note {
  margin-top: 34px;
  padding-left: 0;
  padding-right: 0;
}

.topic-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.topic-links a {
  display: inline-flex;
  width: fit-content;
  color: var(--teal);
  font-weight: 760;
  text-decoration: none;
}

.topic-links a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.article-list a,
.article-directory a {
  font-weight: 800;
  text-decoration: none;
}

.article-list a:hover,
.article-directory a:hover {
  color: var(--teal);
}

.page {
  max-width: 1160px;
  margin: 0 auto;
}

.page.narrow {
  max-width: 760px;
}

.page-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.article-directory article {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.article-directory h2 {
  margin: 8px 0;
  font-size: 1.35rem;
}

.article-directory time {
  flex: 0 0 auto;
  color: var(--muted);
}

.tag {
  color: var(--teal);
  text-decoration: none;
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
  gap: clamp(28px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 34px;
}

.post,
.post-body {
  min-width: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

.post-body h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 18px;
  color: #e7eef5;
  background: #121821;
  border-radius: 8px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.sidebar-box {
  padding: 20px;
}

.sidebar-box h2 {
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  text-decoration: none;
}

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

  .topic-grid,
  .article-list,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-resource {
    grid-column: auto;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 14px 5vw 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .dashboard-visual,
  .topic-grid,
  .article-list,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .chart-card.wide {
    grid-column: auto;
  }

  .article-directory article,
  .site-footer {
    display: grid;
  }
}
