:root {
  color-scheme: light;
  --ink: #1f241d;
  --muted: #68705f;
  --paper: #f7f1e6;
  --paper-2: #fffaf0;
  --forest: #203d2a;
  --moss: #6f7f4f;
  --clay: #a66c43;
  --line: rgba(31, 36, 29, 0.16);
  --shadow: 0 18px 55px rgba(31, 36, 29, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.skip-link {
  left: 1rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(247, 241, 230, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav-shell,
.section-inner,
.article-shell,
.footer-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 22px;
  padding-right: 22px;
}

.nav-shell {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  min-height: 76px;
}

.brand {
  align-items: baseline;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  background: var(--forest);
  border-radius: 50%;
  color: var(--paper-2);
  display: inline-grid;
  font-family: var(--serif);
  font-size: 18px;
  height: 42px;
  place-items: center;
  width: 42px;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: 0;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest);
}

.hero {
  background: var(--forest);
  color: var(--paper-2);
}

.hero .section-inner {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  min-height: calc(100svh - 76px);
  padding-bottom: 52px;
  padding-top: 54px;
}

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

.hero .eyebrow {
  color: #dcc29b;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  max-width: 9ch;
}

.hero-copy {
  align-self: center;
}

.hero-copy p {
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  max-width: 48ch;
}

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

.button,
.text-button {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
}

.button {
  background: var(--paper-2);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 4px;
  color: var(--forest);
  padding: 0 18px;
}

.button.secondary {
  background: transparent;
  color: var(--paper-2);
}

.hero-image {
  align-self: end;
}

.hero-image img {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section.light {
  background: var(--paper-2);
}

.section-header {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding-top: 18px;
}

.section-header h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.section-header p {
  color: var(--muted);
  margin: 0;
  max-width: 44ch;
}

.grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.grid.featured {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.article-card {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 15px;
  padding-bottom: 22px;
}

.article-card.large {
  grid-template-columns: minmax(0, 1fr);
}

.article-card img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.article-card.large img {
  aspect-ratio: 16 / 11;
}

.kicker {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.65rem);
}

.article-card:not(.large) h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.article-card p {
  color: var(--muted);
  margin: 0;
}

.tool-band {
  background: var(--forest);
  color: var(--paper-2);
}

.tool-band .section-inner {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
}

.tool-band img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
}

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

.article-hero {
  background: var(--forest);
  color: var(--paper-2);
  padding: 58px 0 0;
}

.article-hero .article-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
}

.article-hero h1 {
  max-width: 11ch;
}

.article-hero p {
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.08rem;
}

.article-meta {
  color: #dcc29b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-hero img {
  aspect-ratio: 16 / 12;
  border-radius: 6px 6px 0 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.content {
  background: var(--paper-2);
  padding: 58px 0 80px;
}

.content-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
}

.article-body h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin-top: 44px;
}

.article-body p,
.article-body li {
  color: #33382d;
  font-size: 1.03rem;
}

.article-body a {
  border-bottom: 1px solid var(--clay);
  color: var(--forest);
  font-weight: 800;
}

.notice,
.toc,
.product-box,
.faq-box,
.calc-panel,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.notice {
  background: #f3eadb;
  color: #3d3f34;
  margin: 0 0 28px;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 96px;
}

.toc a {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  padding: 6px 0;
}

.product-box {
  background: #f8f0e2;
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.product-box strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.comparison-table {
  border-collapse: collapse;
  margin: 26px 0;
  width: 100%;
}

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

.comparison-table th {
  background: var(--forest);
  color: var(--paper-2);
}

.faq-box {
  margin-top: 20px;
}

.faq-box summary {
  cursor: pointer;
  font-weight: 800;
}

.calc-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.calculator {
  display: grid;
  gap: 14px;
}

.calc-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 1fr) 100px 100px;
}

.calc-row label {
  font-weight: 800;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.result-total {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
}

.site-footer {
  background: #18251d;
  color: rgba(255, 250, 240, 0.78);
  padding: 42px 0;
}

.footer-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--paper-2);
  font-weight: 800;
}

@media (max-width: 860px) {
  .nav-shell,
  .hero .section-inner,
  .article-hero .article-shell,
  .content-grid,
  .tool-band .section-inner,
  .calc-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    align-items: start;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero .section-inner {
    min-height: auto;
  }

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

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-inner,
  .article-shell,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .calc-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    justify-content: center;
  }
}
