:root {
  --ink: #11213b;
  --ink-soft: #47546c;
  --paper: #f6f2e8;
  --paper-strong: #fffdf8;
  --line: rgba(17, 33, 59, 0.12);
  --accent: #e85d2a;
  --accent-deep: #bf4318;
  --accent-soft: #ffd7bf;
  --teal: #0d8a83;
  --night: #0d1a2d;
  --shell: min(1160px, calc(100vw - 2rem));
  --radius: 1.5rem;
  --shadow: 0 18px 50px rgba(13, 26, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(232, 93, 42, 0.18), transparent 30%),
    radial-gradient(circle at right 20%, rgba(13, 138, 131, 0.12), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

p,
ul,
ol {
  margin-top: 0;
}

.shell,
.section-inner {
  width: var(--shell);
  margin: 0 auto;
}

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

.site-header .shell,
.site-nav,
.footer-grid,
.hero .section-inner,
.split,
.cta-actions,
.eyebrow-list,
.metric-stack {
  display: flex;
  gap: 1rem;
}

.site-header .shell {
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 3rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--accent), #ffb066);
  color: white;
  box-shadow: 0 10px 25px rgba(232, 93, 42, 0.28);
}

.site-nav {
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
}

.site-nav a[aria-current='page'] {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0.75rem 1rem;
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  border-color: rgba(17, 33, 59, 0.18);
  background: white;
}

.header-cta {
  margin-left: 0.25rem;
}

.section {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 5rem;
}

.hero .section-inner,
.split {
  align-items: center;
}

.hero .section-inner,
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.split-reverse > :first-child {
  order: 2;
}

.split-reverse > :last-child {
  order: 1;
}

.hero-panel,
.card,
.quote-card,
.cta-shell,
.toc {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 33, 59, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  overflow: hidden;
  padding: 1rem;
}

.hero-panel img,
.accent-card img {
  border-radius: calc(var(--radius) - 0.5rem);
  background: white;
}

.hero-copy h1,
.prose h1,
.post-hero h1,
.section h2,
.cta-shell h2 {
  margin: 0 0 1rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-copy h1,
.post-hero h1 {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
}

.section h2,
.prose h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.kicker,
.blog-meta {
  margin-bottom: 0.85rem;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede,
.section-copy,
.prose p,
.faq-item p,
.quote-card p,
.card p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.eyebrow-list,
.metric-stack,
.check-list,
.faq-list,
.blog-grid,
.feature-grid {
  padding: 0;
  list-style: none;
}

.eyebrow-list {
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.eyebrow-list li,
.metric-card {
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  background: rgba(13, 26, 45, 0.04);
  border: 1px solid rgba(13, 26, 45, 0.08);
  font-weight: 700;
}

.metric-stack {
  flex-wrap: wrap;
  margin-top: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 9rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, white, rgba(255, 214, 194, 0.56));
}

.metric-card strong {
  font-size: 1.4rem;
}

.narrow,
.prose {
  max-width: 52rem;
}

.feature-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card,
.quote-card,
.toc,
.lead-form {
  padding: 1.4rem;
}

.feature-card h3,
.blog-card h3,
.faq-item summary,
.site-footer h2,
.toc h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.accent-card p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.check-list li {
  margin-bottom: 0.85rem;
  padding-left: 1.2rem;
  position: relative;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--teal);
}

.quote-card {
  margin: 0;
  background: linear-gradient(135deg, rgba(13, 26, 45, 0.97), rgba(13, 138, 131, 0.92));
  color: white;
}

.quote-card p,
.quote-card footer {
  color: rgba(255, 255, 255, 0.88);
}

.cta-section {
  padding-top: 1rem;
}

.cta-shell {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 216, 191, 0.8), rgba(255, 255, 255, 0.95));
}

.cta-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 1px solid rgba(17, 33, 59, 0.18);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: white;
}

.auth-card h2 {
  margin-top: 0;
}

.auth-links {
  margin-top: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.form-note,
.form-status {
  font-size: 0.94rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.3rem;
  color: var(--teal);
}

.faq-item summary {
  cursor: pointer;
}

.faq-item[open] {
  border-color: rgba(13, 138, 131, 0.2);
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.article-block {
  margin-bottom: 2.25rem;
  scroll-margin-top: 6rem;
}

.article-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.post-hero {
  padding-bottom: 1rem;
}

.site-footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2rem;
}

.site-footer ul {
  margin: 0;
  padding-left: 1.15rem;
}

@media (max-width: 900px) {
  .hero .section-inner,
  .split,
  .footer-grid,
  .feature-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .split-reverse > :first-child,
  .split-reverse > :last-child {
    order: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
