:root {
  --bg: #fafaf9;
  --ink: #111827;
  --muted: #52525b;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #0f766e;
  --panel: rgba(255, 255, 255, 0.9);
  --surface: #ffffff;
  --surface-ink: #0f172a;
  --dark: #0b1120;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.08), transparent 24%),
    linear-gradient(180deg, #fafaf9 0%, #f8fafc 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
main { overflow-x: hidden; width: 100%; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  padding-top: 12px;
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.brand-copy strong,
.brand-copy span {
  display: block;
  white-space: nowrap;
}

.brand-copy strong { font-size: 15px; }
.brand-copy span { color: var(--muted); font-size: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a:last-child {
  padding: 10px 16px;
  border-radius: 12px;
  background: #111827;
  color: white;
  font-weight: 600;
}

.hero {
  padding: 72px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: end;
}

.hero-copy h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.45rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.64;
}

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

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.hero-actions a:first-child {
  background: #111827;
  color: white;
  border-color: transparent;
}

.hero-visual {
  min-height: 380px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.46)),
    var(--hero-image) center/cover;
  filter: grayscale(0.12) contrast(1.12) saturate(0.84);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  color: #0f766e;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter {
  padding: 88px 0;
}

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

.lede,
.panel,
.quote,
.cta-panel,
.mini-card,
.faq-card,
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}

.lede,
.panel,
.quote,
.cta-panel,
.faq-card,
.related-card,
.mini-card { padding: 30px; }

.lede {
  font-size: 1.14rem;
  line-height: 1.6;
  color: #1f2937;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.panel h2,
.panel h3,
.cta-panel h2,
.section-title,
.related-head h2,
.faq-head h2,
.hub-grid-head h2 {
  margin: 0 0 16px;
}

.panel h2,
.section-title,
.related-head h2,
.faq-head h2,
.hub-grid-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.panel h3 { font-size: 1.35rem; letter-spacing: -0.03em; }

.panel p,
.panel li,
.lede p,
.cta-panel p,
.mini-card p,
.faq-card p,
.related-card p,
.related-card li {
  color: var(--muted);
  line-height: 1.64;
}

.panel ul,
.panel ol,
.faq-card ul,
.related-card ul { margin: 0; padding-left: 20px; }

.mini-grid,
.hub-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.mini-card,
.hub-card,
.related-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mini-card:hover,
.hub-card:hover,
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.08);
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.mini-card strong,
.hub-card strong,
.related-card strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  margin-bottom: 14px;
}

.micro-photo {
  width: 120px;
  height: 52px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.18em;
  border-radius: 12px;
  background: var(--micro-image) center/cover;
  filter: contrast(1.15) saturate(0.82);
}

.quote {
  background: #111827;
  color: white;
}

.quote p {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.5;
  color: white;
}

.desire {
  background: #eefcf9;
  color: #111827;
  overflow: hidden;
}

.desire-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: start;
}

.desire-copy {
  padding: 18px 0;
  position: relative;
}

.desire-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.desire-copy p,
.stack-card p { color: #475569; }
.cta-panel.dark p { color: #cbd5e1; }

.stack-rail { display: grid; gap: 18px; padding-bottom: 14px; }

.stack-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.66)),
    var(--seed) center/cover;
  filter: grayscale(0.1) contrast(1.08) opacity(0.16);
}

.stack-card > * { position: relative; z-index: 1; }
.stack-card h3 { margin: 0 0 12px; font-size: 1.52rem; }
.stack-card p { margin: 0; max-width: 34ch; line-height: 1.65; }

.faq-grid,
.related-grid { margin-top: 28px; }

.faq-card h3,
.related-card h3,
.hub-card h3 {
  margin: 0 0 14px;
  font-size: 1.38rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.cta-panel.dark {
  background: linear-gradient(135deg, #0f172a, #111827 65%, #1e293b);
  color: white;
}

.cta-panel a,
.hub-card a,
.related-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: #111827;
  color: white;
  font-weight: 700;
  white-space: nowrap;
}

.cta-panel.dark a { background: white; color: #111827; }

.hub-card,
.related-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}

.hub-card p,
.hub-card li { color: var(--muted); line-height: 1.64; }

.hub-card.visual {
  min-height: 360px;
  display: flex;
  align-items: end;
  color: white;
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0.08), rgba(9, 9, 11, 0.8)),
    var(--card-image) center/cover;
  filter: contrast(1.12) saturate(0.84);
}

.hub-card.visual p,
.hub-card.visual strong { color: white; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-row span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 0.94rem;
  font-weight: 600;
}

.hub-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-footer {
  padding: 0 0 60px;
  color: #71717a;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero-grid,
  .content-grid,
  .desire-shell,
  .cta-panel { grid-template-columns: 1fr; }

  .mini-grid > *,
  .hub-grid > *,
  .related-grid > * { grid-column: span 6; }
}

@media (max-width: 760px) {
  .site-header { top: 10px; }
  .nav-shell { border-radius: 14px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding: 58px 0 80px; }
  .hero-copy h1 { max-width: none; font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-visual { min-height: 300px; }
  .chapter { padding: 76px 0; }
  .lede,
  .panel,
  .quote,
  .cta-panel,
  .faq-card,
  .related-card,
  .hub-card,
  .mini-card { padding: 24px; }
  .mini-grid,
  .hub-grid,
  .related-grid { grid-template-columns: 1fr; }
  .mini-grid > *,
  .hub-grid > *,
  .related-grid > * { grid-column: span 1; }
}
