:root {
  --cream: #f8f6ec;
  --paper: #fffdf5;
  --green: #20372c;
  --deep: #152b23;
  --ink: #202f26;
  --muted: #536057;
  --border: #d7dbca;
  --lime: #d9ec93;
  --lime-dark: #c7de75;
  --sage: #e9eddf;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 1rem/1.55 var(--sans); }
main { min-height: 55vh; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font: 400 1rem/1 var(--serif); }
h1 { font-size: clamp(3.8rem, 7.8vw, 7.1rem); line-height: .9; letter-spacing: -.035em; }
h2 { font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -.027em; line-height: .97; }
h3 { font-size: clamp(2rem, 3.25vw, 3rem); letter-spacing: -.02em; }
:focus-visible { outline: 2px solid #ad562f; outline-offset: 4px; }
.hero :focus-visible, .subhero :focus-visible { outline-color: var(--lime); }
[id] { scroll-margin-top: 24px; }
.skip { position: absolute; top: 10px; left: 10px; transform: translateY(-150%); z-index: 2; padding: 9px 16px; background: var(--cream); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.shell { width: min(100% - 96px, 1216px); margin-inline: auto; }
.narrow { max-width: 840px; }
.section { padding-block: clamp(46px, 6vw, 85px); }
.header { background: var(--cream); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 77px; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .99rem; white-space: nowrap; text-decoration: none; }
.brand strong { font-size: 1.16em; letter-spacing: -.025em; }
.header nav { display: flex; gap: clamp(13px, 3.2vw, 45px); }
.header nav a { padding: 7px 0; color: var(--muted); text-decoration: none; font-size: .89rem; font-weight: 700; white-space: nowrap; }
.header nav a:hover, .header nav a[aria-current] { color: var(--green); text-decoration: underline; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 17px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; font-size: .88rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.arrow { display: inline-block; vertical-align: -.16em; flex: none; }
.primary { color: var(--deep); background: var(--lime); }
.primary:hover { background: var(--lime-dark); }
.outline { color: var(--green); border-color: #829482; background: transparent; }
.outline:hover { background: var(--sage); }
.light { color: var(--cream); border-color: #a0b29d; }
.light:hover { background: #365447; }
.header-contact { min-height: 42px; }

.hero, .subhero { background: var(--green); color: var(--cream); }
.hero-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(26px, 5.5vw, 80px); align-items: center; padding-block: clamp(54px, 6.1vw, 90px); }
.hero h1 { margin-top: 17px; font-size: clamp(3.5rem, 6.6vw, 6.1rem); }
h1 em { color: var(--lime); }
.intro { max-width: 57ch; margin: 19px 0 24px; color: inherit; font-size: clamp(1rem, 1.45vw, 1.14rem); }
.hero .intro { max-width: 41ch; }
.hero .intro, .subhero .intro { color: #e8ece1; }
.label { color: #566644; text-transform: uppercase; font-weight: 700; font-size: .75rem; letter-spacing: .12em; line-height: 1.35; }
.hero .label, .subhero .label { color: var(--lime); }
.pin { display: inline-block; width: 8px; height: 8px; background: currentColor; border-radius: 50%; margin: 0 5px 1px 1px; }
.hero-photo { padding: 7px; border: 1px solid #859883; border-radius: 7px; position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.37; object-fit: cover; object-position: 57% center; border-radius: 4px; background: #546842; }
.hero-photo figcaption { position: absolute; bottom: 18px; right: 18px; background: var(--deep); padding: 4px 8px; border-radius: 3px; font-size: .71rem; }
.subhero { padding-block: clamp(45px, 6.6vw, 95px); }
.subhero h1 { margin-top: 16px; font-size: clamp(3.5rem, 7.3vw, 6.4rem); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-heading h2 { margin-top: 7px; }
.section-heading > p { max-width: 35ch; color: var(--muted); }
.listings { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.5vw, 29px); }
.listing { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); }
.listing-photo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: 2.05; background: var(--sage); }
.listing-photo a, .thumbnails a { display: block; min-width: 0; min-height: 0; }
.listing-photo img, .thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo img { object-position: 50% 48%; }
.listing-photo a:focus-visible { outline-offset: -4px; z-index: 1; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 4px; font-size: .75rem; line-height: 1.35; font-weight: 700; color: var(--green); background: var(--sage); }
.status { position: absolute; top: 14px; left: 14px; background: var(--lime); }
.listing-body { padding: clamp(19px, 3.3vw, 31px); }
.listing-body h3 { margin-block: 7px 3px; }
.muted { color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 15px; margin: 16px 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.specs li + li::before { content: "·"; margin-right: 12px; color: #6f765e; }
.listing-price { border-top: 1px solid var(--border); padding-top: 10px; }
.listing-price strong { font: 400 clamp(2.75rem, 4vw, 3.65rem)/1.1 var(--serif); letter-spacing: -.02em; }
.listing-price p { font-size: .89rem; color: var(--muted); }
.listing-total { margin: 9px 0 19px; }
.listing-total .pill { margin-left: 5px; }
.gallery { margin-bottom: 16px; }
.gallery summary { padding: 8px 0; color: var(--green); font-size: .88rem; }
.thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.thumbnails a { aspect-ratio: 1; }
.thumbnails img { border-radius: 3px; }
.marketplace { display: inline-block; margin-top: 14px; }
.text-link { color: var(--green); font-weight: 700; font-size: .88rem; }
.text-link:hover { color: #82471f; }
.sold { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 24px; padding: 17px clamp(18px, 3vw, 26px); border-radius: 6px; border: 1px solid var(--border); }
.sold h3 { font-size: 2rem; margin: 5px 0; }
.sold p, .sold > div:last-child { color: var(--muted); font-size: .93rem; }
.sold-divider { margin-inline: 5px; color: #6f765e; }
.homes-map { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(18px, 5vw, 72px); margin-top: 40px; }
.map-copy h2 { font-size: clamp(2.65rem, 4.65vw, 4.25rem); }
.map-copy p { margin-top: 8px; color: var(--muted); }
.map-links { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.map-links a { display: inline-flex; gap: 9px; align-items: center; }
.map-key { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fffdf5; background: var(--green); font-weight: 700; font-size: .77rem; text-decoration: none; }
.map-plot { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--sage); }
.map-plot img { display: block; width: 100%; height: auto; }
.map-marker { position: absolute; display: block; transform: translate(-50%, -100%); }
.map-marker svg { display: block; overflow: visible; filter: drop-shadow(0 2px 3px #192b2559); }
.map-marker path { fill: var(--green); stroke: #fffdf5; stroke-width: 2; }
.map-marker:hover path { fill: #395946; }
.map-marker text { fill: #fffdf5; font: 700 14px var(--sans); }
.map-figure figcaption { margin-top: 5px; color: var(--muted); font-size: .75rem; }

.seller-band { background: #e6ebda; border-top: 1px solid var(--border); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 39px; }
.band-inner h2 { font-size: clamp(2.6rem, 4.5vw, 4rem); }
.band-inner p { margin-top: 8px; color: var(--muted); }
.rent-grid, .faq-grid, .sell-grid, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(27px, 6vw, 90px); align-items: start; }
.steps { display: grid; gap: 18px; margin: 25px 0 0; padding-left: 24px; }
.steps li { padding-left: 7px; }
.steps li::marker { font-weight: 700; }
.steps h3 { font-size: 2.15rem; margin-bottom: 5px; }
.steps p, .cost-card p:not(.label), details p { color: var(--muted); }
.cost-card { padding: clamp(20px, 4vw, 36px); background: var(--sage); border: 1px solid var(--border); border-radius: 8px; }
.cost-card h3 { font-size: 3.45rem; margin: 8px 0 12px; }
.cost-card h3 small { font: 400 1rem var(--sans); }
.cost-card dl { margin-bottom: 13px; }
.cost-card dl div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; padding-block: 9px; border-bottom: 1px solid #c8d1c1; }
.cost-card dt { font-weight: 700; }
.cost-card dd { color: var(--muted); }
.cost-card p + p { margin-top: 8px; }
.faq-section { padding-block: clamp(43px, 6vw, 74px); border-top: 1px solid var(--border); }
.faq-grid h2 { margin-bottom: 18px; }
details { border-bottom: 1px solid var(--border); }
details:first-child { border-top: 1px solid var(--border); }
summary { padding: 13px 0; cursor: pointer; font-weight: 700; }
details p { padding: 0 0 14px 18px; }
.sell-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sell-list li { display: grid; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sell-list span { color: var(--muted); }

.form-grid h1, .confirmation h1, .inbox h1 { margin-top: 12px; font-size: clamp(3.7rem, 7vw, 6rem); }
.contact-lines { display: grid; gap: 5px; color: var(--green); }
.inquiry-form { position: relative; display: grid; gap: 6px; padding: clamp(18px, 4vw, 31px); border: 1px solid var(--border); background: var(--paper); border-radius: 8px; }
.inquiry-form label { font-weight: 700; font-size: .9rem; }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select { display: block; width: 100%; min-height: 46px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid #909d8e; border-radius: 4px; background: var(--paper); color: var(--ink); }
.inquiry-form textarea { resize: vertical; }
.inquiry-form .button { justify-self: start; }
.form-note { color: var(--muted); font-size: .85rem; margin: 2px 0 10px; }
.form-error { padding: 7px 10px; margin-bottom: 9px; color: #6b2c1d; background: #f9e5d6; border: 1px solid #d8ac9b; border-radius: 4px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.leads { display: grid; gap: 12px; max-width: 800px; }
.lead { padding: 19px; background: var(--paper); border: 1px solid var(--border); border-radius: 5px; overflow-wrap: anywhere; }
.lead h2 { margin: 6px 0; font-size: 2.2rem; }
.lead-message { white-space: pre-wrap; margin-top: 8px; }

.footer { background: var(--deep); color: var(--cream); }
.footer-inner { display: grid; grid-template-columns: 1.35fr 1fr .8fr; align-items: start; gap: 18px; padding-block: 28px; }
.footer p { margin-top: 9px; font-size: .85rem; color: #e0eadc; }
.footer-links { display: grid; gap: 6px; font-size: .88rem; }
.footer a:focus-visible { outline-color: var(--lime); }

@media (max-width: 930px) {
  .shell { width: calc(100% - 62px); }
  .hero h1 { font-size: clamp(3.45rem, 7.1vw, 5.4rem); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 38px); }
  .header-inner { flex-wrap: wrap; gap: 0 8px; min-height: 67px; padding-block: 8px 3px; }
  .brand { gap: 7px; font-size: .87rem; }
  .brand img { width: 35px; height: 35px; }
  .header-contact { min-height: 37px; font-size: .79rem; padding-inline: 10px; }
  .header nav { order: 3; width: 100%; justify-content: center; margin-top: 3px; gap: clamp(16px, 6vw, 33px); }
  .header nav a { font-size: .83rem; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 36px 27px; }
  .hero h1 { font-size: clamp(3.4rem, 12vw, 5.8rem); }
  .hero-photo img { aspect-ratio: 1.6; }
  .section-heading, .band-inner { align-items: start; flex-direction: column; gap: 10px; }
  .listings, .rent-grid, .faq-grid, .sell-grid, .form-grid, .homes-map { grid-template-columns: 1fr; }
  .listing-photo { aspect-ratio: 2.35; }
  .listing-actions { gap: 11px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .shell { width: calc(100% - 32px); }
  .hero .button { min-height: 43px; font-size: .79rem; padding-inline: 10px; }
  .actions { gap: 7px; }
  .sold { align-items: start; flex-direction: column; gap: 7px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
