:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #233025;
  --muted: #66715f;
  --line: #ded7c9;
  --accent: #2f6f4e;
  --accent-strong: #184f35;
  --sun: #d9a441;
  --rose: #b86778;
  --sky: #d8e6e8;
  --shadow: 0 18px 45px rgba(40, 48, 37, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--accent-strong);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent-strong);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-hero,
.article-hero,
.simple-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 5vw, 52px) 0 22px;
}

.simple-hero {
  display: block;
}

.home-hero img,
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  max-width: 11ch;
}

.article-hero h1 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.22rem;
}

.home-hero p,
.summary {
  max-width: 64ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.byline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 18px;
}

.byline a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.byline a:hover {
  text-decoration: underline;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button-secondary {
  background: #e4eadf;
  color: var(--accent-strong);
}

.intro-band,
.disclosure,
.fact-box {
  margin: 34px 0;
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-band p,
.disclosure p {
  max-width: 78ch;
}

.section {
  padding: clamp(42px, 7vw, 74px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.45fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

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

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.article-card a {
  display: grid;
  height: 100%;
  text-decoration: none;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.article-card span,
.article-card h3,
.article-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.article-card span {
  margin-top: 16px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-card h3 {
  margin-top: 6px;
}

.article-card p {
  margin-top: 8px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs > * + *::before {
  content: "/";
  margin-right: 8px;
  color: #9a9f93;
}

.article-page {
  padding-bottom: 48px;
}

.article-content {
  width: min(780px, 100%);
  margin: 0 auto;
}

.article-content .lead {
  color: #3f4b3f;
  font-size: 1.18rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -8px;
}

.article-content section {
  margin: 42px 0;
}

.article-content p,
.article-content li,
.fact-box td,
.fact-box th {
  font-size: 1.04rem;
}

.fact-box table {
  width: 100%;
  border-collapse: collapse;
}

.fact-box th,
.fact-box td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.fact-box th {
  width: 34%;
  color: var(--accent-strong);
}

.toc {
  margin: 34px 0 42px;
  padding: 22px;
  background: #f0f5ef;
  border: 1px solid #d5dfd1;
  border-radius: 8px;
}

.toc h2 {
  font-size: 1.2rem;
}

.toc div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cbd8c6;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.check-list {
  padding-left: 1.2rem;
}

.feature-list,
.timeline-list {
  padding-left: 1.2rem;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.feature-list li::marker {
  color: var(--accent);
}

.timeline-box {
  padding: 24px;
  background: #eef3ea;
  border: 1px solid #d4dfcd;
  border-radius: 8px;
}

.decision-box {
  padding: 24px;
  background: var(--paper);
  border-left: 4px solid var(--sun);
  border-radius: 8px;
}

.timeline-list {
  margin-bottom: 0;
}

.check-list li + li,
.timeline-list li + li {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

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

.related a {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
}

.method-note {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.method-note h2 {
  color: var(--ink);
  font-size: 1.35rem;
}

.method-note a {
  color: var(--accent-strong);
  font-weight: 750;
}

.ad-wrap {
  display: grid;
  place-items: center;
  min-height: 250px;
  margin: 28px 0;
  padding: 12px;
  border: 1px dashed #b8b2a3;
  border-radius: 8px;
  background: #f0eee6;
  color: #777064;
}

.ad-wrap span {
  align-self: start;
  justify-self: start;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ad-top,
.ad-bottom {
  min-height: 280px;
}

.ad-inline {
  min-height: 320px;
}

.adsbygoogle {
  width: 100%;
  min-height: 220px;
}

.site-footer {
  margin-top: 56px;
  padding: 32px clamp(18px, 4vw, 56px);
  background: #1f2c22;
  color: #e8eadf;
}

.site-footer p {
  max-width: 900px;
}

@media (max-width: 920px) {
  .home-hero,
  .article-hero,
  .simple-hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 6px 12px;
    font-size: 0.88rem;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .home-hero,
  .article-hero,
  .simple-hero {
    gap: 16px;
    padding: 18px 0 14px;
  }

  h1,
  .article-hero h1 {
    max-width: 100%;
  }

  .home-hero p,
  .summary {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .home-hero img,
  .article-hero img {
    aspect-ratio: 16 / 7;
  }

  .featured-grid,
  .card-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .article-card span,
  .article-card h3,
  .article-card p {
    margin-left: 14px;
    margin-right: 14px;
  }

  .fact-box th,
  .fact-box td {
    display: block;
    width: 100%;
  }

  .fact-box td {
    padding-top: 0;
    border-top: 0;
  }
}
