:root {
  --ink: #0f1a14;
  --ink-soft: #3d4a42;
  --paper: #f7faf8;
  --paper2: #eef5f0;
  --line: #d5e3da;
  --brand: #0d9f6e;
  --brand-deep: #087a55;
  --brand-soft: #d8f5e9;
  --sand: #e8f0eb;
  --warn: #c45c26;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --prose: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-deep);
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 250, 248, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo span {
  font-size: 1.05rem;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 159, 110, 0.22);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper2);
  color: var(--ink);
}

.nav .btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(13, 159, 110, 0.16), transparent 55%),
    linear-gradient(165deg, #eaf7f0 0%, var(--paper) 48%, #f3f7f4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 159, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 159, 110, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem clamp(3.5rem, 9vw, 6rem);
}

.brand-mark {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 0.85rem;
  animation: rise 0.7s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  animation: rise 0.75s ease 0.05s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  animation: rise 0.75s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.75s ease 0.18s both;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 0.6rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 20ch;
}

.section-lead {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.75rem;
  }
}

.feature-list li {
  padding-top: 1rem;
  border-top: 2px solid var(--brand-soft);
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.band {
  background: var(--ink);
  color: #e8f2ec;
}

.band .section-kicker {
  color: #7dd3b0;
}

.band h2 {
  color: #fff;
}

.band .section-lead,
.band p {
  color: rgba(232, 242, 236, 0.78);
}

.band a {
  color: #9aecc8;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #7dd3b0;
  margin-bottom: 0.55rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #fff;
}

.steps p {
  margin: 0;
  font-size: 0.92rem;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.cta-panel h2 {
  max-width: none;
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper2);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Blog listing */
.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--sand), var(--paper));
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.5rem) 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-grid li {
  border-top: 2px solid var(--brand-soft);
  padding-top: 1rem;
}

.post-grid a {
  text-decoration: none;
  color: inherit;
}

.post-grid a:hover h2 {
  color: var(--brand-deep);
}

.post-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 0.45rem;
}

.post-grid h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: none;
}

.post-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Article */
.article-wrap {
  max-width: calc(var(--prose) + 2.5rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  text-decoration: none;
}

.article-wrap > header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-dek {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.article-meta {
  margin: 0 0 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  max-width: none;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 10px 10px 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.35rem 1.25rem;
  background: var(--ink);
  color: #e8f2ec;
  border-radius: 14px;
}

.article-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: #fff;
  max-width: none;
}

.article-cta p {
  margin: 0 0 1rem;
  color: rgba(232, 242, 236, 0.78);
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  max-width: none;
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .brand-mark,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .btn {
    animation: none;
    transition: none;
  }
}
