:root {
  --cds-background: #ffffff;
  --cds-background-subtle: #f4f4f4;
  --cds-background-tertiary: #e0e0e0;
  --cds-text-primary: #161616;
  --cds-text-secondary: #525252;
  --cds-text-helper: #6f6f6f;
  --cds-border-subtle: #c6c6c6;
  --cds-border-strong: #8d8d8d;
  --cds-button-primary: #0f62fe;
  --cds-button-primary-hover: #0353e9;
  --cds-button-primary-active: #002d9c;
  --cds-link-primary: #0f62fe;
  --cds-link-primary-hover: #0043ce;
  --cds-layer-01: #f4f4f4;
  --cds-layer-hover: #e8e8e8;
  --cds-focus: #0f62fe;
  --cds-success: #24a148;
  --cds-error: #da1e28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cds-background);
  color: var(--cds-text-primary);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
main { min-height: calc(100vh - 96px); }

.site-header {
  background: #161616;
  border-bottom: 1px solid #393939;
}

.site-header-inner,
.grid-shell,
.site-footer {
  width: min(1584px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 48px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  background: #ffffff;
  color: #161616;
  position: relative;
  overflow: hidden;
  transition: background-color .18s ease, color .18s ease;
}

.brand img,
.footer-brand img {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
}

.brand-hover-text {
  margin-left: 12px;
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: 0.32px;
  color: transparent;
  white-space: nowrap;
  transition: color .18s ease;
}

.brand:hover {
  background: var(--cds-button-primary);
  color: #ffffff;
}

.brand:hover .brand-hover-text {
  color: #ffffff;
}

.site-header nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.site-header nav a,
.header-link {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: #c6c6c6;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.16px;
}

.site-header nav a:hover,
.header-link:hover {
  color: #ffffff;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-entry {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 8px;
  color: #f4f4f4;
  border: 1px solid transparent;
}

.account-entry:hover {
  background: #262626;
}

.account-entry img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.button {
  min-height: 48px;
  padding: 14px 48px 14px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.16px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button-primary {
  background: var(--cds-button-primary);
  color: #ffffff;
}

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

.button-primary:active {
  background: var(--cds-button-primary-active);
}

.button-tertiary {
  background: transparent;
  color: var(--cds-link-primary);
  border-color: var(--cds-link-primary);
}

.button-tertiary:hover {
  color: var(--cds-link-primary-hover);
  border-color: var(--cds-link-primary-hover);
  background: #edf5ff;
}

.button.mini {
  min-height: 40px;
  padding: 10px 24px 10px 12px;
}

.section-band {
  padding: 64px 0;
}

.section-muted {
  background: var(--cds-layer-01);
}

.hero-band {
  padding: 80px 0 64px;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}

.hero-copy,
.page-hero-copy {
  max-width: 880px;
}

.section-kicker,
.eyebrow,
.tile-index,
.footer-label {
  margin: 0 0 16px;
  color: var(--cds-text-secondary);
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero-copy h1,
.article-hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(3rem, 5vw, 4.75rem);
  line-height: 1.17;
  font-weight: 300;
  letter-spacing: 0;
}

.lead,
.hero-copy .lead,
.page-hero-copy .lead,
.article-hero-copy .lead,
.split-head p,
.tile p,
.blog-row-copy p,
.markdown-body {
  margin: 0;
  color: var(--cds-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-panel {
  background: var(--cds-layer-01);
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.hero-panel-top {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--cds-border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hero-panel-code {
  font-family: "IBM Plex Mono", Menlo, monospace;
  font-size: 0.875rem;
  color: var(--cds-text-secondary);
  letter-spacing: 0.16px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hero-stat {
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid var(--cds-border-subtle);
  border-bottom: 1px solid var(--cds-border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-stat:nth-child(2n) {
  border-right: none;
}

.hero-stat strong {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 400;
}

.hero-stat span {
  color: var(--cds-text-secondary);
  font-size: 0.875rem;
  line-height: 1.29;
  letter-spacing: 0.16px;
}

.split-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.split-head h2,
.section-head-row h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.17;
  font-weight: 300;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.tile-grid {
  display: grid;
  gap: 1px;
  background: var(--cds-border-subtle);
}

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

.tile {
  background: #ffffff;
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-muted .tile {
  background: var(--cds-layer-01);
}

.tile:hover {
  background: var(--cds-layer-hover);
}

.tile h3,
.tile-post h3,
.blog-row-copy h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.33;
  font-weight: 400;
}

.inline-link {
  color: var(--cds-link-primary);
  font-size: 0.875rem;
  line-height: 1.29;
  letter-spacing: 0.16px;
}

.inline-link:hover {
  color: var(--cds-link-primary-hover);
  text-decoration: underline;
}

.page-hero-band {
  padding: 80px 0 48px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.article-body {
  max-width: 992px;
}

.markdown-body {
  padding: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body blockquote {
  margin-top: 0;
  margin-bottom: 24px;
}

.markdown-body h1 {
  font-size: 2.625rem;
  line-height: 1.19;
  font-weight: 300;
}

.markdown-body h2 {
  padding-top: 24px;
  border-top: 1px solid var(--cds-border-subtle);
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 400;
}

.markdown-body h3 {
  font-size: 1.5rem;
  line-height: 1.33;
  font-weight: 400;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 12px;
  color: var(--cds-text-secondary);
}

.markdown-body blockquote {
  margin-left: 0;
  padding: 16px 16px 16px 20px;
  border-left: 4px solid var(--cds-button-primary);
  background: var(--cds-layer-01);
  color: var(--cds-text-secondary);
}

.markdown-body img {
  display: block;
  max-width: 100%;
  margin: 32px 0;
}

.blog-list-carbon {
  display: grid;
  gap: 1px;
  background: var(--cds-border-subtle);
}

.blog-row-carbon {
  background: #ffffff;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.blog-row-carbon:hover {
  background: var(--cds-layer-hover);
}

.blog-row-action {
  align-self: center;
}

.article-hero-carbon {
  background:
    linear-gradient(180deg, rgba(22,22,22,0.18) 0%, rgba(22,22,22,0.74) 74%, rgba(22,22,22,0.94) 100%),
    linear-gradient(135deg, #c6c6c6 0%, #525252 60%, #161616 100%);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.article-hero-shell {
  padding: 96px 0 112px;
}

.article-hero-copy {
  max-width: 1040px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  color: #f4f4f4;
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: 0.32px;
}

.tag-blue {
  background: #edf5ff;
  color: #0f62fe;
}

.article-meta-carbon strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.article-meta-carbon span {
  display: block;
  margin-top: 4px;
  color: #c6c6c6;
  font-size: 0.875rem;
  line-height: 1.29;
  letter-spacing: 0.16px;
}

.article-band {
  margin-top: 0;
}

.article-surface {
  background: #ffffff;
  padding-top: 48px;
}

.site-footer-wrap {
  width: 100%;
  background: #161616;
  border-top: 1px solid var(--cds-border-subtle);
}

.site-footer {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  color: #f4f4f4;
}

.footer-brand-area p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #c6c6c6;
  font-size: 0.875rem;
  line-height: 1.29;
  letter-spacing: 0.16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-links a,
.footer-links span {
  display: block;
  color: #c6c6c6;
  font-size: 0.875rem;
  line-height: 1.29;
  letter-spacing: 0.16px;
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-label {
  color: #8d8d8d;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 1056px) {
  .site-header-inner,
  .grid-shell,
  .site-footer {
    width: min(1584px, calc(100% - 32px));
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0;
    padding: 8px 0 16px;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-header-actions {
    margin-top: 8px;
  }

  .hero-grid,
  .split-head,
  .tile-grid-3,
  .site-footer,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .blog-row-carbon {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 672px) {
  .section-band,
  .hero-band,
  .page-hero-band {
    padding: 48px 0;
  }

  .hero-copy h1,
  .page-hero-copy h1,
  .article-hero-copy h1 {
    font-size: clamp(2.5rem, 11vw, 3.75rem);
  }

  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: none;
  }

  .article-hero-shell {
    padding: 72px 0 80px;
  }

  .button {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
