/* Meadow. Green ink on white, inscription capitals, everything on a centre line, photographs in fine frames. */
:root {
  --bg: #fbfcfa; --ink: #143629; --mute: #4a5f55; --line: #cbd6cf; --wash: #eef3ee; --on: #fbfcfa;
  --disp: "Forum", "Times New Roman", Times, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --g: clamp(16px, 3vw, 40px);
  --wide: 1280px;
  --col: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on); padding: 12px 16px; z-index: 90; }
.skip:focus { left: 8px; top: 8px; }
.caps { font-family: var(--disp); font-weight: 400; text-transform: uppercase; }
.mute { color: var(--mute); }
.tap { display: inline-flex; align-items: center; min-height: 44px; }

/* Header */
.top { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 98px; padding-inline: var(--g); border-bottom: 1px solid var(--line); }
.top a, .menu summary { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.top a:not(.brand):hover, .top a[aria-current], .menu[open] summary { text-decoration: underline; }
.nl, .nr { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nl { justify-self: start; }
.nr { justify-self: end; }
/* Phones: Homes, the name, and a Menu that opens on a tap (no script) */
.menu { display: none; justify-self: end; }
.menu summary { cursor: pointer; list-style: none; padding-left: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 1px); display: grid; padding: 0 var(--g) 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu nav a { min-height: 54px; }
.menu nav a + a { border-top: 1px solid var(--line); }
/* The name with Meadow's leaf-and-roof mark above it. The span's negative margin cancels the space after the last letter so the word sits centred under the mark. */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; font-family: var(--disp); text-transform: uppercase; font-size: 25px; line-height: 1; letter-spacing: .34em; text-decoration: none; }
.top .brand { flex-direction: column; }
.brand span { margin-right: -.34em; }
.mark { display: block; height: 34px; width: auto; aspect-ratio: 452.1 / 379; }
.foot .brand { gap: 12px; font-size: 27px; margin-bottom: 4px; }
.foot .mark { height: 62px; }
.big { font-family: var(--disp); font-size: clamp(25px, 2.7vw, 34px); line-height: 1.22; letter-spacing: .01em; text-wrap: balance; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding-inline: 38px; background: var(--ink); color: var(--on); border: 1px solid var(--ink); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; transition: background .2s, color .2s; }
.btn:hover { background: #1f4d3b; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--wash); }

/* Page opening */
.lede { text-align: center; padding: clamp(20px, 3.4vh, 44px) var(--g) clamp(18px, 3vh, 36px); }
.lede h1 { font-size: clamp(31px, 4.5vw, 60px); letter-spacing: .06em; line-height: 1.08; text-wrap: balance; }
.lede p { margin-top: 6px; color: var(--mute); }

/* Framed photograph */
.plate { display: block; padding: 10px; border: 1px solid var(--line); transition: border-color .3s; }
a.plate:hover { border-color: var(--ink); }
.plate span { display: block; overflow: hidden; background: var(--wash); }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .6, .2, 1); }
a.plate:hover img { transform: scale(1.025); }

/* Facts on one line, with hairlines between when there is room */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; font-weight: 500; font-size: 18px; }
/* Availability is a state: a small green dot marks a home that can be rented now */
.facts li:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2c8a57; margin-right: 9px; vertical-align: .1em; }
.cq { container-type: inline-size; }
@container (min-width: 520px) {
  .facts { gap: 2px 0; }
  .facts li { padding-inline: 16px; }
  .facts li + li { border-left: 1px solid var(--line); }
}

/* Home: the two homes */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); max-width: var(--wide); margin-inline: auto; padding-inline: var(--g); }
.home { min-width: 0; }
.home .plate span { height: clamp(226px, calc(100svh - 502px), 560px); }
.info { display: grid; justify-items: center; gap: 7px; padding-top: 16px; text-align: center; }
.idline { max-width: 44ch; text-wrap: balance; }
.info h2 { font-size: clamp(23px, 2.2vw, 29px); letter-spacing: .07em; line-height: 1.15; }
.info h2 a { text-decoration: none; }
.info .facts { margin-top: 2px; }
.info .btn { margin-top: 10px; }
.lic { color: var(--mute); font-size: 15px; }

/* Sections */
.sec { margin-top: clamp(60px, 8.5vw, 112px); }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--g); }
.narrow { max-width: calc(var(--col) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }
.sec-h { font-size: clamp(26px, 3vw, 38px); letter-spacing: .07em; line-height: 1.12; text-align: center; margin-bottom: 30px; text-wrap: balance; }
.sub-h { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 21px; line-height: 1.2; }
.center { display: grid; justify-items: center; gap: 12px; text-align: center; }
.small { font-size: 15px; }
.eyebrow { font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-right: -.22em; }
/* Home: the statement about Meadow, on a quiet band with the mark above it */
.band { background: var(--wash); padding: clamp(52px, 7vw, 96px) 0 clamp(56px, 7.5vw, 104px); }
.band .center { gap: 14px; }
.band .mark { height: 46px; margin-bottom: 6px; }
.band .big { font-size: clamp(27px, 3.3vw, 44px); line-height: 1.16; max-width: 22ch; margin-block: 4px 6px; }
.band p { max-width: 52ch; text-wrap: balance; }
.band .btn.ghost:hover { background: var(--bg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; border-block: 1px solid var(--line); text-align: center; }
.steps li { counter-increment: step; min-width: 0; padding: 30px clamp(16px, 3vw, 44px) 34px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-family: var(--disp); font-size: 38px; line-height: 1; margin-bottom: 14px; }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }

.proj { display: grid; justify-items: center; gap: 6px; max-width: 760px; margin-inline: auto; padding: 44px 24px 40px; border: 1px solid var(--line); text-align: center; text-decoration: none; transition: border-color .3s; }
.proj:hover { border-color: var(--ink); }
.proj b { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 5vw, 58px); letter-spacing: .08em; line-height: 1.05; }
.proj span { color: var(--mute); }
.proj u { margin-top: 12px; }

/* Listing: opening */
.crumb { text-align: center; font-size: 15px; color: var(--mute); padding: 12px var(--g) 0; }
.crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; }
.l-hero { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 2px var(--g) 28px; }
.l-hero h1 { font-size: clamp(31px, 4.5vw, 60px); letter-spacing: .06em; line-height: 1.08; text-wrap: balance; }
.l-hero .facts { margin-top: 6px; width: 100%; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
/* The front of the house first, then the lead room, at one height */
.lead { --h: clamp(280px, 64svh, 660px); }
.spread { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.lead .plate span { height: var(--h); }
.lead .front span { width: calc(var(--h) * .7); }
.stamp { text-align: center; color: var(--mute); font-size: 15px; margin-top: 14px; }

/* Listing: photos */
/* Four columns of equal height. Each tile keeps close to its photo's own shape, then stretches a little so the columns end together. */
.tiles { display: flex; gap: 10px; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tiles a { position: relative; display: block; flex: var(--g, 1) 1 auto; aspect-ratio: var(--rd, 4 / 3); min-height: 0; overflow: hidden; background: var(--wash); }
.tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tiles a:hover img { transform: scale(1.03); }
.count { text-align: center; color: var(--mute); margin-top: 18px; }

/* Listing: quick facts */
.qf { border-top: 1px solid var(--line); }
.qf div { display: grid; grid-template-columns: 210px 1fr; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qf dt { color: var(--mute); }
.qf dd { font-weight: 500; min-width: 0; }
.qf dd span { display: block; font-weight: 400; color: var(--mute); margin-top: 4px; }
.after { margin-top: 30px; }

/* Listing: about */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; max-width: 1120px; margin-inline: auto; padding-inline: var(--g); }
.hl { order: 2; border: 1px solid var(--line); padding: 28px 30px 22px; min-width: 0; }
.hl ul { margin-top: 12px; }
.hl li { padding: 11px 0; border-top: 1px solid var(--line); }
.txt { display: grid; gap: 16px; min-width: 0; }
.txt .sub-h { margin-top: 14px; }

/* Listing: sections that open on a tap */
.acc { border-top: 1px solid var(--line); margin-top: 22px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; padding: 14px 0; cursor: pointer; font-weight: 600; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font: inherit; }
.acc summary::after { content: "+"; flex: 0 0 auto; font: 400 30px/1 var(--disp); }
.acc details[open] summary::after { content: "\2212"; }
.acc details > p { padding: 0 0 20px; max-width: 64ch; }

/* Listing: before your tour */
.tour { background: var(--wash); padding-block: clamp(52px, 7vw, 92px); }
.tour-steps { counter-reset: t; border-top: 1px solid var(--line); }
.tour-steps li { counter-increment: t; display: grid; grid-template-columns: 46px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tour-steps li::before { content: counter(t); font: 400 32px/1.15 var(--disp); }
.asks { display: grid; gap: 12px; margin-top: 38px; }
.slot { background: var(--bg); border: 1px solid var(--line); padding: clamp(18px, 3.4vw, 36px); margin-top: 26px; }
.pv-note { font-size: 15px; color: var(--mute); padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.keep { margin-top: 22px; }
.apply { margin-top: 26px; display: grid; justify-items: center; }

/* Listing: the other home */
.other { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin-inline: auto; padding: 10px; border: 1px solid var(--line); text-decoration: none; transition: border-color .3s; }
.other:hover { border-color: var(--ink); }
.other .ph { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wash); }
.other img { width: 100%; height: 100%; object-fit: cover; }
.other .tx { display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; min-width: 0; }
.other .tx > span { color: var(--mute); }
.other .ph img { transition: transform .7s cubic-bezier(.2, .6, .2, 1); }
.other:hover .ph img { transform: scale(1.025); }
.other b { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: .07em; line-height: 1.15; }
.other u { margin-top: 8px; }

/* Listing: photo viewer */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--bg); color: var(--ink); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: var(--bg); }
.v-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--g); border-bottom: 1px solid var(--line); }
.v-img { min-height: 0; padding: 14px var(--g) 0; }
.v-img img { width: 100%; height: 100%; object-fit: contain; }
.v-bot { display: grid; justify-items: center; gap: 10px; padding: 12px var(--g) calc(14px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.v-nav { display: flex; align-items: center; gap: 12px; }
.v-btn { min-height: 48px; min-width: 110px; padding-inline: 20px; background: transparent; border: 1px solid var(--ink); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.v-btn:hover { background: var(--wash); }
.v-count { min-width: 64px; font-variant-numeric: tabular-nums; }

/* Listing: request-a-tour bar on phones */
.bar { display: none; }

/* Projects */
.project { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: var(--wide); margin-inline: auto; padding-inline: var(--g); }
.project figure { min-width: 0; width: 100%; max-width: calc(max(260px, 100svh - 290px) * 1.5 + 22px); justify-self: end; }
.project .plate span { aspect-ratio: 3 / 2; }
.project figcaption { font-size: 15px; color: var(--mute); padding-top: 8px; text-align: center; }
.project .tx { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.project h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: .08em; line-height: 1.08; }
.project p { max-width: 38ch; text-wrap: balance; }
.project .btn { margin-top: 16px; }

/* About Us: the same two columns, with a 4:3 photograph */
.project.about-us figure { max-width: calc(max(260px, 100svh - 290px) * 1.333 + 22px); }
.project.about-us .plate span { aspect-ratio: 4 / 3; }
.project.about-us p { max-width: 40ch; }
.project.about-us .tx { gap: 14px; }

/* Executive Team */
.team { border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.person .plate span { aspect-ratio: 3 / 4; }
.person .tx { display: grid; gap: 4px; min-width: 0; }
.person h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .08em; line-height: 1.1; }
.person .role { color: var(--mute); font-weight: 500; }
.person .bio { margin-top: 14px; }

/* Legal pages: one readable column */
.doc { padding-top: clamp(20px, 3.4vh, 44px); }
.doc h1 { font-size: clamp(31px, 4.5vw, 60px); letter-spacing: .06em; line-height: 1.08; text-align: center; text-wrap: balance; }
.doc h1 + p { text-align: center; color: var(--mute); font-size: 15px; margin: 10px 0 34px; }
.doc p { margin-top: 14px; }
.doc h2 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: 22px; line-height: 1.25; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); text-wrap: balance; }
.doc a { overflow-wrap: anywhere; }

/* Footer */
.foot { margin-top: clamp(64px, 9vw, 120px); background: var(--wash); padding: clamp(40px, 6vw, 72px) var(--g) 56px; display: grid; justify-items: center; gap: 30px; text-align: center; }
.tour + .foot, .foot.flush { margin-top: 0; }
.who { display: grid; justify-items: center; gap: 6px; }
.who .tag { font-family: var(--disp); text-transform: uppercase; letter-spacing: .2em; font-size: 15px; }
.who a { display: inline-flex; align-items: center; min-height: 44px; }
.who .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; }
.legal { display: grid; justify-items: center; gap: 12px; max-width: 66ch; }
.legal svg { width: 96px; height: auto; margin-bottom: 4px; }
.legal strong { font-weight: 600; }
.fine { display: grid; justify-items: center; gap: 2px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; max-width: 1200px; font-size: 15px; color: var(--mute); }
.fine ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.fine a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  /* Narrower screens: the photos flow down three, then two, columns at their own shapes */
  .tiles { display: block; columns: 3; column-gap: 10px; }
  .col { display: contents; }
  .tiles a { flex: none; margin-bottom: 10px; break-inside: avoid; }
}
@media (max-width: 820px) {
  .top { height: 84px; }
  .brand { font-size: 21px; gap: 6px; }
  .top .mark { height: 28px; }
  .nl a + a, .nr { display: none; }
  .menu { display: block; }
  .spread { grid-template-columns: 1fr; }
  .lead .plate.front span { width: auto; aspect-ratio: 4 / 5; }
  .project.about-us figure { max-width: none; }
  .person { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: 32px 0 36px; }
  .person .plate { width: 240px; }
  .person h2, .person .role { text-align: center; }
  .pair { grid-template-columns: 1fr; gap: 48px; }
  .plate { padding: 8px; }
  .home .plate span, .lead .plate span { height: auto; aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .info .btn, .after .btn, .cta .btn { width: 100%; }
  .about { grid-template-columns: 1fr; }
  .hl { order: 0; padding: 22px 20px 14px; }
  .other, .project { grid-template-columns: 1fr; }
  .project figure { max-width: none; }
  .project .btn { width: 100%; }
  .has-bar { padding-bottom: 76px; }
  .bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); transition: transform .25s; }
  .bar.off { transform: translateY(110%); }
  .bar p { font-weight: 600; line-height: 1.25; }
  .bar p span { display: block; font-weight: 400; font-size: 15px; color: var(--mute); }
  .bar .btn { min-height: 48px; padding-inline: 20px; letter-spacing: .12em; }
}
@media (max-width: 560px) {
  .tiles { columns: 2; }
  .tiles a { aspect-ratio: var(--rp, 4 / 3); }
  .who .nav, .fine ul { display: grid; grid-template-columns: auto auto; justify-content: center; justify-items: center; gap: 0 30px; }
  .qf div { grid-template-columns: 1fr; }
  .facts { flex-direction: column; align-items: center; }
  .v-btn { min-width: 96px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
