:root {
  --navy: #35558B;
  --navy-dark: #2a4470;
  --sky: #A4BAD5;
  --sky-soft: #e8eef5;
  --ink: #1c2430;
  --muted: #5b6673;
  --line: #d5dde6;
  --paper: #f7f8fa;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 40;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }
.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--navy);
}
.serif { font-family: "Source Serif 4", Georgia, serif; letter-spacing: -0.02em; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
}
.logo {
  font-weight: 700; color: var(--navy); text-decoration: none;
  font-size: 1.05rem; letter-spacing: 0.02em; flex: 0 0 auto;
}
.logo span {
  display: block; font-weight: 500; font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
nav.primary { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
nav.primary a {
  text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500;
}
nav.primary a[aria-current="page"] { color: var(--navy); }
.header-cta {
  display: inline-flex; align-items: center;
  background: var(--navy); color: var(--white) !important;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 0.55rem 1rem; border-radius: 999px; white-space: nowrap;
}
.header-cta:hover { background: var(--navy-dark); color: #fff !important; }

/* Hero */
.hero { padding: 3.5rem 0 2.75rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
  gap: 3rem;
  align-items: start;
}
.hero-media { display: flex; justify-content: flex-end; }
.hero-media img, .portrait {
  width: min(100%, 380px);
  border-radius: 18px;
  object-fit: cover;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  margin-top: 0.5rem;
  color: var(--ink);
}
.intro { margin-top: 1.3rem; font-size: 1.15rem; color: #334155; max-width: 42rem; }
.intro p + p { margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
}
.btn-solid { background: var(--navy); color: #fff !important; }
.btn-solid:hover { background: var(--navy-dark); }
.btn-ghost { background: #fff; color: var(--navy) !important; border-color: var(--sky); }
.btn-ghost:hover { background: var(--sky-soft); }
.stat-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem; margin-top: 2.2rem; list-style: none;
}
.stat-row .num { font-size: 1.55rem; font-weight: 600; }
.stat-row .label {
  margin-top: 0.2rem; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); font-weight: 600;
}
.source, .cite { margin-top: 1.1rem; font-size: 0.82rem; color: var(--muted); }
.toc {
  position: sticky; top: 6rem;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--line);
}
.toc h2 { margin-bottom: 1rem; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.toc a { font-weight: 500; text-underline-offset: 4px; }

section.block, .hero { scroll-margin-top: 5.75rem; }
section.block { padding: 4.25rem 0; }
section.block.alt { background: var(--paper); }
section.block h2.sec {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.15; margin-top: 0.45rem;
}
.sec-head { margin-bottom: 1.8rem; max-width: 40rem; }
.sec-head .sub { margin-top: 0.45rem; color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.25rem 1.3rem 1.2rem;
}
.card h3 { font-size: 1.2rem; margin: 0.3rem 0 0.5rem; }
.card p { color: #334155; font-size: 0.98rem; }

.prose { max-width: 46rem; color: #334155; font-size: 1.05rem; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1rem; }
.prose h3 {
  font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem;
  color: var(--ink); margin: 2rem 0 0.7rem; line-height: 1.2;
}
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.rules, table.listings { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.rules th, table.rules td, table.listings th, table.listings td {
  text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.rules th, table.listings th {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); font-weight: 600;
}
table.rules caption, table.listings caption {
  caption-side: bottom; text-align: left; color: var(--muted);
  font-size: 0.82rem; padding: 0.7rem 0.75rem 0.85rem;
}

.town-grid { display: grid; gap: 1.25rem; }
.town-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem 1.6rem 1.4rem;
}
.town-card h3 { font-size: 1.55rem; line-height: 1.2; margin: 0.35rem 0 0.85rem; }
.town-card p { color: #334155; }
.town-card p + p { margin-top: 0.85rem; }

.map-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-frame img { width: 100%; }
.map-cap { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); }

.sales { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1rem; }
.sale-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  background: #fff; overflow: hidden;
}
.sale-card:hover { border-color: var(--sky); }
.sale-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sky-soft);
}
.sale-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sale-card-placeholder {
  background:
    linear-gradient(165deg, #e8eef5 0%, var(--sky) 58%, #7d97b8 100%);
  position: relative;
}
.sale-card-placeholder::after {
  content: "WH";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  opacity: 0.35;
}
.sale-card-body { padding: 1.15rem 1.2rem 1.2rem; }
.sale-card .tag { color: var(--navy); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.sale-card h3 { margin: 0.35rem 0 0.3rem; font-size: 1.2rem; }

.cta {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem;
  align-items: center;
}
.cta img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; }

.disclaimer {
  background: var(--sky-soft); border-left: 4px solid var(--navy);
  padding: 1.1rem 1.25rem; border-radius: 0 12px 12px 0; margin-top: 1.5rem;
}
.note {
  background: #f3efe4; border: 1px solid #e4d8b8; border-radius: 14px;
  padding: 1.1rem 1.25rem; color: #5c4a24; margin: 1.25rem 0 0; font-size: 0.98rem;
}

/* Forms */
form.contact { max-width: 36rem; display: grid; gap: 0.95rem; }
form.contact label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }
form.contact input, form.contact select, form.contact textarea {
  font: inherit; padding: 0.65rem 0.75rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; width: 100%;
}
form.contact textarea { min-height: 8rem; resize: vertical; }
form.contact button {
  justify-self: start; cursor: pointer; font: inherit;
  background: var(--navy); color: #fff; border: 0; font-weight: 600;
  padding: 0.7rem 1.2rem; border-radius: 999px;
}
form.contact button:hover { background: var(--navy-dark); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem; align-items: start;
}
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem; }
.contact-card p + p { margin-top: 0.7rem; }

/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 48rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin-top: 0.65rem; color: #334155; }

/* Footer */
footer.site { background: var(--navy-dark); color: #e8eef5; padding: 2.6rem 0 1.8rem; }
footer.site a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
footer h3 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 0.8rem; }
footer ul { list-style: none; }
footer li + li { margin-top: 0.4rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; color: #fff; }
.legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #4a6490; font-size: 0.82rem; color: #c5d2e4; }

.coming { max-width: 40rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding: 0.7rem 0; }
  nav.primary { display: flex; width: 100%; order: 3; gap: 0.55rem 1rem; padding-bottom: 0.35rem; }
  nav.primary a { font-size: 0.82rem; }
  .hero-grid, .cta, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { justify-content: flex-start; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 1.25rem 0 0; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.2rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cta img { width: 140px; height: 140px; }
  section.block { padding: 3rem 0; }
  .hero { padding-top: 2rem; }
}
@media (max-width: 640px) {
  table.listings th:nth-child(n+4), table.listings td:nth-child(n+4) { display: none; }
}

/* Just Sold pages */
.sold-hero .lede {
  margin-top: 0.7rem;
  font-size: 1.15rem;
  color: #334155;
}
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: var(--sky-soft);
  border: 1px dashed #8aa4c4;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  padding: 2rem 1.5rem;
}
.photo-placeholder p {
  max-width: 28rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.sold-note {
  margin-top: 1rem;
  font-size: 1rem;
  color: #334155;
}
.sold-hero-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.sold-hero-photo img { width: 100%; height: auto; display: block; }
.photo-credit {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.sold-copy { margin-top: 1.6rem; }
.sold-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.sold-gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d5dde6;
  line-height: 0;
}
.sold-gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.sold-gallery-item:hover { border-color: var(--sky); }
@media (max-width: 880px) {
  .sold-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sale-card { scroll-margin-top: 5.5rem; }
.sale-card:target { border-color: var(--navy); }
.sale-card-static { cursor: default; }
.sale-card-static:hover { border-color: var(--line); }
.see-all-sales { margin-top: 1.25rem; }
.see-all-sales a { font-weight: 600; }
@media (max-width: 640px) {
  .sales { grid-template-columns: 1fr; }
}

.year-head { margin: 2.4rem 0 1rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.sales-year .year-head:first-child { margin-top: 0; }
.leased-note { margin-top: 0.4rem; }
