:root {
  --bg: #f6efe4;
  --paper: #fffaf1;
  --ink: #1d1b18;
  --muted: #6f665b;
  --terracotta: #c85d3d;
  --terracotta-dark: #9f3f27;
  --blue: #216177;
  --green: #556b3f;
  --sand: #ead9c1;
  --radius: 24px;
  --shadow: 0 18px 50px rgba(70, 47, 25, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.05; }
h1 { max-width: 760px; font-size: clamp(3.3rem, 8vw, 7.6rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); letter-spacing: -.045em; }
h3 { font-size: 1.55rem; }
p { margin: 0; }

.site-header, .site-footer, .section, .article { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 0;
}
.brand { display: grid; margin-right: auto; text-decoration: none; line-height: 1.15; }
.brand strong { font-family: Georgia, serif; font-size: 1.25rem; }
.brand span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
nav { display: flex; gap: 22px; }
nav a, .footer-links a { color: var(--muted); text-decoration: none; }
nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--terracotta-dark); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: white;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.button:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 18px; font-size: .9rem; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: white; }
.button-outline { border: 1px solid var(--terracotta); background: transparent; color: var(--terracotta-dark); }
.button-outline:hover { background: var(--terracotta); color: white; }
.text-link { color: var(--terracotta-dark); font-weight: 750; text-decoration: none; }

.section { padding: 90px 0; }
.eyebrow { color: var(--terracotta-dark); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; padding-top: 50px; }
.hero-copy { display: grid; gap: 26px; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--sand); padding-top: 26px; }
.stats div { display: grid; gap: 3px; }
.stats strong { font-family: Georgia, serif; font-size: 1.6rem; }
.stats span { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.hero-images { position: relative; min-height: 620px; }
.hero-main { height: 550px; border-radius: 180px 180px var(--radius) var(--radius); box-shadow: var(--shadow); }

.section-heading { display: grid; gap: 18px; max-width: 780px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--muted); max-width: 680px; font-size: 1.1rem; }
.calculator-section { width: min(1260px, calc(100% - 24px)); padding: 80px max(20px, calc((100% - 1180px) / 2)); border-radius: 38px; background: var(--blue); color: white; }
.calculator-section .eyebrow { color: #f5bd95; }
.calculator-section .section-heading > p:last-child, .calculator-section .form-note { color: rgba(255,255,255,.72); }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.calculator-card, .forecast-card { min-height: 440px; padding: 30px; border-radius: var(--radius); }
.calculator-card { display: grid; gap: 18px; background: var(--paper); color: var(--ink); }
.calculator-card label { display: grid; gap: 7px; color: var(--muted); font-size: .85rem; font-weight: 750; }
input, select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.form-note { font-size: .82rem; }
.calculator-card .form-note { color: var(--muted); }
.forecast-card { display: flex; flex-direction: column; gap: 18px; background: rgba(255,255,255,.11); }
.forecast-card h3 { font-size: clamp(2rem, 4vw, 3.5rem); }
.forecast-card .text-link { margin-top: auto; color: #ffd3b5; }
.forecast-status { font-size: 1.12rem; }
dl { display: grid; gap: 9px; margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.18); }
dt { color: rgba(255,255,255,.65); }
dd { margin: 0; text-align: right; font-weight: 700; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: 0 10px 30px rgba(70,47,25,.06); }
.topic-card img { height: 140px; }
.topic-card div { padding: 20px; }
.topic-card h3 { margin-bottom: 8px; font-size: 1.28rem; }
.topic-card p, .post-card p { color: var(--muted); font-size: .92rem; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post-card { overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.post-card img { height: 290px; }
.post-card-body { display: grid; gap: 14px; padding: 26px; }
.post-card h3 a { text-decoration: none; }
.post-meta { color: var(--terracotta-dark) !important; font-size: .75rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-action { display: flex; justify-content: center; margin-top: 38px; }
.archive-hero { display: grid; gap: 20px; padding-bottom: 35px; }
.archive-hero h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
.archive-hero .lead { max-width: 700px; }
.archive-section { padding-top: 20px; }

.author-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: center; }
.author-section img { height: 560px; border-radius: var(--radius) 180px var(--radius) var(--radius); }
.author-section div { display: grid; gap: 22px; }
.author-section div > p:last-child { color: var(--muted); }
.final-cta { display: grid; justify-items: center; gap: 24px; margin: 30px 12px 0; padding: 100px 24px; border-radius: 38px 38px 0 0; background: var(--terracotta-dark); color: white; text-align: center; }
.final-cta .eyebrow { color: #f5bd95; }
.final-cta h2 { max-width: 850px; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 40px 0; color: var(--muted); }
.site-footer p { max-width: 660px; margin-top: 8px; font-size: .85rem; }
.footer-links { display: flex; gap: 18px; white-space: nowrap; }

.article { max-width: 820px; padding: 70px 0 110px; }
.article > h1 { margin: 20px 0; font-size: clamp(3rem, 7vw, 6rem); }
.article > .post-meta { margin-top: 60px; }
.article-cover { height: 480px; margin: 40px 0; border-radius: var(--radius); }
.prose { font-family: Georgia, serif; font-size: 1.18rem; line-height: 1.75; }
.prose h1 { display: none; }
.prose h2 { margin: 2em 0 .5em; font-size: 2rem; }
.prose p { margin: 1em 0; }
.prose a { color: var(--terracotta-dark); }
.article-cta { display: grid; gap: 18px; margin-top: 60px; padding: 34px; border-radius: var(--radius); background: var(--sand); }
.article-cta .button { justify-self: start; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero, .calculator-grid, .author-section { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero-images { min-height: 470px; }
  .hero-main { height: 430px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .author-section img { height: 430px; }
}

@media (max-width: 600px) {
  .site-header, .site-footer, .section, .article { width: min(100% - 28px, 1180px); }
  .site-header { gap: 10px; padding: 16px 0; }
  .site-header .button { min-height: 40px; padding: 8px 13px; font-size: .78rem; }
  .brand strong { font-size: 1rem; }
  .brand span { font-size: .62rem; }
  .section { padding: 62px 0; }
  h1 { font-size: clamp(2.35rem, 10.5vw, 4.5rem); }
  .hero { gap: 34px; }
  .hero-images { min-height: 390px; }
  .hero-main { height: 360px; border-radius: 120px 120px 18px 18px; }
  .stats { gap: 7px; }
  .stats strong { font-size: 1.3rem; }
  .stats span { font-size: .72rem; }
  .calculator-section { width: calc(100% - 16px); padding: 58px 8px; border-radius: 26px; }
  .calculator-section > .section-heading { padding: 0 10px; }
  .calculator-card, .forecast-card { min-height: 0; padding: 22px; }
  .topic-grid, .post-grid { grid-template-columns: 1fr; }
  .topic-card { display: grid; grid-template-columns: 105px 1fr; }
  .topic-card img { height: 100%; }
  .post-card img { height: 220px; }
  .author-section { gap: 30px; }
  .author-section img { height: 380px; }
  .site-footer { display: grid; }
  .footer-links { display: grid; gap: 5px; }
  .article { padding-top: 45px; }
  .article-cover { height: 280px; }
}
