:root {
  --bg: #f8f3e7;
  --bg-soft: #eef5ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(120, 113, 108, 0.22);
  --ink: #1c1917;
  --muted: #57534e;
  --soft: #78716c;
  --accent: #1c1917;
  --accent-soft: #8b5e1a;
  --success: #0f766e;
  --warning: #92400e;
  --shadow: 0 24px 60px rgba(60, 51, 35, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 42%, var(--bg-soft) 100%);
  font-family: "Geist Variable", "Geist", system-ui, sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(120, 113, 108, 0.14);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.nav-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

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

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #1c1917;
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(28, 25, 23, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--soft);
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.nav-links a,
.footer-links a,
.text-link {
  color: var(--muted);
  text-decoration: none;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
}

.full-width {
  width: 100%;
}

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

.hero-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.summary-card,
.article-card,
.post-card,
.toc,
.cta-card {
  border: 1px solid rgba(120, 113, 108, 0.18);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card,
.post-card,
.cta-card,
.toc {
  border-radius: var(--radius-lg);
}

.summary-card {
  padding: 24px;
}

.summary-card h2 {
  margin: 10px 0 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.summary-card p:last-of-type {
  margin-bottom: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-row span,
.post-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 113, 108, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.eyebrow {
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.stack-lg {
  display: grid;
  gap: 22px;
  padding: 8px 0 72px;
}

.featured-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(28, 25, 23, 0.24);
}

.post-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.14;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.post-link {
  color: var(--accent);
  font-weight: 600;
}

.post-card-featured {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 231, 0.92)),
    var(--surface-strong);
}

.article-shell {
  padding: 0 0 76px;
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.toc ol {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.toc li + li {
  margin-top: 12px;
}

.toc a {
  text-decoration: none;
}

.article-card {
  border-radius: 34px;
  padding: 30px;
}

.article-section + .article-section,
.faq-block,
.related-posts,
.cta-card {
  margin-top: 30px;
}

.article-section h2,
.faq-block h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.article-section p,
.faq-item p,
.cta-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.article-section ul,
.article-section ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.article-section li + li {
  margin-top: 10px;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  border-radius: 22px;
  background: #171411;
  color: #fef7ed;
  font-size: 0.93rem;
  line-height: 1.7;
}

.callout,
.cta-card,
.faq-item {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(120, 113, 108, 0.18);
}

.callout h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.callout p,
.faq-item p,
.cta-card p:last-of-type {
  margin-bottom: 0;
}

.callout-success {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(240, 253, 250, 0.78);
}

.callout-warning {
  border-color: rgba(146, 64, 14, 0.2);
  background: rgba(255, 247, 237, 0.86);
}

.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step-counter;
}

.steps li {
  position: relative;
  padding: 18px 18px 18px 66px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(120, 113, 108, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1c1917;
  color: white;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.site-footer {
  border-top: 1px solid rgba(120, 113, 108, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

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

  .toc {
    position: static;
  }

  .featured-strip,
  .nav-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
