/* Lovell Beach House: shared styles for index.html and story.html. */

/**
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
 *
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are
 * explicitly restricted from using the Licensed Webfonts(s).
 *
 * You may obtain a valid license at the URLs below.
 *
 * Webfont: Futura Pro Light by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry
 *
 * Webfont: Futura Pro Book by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry
 *
 * © 2026 MyFonts Inc. */
/* Licensed webfonts from the owner's MyFonts kit, served as separate files from fonts/ (keep the notice above). */
@font-face { font-family: "Futura Pro Web"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/FuturaProLight.woff2") format("woff2"), url("fonts/FuturaProLight.woff") format("woff"); }
@font-face { font-family: "Futura Pro Web"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/FuturaProBook.woff2") format("woff2"), url("fonts/FuturaProBook.woff") format("woff"); }
/* Layout: a 12-column Swiss grid on warm paper. Small meta text in fixed columns,
   large tightly-tracked statements, photographs set in hairline-ruled cells. */
:root {
  --paper: #eae9e5;      /* page ground */
  --card: #deddd6;       /* image cell ground */
  --ink: #111110;        /* divider lines */
  --text: #111110;       /* text: black (was dark grey #3d3c39) */
  --mute: #6b6a64;       /* secondary text */
  --rule: #c9c7bf;       /* hairlines */
  --frame: #1f5754;      /* Schindler's window-frame green, used once or twice */
  --sans: "Futura Pro Web", Futura, "Century Gothic", sans-serif;
  --t-xs: 0.75rem;
  --t-s: 0.875rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.5rem, 3vw, 2.4rem);
  --t-xl: clamp(2rem, 4.8vw, 4.25rem);
  --gap: clamp(12px, 1.6vw, 24px);
  --side: max(240px, 25vw);   /* width of the hero side panel; content below aligns to its edge */
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--t-s);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mute); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.grid { display: grid; grid-template-columns: calc(var(--side) - var(--gutter-l) - var(--gap)) minmax(0, 1fr); column-gap: var(--gap); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink);
}
.head-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-block: 12px; font-size: var(--t-s); font-weight: 300; letter-spacing: 0; }
.h-right { justify-self: end; display: inline-flex; align-items: center; gap: .5em; }
.h-back { justify-self: start; }  /* story page: link back to the main page */
.h-right i, .menu i, .more i {
  font-style: normal; display: inline-grid; place-items: center;
  width: 1.45em; height: 1.45em; border: 1px solid currentColor; border-radius: 50%; font-size: .85em;
}
/* Load bar: draws once under the header, like the reference's intro */
.loadbar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--mute); transform-origin: left; transform: scaleX(0); animation: load 1.4s cubic-bezier(.6,0,.2,1) both; }
@keyframes load { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- Split opening (side panel + large image) ---------- */
.split { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
/* Side panel that drops from "The House" in the header (same panel as the opening) */
.h-menu { justify-self: start; }
.h-left { all: unset; cursor: pointer; display: block; padding-block: 12px; margin-block: -12px; }
.h-left:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.flyout {
  position: absolute; top: 100%; left: 0; width: var(--side); height: min(72vh, 620px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-left: var(--gutter-l); background: var(--paper);
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
}
.h-menu.open .flyout { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.split-intro .fly-title { color: var(--ink); font-family: var(--sans); font-weight: 400; }
.split-side {
  border-right: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between;
  padding-left: var(--gutter-l); min-width: 0;
}
.split-intro { padding: 18px var(--gap) 40px 0; font-size: var(--t-m); line-height: 1.2; letter-spacing: 0; }
.split-intro h1 { font: inherit; font-family: var(--sans); font-weight: 400; color: var(--ink); margin: 0; }
.split-intro p { margin: 0; color: var(--mute); }
.menu { display: flex; flex-direction: column; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: 11px var(--gap) 11px 0; border-top: 1px solid var(--ink); font-size: var(--t-m); font-weight: 300; letter-spacing: 0; }
.menu a:hover i { background: var(--ink); color: var(--paper); }
.more a:hover i { background: var(--ink); color: var(--paper); }
.split-main { padding: var(--gap) var(--gutter-r) var(--gap) var(--gap); min-width: 0; }
.hero { background: var(--card); aspect-ratio: 3 / 2; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; animation: rise 1.5s .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }

.open { padding-block: 0; }
.statement {
  grid-column: 2; max-width: 22em;
  font-size: var(--t-l); font-weight: 300; letter-spacing: 0; line-height: 1.08;
  margin: clamp(56px, 9vw, 140px) 0 0; text-wrap: balance;
}
.statement .w { display: inline-block; animation: blurin 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes blurin { from { filter: blur(10px); opacity: .15; transform: translateY(.15em); } to { filter: none; opacity: 1; transform: none; } }

/* ---------- Full-bleed ---------- */
.bleed { margin-top: clamp(64px, 10vw, 160px); }
.bleed figure { margin: 0; }
.bleed img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; background: var(--card); }
.bleed figcaption { padding-top: 8px; font-size: var(--t-xs); color: var(--mute); display: flex; justify-content: space-between; gap: 1em; }

/* ---------- Text sections ---------- */
.section { padding-block: clamp(64px, 9vw, 140px) 0; }
.label { grid-column: 1; font-size: var(--t-xs); font-family: var(--sans); font-weight: 300; padding-top: .35em; }
.label span { display: block; color: var(--mute); font-weight: 300; text-transform: none; letter-spacing: 0; margin-top: .3em; }
.label span.lbl { display: inline; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; margin: 0; }
.lede {
  grid-column: 2; margin: 0; max-width: 22em;
  font-size: var(--t-l); letter-spacing: 0; line-height: 1.1; font-weight: 300; text-wrap: balance;
}
.body { grid-column: 2; font-size: var(--t-m); line-height: 1.38; letter-spacing: 0; }
.body-one p { max-width: 38em; }
.body p { margin: 0 0 1em; max-width: 34em; }
.body hr { width: 3em; margin: 2.2em 0; border: 0; border-top: 1px solid var(--rule); }  /* a *** line between parts of a long text */
.cols { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Photo index (ruled cells) ---------- */
.index { margin-top: clamp(64px, 9vw, 140px); border-top: 1px solid var(--ink); }
.index-head { display: flex; justify-content: space-between; padding-block: 10px; font-size: var(--t-xs); }
.index-head b { font-family: var(--sans); font-weight: 300; }
.cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cell {
  margin: 0; padding: var(--gap); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.cells > .cell { grid-column: span 3; }  /* six columns: normal photos take half a row */
.cells > .cell.third { grid-column: span 2; }  /* three tall photos in a row */
.cell.l { border-right: 1px solid var(--rule); padding-left: 0; }  /* left column */
.cell.m { border-right: 1px solid var(--rule); }  /* middle of three */
.cell.r { padding-right: 0; }  /* right column */
.cells > .cell.wide { grid-column: 1 / -1; border-right: 0; padding-inline: 0; }
.cell button {
  all: unset; cursor: zoom-in; display: block; background: var(--card); overflow: hidden; aspect-ratio: 4 / 3;
}
.cell.wide button { aspect-ratio: 2.2 / 1; }
.cell.tall button { aspect-ratio: 3 / 4; }  /* tall photos, in rows of two or three */
.cell.square button { aspect-ratio: 1 / 1; }  /* a row pairing a wide photo with a tall one: both shown square */
.cell button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cell button:hover img { transform: scale(1.025); }
.cell figcaption { display: flex; justify-content: space-between; align-items: start; gap: 1em; font-size: var(--t-s); line-height: 1.25; }
.cell figcaption b { font-weight: 300; display: block; }
.cell figcaption span { color: var(--mute); }
.tag { flex: none; font-size: var(--t-xs); padding: 2px 8px; border-radius: 99px; background: var(--card); color: var(--text); }

/* ---------- Quotes ---------- */
.quotes { display: grid; gap: clamp(40px, 6vw, 80px); grid-column: 2; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { margin: 0; max-width: 22em; font-size: var(--t-l); letter-spacing: 0; line-height: 1.1; text-wrap: balance; }
.quotes cite { display: block; font-style: normal; font-size: var(--t-xs); color: var(--mute); margin-top: 14px; }

/* ---------- Archive ---------- */
.archive { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); align-items: start; }  /* rows share one photo shape, so tops and bottoms line up; credits hang below */
.archive figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.archive .a6 { grid-column: span 6; }  /* landscape rows: two equal halves */
.archive .a4 { grid-column: span 4; }  /* the three tall photos share one row */
.archive img { object-fit: cover; }  /* each row shares one shape, so every photo in a row is the same height; the viewer still opens the whole photo */
.archive .r54 img { aspect-ratio: 5 / 4; }
.archive .r32 img { aspect-ratio: 3 / 2; }
.archive .a4 img { aspect-ratio: 7 / 10; }
.archive button { all: unset; cursor: zoom-in; display: block; background: #fff; }
.archive img { width: 100%; filter: grayscale(1) contrast(1.02); mix-blend-mode: multiply; }
.archive figcaption { font-size: var(--t-xs); line-height: 1.4; color: var(--mute); }  /* photo credits (the two Willard Morgan photos) */
.archive figcaption b { color: inherit; font-weight: 300; }

/* ---------- Facts ---------- */
.factlist { grid-column: 2; margin: 0; border-top: 1px solid var(--ink); }
.factlist div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: var(--t-m); letter-spacing: 0; }
.factlist dt { color: var(--mute); font-size: var(--t-s); padding-top: .15em; }
.factlist dd { margin: 0; }
.factlist dd p { margin: .8em 0 0; }  /* extra paragraphs within one entry */
.notes-head { grid-column: 2; margin: 0 0 clamp(20px, 3vw, 36px); font-size: var(--t-s); color: var(--mute); }
.film { grid-column: 2; aspect-ratio: 16 / 9; background: var(--card); }  /* the YouTube film, aligned with the text column */
.film iframe { display: block; width: 100%; height: 100%; border: 0; }
.film-link { grid-column: 2; margin: 10px 0 0; font-size: var(--t-xs); color: var(--mute); }
.ruled > .grid { border-top: 1px solid var(--ink); padding-top: clamp(40px, 6vw, 80px); }  /* a full-width line above a section (the Story teaser) */
.story-title { grid-column: 2; margin: 0 0 .45em; max-width: 22em; font-size: var(--t-l); font-weight: 300; line-height: 1.1; letter-spacing: 0; }  /* the essay title, same size as the other large text */
.more { grid-column: 2; margin: .4em 0 0; font-size: var(--t-m); }  /* "Read the full story" link */
.more a { display: inline-flex; align-items: center; gap: .5em; }
.notes dd { line-height: 1.38; max-width: 34em; }

/* ---------- Inquiries ---------- */
.inquire { padding-block: clamp(80px, 12vw, 180px) clamp(40px, 6vw, 80px); }
.inquire h2 { grid-column: 2; margin: 0; font-size: var(--t-l); font-weight: 300; letter-spacing: 0; line-height: 1.1; }
.inquire .appt { grid-column: 2; margin: 0; font-size: var(--t-m); color: var(--mute); }
.agents { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--rule); }
.agent { padding-top: clamp(20px, 3vw, 32px); font-size: var(--t-m); line-height: 1.4; min-width: 0; }
.agent + .agent { border-left: 1px solid var(--rule); padding-left: var(--gap); }
.agent h3 { margin: 0; font-size: inherit; line-height: inherit; font-family: var(--sans); font-weight: 400; color: var(--ink); }
.agent p { margin: 0; }  /* no extra gap between the company lines and the email line */
.agent .smaller { font-size: .75em; }  /* phone numbers and DRE numbers, 25% smaller than the rest of the agent details */
.logo-slot { display: flex; align-items: flex-end; height: 19.5px; margin-bottom: 24px; }
.logo-slot img { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; }
.logo-bou { height: 19.5px; }  /* 25% smaller than the original 26px */
.logo-mch { height: 15px; }  /* 25% smaller than the original 20px; bottoms line up with bouHAUS */
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.legal p { margin: 0; max-width: 46em; color: var(--mute); font-size: var(--t-xs); line-height: 1.5; }
.marks { display: flex; gap: 18px; align-items: end; color: var(--text); }
.marks img { height: 33.6px; width: auto; display: block; }  /* 30% smaller than the original 48px */
.site-foot { border-top: 1px solid var(--rule); padding-block: 14px 24px; font-size: var(--t-xs); }
.site-foot .grid { grid-template-columns: calc(var(--side) - var(--gutter-l) - var(--gap)) minmax(0, 1fr) auto; }
.site-foot .a { grid-column: 1; }
.site-foot .b { grid-column: 2; color: var(--mute); }
.site-foot .c { grid-column: 3; text-align: right; }

/* ---------- Lightbox ---------- */
dialog.lb { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: var(--paper); color: var(--text); }
dialog.lb::backdrop { background: var(--paper); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: max(14px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(14px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); gap: 12px; }
.lb-bar { display: flex; justify-content: space-between; font-size: var(--t-s); }
.lb-bar button, .lb-nav button { all: unset; cursor: pointer; font-size: var(--t-s); }
.lb-bar button:focus-visible, .lb-nav button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.lb-img { min-height: 0; display: grid; place-items: center; }
.lb-img img { max-height: calc(100dvh - 8rem); max-width: 100%; width: auto; object-fit: contain; }  /* leave room for the count, Close, Previous/Next and the credit line */
.lb-nav { display: flex; justify-content: space-between; font-size: var(--t-s); color: var(--mute); }
#lb-cap { flex: 0 1 46em; padding-inline: 1em; text-align: center; font-size: var(--t-xs); line-height: 1.4; }  /* photo credit in the viewer */

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .grid, .site-foot .grid { grid-template-columns: minmax(0, 1fr); }
  .statement, .lede, .quotes { max-width: none; }
  .inquire h2, .inquire .appt { grid-column: 1; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-side { border-right: 0; padding-right: var(--gutter-r); }
  .split-intro { padding-bottom: 20px; }
  .split .menu { display: none; }
  .flyout { width: min(320px, 100%); }
  .split-main { padding: 0 var(--gutter-r) var(--gap) var(--gutter-l); }
  .statement, .lede, .body, .body + .body, .quotes, .factlist, .notes-head, .more, .story-title, .film, .film-link,
  .inquire .contact, .inquire .note { grid-column: 1 / -1; }
  .label { grid-column: 1 / -1; margin-bottom: 18px; }
  .site-foot .a, .site-foot .b, .site-foot .c { grid-column: 1; text-align: left; }
  .agents { grid-template-columns: minmax(0, 1fr); }
  .agent + .agent { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); margin-top: 12px; }
}
@media (max-width: 560px) {
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cells > .cell, .cells > .cell.third { grid-column: 1 / -1; }
  .cell, .cell.l, .cell.r, .cell.m { border-right: 0; padding-inline: 0; }
  .cell.wide button { aspect-ratio: 4 / 3; }
  .archive { grid-template-columns: minmax(0, 1fr); }
  .archive .a4, .archive .a6 { grid-column: 1 / -1; }
  .archive .a4 img, .archive .r54 img, .archive .r32 img { aspect-ratio: auto; }  /* stacked on phones: show each whole */
  .factlist div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bleed img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .statement .w, .hero img, .loadbar { animation: none; }
  .flyout, .h-menu.open .flyout { transition: none; }
  .cell img { transition: none; }
}
