:root {
  --ink: #21362e;
  --green: #557766;
  --mint: #78d9c7;
  --paper: #fffdf8;
  --cream: #f8f3eb;
  --sage: #eef6f2;
  --terra: #d28a68;
  --terra-dark: #a76549;
  --line: #21362e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.62;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.blog-post-page .livi-quick-contact {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(33, 54, 46, 0.12);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  width: 112px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--terra);
  color: var(--paper);
  padding: 10px 16px;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.01);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 74px;
}

.hero-copy {
  max-width: 610px;
}

.hero-light .hero-copy {
  color: var(--ink);
}

.hero-dark .hero-copy {
  color: var(--paper);
}

.eyebrow {
  color: var(--terra-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-dark .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3 {
  font-family: "Montserrat", "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 16px 0 20px;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 0.98;
  text-wrap: balance;
}

.excerpt {
  max-width: 570px;
  margin: 0;
  color: rgba(33, 54, 46, 0.78);
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.42;
}

.hero-dark .excerpt {
  color: rgba(255, 253, 248, 0.9);
}

.post-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.post-tools a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(33, 54, 46, 0.25);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.hero-dark .post-tools a {
  border-color: rgba(255, 253, 248, 0.3);
  background: rgba(33, 54, 46, 0.6);
  color: var(--paper);
}

.article-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 340px);
  gap: clamp(32px, 6vw, 78px);
  padding: clamp(64px, 8vh, 104px) 0;
}

article {
  min-width: 0;
}

.meta {
  margin-bottom: 24px;
  color: var(--terra-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

article h2,
.related h2 {
  margin: 42px 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  text-wrap: balance;
}

article p,
article li {
  color: rgba(33, 54, 46, 0.77);
  font-size: clamp(18px, 1.28vw, 21px);
  line-height: 1.68;
}

article ul,
article ol {
  padding-left: 1.35rem;
}

article li {
  margin: 0.55rem 0;
}

.module {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
}

.scenario-box {
  border-left: 5px solid var(--terra);
  border-radius: 16px;
  background: var(--paper);
  padding: 18px 20px;
}

.scenario-box p {
  margin: 0;
  color: rgba(33, 54, 46, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(33, 54, 46, 0.14);
  border-radius: 16px;
  background: var(--paper);
  padding: 16px;
}

.step-card b {
  color: var(--terra-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.step-card strong {
  color: var(--ink);
  font-family: "Montserrat", "Hanken Grotesk", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.08;
}

.step-card p {
  margin: 0;
  color: rgba(33, 54, 46, 0.7);
  font-size: 16px;
  line-height: 1.44;
}

.checklist-module {
  background: var(--sage);
}

.related {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--sage);
}

.related ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.related a {
  font-weight: 850;
  text-decoration: none;
}

.side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  align-self: start;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1;
}

.side-card p {
  margin: 0 0 18px;
  color: rgba(33, 54, 46, 0.68);
  font-size: 16px;
  line-height: 1.45;
}

.side-card a,
.cta a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
}

.share-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-list a,
.share-list button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 54, 46, 0.18);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.cta {
  margin-top: 42px;
  padding: 30px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
}

.cta h2 {
  margin-top: 0;
  color: var(--paper);
}

.cta p {
  color: rgba(255, 253, 248, 0.8);
}

.cta a {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: 0;
    display: block;
    padding-top: 0;
  }

  .hero-image {
    position: relative;
    height: 58vh;
    min-height: 430px;
    object-position: center;
  }

  .hero-inner {
    padding: 34px 0 50px;
  }

  .hero-light,
  .hero-dark {
    background: var(--paper);
  }

  .hero-dark .hero-copy,
  .hero-dark .excerpt {
    color: var(--ink);
  }

  .hero-dark .eyebrow {
    color: var(--terra-dark);
  }

  .hero-dark .post-tools a {
    border-color: rgba(33, 54, 46, 0.25);
    background: var(--cream);
    color: var(--ink);
  }

  h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: relative;
    top: auto;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    width: calc(100% - 28px);
  }

  .nav-links {
    gap: 0;
  }

  .nav-cta {
    padding: 9px 13px;
    font-size: 13px;
  }

  .hero-image {
    min-height: 390px;
  }

  .hero-inner,
  .article-shell {
    width: calc(100% - 28px);
  }
}
