:root {
  --black: #000;
  --ink: #1d1d1b;
  --muted: #6b6862;
  --ivory: #f6f3ee;
  --stone: #e7e1d7;
  --line: #d9d2c6;
  --accent: #8a7556;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 1em; display: block; }

/* Header */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand img { width: 128px; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
#site-nav a { text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #d8d4cc; padding: 6px 0; border-bottom: 1px solid transparent; }
#site-nav a:hover, #site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 1.5px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  #site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--black); display: none; border-top: 1px solid #222; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  #site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid #1f1f1f; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: min(82vh, 760px); display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; background: var(--black); }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
.hero-content { position: relative; z-index: 1; padding: 80px 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 68px); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3em; }
.hero h1 small { display: block; font-family: var(--sans); font-size: .28em; letter-spacing: .5em; font-weight: 400; margin-bottom: .8em; }
.hero p { font-size: 13px; letter-spacing: .35em; text-transform: uppercase; margin-bottom: 2.4em; }

.page-hero { background: var(--black); color: #fff; text-align: center; padding: 72px 24px 64px; }
.page-hero .eyebrow { color: #b9a98d; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; padding: 15px 34px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--black); }
.btn-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--ivory); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.lead { font-size: 18px; line-height: 1.8; color: #3b3a36; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { background: #fff; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 28px 4px 0; }
.card h3 { font-size: 26px; }
.card p { color: #4a4843; }

.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.news-item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; text-decoration: none; align-items: start; }
.news-item img { width: 140px; height: 105px; object-fit: cover; }
.news-item .date { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.news-item h3 { font-size: 21px; margin: 4px 0 6px; }
.news-item p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 480px) { .news-item { grid-template-columns: 1fr; } .news-item img { width: 100%; height: auto; aspect-ratio: 4/3; } }

/* Property blocks */
.property { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.property:first-child { border-top: 0; padding-top: 0; }
.property h2 { font-size: clamp(28px, 3.5vw, 40px); }
.property .status { display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--accent); color: var(--accent); margin-bottom: 18px; }
.property .status.sold { border-color: var(--muted); color: var(--muted); }
.property dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 1.4em; }
.property dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.property dd { margin: 0; }
@media (max-width: 820px) { .property { grid-template-columns: 1fr; gap: 28px; } }
.fine { font-size: 13px; line-height: 1.6; color: var(--muted); }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.figure-pair figure, figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.gallery .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .figure-pair, .gallery { grid-template-columns: 1fr; } }
.zoom { cursor: zoom-in; }

/* Prose (legal, privacy, articles) */
.prose { font-size: 16px; line-height: 1.8; }
.prose h2 { font-size: 24px; margin-top: 1.8em; }
.prose h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 2em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 19px; color: #3b3a36; }
.article-meta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #b9a98d; margin-top: 14px; }
.article-figure { margin: 0 0 40px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-details h2 { font-size: 32px; }
.contact-details p { margin-bottom: 1.4em; }
.contact-details .label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
form.contact { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
form.contact label { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
form.contact input, form.contact textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--black); }
form.contact textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-size: 15px; margin: 0; }
.form-status.ok { color: #2f6b3b; }
.form-status.err { color: #a32a1d; }

/* Footer */
.site-footer { background: var(--black); color: #cfcac1; font-size: 14px; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo { width: 150px; margin-bottom: 8px; }
.site-footer .muted { color: #8f8a80; }
.footer-h { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid #222; padding-top: 22px; padding-bottom: 26px; font-size: 12px; color: #8f8a80; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: grid; place-items: center; z-index: 200; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; width: auto; max-width: 100%; }

/* Grid children must be allowed to shrink below their content width */
.cards > *, .news-list > *, .property > *, .figure-pair > *, .gallery > *, .contact-grid > *, .footer-grid > *, .field-row > * { min-width: 0; }
.property { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 820px) { .property, .contact-grid { grid-template-columns: minmax(0, 1fr); } }
h1, h2, h3 { overflow-wrap: break-word; }
