:root {
    color-scheme: light;
    --ink: #182921;
    --soft: #465950;
    --paper: #fbfaf7;
    --forest: #173d30;
    --line: #d8dfd7;
    --tint: #eef1e9;
    font: 100%/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.3rem; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #955b2b; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: -6rem; background: #fff; padding: .7rem; z-index: 5; }
.skip:focus { top: .5rem; }
.header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 1.6rem/1 Georgia, serif; }
.brand-mark { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: var(--forest); color: white; }
.brand small { display: block; font: 650 .66rem/1.5 system-ui, sans-serif; letter-spacing: .12em; }
.nav nav { display: flex; gap: .5rem 1.4rem; flex-wrap: wrap; }
.nav nav a, .nav-phone { font-weight: 650; text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.nav-phone { white-space: nowrap; }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2rem, 6vw, 5.5rem); }
.eyebrow { font-size: .83rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; color: var(--soft); }
.hero h1 { margin-block: .65rem 1rem; }
.lede { max-width: 35ch; color: var(--soft); font-size: 1.16rem; }
.actions, .filters { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.2rem; }
.actions { margin-top: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--forest); border: 1px solid var(--forest); border-radius: .25rem; min-height: 2.7rem; padding: .58rem 1rem; font-weight: 680; text-decoration: none; cursor: pointer; }
.button:hover { background: #2b5645; }
.button.outline { background: transparent; color: var(--forest); }
.text-link { font-weight: 700; text-underline-offset: .24em; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; border-radius: .25rem; }
.hero-photo figcaption { position: absolute; bottom: .5rem; right: .5rem; padding: .2rem .45rem; color: #fff; background: #182921; border-radius: .15rem; font-size: .78rem; }
.properties { background: var(--tint); padding-block: clamp(2.15rem, 5vw, 4.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1.6rem; }
.section-head .eyebrow { margin-bottom: .4rem; }
.listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: .25rem; }
.card-photo { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.card-body { padding: 1.25rem; display: flex; flex: 1; flex-direction: column; gap: .35rem; overflow-wrap: anywhere; }
.card h2 { font: 680 1.3rem/1.15 system-ui, sans-serif; letter-spacing: normal; }
.card .text-link { align-self: start; margin-top: auto; padding-top: .65rem; }
.card-price, .detail-price { font-weight: 760; color: var(--forest); }
.card-price { font-size: 1.15rem; margin-top: .35rem; }
.location, .specs { color: var(--soft); }
.services { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding-block: clamp(2.2rem, 6vw, 5rem); gap: 1.5rem 4rem; }
.services h2 { margin-top: .45rem; }
.services dl > div { border-top: 1px solid var(--line); padding-block: .85rem; }
.services dt { font-weight: 750; }
.services dd { color: var(--soft); }
.contact { color: #fff; background: var(--forest); padding-block: clamp(2rem, 5vw, 4rem); }
.contact .eyebrow { color: #c0d6c8; }
.contact h2 { margin: .4rem 0 .55rem; }
.contact-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.contact-links { display: grid; gap: .4rem; justify-items: start; }
.contact .button { background: var(--paper); border-color: var(--paper); color: var(--forest); }
.contact .button:hover { background: var(--tint); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.1rem; color: var(--soft); }
.simple { padding-block: clamp(2rem, 6vw, 5rem); }
.simple p, .simple .button { margin-top: .65rem; }
.detail { display: flex; flex-wrap: wrap; gap: 2rem; align-items: start; }
.detail > div { flex: 1 1 24rem; min-width: 0; }
.detail .detail-label { margin: 1.2rem 0 .55rem; }
.detail-photo { flex: 0 1 30rem; width: min(100%, 30rem); border-radius: .25rem; }
.detail-price { font-size: 1.55rem; }
.prose { max-width: 68ch; margin-top: 1.4rem; overflow-wrap: anywhere; }
.filters { align-items: end; margin-bottom: 1.3rem; }
.filters label:first-child { flex: 1 1 13rem; }
label { font-weight: 650; display: grid; gap: .3rem; }
input:not([type=checkbox]), select, textarea { color: var(--ink); background: white; width: 100%; padding: .55rem .65rem; border: 1px solid #80948a; border-radius: .25rem; min-width: 0; }
textarea { resize: vertical; }
.admin .wrap { max-width: 960px; }
.admin h1 { margin-top: .7rem; }
.admin .actions .button { margin: 0; }
.panel { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: .3rem; background: white; padding: clamp(1rem, 4vw, 1.75rem); }
.panel h2 { font-size: 2rem; margin-bottom: 1rem; }
.sign-in { max-width: 30rem; }
.edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wide { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: .55rem; }
.admin-list { padding: 0; list-style: none; }
.admin-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; border-top: 1px solid var(--line); padding: .65rem 0; }
.alert { background: var(--tint); padding: .55rem .8rem; }
@media (max-width: 800px) {
    .nav-phone { display: none; }
    .hero, .services { grid-template-columns: 1fr; }
    .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
    .wrap { width: calc(100% - 2rem); }
    .nav { flex-wrap: wrap; }
    .nav nav { width: 100%; }
    .listings, .edit-form { grid-template-columns: 1fr; }
}
