:root {
  --page: #f7f2e9;
  --surface: #fffdf8;
  --subtle: #eee7dc;
  --ink: #263229;
  --muted: #687169;
  --line: #ddd5c8;
  --green: #33483b;
  --green-soft: #e8efe9;
  --brown: #76553f;
  --tan: #e5d2bb;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--brown); }
a:hover { color: #513827; }
button,
input,
select { font: inherit; }
:focus-visible { outline: 3px solid #a78469; outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247,242,233,.94);
  border-bottom: 1px solid rgba(221,213,200,.9);
  backdrop-filter: blur(12px);
}
.site-header-inner {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}
.site-brand img { width: 38px; height: 38px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav .nav-cta {
  min-height: 42px;
  padding: 10px 15px;
  background: var(--green);
  border-radius: 9px;
  color: #fff;
}
.site-nav .nav-cta:hover { background: #263a2e; color: #fff; }

.content-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.breadcrumbs { padding: 26px 0 0; color: var(--muted); font-size: 11px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 7px; color: #a29a8f; content: "/"; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 70px;
  align-items: end;
  padding: 72px 0 64px;
}
.content-hero.compact { grid-template-columns: minmax(0, 760px); padding-bottom: 48px; }
.eyebrow { margin: 0 0 12px; color: var(--brown); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1,
h2,
h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.025em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; }
.content-hero.compact h1 { font-size: clamp(40px, 5vw, 62px); }
.lede { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-note { padding: 23px; background: var(--green); border-radius: 16px; color: #edf3ee; font-size: 13px; }
.hero-note strong { display: block; margin-bottom: 8px; color: #fff; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }

.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(220px, 280px); gap: 76px; align-items: start; padding-bottom: 84px; }
.article { min-width: 0; }
.article h2 { margin: 58px 0 15px; font-size: clamp(29px, 4vw, 40px); line-height: 1.12; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 34px 0 10px; font-size: 24px; line-height: 1.2; }
.article p,
.article li { color: #4e5850; font-size: 16px; }
.article p { margin: 0 0 20px; }
.article ul,
.article ol { margin: 0 0 24px; padding-left: 24px; }
.article li { margin-bottom: 10px; }
.article strong { color: var(--ink); }
.article figure { margin: 38px 0; }
.article figure img { width: 100%; max-height: 520px; object-fit: cover; border: 1px solid var(--line); border-radius: 16px; }
.article figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.article-callout { margin: 32px 0; padding: 22px 24px; background: var(--green-soft); border-left: 4px solid #617f6a; border-radius: 0 12px 12px 0; }
.article-callout p:last-child { margin-bottom: 0; }
.comparison-table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 14px; }
.comparison-table th,
.comparison-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--ink); font-size: 12px; }
.comparison-table td { color: #4e5850; }

.article-aside { position: sticky; top: 98px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.article-aside strong { display: block; margin-bottom: 12px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.article-aside p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.button-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  background: var(--brown);
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.button-link:hover { background: #654833; color: #fff; }
.text-link { font-size: 12px; font-weight: 750; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 72px; }
.card { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.card h2,
.card h3 { margin: 0 0 10px; font-size: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 18px;
  margin-bottom: 72px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(73,59,43,.06);
}
.calculator-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 12px; font-weight: 800; }
.field small { color: var(--muted); font-size: 10px; }
.field input,
.field select { width: 100%; min-height: 46px; padding: 10px 12px; background: #faf7f1; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.calculator-result { display: grid; align-content: center; padding: 28px; background: var(--green); border-radius: 14px; color: #e4ebe5; }
.calculator-result > span { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.calculator-result strong { margin: 10px 0 4px; color: #fff; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 52px); font-weight: 500; line-height: 1; }
.calculator-result p { margin: 11px 0 0; font-size: 12px; }

.example-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 38px; }
.example-stats div { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.example-stats strong,
.example-stats span { display: block; }
.example-stats strong { font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.example-stats span { color: var(--muted); font-size: 10px; }

.site-footer { background: var(--green); color: #d8e0da; }
.site-footer-inner { display: flex; width: min(1120px, calc(100% - 40px)); min-height: 150px; align-items: center; justify-content: space-between; gap: 30px; margin: 0 auto; }
.site-footer strong { display: block; color: #fff; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.site-footer small { font-size: 11px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #e6ece7; font-size: 11px; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .site-header { position: static; }
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px 0; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 12px 18px; }
  .site-nav .nav-cta { margin-left: auto; }
  .content-hero,
  .article-layout,
  .calculator { grid-template-columns: 1fr; }
  .content-hero { gap: 28px; padding: 50px 0; }
  .article-aside { position: static; }
  .card-grid { grid-template-columns: 1fr; }
  .example-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .content-shell,
  .site-header-inner,
  .site-footer-inner { width: min(100% - 28px, 1120px); }
  .site-brand { min-height: 44px; }
  .site-nav a:not(.nav-cta) { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .site-nav .nav-cta { width: 100%; min-height: 44px; margin-left: 0; }
  .breadcrumbs li { display: flex; align-items: center; }
  .breadcrumbs a { display: inline-flex; min-height: 44px; align-items: center; }
  h1 { font-size: 42px; }
  .content-hero.compact h1 { font-size: 38px; }
  .calculator { padding: 15px; }
  .calculator-fields { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .example-stats { grid-template-columns: 1fr; }
  .comparison-table { font-size: 12px; }
  .comparison-table th,
  .comparison-table td { padding: 11px 7px; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 34px 0; }
  .site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
}
