:root {
  --ink: #17211f;
  --muted: #66716f;
  --line: #dce4e0;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --mint: #dcefe7;
  --green: #1f6b4d;
  --amber: #b7791f;
  --rose: #a53b4b;
  --shadow: 0 24px 70px rgba(24, 42, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  align-items: center;
  background: rgba(251, 252, 250, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 58px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand,
nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  min-height: calc(100vh - 76px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 4vw, 58px) 34px;
}

.hero-copy {
  align-self: center;
  max-width: 660px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
  margin-bottom: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.lede,
.intro p,
.tool-copy p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

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

.button {
  border: 1px solid var(--ink);
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-width: 170px;
  padding: 14px 18px;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
}

.hero-media {
  align-self: stretch;
  margin: 0;
  min-height: 460px;
  position: relative;
}

.hero-media img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-media figcaption {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 7px;
  bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  left: 18px;
  padding: 10px 12px;
  position: absolute;
}

.market-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.market-strip article {
  background: white;
  border-right: 1px solid var(--line);
  padding: 22px clamp(18px, 4vw, 42px);
}

.market-strip article:last-child {
  border-right: 0;
}

.market-strip span,
.market-strip small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-strip strong {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  margin: 8px 0 6px;
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--rose) !important;
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 58px);
}

.intro {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 0.9fr;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

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

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

.article-card img {
  aspect-ratio: 1.35;
  object-fit: cover;
  width: 100%;
}

.article-card div {
  padding: 22px;
}

.article-card span {
  color: var(--amber);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.article-card p,
.faq p {
  color: var(--muted);
  line-height: 1.65;
}

.tool-band {
  align-items: center;
  background: var(--mint);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
}

.calculator {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
}

.calculator label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input[type="range"] {
  accent-color: var(--green);
  display: block;
  margin-top: 10px;
  width: 100%;
}

output {
  font-size: 24px;
  font-weight: 800;
}

.result {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 22px;
}

.result span {
  color: var(--muted);
  font-weight: 800;
}

.result strong {
  font-size: clamp(30px, 5vw, 54px);
}

.faq {
  display: grid;
  gap: 12px;
}

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

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

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 58px);
}

footer span {
  margin-right: auto;
}

@media (max-width: 900px) {
  .hero,
  .intro,
  .tool-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
  }

  .market-strip,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .market-strip,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .market-strip article {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .hero-actions,
  .result {
    align-items: stretch;
    flex-direction: column;
  }
}
