/* Lake Nottely sale page. Phone first; wider layouts are added with min-width queries. */
:root {
  --ink: #12252c;
  --muted: #4b5f66;
  --lake: #1d5666;
  --lake-deep: #133b47;
  --shallows: #dce8e6;
  --paper: #f4f7f5;
  --line: #c9d6d3;
  --amber: #f0b44c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lake); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: var(--pad); }
.prose { max-width: 38rem; }
.band { padding-block: clamp(2.5rem, 8vw, 5rem); }
.band-tint { background: var(--shallows); }
.band-deep { background: var(--lake-deep); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: 1.25rem; }

/* Items that still need your input show up highlighted while reviewing. */
.btn .todo { margin-left: 0.4em; }
.todo { background: #fff0b8; color: #3b2d00; padding: 0.05em 0.3em; border-radius: 2px; font-size: 0.95em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.6rem 1.25rem;
  border: 2px solid transparent; border-radius: 0.25rem;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
}
.btn-solid { background: var(--lake); color: #fff; }
.btn-solid:hover { background: var(--lake-deep); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #f6c670; }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, 0.14); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { font: 600 1.25rem/1.1 var(--serif); color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: min(86vh, 44rem); min-height: min(86svh, 44rem);
  background: var(--lake-deep); color: #fff;
}
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 26, 33, 0.84) 0%, rgba(8, 26, 33, 0.46) 40%, rgba(8, 26, 33, 0) 72%);
}
.hero .wrap { width: 100%; padding-block: 3rem 2rem; }
.hero h1 { max-width: 20ch; text-wrap: balance; font-size: clamp(2.35rem, 9vw, 4.75rem); line-height: 1.04; }
.hero .lead { max-width: 30rem; margin: 1rem 0 0; font-size: 1.125rem; }
.price { margin: 1.25rem 0 0; font: 600 clamp(2rem, 8vw, 3.25rem)/1 var(--serif); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Facts */
.facts { margin: 0; display: grid; grid-template-columns: 1fr; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Figures */
figure { margin: 0; }
.wide { margin-top: 2rem; }
.wide img { width: 100%; }
.cap { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1rem 0 2.75rem; padding: 0; list-style: none; }
.gallery li:first-child { grid-column: 1 / -1; }
.gallery a { display: block; height: 100%; background: var(--shallows); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery li:first-child img { aspect-ratio: 16 / 9; }
.gallery-head { margin-top: 1.75rem; }

/* Property details */
.spec { display: grid; gap: 2rem; margin-top: 1.5rem; }
.spec h3 { margin-bottom: 0.5rem; }
.spec ul { margin: 0; padding: 0; list-style: none; }
.spec li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

/* Contact */
.band-deep a { color: #fff; }
.phone { display: inline-block; margin: 0.5rem 0; font: 600 clamp(2rem, 9vw, 3.25rem)/1.1 var(--serif); text-decoration: none; }
.mail { font-size: 1.25rem; }

.foot { padding-block: 2rem; font-size: 0.9rem; color: var(--muted); }

/* Photo viewer */
dialog { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; background: transparent; color: #fff; }
dialog::backdrop { background: rgba(8, 20, 25, 0.96); }
dialog[open] { display: grid; grid-template-rows: 1fr auto; background: rgba(8, 20, 25, 0.96); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0.5rem; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 5rem); max-height: calc(100svh - 5rem); object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.75rem; }
.lb-bar button { min-width: 2.75rem; min-height: 2.75rem; padding: 0.4rem 1rem; border: 2px solid #fff; border-radius: 0.25rem; background: transparent; color: #fff; font: 600 1rem/1 var(--sans); cursor: pointer; }
.lb-bar button:hover { background: rgba(255, 255, 255, 0.16); }

/* Wider screens */
@media (min-width: 760px) {
  :root { --pad: 2rem; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery li:first-child img { height: 100%; aspect-ratio: auto; }
  .spec { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .hero .wrap { padding-block: 5rem 3rem; }
}

/* Sunsets */
.sunsets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.sunsets a { display: block; height: 100%; }
.sunsets img { width: 100%; height: 100%; object-fit: cover; }
.sunsets .s-tall, .sunsets .s-wide { grid-column: 1 / -1; }
.sunsets .s-tall img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.sunsets .s-wide img { aspect-ratio: 16 / 9; }
.sunsets .s-half img { aspect-ratio: 3 / 2; }
@media (min-width: 760px) {
  .sunsets { grid-template-columns: 1.3fr 1fr 1fr; gap: 0.75rem; }
  .sunsets .s-tall { grid-column: 1; grid-row: 1 / span 2; }
  .sunsets .s-wide { grid-column: 2 / span 2; }
  .sunsets .s-half { grid-column: auto; }
  .sunsets .s-tall img, .sunsets .s-wide img, .sunsets .s-half img { aspect-ratio: auto; }
}

.price-note { margin: 0.4rem 0 0; font-size: 1.0625rem; font-weight: 600; color: var(--amber); }
