/* ==========================================================================
   Lakelight — 2007 East Lake Sammamish
   A private showcase for a home. Not a listing: no price, no agent, no
   call to action. Design tokens first, then sections top to bottom.
   ========================================================================== */

:root {
  --paper:  #F7F4EF;
  --ink:    #1A1D1C;
  --body:   #45423C;
  --muted:  #6E6A62;
  --accent: #B4472F;            /* picked out of the dock umbrellas */
  --rule:   rgba(26, 29, 28, 0.12);
  --gutter: 64px;
  --serif:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:   'Jost', 'Helvetica Neue', Helvetica, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* The UA stylesheet gives <figure> `margin: 1em 40px`. Every figure in this
   page is meant to sit flush, and that stray 40px pushed .split-figure off
   axis so it overflowed the viewport once it went full-width below 860px. */
figure, blockquote, dl, dd { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);        /* so surplus below the footer reads as footer */
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}

img, video { display: block; max-width: 100%; }

a { color: var(--ink); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.paper { background: var(--paper); }
.wrap  { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.lbl {
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.rule { height: 1px; background: var(--ink); opacity: 0.16; }

.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.04; margin: 0; }
.h-section { font-family: var(--serif); font-size: 40px; line-height: 1.16; letter-spacing: -0.01em; margin: 0; text-wrap: pretty; }
.p { font-size: 16px; line-height: 1.78; color: var(--body); margin: 0; text-wrap: pretty; }

.mark { display: flex; align-items: center; gap: 14px; }
.mark::before { content: ""; width: 34px; height: 1px; background: var(--accent); flex-shrink: 0; }

/* skip link ------------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: 14px;
}
.skip:focus { left: 0; }

/* header ---------------------------------------------------------------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-top: 26px; padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; flex-direction: column; gap: 3px; }
.wordmark b { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a { font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* hero ------------------------------------------------------------------ */
.hero { display: flex; align-items: stretch; }
.hero-copy {
  width: 620px; flex-shrink: 0;
  padding: 96px 56px 88px var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
}
.hero-copy .display { font-size: 88px; }
.hero-lede { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 460px; margin: 0; text-wrap: pretty; }
.hero-figure { flex-grow: 1; position: relative; min-height: 700px; overflow: hidden; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-cap {
  position: absolute; left: 28px; bottom: 24px;
  background: rgba(247, 244, 239, 0.92); padding: 10px 16px;
}
.figure-cap .lbl { font-size: 10px; color: var(--body); }

.statline { display: flex; gap: 40px; padding-top: 12px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.stat .lbl { font-size: 10px; }

/* numbers band ---------------------------------------------------------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 46px 0 50px; }
.number b { display: block; font-family: var(--serif); font-weight: 400; font-size: 62px; line-height: 1; }
.number b span { font-size: 22px; color: var(--muted); }
.number .lbl { margin-top: 10px; }

/* full-bleed plate ------------------------------------------------------ */
.plate { position: relative; overflow: hidden; height: 620px; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 18px; }

/* two-column prose + spec table ----------------------------------------- */
.section { padding-top: 104px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px; }
.col { display: flex; flex-direction: column; gap: 26px; }
.spec { display: flex; flex-direction: column; }
.spec div {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 15px 0; border-top: 1px solid var(--rule); font-size: 15px;
}
.spec div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt, .spec span:first-child { color: var(--muted); }

/* section headers ------------------------------------------------------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 26px; }
.sec-head-copy { display: flex; flex-direction: column; gap: 12px; }

/* gallery --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.shot { position: relative; margin: 0; overflow: hidden; grid-column: span 2; background: rgba(26,29,28,0.06); }
.shot.wide { grid-column: span 3; }
.shot.full { grid-column: span 6; }
.shot button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 0.5s ease, opacity 0.4s ease; }
.shot.full img, .shot.wide img { aspect-ratio: 16 / 9; }
.shot button:hover img { transform: scale(1.03); }
.shot img[data-src] { opacity: 0; }

/* waterfront split ------------------------------------------------------ */
.split { display: flex; align-items: stretch; }
.split-figure { width: 720px; flex-shrink: 0; height: 560px; overflow: hidden; }
.split-figure img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { flex-grow: 1; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.chip { border: 1px solid rgba(26,29,28,0.2); padding: 8px 14px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--body); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.pair img { width: 100%; height: 420px; object-fit: cover; }

/* film ------------------------------------------------------------------ */
.film { position: relative; background: var(--ink); }
.film video { width: 100%; height: auto; max-height: 720px; }

/* closing --------------------------------------------------------------- */
.closing { position: relative; height: 640px; overflow: hidden; }
.closing img { width: 100%; height: 100%; object-fit: cover; }
.closing::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,29,28,0) 45%, rgba(26,29,28,0.72) 100%);
}
.closing-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 52px; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.closing-copy .lbl { color: rgba(247,244,239,0.72); }
.closing-copy .display { font-size: 58px; color: var(--paper); line-height: 1.04; }

/* footer ---------------------------------------------------------------- */
.site-foot {
  background: var(--ink); color: var(--paper);
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding-top: 40px; padding-bottom: 40px;
}
.site-foot .lbl { color: rgba(247,244,239,0.55); }

/* lightbox -------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 17, 16, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; object-fit: contain; }
.lb-btn {
  position: absolute; background: none; border: 0; cursor: pointer; padding: 16px;
  color: rgba(247,244,239,0.75); transition: color 0.18s ease;
}
.lb-btn:hover { color: var(--paper); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 10px; right: 14px; }
.lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(247,244,239,0.7); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
body.lb-open { overflow: hidden; }

/* ==========================================================================
   Responsive. The desktop composition above is the reference; these collapse
   it. Checked at 1280 / 900 / 390.
   ========================================================================== */

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero-copy { width: 50%; padding: 64px 36px 60px var(--gutter); gap: 26px; }
  .hero-copy .display { font-size: 62px; }
  .hero-figure { min-height: 540px; }
  .split-figure { width: 45%; height: auto; min-height: 420px; }
  .duo { gap: 48px; }
  .number b { font-size: 48px; }
  .h-section, .closing-copy .display { font-size: 34px; }
  .closing-copy .display { font-size: 40px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    background: var(--paper); padding: 24px var(--gutter);
    border-bottom: 1px solid var(--rule);
  }
  .site-head { position: relative; }
  .nav-toggle { display: block; }

  .hero { flex-direction: column; }
  .hero-copy { width: 100%; padding: 40px var(--gutter) 32px; }
  .hero-copy .display { font-size: 46px; }
  .hero-lede { font-size: 15px; }
  .hero-figure { min-height: 0; height: 62vw; }

  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 34px 0 38px; }
  .number b { font-size: 40px; }

  .plate { height: 58vw; }
  .section { padding-top: 64px; }
  .duo, .pair { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pair img { height: 56vw; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shot, .shot.wide, .shot.full { grid-column: span 1; }
  .shot.full { grid-column: span 2; }
  .shot img, .shot.full img, .shot.wide img { aspect-ratio: 3 / 2; }

  .split { flex-direction: column; }
  .split-figure { width: 100%; min-height: 0; height: 62vw; }
  .split-copy { padding: 28px var(--gutter) 0; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .closing { height: 78vw; min-height: 380px; }
  .closing-copy { bottom: 32px; }
  .closing-copy .display { font-size: 30px; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 28px; padding-bottom: 28px; }
  .spec div { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .shot button:hover img { transform: none; }
}
