:root {
  --ink: #151515;
  --paper: #fffdf9;
  --canvas: #f3ead9;
  --sand: #e7d7bc;
  --forest: #274f52;
  --ember: #c95f45;
  --gold: #8b6a22;
  --line: rgba(21, 21, 21, 0.08);
  --muted: rgba(21, 21, 21, 0.7);
  --card-shadow: 0 18px 50px rgba(21, 21, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 95, 69, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f1e4 0%, var(--canvas) 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(243, 234, 217, 0.78);
  border-bottom: 1px solid rgba(21, 21, 21, 0.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink), var(--forest));
  color: #fff;
  font-weight: 800;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
}

.brand-copy span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.nav a {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(21, 21, 21, 0.06);
}

.nav a:hover,
.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero {
  padding: 64px 0 30px;
}

.hero-panel {
  overflow: hidden;
  position: relative;
  border-radius: 34px;
  padding: 36px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(135deg, #101010 0%, #1d343c 52%, #385d56 100%);
  box-shadow: var(--card-shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-grid,
.grid-two,
.grid-three {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
  align-items: start;
}

.hero h1,
.hero-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero p,
.hero-panel p {
  margin: 0;
  line-height: 1.65;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-stat-stack {
  display: grid;
  gap: 12px;
}

.hero-stat,
.card,
.mini-card {
  border-radius: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

.hero-stat {
  padding: 18px;
  color: var(--ink);
}

.hero-stat strong,
.card h2,
.card h3,
.mini-card h3 {
  display: block;
  margin-bottom: 6px;
}

.hero-stat span,
.card p,
.card li,
.mini-card p {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 18px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card {
  padding: 24px;
}

.card-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  margin-bottom: 14px;
  background: rgba(39, 79, 82, 0.1);
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.card ul,
.article ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.article {
  padding: 56px 0 42px;
}

.article-hero {
  margin-bottom: 20px;
}

.article-hero .card {
  padding: 28px;
}

.article h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.article .summary {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.stack {
  display: grid;
  gap: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f0e2cb;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  padding: 26px 0 60px;
}

.footer-card {
  border-radius: 28px;
  padding: 24px;
  background: #171717;
  color: rgba(255, 255, 255, 0.82);
}

.footer-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.88;
}

.muted {
  color: var(--muted);
}

.code-chip {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  background: rgba(21, 21, 21, 0.06);
  border-radius: 12px;
  padding: 2px 8px;
}

@media (max-width: 880px) {
  .hero-grid,
  .article-grid,
  .grid-two,
  .grid-three {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .card {
    padding: 24px;
  }

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-panel {
    border-radius: 26px;
    padding: 22px;
  }

  .card,
  .hero-stat {
    border-radius: 22px;
  }
}
