@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
  --ink: #182028;
  --ink-soft: #2b3640;
  --paper: #fcfaf5;
  --sand: #f3ede3;
  --line: rgba(24, 32, 40, 0.12);
  --slate: #5c6773;
  --moss: #7a8b5a;
  --rust: #c46a3a;
  --mist: #e7ecef;
  --shadow: 0 22px 60px rgba(24, 32, 40, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --content: 72ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 106, 58, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(122, 139, 90, 0.14), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 100%);
  font: 400 18px/1.7 "Source Serif 4", Georgia, serif;
}

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

body::selection {
  background: rgba(196, 106, 58, 0.18);
}

a {
  color: inherit;
  text-decoration-color: rgba(196, 106, 58, 0.45);
  text-underline-offset: 0.2em;
}

p,
ul,
ol {
  margin: 0 0 1.2rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

small,
.muted {
  color: var(--slate);
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.4rem;
  background: rgba(24, 32, 40, 0.07);
  font-size: 0.92em;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 2.4rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(252, 250, 245, 0.84);
  border-bottom: 1px solid rgba(24, 32, 40, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 6px;
  background: var(--paper);
}

.brand-mark::before {
  width: 11px;
  height: 11px;
  left: 9px;
  top: 9px;
  box-shadow: 16px 0 0 var(--rust), 0 16px 0 var(--moss), 16px 16px 0 var(--paper);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  font: 700 1.02rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.brand-copy span {
  font-size: 0.88rem;
  color: var(--slate);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--slate);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(24, 32, 40, 0.06);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: 600 0.88rem/1 "Space Grotesk", sans-serif;
}

.hero {
  padding: 3.6rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 1.4rem;
  align-items: stretch;
}

.hero-panel,
.surface,
.card,
.article-shell,
.cta-band,
.archive-hero,
.stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 32, 40, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 106, 58, 0.2), transparent 66%);
  pointer-events: none;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 32, 40, 0.06);
  color: var(--slate);
  font: 600 0.82rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-panel p {
  max-width: 32rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-actions,
.button-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font: 700 0.95rem/1 "Space Grotesk", sans-serif;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  background: var(--rust);
  color: white;
  box-shadow: 0 12px 28px rgba(196, 106, 58, 0.24);
}

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

.button-secondary {
  background: transparent;
  border: 1px solid rgba(24, 32, 40, 0.12);
  color: var(--ink);
}

.hero-side {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(243, 237, 227, 0.92), rgba(255, 255, 255, 0.86));
}

.stack-list {
  display: grid;
  gap: 0.9rem;
}

.stack-list strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.section-heading p {
  color: var(--slate);
  max-width: 45rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.stat-card {
  padding: 1.35rem;
}

.card h3,
.stat-card h3 {
  margin-bottom: 0.5rem;
}

.card p,
.stat-card p {
  color: var(--slate);
}

.card a.card-link {
  display: block;
  text-decoration: none;
  height: 100%;
}

.card-link .eyebrow {
  margin-bottom: 0.9rem;
}

.tool-card {
  display: grid;
  gap: 0.85rem;
}

.tool-meta {
  color: var(--rust);
  font: 700 0.83rem/1.2 "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.article-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.article-card {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 32, 40, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.article-card .chip,
.article-hero .chip,
.archive-hero .chip {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(122, 139, 90, 0.14);
  color: var(--moss);
  font: 700 0.77rem/1 "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.article-card h3 {
  font-size: 1.35rem;
}

.article-card p {
  color: var(--slate);
}

.article-card-footer {
  margin-top: 1rem;
  font: 700 0.9rem/1 "Space Grotesk", sans-serif;
  color: var(--ink);
}

.archive-hero,
.article-shell {
  padding: 1.8rem;
}

.article-shell {
  display: grid;
  gap: 2rem;
}

.article-hero {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.article-hero p {
  max-width: 42rem;
  color: var(--slate);
  font-size: 1.06rem;
}

.article-content {
  width: min(100%, var(--content));
}

.article-content p,
.article-content ul,
.article-content ol {
  color: var(--ink-soft);
}

.article-content h2,
.article-content h3 {
  margin-top: 2.1rem;
}

.article-content .button-row,
.article-content .cta-row {
  margin: 1.6rem 0;
}

.article-content .disclosure {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--rust);
  background: rgba(196, 106, 58, 0.08);
  border-radius: 0 16px 16px 0;
  color: var(--ink-soft);
}

.article-content .summary-box {
  margin: 1.3rem 0;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243, 237, 227, 0.95), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(24, 32, 40, 0.08);
}

.article-content .summary-box strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
}

.related-section {
  margin-top: 1rem;
}

.cta-band {
  padding: 1.7rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(243, 237, 227, 0.92), rgba(255, 255, 255, 0.88));
}

.cta-band p {
  color: var(--slate);
  max-width: 42rem;
}

.site-footer {
  padding: 2.4rem 0 3rem;
}

.footer-shell {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  padding-top: 2rem;
  border-top: 1px solid rgba(24, 32, 40, 0.1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--slate);
  font-family: "Space Grotesk", sans-serif;
}

.footer-meta {
  color: var(--slate);
}

.contact-card {
  display: grid;
  gap: 0.9rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.inline-list li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(24, 32, 40, 0.06);
  color: var(--ink-soft);
  font: 600 0.84rem/1 "Space Grotesk", sans-serif;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease, transform 320ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    min-width: min(320px, calc(100vw - 2rem));
    padding: 0.75rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 32, 40, 0.08);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .hero,
  .section,
  .site-footer {
    padding-top: 1.8rem;
  }

  .hero-panel,
  .hero-side,
  .archive-hero,
  .article-shell,
  .cta-band,
  .card,
  .stat-card,
  .article-card {
    padding: 1.15rem;
    border-radius: 20px;
  }
}

.breadcrumb {
  margin-bottom: 0.35rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font: 600 0.82rem/1.4 "Space Grotesk", sans-serif;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.55rem 0 0;
  color: rgba(24, 32, 40, 0.26);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--slate);
}

.breadcrumb a:hover,
.breadcrumb span[aria-current="page"] {
  color: var(--ink);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
  color: var(--slate);
  font: 600 0.84rem/1 "Space Grotesk", sans-serif;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(24, 32, 40, 0.05);
}

.article-card-meta {
  margin-top: 0.9rem;
  color: var(--slate);
  font: 600 0.82rem/1.3 "Space Grotesk", sans-serif;
}

@media (max-width: 640px) {
  .breadcrumb li + li::before {
    margin-right: 0.4rem;
  }

  .article-meta {
    gap: 0.5rem;
  }
}

.archive-support {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.archive-support-copy {
  max-width: 48rem;
  color: var(--ink-soft);
}

.archive-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.archive-link-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(24, 32, 40, 0.05);
  text-decoration: none;
  font: 700 0.85rem/1 "Space Grotesk", sans-serif;
}

.archive-link-chip:hover {
  background: rgba(24, 32, 40, 0.09);
}

.toc {
  width: min(100%, var(--content));
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(24, 32, 40, 0.04);
  border: 1px solid rgba(24, 32, 40, 0.08);
}

.toc-title {
  margin-bottom: 0.85rem;
  font: 700 0.95rem/1 "Space Grotesk", sans-serif;
  color: var(--ink);
}

.toc ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.1rem;
}

.toc li {
  color: var(--ink-soft);
}

.toc li.is-sub {
  margin-left: 0.9rem;
  font-size: 0.96em;
}

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

.toc a:hover {
  color: var(--ink);
}
