/* 60 Joans Lane, McHenry MD - single-listing page.
   Palette from the house itself: fieldstone (the hearths and the front), forest shade (the woods, the sage siding at
   its darkest), reclaimed-wood walnut (the planked walls) and a small, bright ember for the fires.
   Type: Recia 700 (display + the fire numerals) over Roobert (text and UI). */

@font-face { font-family: "Recia"; src: url("fonts/recia-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("fonts/roobert-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("fonts/roobert-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --forest: #17231c;
  --forest-2: #1f2f26;
  --forest-3: #2a3d32;
  --stone: #e6dfd3;
  --stone-2: #d7cdbd;
  --stone-3: #efe9df;
  --walnut: #4a2e1f;
  --walnut-2: #5e3b28;
  --ember: #ff5b1f;
  --ember-hot: #ff7433;
  --ember-deep: #e2470f;
  --ink: #17231c;
  --ink-2: rgb(23 35 28 / .8);
  --ink-3: rgb(23 35 28 / .58);
  --ink-4: rgb(23 35 28 / .2);
  --cream: #ece5d8;
  --cream-2: rgb(236 229 216 / .78);
  --cream-3: rgb(236 229 216 / .52);
  --cream-4: rgb(236 229 216 / .18);

  --display: "Recia", "Iowan Old Style", Georgia, serif;
  --text: "Roobert", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* margin tiers: the nav and footer frame the page, the hero is inset more, the body more again */
  --pad-nav: 28px;
  --pad-hero: 72px;
  --pad-body: 112px;
  --navh: 72px;
  --dock: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--navh) + 12px); }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--dock);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
/* every short block is evened out; long ones are switched to "pretty" by site.js */
h1, h2, h3, p, li, dd, dt, figcaption, blockquote, cite { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ember); color: var(--forest); padding: 10px 16px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }

/* ---------- type ---------- */
.label {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 18px;
}
.label--light { color: var(--cream-3); }
.h2 { font: 700 clamp(36px, 3.5vw, 52px)/1.02 var(--display); letter-spacing: -.012em; color: var(--ink); }
.h3 { font: 700 clamp(26px, 2.3vw, 34px)/1.08 var(--display); letter-spacing: -.008em; color: var(--ink); }
.body { font-size: 17px; line-height: 1.62; color: var(--ink-2); max-width: 54ch; }
.body--lg { font-size: 19px; line-height: 1.58; max-width: 56ch; }
.body + .body { margin-top: 14px; }

/* ---------- buttons: a cut plank of ember, pressed in ---------- */
.btn {
  --r: 3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; border-radius: var(--r);
  font: 500 16px/1.1 var(--text); letter-spacing: .005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn--ember {
  background: var(--ember); color: var(--forest);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18), 0 1px 2px rgb(0 0 0 / .2);
}
.btn--ember:hover { background: var(--ember-hot); transform: translateY(1px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .18), 0 1px 1px rgb(0 0 0 / .2); }
.btn--ember:active { transform: translateY(2px); background: var(--ember-deep); box-shadow: inset 0 1px 2px rgb(0 0 0 / .25); transition-duration: .07s; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink-4); box-shadow: inset 0 -2px 0 var(--ink-4); }
.btn--line:hover { border-color: var(--ink-3); transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--ink-3); }
.btn--line:active { transform: translateY(2px); box-shadow: none; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 17px; }
.btn__arrow { transition: transform .18s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
/* the next step: an email from a desk, a call from a phone */
.cta-tel { display: none; }
@media (hover: none) and (pointer: coarse) { .cta-tel { display: inline-flex; } .cta-mail { display: none; } }

/* ---------- the flames (fine line; ember when lit) ---------- */
.flame { width: 40px; height: 44px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.flame path { vector-effect: non-scaling-stroke; }
.flame__fire path { transition: fill .5s var(--ease), stroke .5s var(--ease); }
.flame__tongue { opacity: .55; }
.is-lit > .flame .flame__outer, .is-lit > a > .flame .flame__outer, .flame.is-lit .flame__outer { fill: var(--ember); stroke: var(--ember); }
.is-lit > .flame .flame__tongue, .is-lit > a > .flame .flame__tongue, .flame.is-lit .flame__tongue { fill: #ffc28a; stroke: none; }
.flame--sm { width: 20px; height: 22px; }
.flame--mark { width: 22px; height: 24px; }

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--navh);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad-nav);
  background: var(--forest); color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: transform .34s var(--ease), border-color .2s ease;
}
.nav.is-solid { border-bottom-color: var(--cream-4); }
.nav.is-hidden { transform: translateY(-101%); }
.nav__mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -.005em; }
.nav__mark .flame__hearth { stroke: var(--cream); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a, .nav__tel, .nav__photos { font: 500 14px/1 var(--text); color: var(--cream-2); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav__links a:hover, .nav__tel:hover, .nav__photos:hover { color: var(--cream); border-bottom-color: var(--ember); }
.nav__act { display: flex; align-items: center; gap: 22px; }
.nav__photos { display: none; }
.nav .btn--sm:focus-visible { outline-color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--forest); color: var(--cream);
  min-height: 100svh; padding-top: var(--navh);
  display: flex; flex-direction: column;
}
.hero__media {
  flex: 1 1 auto; min-height: 340px;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 8px;
  padding-left: var(--pad-hero); padding-top: 14px;
}
.hero__ph { position: relative; overflow: hidden; background: var(--forest-2); }
.hero__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__band {
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); column-gap: 8px;
  padding: 0 0 38px var(--pad-hero);
}
.hero__side, .hero__cap--fire { padding-right: var(--pad-hero); }
.hero__cap { font: 500 12px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); padding: 13px 0 0; }
.hero__cap--fire { display: flex; align-items: center; gap: 14px; padding-left: 0; }
.minis { display: inline-flex; gap: 2px; color: var(--cream-3); }
.mini .flame { width: 18px; height: 20px; stroke-width: 1.2; }
.hero__main { padding-top: 26px; padding-right: 24px; }
.hero__eyebrow { display: flex; gap: 18px; font: 500 13px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2); margin-bottom: 16px; }
.hero__eyebrow span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--ember); vertical-align: middle; margin-right: 18px; transform: translateY(-2px); }
.hero__title { font: 700 clamp(40px, min(4.4vw, 7.2vh), 66px)/.98 var(--display); letter-spacing: -.016em; color: var(--cream); max-width: 12.5em; }
.hero__side { padding-top: 26px; padding-left: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero__price { font: 700 clamp(34px, 2.9vw, 44px)/1 var(--display); color: var(--cream); letter-spacing: -.01em; }
.hero__meta { margin-top: 10px; font: 500 14px/1.4 var(--text); color: var(--cream-2); letter-spacing: .01em; }
.hero__meta i { font-style: normal; color: var(--cream-4); padding: 0 6px; }
.hero__lede { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--cream-2); max-width: 58ch; }
.hero__lede span { display: block; text-wrap: balance; }
.hero__act { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__agent { font-size: 14px; line-height: 1.4; color: var(--cream-2); }
.hero__agent strong { color: var(--cream); font-weight: 500; }

/* ---------- the walk: follow the fires ---------- */
.walk { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); padding-left: var(--pad-body); background: var(--stone); max-width: 1760px; margin: 0 auto; }
.walk__rail { position: relative; }
.count { position: sticky; top: calc(var(--navh) + 40px); padding: 120px 0 40px; }
.count__title { font: 500 12px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.count__list { position: relative; display: grid; gap: 18px; }
/* the hairline spine, and the ember line that grows down it as fires are lit */
.count__list::before, .count__list::after { content: ""; position: absolute; left: 19.5px; top: 22px; width: 1px; height: calc(100% - 44px); background: var(--ink-4); }
.count__list::after { background: var(--ember); width: 2px; left: 19px; transform-origin: top; transform: scaleY(var(--spine, 0)); transition: transform .6s var(--ease); }
.count__item a { position: relative; z-index: 1; display: grid; grid-template-columns: 40px 26px auto; align-items: center; gap: 0 10px; text-decoration: none; color: var(--ink-3); padding: 2px 0; }
.count__item .flame { background: var(--stone); color: var(--ink-3); box-shadow: 0 0 0 4px var(--stone); }
.count__n { font: 700 22px/1 var(--display); color: var(--ink-3); text-align: right; transition: color .4s ease; }
.count__name { font: 500 15px/1.25 var(--text); color: var(--ink-2); transition: color .3s ease; }
.count__item a:hover .count__name { color: var(--ink); }
.count__item.is-lit .flame { color: var(--ink-2); }
.count__item.is-lit .count__n { color: var(--ember-deep); }
.count__item.is-now .count__name { color: var(--ink); }
.count__item.is-now .count__name::after { content: ""; display: block; height: 2px; width: 28px; background: var(--ember); margin-top: 6px; }
.count__seen, .count__now { display: none; }
.js .count__seen { display: block; max-width: 210px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--ink-4); font: 500 13px/1.3 var(--text); color: var(--ink-3); letter-spacing: .02em; }
.count__seen span { font: 700 20px/1 var(--display); color: var(--ink); margin-right: 2px; }

.walk__main { min-width: 0; padding-bottom: 0; }
.walk__head { padding: 120px var(--pad-hero) 70px 0; max-width: 980px; }
.walk__head .h2 { margin-bottom: 22px; }

.stop { position: relative; padding: 0 0 120px; }
.stop figcaption { font: 500 12px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 12px; }
.ph { position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; background: var(--stone-2); }
.ph--big img, .ph--band img { aspect-ratio: 16 / 10; height: auto; max-width: 1440px; }
.ph--band img { aspect-ratio: 2 / 1; }
.ph--big figcaption, .ph--band figcaption, .stop .pair figcaption, .stop .trio figcaption { padding-right: var(--pad-hero); }

/* a fire's header: the big ember numeral beside its name */
.fire__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0 44px; padding: 0 var(--pad-hero) 56px 0; }
.fire__num { font: 700 clamp(170px, 17vw, 250px)/.74 var(--display); color: var(--ember); letter-spacing: -.04em; padding-right: 4px; margin-bottom: -.02em; }
.fire__txt { max-width: 560px; padding-bottom: 4px; }
.fire__txt .label { margin-bottom: 14px; }
.fire__txt .label__fl .flame { display: block; }
.fire__txt .h3 { font-size: clamp(32px, 3vw, 44px); margin-bottom: 14px; }
.body--quote { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--ink); }
.body--quote span { display: block; margin-top: 6px; font: 500 11px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 10px; margin-top: 10px; align-items: start; }
.pair .ph img { aspect-ratio: 3 / 2; height: auto; }
.pair__b img { aspect-ratio: 15 / 14 !important; }
.pair--note { align-items: end; }
.pair__note { padding: 0 var(--pad-hero) 44px 34px; font: 700 24px/1.3 var(--display); color: var(--cream); max-width: 15em; }
.pair__note::before { content: ""; display: block; width: 44px; height: 2px; background: var(--ember); margin-bottom: 18px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-right: 0; }
.trio .ph img { aspect-ratio: 4 / 5; height: auto; }
.room__head { padding: 0 var(--pad-hero) 40px 0; max-width: 760px; }
.room__head .h3 { margin-bottom: 14px; }
.room__head--wide { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: end; }
.room__head--wide .h3 { margin-bottom: 0; }

/* arriving */
.arrive { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; padding-right: var(--pad-hero); margin-bottom: 10px; }
.arrive__txt { display: flex; flex-direction: column; padding-bottom: 40px; }
.arrive__txt .quote { margin-top: auto; padding-top: 4px; }
.arrive__txt .h3 { margin-bottom: 14px; }
.arrive__door img { aspect-ratio: 4 / 5; height: auto; }
.quote { margin-top: 30px; padding-left: 22px; border-left: 2px solid var(--ember); }
.quote p { font: 700 24px/1.28 var(--display); color: var(--ink); max-width: 24em; }
.quote cite { display: block; margin-top: 10px; font: 500 11px/1.2 var(--text); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.quote--plain { margin-top: 0; }
.quote--plain p { font-size: 21px; line-height: 1.36; max-width: 30em; }

/* kitchen */
.kitchen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 10px 56px; align-items: start; padding-right: 0; margin-bottom: 10px; }
.kitchen__txt { padding-top: 40px; }
.kitchen__txt .h3 { margin-bottom: 14px; }
.kitchen__small { margin-top: 44px; }
.kitchen__small img { aspect-ratio: 3 / 2; height: auto; }
.kitchen__tall img { aspect-ratio: 4 / 5; height: auto; }

/* fire 2: photo beside its header */
.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: end; margin-bottom: 10px; }
.side .fire__head { grid-template-columns: 1fr; padding: 0 48px 40px 0; gap: 26px; }
.side .fire__txt .h3 { font-size: clamp(30px, 2.65vw, 38px); }
.side__ph img { aspect-ratio: 5 / 4; height: auto; }

/* panels: the lower level in walnut, outside in forest */
.panel { color: var(--cream); }
.panel--walnut { background: var(--walnut); padding-top: 110px; margin-bottom: 0; }
.panel--forest { background: var(--forest); padding-top: 110px; }
.panel .label, .panel figcaption, .panel .body--quote span { color: var(--cream-3); }
.panel .h3, .panel .body--quote { color: var(--cream); }
.panel .body { color: var(--cream-2); }
.panel .ph img { background: var(--forest-2); }
.panel--walnut .ph img { background: var(--walnut-2); }
.panel--walnut .fire__head, .panel--walnut .theater { padding-left: 64px; }
.panel--walnut .ph--big figcaption { padding-left: 64px; }
.panel--walnut .ph--big { margin-left: 64px; }
.stop.panel--walnut { padding-bottom: 110px; }
.panel--walnut + .stop { padding-top: 110px; }
.theater { margin-top: 90px; }
.theater__txt { padding: 0 var(--pad-hero) 34px 0; max-width: 760px; }
.theater__txt .h3 { margin-bottom: 12px; }

.outside { padding-left: 64px; }
.outside > .stop:last-child { padding-bottom: 110px; }
.back { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: 0 48px; align-items: end; }
.back__ph img { aspect-ratio: 3 / 2; height: auto; }
.back__txt { padding-right: 48px; padding-bottom: 46px; }
.back__txt .h3 { margin-bottom: 14px; }
.walk__end { margin-top: 70px; font: 700 clamp(30px, 2.6vw, 40px)/1.1 var(--display); color: var(--cream); padding-right: var(--pad-hero); }
.walk__end::before { content: ""; display: block; width: 44px; height: 2px; background: var(--ember); margin-bottom: 22px; }

/* ---------- sections after the walk ---------- */
.sec { position: relative; }
.wrap { padding: 0 var(--pad-body); max-width: 1680px; margin: 0 auto; }

.sec--setting { background: var(--stone-3); padding: 130px 0 130px; }
.setting { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px 64px; align-items: start; }
.setting__txt { padding-top: 10px; }
.setting__txt .h2 { margin-bottom: 22px; max-width: 10em; }
.setting__a img { aspect-ratio: 5 / 4; height: auto; }
.setting__b { margin-top: 56px; }
.setting__b img { aspect-ratio: 3 / 2; height: auto; }
.setting figcaption { font: 500 12px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 12px; }

.sec--facts { background: var(--forest); color: var(--cream); padding: 130px 0; }
.facts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.facts__lead { position: sticky; top: calc(var(--navh) + 40px); }
.facts__lead .h2 { color: var(--cream); font-size: clamp(48px, 5vw, 76px); }
.facts__sub { margin-top: 14px; font-size: 18px; color: var(--cream-2); }
.stats { display: flex; gap: 48px; margin: 46px 0 46px; padding-top: 26px; border-top: 1px solid var(--cream-4); }
.stat { display: flex; align-items: baseline; gap: 8px; }
.stat__n { font: 700 clamp(46px, 4.2vw, 64px)/1 var(--display); color: var(--cream); letter-spacing: -.02em; }
.stat__u { font: 500 15px/1 var(--text); color: var(--cream-3); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--cream-4); }
.facts__list > div { padding: 18px 0 17px; border-bottom: 1px solid var(--cream-4); display: grid; gap: 6px; }
.facts__list > div.is-long { grid-column: 1 / -1; }
.facts__list dt { font: 500 12px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); padding-top: 3px; }
.facts__list dd { font-size: 18px; line-height: 1.45; color: var(--cream); }

.sec--agent { background: var(--stone); padding: 130px 0; }
.agent { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; align-items: stretch; }
.agent__ph { position: relative; min-height: 420px; max-width: 512px; background: var(--walnut); overflow: hidden; }
.agent__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; padding-top: 34px; }
.agent__card { padding: 8px 0 4px; }
.agent__card .h2 { margin-bottom: 8px; }
.agent__firm { font-size: 19px; color: var(--ink-2); }
.agent__lines { margin-top: 34px; border-top: 1px solid var(--ink-4); max-width: 520px; }
.agent__lines > div { display: grid; grid-template-columns: 110px 1fr; padding: 15px 0; border-bottom: 1px solid var(--ink-4); }
.agent__lines dt { font: 500 12px/1.6 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.agent__lines dd { font-size: 18px; }
.agent__lines a { text-decoration: none; border-bottom: 1px solid var(--ink-4); transition: border-color .15s ease; }
.agent__lines a:hover { border-bottom-color: var(--ember); }
.agent__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.agent__note { margin-top: 22px; font-size: 15px; color: var(--ink-3); max-width: 46ch; }

.sec--photos { background: var(--stone-3); padding: 120px 0 130px; }
.photos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.grid91 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.thumb { display: block; position: relative; overflow: hidden; background: var(--stone-2); }
.thumb img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; transition: opacity .2s ease; }
.thumb:hover img { opacity: .86; }

/* ---------- footer ---------- */
.foot { background: var(--forest); color: var(--cream-2); padding: 70px var(--pad-nav) 0; }
.foot__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 40px; padding-bottom: 36px; border-bottom: 1px solid var(--cream-4); }
.foot__mark { display: flex; align-items: center; gap: 12px; font: 700 30px/1 var(--display); color: var(--cream); }
.foot__mark .flame { width: 30px; height: 33px; }
.foot__mark .flame__hearth { stroke: var(--cream); }
.foot__line { font-size: 15px; color: var(--cream-3); }
.foot__line i { font-style: normal; padding: 0 6px; color: var(--cream-4); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding: 36px 0 40px; font-size: 15px; line-height: 1.55; }
.foot__k { font: 500 11px/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 8px; }
.foot a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--cream-4); }
.foot a:hover { border-bottom-color: var(--ember); }
.foot__legal { font-size: 13px; color: var(--cream-3); }
.foot__legal p { max-width: 74ch; }
.foot__legal p + p { margin-top: 10px; }
.eho { display: flex; align-items: center; gap: 10px; margin-top: 16px !important; color: var(--cream-2); }
.eho svg { width: 26px; height: 26px; flex: none; }
.foot__base { display: flex; justify-content: flex-end; padding: 18px 0 24px; border-top: 1px solid var(--cream-4); font-size: 13px; }

/* ---------- phone contact bar ---------- */
.dock { display: none; }

/* ---------- viewer ---------- */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14 21 17 / .97); color: var(--cream); }
.lb::backdrop { background: rgb(14 21 17 / .9); }
.lb[open] { display: grid; grid-template-rows: auto 1fr; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; }
.lb__count { font: 500 14px/1 var(--text); color: var(--cream-2); letter-spacing: .04em; }
.lb__x { font: 500 14px/1 var(--text); background: transparent; color: var(--cream); border: 1px solid var(--cream-4); padding: 10px 16px; border-radius: 3px; cursor: pointer; }
.lb__x:hover { border-color: var(--ember); }
.lb__fig { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 80px 26px; min-height: 0; }
.lb__fig img { max-width: min(100%, 1440px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lb__fig figcaption { margin-top: 12px; font-size: 14px; color: var(--cream-2); text-align: center; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 3px; border: 1px solid var(--cream-4); background: rgb(23 35 28 / .7); color: var(--cream); font-size: 20px; cursor: pointer; }
.lb__nav:hover { border-color: var(--ember); }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }

/* ---------- motion: headings settle in below the fold (never the hero, never a photo) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =================================================================== */
/* wider than the photos: keep every photo at or under its own 1440px */
@media (min-width: 1760px) {
  .hero__media { max-width: 1760px; margin: 0 auto; width: 100%; }
  .hero__band { max-width: 1760px; margin: 0 auto; width: 100%; }
}

/* laptop */
@media (max-width: 1279px) {
  :root { --pad-hero: 56px; --pad-body: 92px; }
  .walk { grid-template-columns: 250px minmax(0, 1fr); }
  .fire__head { gap: 0 32px; }
}

/* below the rail: the fire count becomes a slim strip */
@media (max-width: 1099px) {
  :root { --pad-hero: 40px; --pad-body: 40px; }
  .walk { display: block; padding-left: 0; }
  .walk__rail { position: sticky; top: 0; z-index: 30; transition: top .34s var(--ease); }
  body.nav-shown .walk__rail { top: var(--navh); }
  .count { position: relative; top: auto; padding: 0; }
  html:not(.js) .walk__rail { position: relative; }
  html:not(.js) .count { padding: 28px var(--pad-body) 10px; }
  html:not(.js) .count__list { grid-template-columns: repeat(5, auto); justify-content: start; gap: 14px 22px; }
  html:not(.js) .count__list::before, html:not(.js) .count__list::after { display: none; }
  .js .count { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 var(--pad-body); background: var(--stone-3); border-bottom: 1px solid var(--ink-4); box-shadow: 0 6px 18px rgb(23 35 28 / .06); }
  .js .count__title, .js .count__seen { display: none; }
  .js .count__list { display: flex; gap: 4px; }
  .js .count__list::before, .js .count__list::after { left: 14px; top: 50%; width: calc(100% - 28px); height: 1px; transform-origin: left; }
  .js .count__list::after { height: 2px; margin-top: -.5px; transform: scaleX(var(--spine, 0)); }
  .js .count__item a { grid-template-columns: 26px; gap: 0; padding: 0 3px; }
  .js .count__item .flame { width: 26px; height: 28px; background: var(--stone-3); box-shadow: 0 0 0 3px var(--stone-3); }
  .js .count__n, .js .count__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .count__now { display: block; margin-left: auto; font: 500 13px/1.2 var(--text); color: var(--ink-2); text-align: right; white-space: nowrap; }
  .js .count__now b { font: 700 16px/1 var(--display); color: var(--ember-deep); margin-right: 6px; }
  .walk__main { padding: 0 var(--pad-body); }
  .walk__head { padding: 90px 0 56px; }
  .stop { padding-bottom: 96px; }
  .ph--big, .ph--band { margin-right: calc(-1 * var(--pad-body)); margin-left: calc(-1 * var(--pad-body)); }
  .ph--big figcaption, .ph--band figcaption { padding-left: var(--pad-body); }
  .fire__head { padding-right: 0; }
  .arrive { padding-right: 0; }
  .trio { margin-right: 0; }
  .panel--walnut, .outside { margin: 0 calc(-1 * var(--pad-body)); padding-left: var(--pad-body); padding-right: var(--pad-body); }
  .panel--walnut .fire__head, .panel--walnut .theater { padding-left: 0; }
  .panel--walnut .ph--big { margin-left: calc(-1 * var(--pad-body)); }
  .panel--walnut .ph--big figcaption { padding-left: var(--pad-body); }
  .outside { padding-left: var(--pad-body); }
  .back__txt { padding-right: 0; }
  .walk__end { padding-right: 0; }
  .agent { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; }
  .facts { gap: 48px; }
  .nav__links { display: none; }
  .nav__act { margin-left: auto; }
}

/* small tablet and phone */
@media (max-width: 899px) {
  :root { --navh: 58px; }
  .nav { gap: 14px; padding: 0 20px; }
  .nav__tel, .nav__act .btn { display: none; }
  .nav__photos { display: inline-block; }
  .nav__mark { font-size: 18px; }
  .hero { min-height: 0; }
  .hero__media { flex: none; height: clamp(230px, 64vw, 420px); min-height: 0; padding: 0; gap: 4px; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
  .hero__band { grid-template-columns: 1fr; padding: 0 20px 34px; }
  .hero__cap--house { display: none; }
  .hero__cap--fire { padding-top: 11px; font-size: 11px; gap: 10px; }
  .mini .flame { width: 14px; height: 16px; }
  .hero__main { padding: 20px 0 0; }
  .hero__eyebrow { font-size: 12px; margin-bottom: 12px; gap: 14px; }
  .hero__eyebrow span + span::before { width: 14px; margin-right: 14px; }
  .hero__title { font-size: clamp(38px, 10.6vw, 56px); line-height: .98; max-width: none; }
  .hero__side { padding: 16px 0 0; display: grid; grid-template-areas: "price" "meta" "act" "lede"; }
  .hero__price { grid-area: price; font-size: clamp(30px, 8vw, 40px); }
  .hero__meta { grid-area: meta; font-size: 13px; margin-top: 8px; }
  .hero__act { grid-area: act; margin-top: 18px; gap: 12px; }
  .hero__act .btn { width: 100%; }
  .hero__lede { grid-area: lede; margin-top: 22px; font-size: 16px; }
  .h2 { font-size: clamp(32px, 8.6vw, 44px); }
  .h3, .fire__txt .h3 { font-size: clamp(26px, 7vw, 34px); }
  .body--lg { font-size: 17px; }
  .walk__main { padding: 0 20px; }
  :root { --pad-body: 20px; }
  .fire__head { grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; align-items: end; padding-bottom: 30px; }
  .fire__num { font-size: clamp(110px, 30vw, 160px); }
  .fire__txt { padding-bottom: 0; }
  .fire__txt .body { grid-column: 1 / -1; }
  .stop { padding-bottom: 80px; }
  .arrive, .kitchen, .side, .back, .room__head--wide { grid-template-columns: 1fr; gap: 0; }
  .arrive__txt, .back__txt { padding-bottom: 30px; }
  .arrive__door { margin: 0 -20px; }
  .arrive__door figcaption, .kitchen__tall figcaption, .side__ph figcaption, .back__ph figcaption { padding-left: 20px; }
  .arrive__door img { aspect-ratio: 4 / 3; }
  .kitchen { margin-bottom: 30px; }
  .kitchen__txt { padding-top: 0; margin-bottom: 28px; }
  .kitchen__small { display: none; }
  .kitchen__tall { margin: 0 -20px; }
  .kitchen__tall img { aspect-ratio: 4 / 3; }
  .ph--band img { aspect-ratio: 3 / 2; }
  .ph--big img { aspect-ratio: 4 / 3; }
  .side__ph { margin: 0 -20px 34px; order: 2; }
  .side .fire__head { order: 1; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; padding: 0 0 30px; }
  .side__ph img { aspect-ratio: 4 / 3; }
  .back__ph { margin: 0 -20px 30px; order: 2; }
  .back__txt { order: 1; }
  .pair, .pair--one { grid-template-columns: 1fr; gap: 26px; margin: 26px -20px 0; }
  .pair .ph img, .pair__b img { aspect-ratio: 3 / 2 !important; }
  .pair figcaption, .trio figcaption { padding-left: 20px; }
  .trio { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 -20px; }
  .trio .ph:first-child { grid-column: 1 / -1; }
  .trio .ph:first-child img { aspect-ratio: 3 / 2; }
  .trio .ph img { aspect-ratio: 4 / 5; }
  .trio .ph:not(:first-child) figcaption { padding-left: 20px; padding-right: 8px; }
  .room__head { padding-right: 0; padding-bottom: 30px; }
  .room__head--wide .h3 { margin-bottom: 22px; }
  .quote p { font-size: 21px; }
  .quote--plain p { font-size: 19px; }
  .panel--walnut, .outside { margin: 0 -20px; padding: 80px 20px 0; }
  .stop.panel--walnut { padding-bottom: 80px; }
  .outside > .stop:last-child { padding-bottom: 80px; }
  .panel--walnut .ph--big { margin-left: -20px; margin-right: -20px; }
  .theater { margin-top: 60px; }
  .theater__txt { padding: 0 0 6px; }
  .pair__note { padding: 0 20px; font-size: 21px; }
  .facts__lead { position: static; }
  .panel--walnut + .stop { padding-top: 80px; }
  .walk__end { margin-top: 56px; }
  .sec--setting, .sec--facts, .sec--agent { padding: 90px 0; }
  .sec--photos { padding: 80px 0 90px; }
  .wrap { padding: 0 20px; }
  .setting { grid-template-columns: 1fr; gap: 26px; }
  .setting__b { margin-top: 30px !important; }
  .setting__a, .setting__b { margin: 0 -20px; width: auto; }
  .setting figcaption { padding-left: 20px; }
  .facts { grid-template-columns: 1fr; gap: 40px; }
  .stats { gap: 32px; margin: 34px 0; }
  .facts__list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .facts__list > div.is-long { grid-template-columns: 1fr; }
  .facts__list dd { font-size: 17px; }
  .facts__lead .btn { width: 100%; }
  .agent { grid-template-columns: 1fr; gap: 34px; }
  .agent__ph { min-height: 0; aspect-ratio: 4 / 5; max-width: none; margin: 0 -20px; }
  .agent__act .btn { width: 100%; }
  .photos__head { flex-direction: column; gap: 8px; margin-bottom: 26px; }
  .grid91 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 -20px; }
  .grid91 li:first-child { grid-column: 1 / -1; }
  .hero__lede { font-size: 15px !important; line-height: 1.55; }
  .foot { padding: 56px 20px 0; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__legal { grid-column: 1 / -1; }
  .foot__base { justify-content: flex-start; }
  .lb__fig { padding: 0 0 20px; }
  .lb__fig figcaption { padding: 0 20px; }
  .lb__nav { top: auto; bottom: 18px; transform: none; }

  /* the always-there contact bar */
  :root { --dock: calc(64px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--dock);
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--forest); border-top: 1px solid var(--cream-4);
  }
  .dock__b { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 3px; text-decoration: none; font: 500 15px/1 var(--text); color: var(--cream); background: var(--forest-3); }
  .dock__b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
  .dock__b--main { background: var(--ember); color: var(--forest); }
  .dock__b:active { transform: translateY(1px); }
}

@media (max-width: 420px) {
  .hero__eyebrow { letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* phone hero fine-tuning */
@media (max-width: 899px) {
  .hero__ph--house img { object-position: 64% 70% !important; }
  .hero__ph--fire img { object-position: 70% 50% !important; }
  .cap__name { display: none; }
}

/* phone: a fire's numeral sits beside its label and name; the words run full width under them */
@media (max-width: 899px) {
  .fire__head, .side .fire__head { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 0; }
  .fire__txt { display: contents; }
  .fire__num { grid-row: 1; grid-column: 1; align-self: end; }
  .fire__txt .label { grid-row: 1; grid-column: 2; align-self: end; margin-bottom: 8px; }
  .fire__txt .h3, .side .fire__txt .h3 { grid-column: 1 / -1; margin: 22px 0 0; font-size: clamp(27px, 7.4vw, 36px); }
  .fire__txt .body, .fire__txt .body--quote { grid-column: 1 / -1; margin-top: 20px; }
  .fire__txt .body + .body--quote { margin-top: 16px; }
}
@media (max-width: 1099px) { html { scroll-padding-top: calc(var(--navh) + 68px); } }
@media (max-width: 899px) { .side__ph { margin-bottom: 0; } }
