:root {
    color-scheme: light;
    --paper: #faf8f3;
    --ink: #2c3434;
    --muted: #586260;
    --sea: #355a5b;
    --sea-dark: #254344;
    --sand: #eeeae2;
    --image-placeholder: #dedfd8;
    --line: #cdcfc6;
    --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --wide: 84rem;
    --reading: 38rem;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --space-sm: 0.6rem;
    --space-md: 1rem;
    --space-lg: clamp(1.25rem, 2.8vw, 2.5rem);
    --space-xl: clamp(1.75rem, 3.8vw, 3.25rem);
    --public-title-size: clamp(2rem, 3vw, 3rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea); }
a:active { color: var(--sea-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6vw, 5.75rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.22; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--wide), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.public-prose-wide { width: 100%; }
.eyebrow { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.11em; text-transform: uppercase; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: 0.75rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* A single navigation serves both desktop and compact layouts. */
.site-header { position: sticky; top: 0; background: var(--paper); z-index: 5; }
.site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.75rem; padding-block: 1.125rem; }
.wordmark { width: fit-content; min-height: 44px; display: inline-flex; flex-direction: column; justify-content: center; font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; letter-spacing: 0.015em; text-decoration: none; }
.wordmark span { display: none; margin-top: 0.45rem; color: var(--muted); font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.08em; }
.button, .button:visited, .button:focus, .button:focus-visible { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.65rem 1.15rem; border: 1px solid var(--sea); background: var(--sea); color: var(--paper); font-size: 0.875rem; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color 140ms ease; }
.button:hover, .button:active { background: var(--sea-dark); color: var(--paper); }
.header-action { grid-column: 2; grid-row: 1; padding-inline: 0.75rem; }
.menu-toggle { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-width: 44px; min-height: 44px; padding: 0.625rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle:hover, .menu-toggle:active { background: var(--sand); }
.menu-toggle__icon { position: relative; display: block; width: 20px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { height: 1px; border-bottom: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { content: ""; position: absolute; width: 20px; border-top: 1px solid currentColor; transform: rotate(90deg); top: -1px; left: 0; }
.menu-toggle__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.primary-navigation { grid-column: 1 / -1; padding-top: var(--space-md); padding-bottom: 0.25rem; }
.primary-navigation ul { display: grid; gap: 0.25rem; }
.primary-navigation a { display: flex; align-items: center; min-width: 44px; min-height: 44px; padding-block: 0.4rem; width: fit-content; font-size: 1rem; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.45em; }
.primary-navigation a[aria-current="page"] { color: var(--sea); }

/* Neutral space reserves a deliberate image proportion; it is not simulated photography. */
.page-preview { padding-top: 0.5rem; }
.photograph-placeholder { min-height: 22rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); padding: clamp(1.5rem, 4vw, 4rem); background: var(--image-placeholder); }
.preview-identity { margin-block: auto; max-width: 50rem; }
.preview-identity .eyebrow { margin-bottom: 1rem; }
.placeholder-caption { align-self: flex-end; color: var(--muted); font-size: 0.8125rem; }
.preview-note { display: grid; gap: 1.25rem; padding-block: var(--space-lg) var(--space-xl); }
.editorial-copy { max-width: var(--reading); }
.editorial-copy p { color: var(--muted); margin-top: 1.25rem; }

.site-footer { padding-block: 0.5rem; background: var(--sand); }
.footer-main { display: grid; align-items: start; gap: 0.25rem 1rem; }
.footer-identity p { margin-top: 0; color: var(--muted); font-size: 0.875rem; }
.footer-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.footer-navigation a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-size: 0.875rem; text-decoration: none; }
.footer-navigation a:hover { text-decoration: underline; }
.footer-heading { font-family: var(--serif); font-size: 1.4rem; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: var(--sea); }
.footer-note { margin-top: 0; color: var(--muted); line-height: 1.2; }
.footer-note small { font-size: 0.8125rem; }

@media (max-width: 23rem) {
    .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
    .menu-toggle { grid-column: 2; }
    .header-action { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 40rem) {
    .wordmark { font-size: 2rem; }
    .wordmark span { display: block; }
    .menu-toggle__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
    .primary-navigation ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .photograph-placeholder { min-height: 26rem; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-action { grid-column: 1 / -1; }
}
@media (min-width: 60rem) {
    .site-header__inner { padding-block: 1.5rem; }
    .photograph-placeholder { min-height: 31rem; }
    .preview-note { grid-template-columns: 1fr 2fr; gap: var(--space-lg); }
    .preview-note > .eyebrow { padding-top: 0.45rem; }
    .footer-main { grid-template-columns: 1fr 1.2fr 1fr; column-gap: var(--space-lg); }
    .footer-action { grid-column: auto; }
}
@media (min-width: 74rem) {
    .site-header__inner { grid-template-columns: minmax(9rem, 1fr) auto auto; gap: 2rem; }
    .primary-navigation { grid-column: 2; grid-row: 1; padding: 0; }
    .primary-navigation ul { display: flex; gap: 1.5rem; }
    .primary-navigation a { font-size: 0.875rem; }
    .header-action { grid-column: 3; padding-inline: 1.15rem; }
    .menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Phone header and footer retain all navigation and 44px touch targets. */
@media (max-width: 39.999rem) {
    .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 0.75rem; }
    .header-action { display: none; }
    .menu-toggle { grid-column: 2; }
    .footer-identity .wordmark { font-size: 1.5rem; }
    .footer-identity p { margin-top: 0; font-size: 0.8125rem; }
    .footer-navigation a, .footer-action .text-link { font-size: 0.8125rem; }
    .footer-heading { display: none; }
    .footer-note small { font-size: 0.75rem; }
    input, select, textarea { font-size: 1rem; }
}

/* Compact identity/navigation grouping, without reducing touch targets. */
@media (max-width: 39.999rem) {
    .site-footer { padding-block: 0.25rem; }
    .footer-main { grid-template-columns: 1fr; gap: 0.15rem; }
    .footer-identity { display: grid; gap: 0; }
    .footer-identity .wordmark { min-height: 36px; }
    .footer-identity p { margin-top: -0.2rem; font-size: 0.7rem; line-height: 1.2; }
    .footer-navigation ul { column-gap: 1rem; }
    .footer-action { display: none; }
    .footer-note { margin-top: 0.1rem; padding-top: 0.2rem; border-top: 1px solid var(--line); }
}

/* Shared, owner-confirmed summary for Home and The House. */
.property-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; margin-top: 1.25rem; }
.property-facts li { display: grid; justify-items: start; gap: 0.35rem; }
.property-facts svg { display: block; flex-shrink: 0; width: 28px; height: 28px; min-width: 28px; min-height: 28px; max-width: 28px; max-height: 28px; fill: none; stroke: var(--sea); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.4rem; }
.property-facts span { font-size: 0.9375rem; }
@media (min-width: 40rem) { .property-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .property-facts { margin-top: 1rem; } }
@media (max-width: 39.999rem) {
    .property-facts { gap: 1rem; margin-top: 1rem; }
    .property-facts li { display: flex; align-items: center; gap: 0.75rem; }
    .property-facts svg { flex: 0 0 24px; width: 24px; height: 24px; min-width: 24px; min-height: 24px; max-width: 24px; max-height: 24px; margin: 0; }
    .property-facts li:last-child { grid-column: 1 / -1; }
}

/* Compact mouse navigation; touch devices retain 44px link height. */
@media (min-width: 60rem) and (hover: hover) and (pointer: fine) {
    .footer-navigation a { min-height: 32px; }
}
.public-discount-control { display:grid; grid-template-columns:6.5rem auto; grid-template-areas:"label ." "input button"; align-items:center; gap:.12rem .35rem; width:max-content; max-width:100%; margin-top:.65rem; margin-left:auto; }
.public-discount-control > label { grid-area:label; color:var(--muted); font-size:.75rem; line-height:1.25; text-align:left; }
.public-discount-control > input[name="DiscountCode"] { grid-area:input; box-sizing:border-box; width:6.5rem; min-width:0; height:36px; min-height:36px; padding:.25rem .45rem; border:1px solid var(--line); border-radius:.15rem; outline:none; box-shadow:none; background:#fff; color:var(--ink); font:inherit; }
.public-discount-control > input[name="DiscountCode"]:focus,
.public-discount-control > input[name="DiscountCode"]:focus-visible { border-color:var(--sea); outline:none; box-shadow:none; }
.public-discount-control > input[name="DiscountCode"][readonly] { background:#f2f0e9; font-weight:700; cursor:default; caret-color:transparent; }
.public-discount-control > .button { grid-area:button; height:36px; min-height:36px; margin:0; padding:.25rem .6rem; border-radius:.15rem; white-space:nowrap; }
.public-message-dialog { width:min(calc(100% - 2rem),18rem); padding:.9rem 1rem 1rem; border:1px solid var(--line); border-radius:.2rem; background:var(--paper); color:var(--ink); box-shadow:0 .75rem 2.5rem #172d2b2e; text-align:center; }
.public-message-dialog p { font-family:var(--serif); font-size:1.05rem; line-height:1.35; }
.public-message-dialog .button { min-height:38px; margin-top:.7rem; padding:.35rem 1rem; }
.public-message-dialog::backdrop { background:#172d2b66; }
