:root {
  --ink: #14231f;
  --muted: #60716b;
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --line: #d7ddd7;
  --teal: #087f73;
  --teal-dark: #075f57;
  --gold: #e6a23c;
  --navy: #132a43;
  --shadow: 0 20px 60px rgba(20, 35, 31, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(230, 162, 60, .13), transparent 25rem),
    linear-gradient(180deg, #fffdf8 0, var(--paper) 42rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--teal-dark); }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(20, 35, 31, .12);
}
.brand {
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand span { color: var(--teal); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.site-nav a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav .nav-cta { border: 1px solid var(--teal); border-radius: 999px; padding: .5rem .85rem; color: var(--teal-dark); }

.breadcrumbs { display: flex; gap: .45rem; margin-top: 2rem; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { color: inherit; }
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 2.4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 3rem; align-items: end; }
.eyebrow { margin: 0 0 .8rem; color: var(--teal-dark); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.7rem, 7vw, 6.2rem); font-weight: 500; }
h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 4vw, 3.1rem); font-weight: 500; }
.lede { max-width: 730px; margin: 1.25rem 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-note { padding: 1.4rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.54); color: var(--muted); }
.hero-note strong { display: block; margin-bottom: .25rem; color: var(--ink); font-size: 1.2rem; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5rem 0 4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat-band article { padding: 1.5rem; border-right: 1px solid var(--line); }
.stat-band article:last-child { border-right: 0; }
.stat-band span, .property-card span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stat-band strong { display: block; margin-top: .35rem; font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.4rem); font-weight: 500; }

.panel { margin: 0 0 2rem; padding: clamp(1.2rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.9); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.panel-heading p { max-width: 520px; margin: 0; color: var(--muted); }
.price-chart { display: block; width: 100%; min-height: 220px; }
.price-chart text { fill: var(--muted); font: 12px Inter, sans-serif; }
.chart-grid { stroke: #dfe4df; stroke-width: 1; }
.chart-line { vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .6rem; color: var(--muted); font-size: .84rem; }
.chart-legend span { display: flex; align-items: center; gap: .4rem; }
.chart-legend i { width: .72rem; height: .72rem; border-radius: 99px; }
.empty-chart { padding: 3rem; text-align: center; color: var(--muted); }

.property-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.property-card { min-width: 0; padding: 1.1rem; border-radius: 14px; background: #eff5f2; }
.property-card strong { display: block; margin-top: .35rem; font-size: 1.25rem; }
.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.context-card { padding: 1.6rem; border-radius: 18px; background: var(--navy); color: white; }
.context-card p { margin: 0; color: #cbd8e5; }
.context-card strong { display: block; margin: .6rem 0; color: white; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4.3rem); font-weight: 500; }

.action-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--teal); border-radius: 999px; background: var(--teal); color: white; font-weight: 800; text-decoration: none; }
.button.secondary { background: transparent; color: var(--teal-dark); }
.access-note { margin-top: 1rem; color: var(--muted); font-size: .86rem; }

.compare-title { font-size: clamp(2.5rem, 6vw, 5.3rem); }
.compare-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-summary article { padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: white; }
.compare-summary strong { display: block; font-size: 1.5rem; }

.ranking { width: 100%; border-collapse: collapse; }
.ranking th, .ranking td { padding: .9rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.ranking th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ranking .rank { width: 4rem; color: var(--muted); font-family: Georgia, serif; font-size: 1.25rem; }
.ranking .growth { color: var(--teal-dark); font-weight: 850; }
.ranking a { color: var(--ink); font-weight: 750; text-decoration: none; }
.ranking a:hover { text-decoration: underline; }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@media (max-width: 760px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .hero-grid, .split-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .stat-band article { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-band article:last-child { border-bottom: 0; }
  .property-grid { grid-template-columns: 1fr 1fr; }
  .compare-summary { grid-template-columns: 1fr; }
  .panel { border-radius: 16px; }
  .ranking th:nth-child(4), .ranking td:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
