:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1b2733;
  --muted: #55636f;
  --rule: #d9d5cc;
  --link: #123456;
  --card: #f2f0ea;
  --navy: #123456;
  --rust: #b8492f;
  --gold: #8f5f28;
  --teal: #2f6f62;
  --on-accent: #fbfaf7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171d;
    --fg: #e6e9ec;
    --muted: #9aa7b2;
    --rule: #2a343d;
    --link: #7ec4e4;
    --card: #182129;
    --navy: #7ec4e4;
    --rust: #e2795c;
    --gold: #e0ab5f;
    --teal: #5fa393;
    --on-accent: #10171d;
  }
}
:root[data-theme="dark"] {
  --bg: #10171d; --fg: #e6e9ec; --muted: #9aa7b2; --rule: #2a343d; --link: #7ec4e4; --card: #182129;
  --navy: #7ec4e4; --rust: #e2795c; --gold: #e0ab5f; --teal: #5fa393; --on-accent: #10171d;
}
:root[data-theme="light"] {
  --bg: #fbfaf7; --fg: #1b2733; --muted: #55636f; --rule: #d9d5cc; --link: #123456; --card: #f2f0ea;
  --navy: #123456; --rust: #b8492f; --gold: #8f5f28; --teal: #2f6f62; --on-accent: #fbfaf7;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 ui-serif, Georgia, "Times New Roman", serif;
}
.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
h1 {
  font: 800 clamp(2.25rem, 7vw, 3.5rem)/1.02 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.4em;
}
h2 {
  display: inline-block;
  font: 700 0.75rem/1.3 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--on-accent);
  background: var(--section-accent, var(--muted));
  padding: 0.3rem 0.65rem;
  border-radius: 0.3rem;
  margin: 3rem 0 1rem;
}
h2:first-of-type { margin-top: 0; }
p { margin: 0 0 1.15rem; }
.lead { font-size: 1.1875rem; color: var(--fg); }
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Stat strip (hero callouts) */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 3rem;
}
.stat-card {
  padding: 1.15rem 1rem;
  border-radius: 0.6rem;
  background: var(--accent, var(--navy));
  color: var(--on-accent);
  overflow-wrap: break-word;
}
.stat-card .n {
  display: block;
  font: 800 clamp(1.625rem, 8vw, 2.25rem)/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
}
.stat-card .label {
  font: 600 0.75rem/1.3 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.92;
}
.stat-card.navy { --accent: var(--navy); }
.stat-card.rust { --accent: var(--rust); }
.stat-card.gold { --accent: var(--gold); }
.stat-card.teal { --accent: var(--teal); }

/* Property cards, colour-accented per section via --section-accent */
.property {
  padding: 1rem 1.15rem;
  margin: 0 0 0.75rem;
  background: var(--card);
  border-left: 4px solid var(--section-accent, var(--rule));
  border-radius: 0.35rem;
}
.property h3 {
  margin: 0 0 0.3rem;
  font: 600 1.0625rem/1.3 ui-sans-serif, system-ui, sans-serif;
}
.property h3 a { text-decoration: none; }
.property h3 a:hover { text-decoration: underline; }
.property p { margin: 0; color: var(--muted); font-size: 0.9375rem; font-family: ui-sans-serif, system-ui, sans-serif; line-height: 1.55; }

.section-navy { --section-accent: var(--navy); }
.section-rust { --section-accent: var(--rust); }
.section-gold { --section-accent: var(--gold); }
.section-teal { --section-accent: var(--teal); }

.also {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
}
.also a { white-space: nowrap; }

/* Content pages (about / terms / privacy) */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.updated {
  color: var(--muted);
  font-size: 0.9375rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  margin: 0 0 2rem;
}
.wrap ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.wrap li { margin: 0 0 0.5rem; }

/* Footer: a solid navy band bookends the bold hero */
.site-footer {
  margin: 4rem -1.25rem -5rem;
  padding: 2rem 1.25rem 2.5rem;
  background: var(--navy);
  color: var(--on-accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--on-accent); }
.footer-nav, .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}
.footer-social { opacity: 0.85; }
.footer-bottom { margin: 0; opacity: 0.85; }
