@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --color-ink: #17211c;
  --color-muted: #647067;
  --color-soft: #f6f2ea;
  --color-paper: #fffaf1;
  --color-line: #ded6c8;
  --color-forest: #244437;
  --color-clay: #9a5d3f;
  --color-gold: #b6925e;
  --color-dark: #13211b;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f8f6f2;
  border-bottom: 1px solid transparent;
}

.site-nav {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #1a1a1a;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links,
.footer-links,
.mobile-drawer ul,
.article-list,
.check-list,
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a,
.footer-links a,
.mobile-drawer a {
  color: #5c5750;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-active {
  color: #1b3a2d;
}

.nav-active {
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.foldlane-btn-primary,
.btn-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 2px;
  padding: 12px 2rem;
  color: #f8f6f2;
  background: #1b3a2d;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 250ms ease, transform 150ms ease;
  white-space: nowrap;
}

.foldlane-btn-primary:hover,
.btn-primary:hover {
  background: #2a5a45;
  transform: translateY(-1px);
}

.foldlane-btn-primary,
.btn-primary {
  color: #fffaf1;
}

.btn-secondary {
  color: var(--color-forest);
  border: 1px solid var(--color-line);
  background: rgba(255, 250, 241, 0.72);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}

.mobile-toggle span::before {
  transform: translateY(-7px);
}

.mobile-toggle span::after {
  transform: translateY(5px);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid #ede8e0;
  padding: 1.5rem 0 2rem;
  background: #f8f6f2;
}

.mobile-drawer-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.guide-hero {
  padding: 54px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: stretch;
  min-height: min(560px, calc(100vh - 148px));
}

.hero-copy {
  display: flex;
  max-width: 620px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(36, 68, 55, 0.22);
  color: var(--color-forest);
  background: rgba(36, 68, 55, 0.07);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  max-width: 850px;
}

.guide-hero h1 {
  max-width: 640px;
  margin: 20px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.04;
  overflow-wrap: break-word;
}

h2 {
  margin: 42px 0 14px;
  font-size: clamp(28px, 3.5vw, 42px);
}

h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.hero-lead,
.article-summary {
  max-width: 760px;
  color: var(--color-muted);
  font-size: 19px;
}

.guide-hero .hero-lead {
  max-width: 560px;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.guide-hero .hero-actions {
  margin-top: 30px;
}

.guide-hero .btn-secondary {
  min-height: 44px;
  border-radius: 2px;
  padding: 12px 1.45rem;
}

.hero-media,
.article-hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  background: #efe7db;
}

.hero-media {
  align-self: center;
  box-shadow: 0 18px 48px rgba(23, 33, 28, 0.08);
}

.hero-media img {
  width: 100%;
  height: clamp(340px, 42vw, 520px);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.section {
  padding: 56px 0;
}

.section-muted {
  background: var(--color-soft);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
}

.section-head-side {
  display: grid;
  gap: 12px;
  justify-items: end;
  max-width: 560px;
}

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

.guide-list-item {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  text-decoration: none;
}

.guide-list-item img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.guide-list-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px 8px 0;
}

.guide-list-item h3 {
  margin: 8px 0 10px;
  max-width: 760px;
  font-size: 24px;
  line-height: 1.16;
  overflow-wrap: break-word;
}

.guide-list-item p {
  max-width: 650px;
  margin: 0;
  color: var(--color-muted);
}

.guide-list-item:hover h3 {
  color: #1b3a2d;
}

.card-meta,
.article-meta,
.article-kicker {
  color: var(--color-muted);
  font-size: 13px;
}

.article-kicker {
  color: var(--color-forest);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-line);
}

.trust-item {
  padding: 20px;
  background: var(--color-paper);
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
}

.trust-item span {
  color: var(--color-muted);
  font-size: 14px;
}

.article-hero {
  padding: 66px 0 38px;
}

.article-hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.article-meta span {
  padding: 7px 10px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
}

.article-hero-media {
  margin-top: 34px;
}

.article-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 70px;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(246, 242, 234, 0.82);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

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

.article-body {
  max-width: 820px;
}

.article-body p {
  color: #364239;
  font-size: 17px;
}

.article-body a {
  color: var(--color-forest);
  font-weight: 700;
  text-underline-offset: 3px;
}

.callout,
.quote-box {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(36, 68, 55, 0.22);
  border-radius: 8px;
  background: rgba(36, 68, 55, 0.07);
}

.quote-box {
  border-color: rgba(154, 93, 63, 0.26);
  background: rgba(154, 93, 63, 0.08);
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: #364239;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  background: var(--color-forest);
  border-radius: 50%;
  content: "";
}

.data-table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
  display: table;
  table-layout: fixed;
}

.data-table tbody,
.data-table thead {
  display: table-row-group;
}

.data-table thead {
  display: table-header-group;
}

.data-table tr {
  display: table-row;
}

.data-table th,
.data-table td {
  display: table-cell;
  padding: 14px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.data-table th {
  color: var(--color-forest);
  background: rgba(36, 68, 55, 0.08);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.related-link {
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  text-decoration: none;
}

.related-link span {
  color: var(--color-muted);
  font-size: 13px;
}

.related-link strong {
  display: block;
  margin-top: 6px;
}

.cta-band {
  margin-top: 42px;
  padding: 28px;
  border-radius: 8px;
  background: var(--color-dark);
  color: #fffaf1;
}

.cta-band p {
  color: rgba(255, 250, 241, 0.78);
}

.cta-band .btn-primary {
  color: #fffaf1;
}

.cta-band .btn-secondary {
  color: #fffaf1;
  border-color: rgba(255, 250, 241, 0.28);
  background: transparent;
}

.site-footer {
  padding: 50px 0 24px;
  color: rgba(255, 250, 241, 0.76);
  background: var(--color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid .brand,
.footer-grid strong {
  color: #fffaf1;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: rgba(255, 250, 241, 0.76);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

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

  .mobile-drawer.is-open {
    display: block;
  }

  .hero-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    gap: 30px;
  }

  .hero-copy {
    max-width: 760px;
    padding: 0;
  }

  .guide-hero h1 {
    max-width: 720px;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .related-grid,
  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-list-item {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .guide-hero,
  .article-hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 42px;
  }

  .guide-hero h1 {
    font-size: clamp(34px, 9.5vw, 40px);
  }

  .guide-hero .hero-lead {
    font-size: 17px;
  }

  .guide-hero .hero-actions {
    align-items: stretch;
  }

  .guide-hero .btn-primary,
  .guide-hero .btn-secondary {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .section-head-side {
    justify-items: start;
    margin-top: 12px;
  }

  .guide-list-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .guide-list-item img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .guide-list-body {
    padding: 2px 4px 6px;
  }

  .guide-list-item h3 {
    font-size: 22px;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
  }

  .related-grid,
  .trust-band {
    grid-template-columns: 1fr;
  }
}
