:root {
  --bg: rgb(250, 250, 249);
  --surface: rgb(255, 255, 255);
  --text: rgb(35, 35, 33);
  --muted: rgb(104, 104, 99);
  --line: rgb(229, 229, 224);
  --accent: rgb(42, 86, 76);
  --accent-soft: rgb(239, 244, 241);
  --code-bg: rgb(244, 244, 240);
  --max: 980px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: rgb(25, 26, 27);
  --surface: rgb(36, 37, 40);
  --text: rgb(225, 224, 221);
  --muted: rgb(162, 162, 156);
  --line: rgb(55, 56, 58);
  --accent: rgb(150, 190, 176);
  --accent-soft: rgb(44, 50, 49);
  --code-bg: rgb(45, 46, 50);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 55%);
  text-underline-offset: 0.18em;
}

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

.site-header,
.site-footer,
.site-main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

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

.nav a {
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

.hero {
  max-width: 790px;
  padding: 72px 0 70px;
}

.eyebrow,
.item-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 5.8vw, 4.75rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
}

.lead,
.intro {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
}

.button:hover {
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  color: var(--accent);
}

.section,
.page-head,
.article {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

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

.capability-grid article {
  background: var(--surface);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capability-grid p,
.list-item p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.item-list {
  display: grid;
  gap: 14px;
  background: transparent;
  border: 0;
}

.list-item {
  background: var(--surface);
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list-item h2,
.list-item h3 {
  margin-bottom: 12px;
}

.list-item h2 a,
.list-item h3 a {
  text-decoration: none;
}

.article {
  max-width: 760px;
}

.article-header {
  margin-bottom: 36px;
}

.article-links {
  margin-top: 18px;
}

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

.article-body h2 {
  margin-top: 16px;
  font-size: 1.45rem;
}

.article-body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.site-footer {
  padding: 44px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .section-heading,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .site-main {
    width: min(var(--max), calc(100% - 28px));
  }

}
