/* The Cedar Gable, home page only. Served on the home page alone, after styles.css (V5 has no
   body classes: this file does the job static/hand.css's home-only rules did). Every rule here
   is hand.css's own, copied unchanged, in its own order, except the dock's wait, at the end, and
   two values changed on 16 Oct 2026 (the sky's middle and the bedroom tuck, each noted where it is). */

.on-dark { color: #f0c49d; }
.on-dark:hover { color: #fff; }

/* ----------------------------------------------------------------------------------------
   Hero. The front of the house owns the viewport. Its pale sky is taken to blue hour with the
   door's own colour, multiplied (densest at the top, gone just under the gable's peak), and the
   white hero words stand in it, clear of the roofline at every width.
   Desktop: the photograph runs full width from the top of a band sized to the words; the band is
   the multiplied sky's own colour, so band and photograph are one sky.
   ---------------------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dusk); color: #fff;
  --imgH: 66.667vw;
  --F: clamp(52px, min(6vw, 10.4vh), 156px);
  --T: clamp(26px, 4.4vh, 68px);
  --wordsB: calc(var(--T) + var(--F) * 1.96);
  --h1F: clamp(18px, 1.25vw, 26px);
  --h1B: calc(var(--wordsB) + clamp(14px, 1.4vw, 24px) + var(--h1F) * 2.9);
  /* The words end near 0.47 of the width, where the roof is 0.175 of the photograph down; the
     line under them ends near 0.41, where it is 0.246 down. Whichever needs more sky wins. */
  --band: max(0px, calc(var(--wordsB) + 1vw - var(--imgH) * 0.165), calc(var(--h1B) + 1vw - var(--imgH) * 0.236));
  height: calc(100svh - var(--bar)); min-height: 580px; }
.hero-shot { position: absolute; left: 0; right: 0; top: var(--band); bottom: 0; z-index: -1; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* The sky, and only the sky: a multiply in the door's blue over the top half of the photograph,
   masked to the skyline measured from the photograph itself (roof, peak, the tree and the
   arborvitae), so the house keeps its own daylight colour. The line under the hero words always
   sits 34 to 44% of the way down this layer (--band puts it there), so the 30% and 50% stops are
   what stands behind it: 0.86 and 0.7 (were 0.72 and 0.5, which left it at 3.1:1 on the palest sky,
   under the 4.5:1 an 18px line needs, at every width below 1920). */
.hero-shot::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--imgH) * 0.5); pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(180deg, rgba(36,58,73,1) 0%, rgba(36,58,73,0.9) 16%, rgba(36,58,73,0.86) 30%, rgba(36,58,73,0.7) 50%, rgba(36,58,73,0.3) 72%, rgba(36,58,73,0.12) 90%, rgba(36,58,73,0) 100%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3Cpolygon filter='url(%23f)' fill='%23fff' points='-20,-20 1020,-20 1020,470 995,470 985,470 975,416 965,350 955,316 945,298 935,307 925,355 915,375 905,410 895,437 885,427 875,436 865,458 855,447 845,434 835,413 825,391 815,384 805,372 795,363 785,356 775,348 765,341 755,332 745,326 735,317 725,309 715,302 705,293 695,285 685,278 675,269 665,260 655,254 645,246 635,235 625,226 615,213 605,211 595,206 585,197 575,188 565,180 555,172 545,164 535,156 525,148 515,139 510,136 495,154 470,180 440,211 400,251 350,303 300,354 270,384 247,408 245,421 200,450 147,485 140,472 100,460 50,452 -20,445'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3Cpolygon filter='url(%23f)' fill='%23fff' points='-20,-20 1020,-20 1020,470 995,470 985,470 975,416 965,350 955,316 945,298 935,307 925,355 915,375 905,410 895,437 885,427 875,436 865,458 855,447 845,434 835,413 825,391 815,384 805,372 795,363 785,356 775,348 765,341 755,332 745,326 735,317 725,309 715,302 705,293 695,285 685,278 675,269 665,260 655,254 645,246 635,235 625,226 615,213 605,211 595,206 585,197 575,188 565,180 555,172 545,164 535,156 525,148 515,139 510,136 495,154 470,180 440,211 400,251 350,303 300,354 270,384 247,408 245,421 200,450 147,485 140,472 100,460 50,452 -20,445'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hero-shot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--dusk), rgba(31, 55, 72, 0)); }
@supports not (mix-blend-mode: multiply) { .hero-shot::after { background: linear-gradient(180deg, rgba(31,55,72,1), rgba(31,55,72,0)); } }

.hero-in { position: relative; height: 100%; padding: var(--T) var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: var(--gap); align-items: start; }
.hero-words { grid-column: 1; grid-row: 1; font: 500 var(--F)/0.98 var(--disp); letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.hero h1 { grid-column: 1; grid-row: 2; max-width: 52ch; margin-top: clamp(14px, 1.4vw, 24px); font: 400 var(--h1F)/1.45 var(--body); letter-spacing: 0; color: #e3ecf1; text-wrap: pretty; }
/* The ask: one small object in the sky to the right of the peak. Price, rating, the verb. */
.hero-ask { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: clamp(14px, 1.2vw, 22px); padding: 12px 12px 12px 20px; background: var(--white); color: var(--ink); border-radius: 4px; box-shadow: 0 16px 36px rgba(10, 24, 34, 0.26); }
.ask-line { display: flex; flex-direction: column; gap: 1px; font-size: clamp(14px, 0.75vw, 16px); color: var(--ink-2); white-space: nowrap; }
.ask-line .price { font-size: clamp(17px, 0.95vw, 20px); color: var(--ink); }
.ask-line b { color: var(--ink); font-weight: 700; }
.hero-ask .btn { min-height: 46px; padding: 0 20px; }

/* Phone and portrait: words and the place on the deep sky, the house beneath, the ask on the lawn. */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .hero { --F: clamp(38px, 11.2vw, 76px); height: calc(100svh - var(--bar)); min-height: 600px; max-height: 1000px; display: flex; flex-direction: column; }
  .hero-in { display: flex; flex-direction: column; flex: 1; padding: 22px var(--gut) 18px; }
  .hero-words { font-size: var(--F); }
  .hero h1 { margin-top: 14px; max-width: 34ch; font: 400 clamp(17px, 4.4vw, 21px)/1.45 var(--body); }
  .hero-shot { top: var(--phoneTop, 34%); }
  /* Portrait: the photograph is scaled to the box's height, so the sky layer is sized from the height too. */
  .hero-shot::after { right: auto; left: 50%; height: 50%; aspect-ratio: 3 / 1; transform: translateX(-50%); }
  .hero-ask { margin-top: auto; justify-content: space-between; padding: 14px 14px 14px 18px; }
  .ask-line { font-size: 15px; white-space: normal; min-width: 0; }
  .hero-ask .btn { padding: 0 18px; }
  .ask-line .price { font-size: 18px; }
  .hero-ask .btn { flex: none; }
}
@media (max-width: 767px), (max-aspect-ratio: 1/1) { .hero { --phoneTop: calc(22px + var(--F) * 1.96 + 72px); } }

/* ----------------------------------------------------------------------------------------
   Passages share one grid: 12 columns inside the gutter, photographs free to cross it.
   ---------------------------------------------------------------------------------------- */
.come-back, .hedge, .sleep, .dogs, .two-up, .voices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: var(--pass) var(--gut); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
.come-back h2, .hedge h2, .sleep h2, .dogs h2 { margin-bottom: 28px; }
.cb-words p + .said, .hedge-words p + .said { margin-top: 40px; }

/* Inside: words left, the sofa at real scale on the right to the screen's edge, the fireplace
   tall across the lead's bottom-left corner (the rug, which holds nothing), the kitchen below. */
.cb-words { grid-column: 1 / 6; grid-row: 1; align-self: center; padding-right: 2vw; }
.cb-words > p { color: var(--ink-2); max-width: 36em; }
.cb-pics { grid-column: 6 / 13; grid-row: 1; margin-right: calc(-1 * var(--gut)); display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: auto clamp(40px, 7vw, 120px) auto; }
.cb-pics .lead { grid-column: 1 / 11; grid-row: 1 / 3; aspect-ratio: 3 / 2; }
.cb-pics .tall { grid-column: 1 / 5; grid-row: 2 / 4; aspect-ratio: 4 / 5; margin-left: -18%; z-index: 1; border: clamp(6px, 0.7vw, 12px) solid var(--white); }
.cb-pics .third { grid-column: 6 / 10; grid-row: 3; aspect-ratio: 3 / 2; margin-top: clamp(24px, 3vw, 48px); align-self: start; }
.cb-pics img, .hedge-pics img, .sleep img, .dogs img, .close-shot img { width: 100%; height: 100%; object-fit: cover; }
.cb-pics .tall img { object-position: 73% 92%; }

/* Behind the hedge: the deep green of the hedge, photographs on the left this time. */
.hedge { max-width: none; background: var(--laurel); color: #fff; padding-left: 0; }
.hedge { padding-bottom: calc(var(--pass) * 0.7); }
.hedge-pics { grid-column: 1 / 9; grid-row: 1; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: auto clamp(60px, 8vw, 150px) auto; }
.hedge-pics .lead { grid-column: 1 / 10; grid-row: 1 / 3; aspect-ratio: 3 / 2; }
.hedge-pics .lead img { object-position: 45% 60%; }
.hedge-pics .tall { grid-column: 7 / 11; grid-row: 2 / 4; aspect-ratio: 1 / 1; z-index: 1; margin-right: -14%; border: clamp(6px, 0.7vw, 12px) solid var(--laurel); }
.hedge-pics .tall img { object-position: 40% 60%; }
.hedge-words { grid-column: 10 / 13; grid-row: 1; align-self: center; }
.hedge-words > p { color: #d7e3d2; }
.hedge .said p { color: #fff; }
.hedge .said cite { color: var(--leaf); }

/* Bedrooms: words left, the dog room at scale, the other bedroom tucked below its left corner.
   The tuck stops growing where the passage does (1560px + 2 x 72px gutter = 1704 wide: 9vw =
   153px): past that the dog room's height is fixed, and an ever-deeper tuck reached the middle of
   the photograph from about 2200 wide. */
.sleep-words { grid-column: 1 / 5; grid-row: 1 / 3; align-self: center; }
.sleep-words > p { color: var(--ink-2); }
.dogroom { grid-column: 6 / 13; grid-row: 1; aspect-ratio: 3 / 2; margin-right: calc(-1 * var(--gut)); }
.dogroom img { object-position: 40% 50%; }
.fishroom { grid-column: 5 / 9; grid-row: 2; aspect-ratio: 4 / 3; margin-top: max(-9vw, -153px); z-index: 1; border: clamp(6px, 0.7vw, 12px) solid var(--white); align-self: start; }
.fishroom img { object-position: 40% 50%; }

/* The park (the ground, the row and the cards are in styles.css): the home page's own heading and foot. */
.park-head h2 { grid-column: 1 / 8; }
.park-head h2 span { display: block; font-size: 1.6em; line-height: 0.92; color: #f0c49d; }
.park-foot { padding: 0 var(--gut); max-width: calc(var(--max) + 2 * var(--gut)); margin: 56px auto 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.park-foot .said { grid-column: 1 / 8; }
.park-foot .said p { color: #fff; }
.park-foot .said cite { color: #9fb2bf; }
.park-foot .more { grid-column: 9 / 13; justify-self: start; margin: 0; }

/* Dogs: the lawn on the mist ground. */
.dogs { max-width: none; background: var(--mist); }
.lawn { grid-column: 1 / 8; margin-left: calc(-1 * var(--gut)); aspect-ratio: 3 / 2; }
.lawn img { object-position: 30% 60%; }
.dogs-words { grid-column: 9 / 13; align-self: center; }
.dogs-words > p { color: var(--ink-2); }

/* The river and the town, side by side. */
.two-up { row-gap: 64px; }
.two-up article { grid-column: span 6; display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gap); align-items: start; }
.two-up .pic { grid-column: 1; grid-row: 1 / 4; }
.two-up .pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.two-up .pic figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.two-up h2 { grid-column: 2; font-size: clamp(30px, 2.8vw, 46px); margin-bottom: 16px; }
.two-up p { grid-column: 2; color: var(--ink-2); }
.two-up .more { grid-column: 2; justify-self: start; margin-top: 20px; }

/* Guests. */
.voices { padding-top: 0; }
.score { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--bar) + 32px); }
.score .big { font: 500 clamp(96px, 11vw, 190px)/0.86 var(--disp); letter-spacing: -0.03em; color: var(--cedar); }
.score .big + p { margin-top: 10px; font: 500 clamp(22px, 1.7vw, 28px)/1.2 var(--disp); }
.quotes { grid-column: 6 / 13; display: grid; gap: 44px; }
.quotes blockquote { padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.quotes blockquote:last-child { border-bottom: 0; padding-bottom: 0; }
.quotes p { font: 400 clamp(20px, 1.5vw, 25px)/1.45 var(--body); }
.quotes cite { display: block; margin-top: 14px; font: 600 15px/1.3 var(--body); font-style: normal; color: var(--ink-2); }

/* The close: the house again, and the ask as an object across it (the card itself is in styles.css). */
.close { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 0 var(--gut) var(--pass); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
.close-shot { grid-column: 4 / 13; grid-row: 1; aspect-ratio: 3 / 2; margin-right: calc(-1 * var(--gut)); }
.close-shot img { object-position: 60% 50%; }
.close-facts { margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 16px; color: #cfdae2; }
.close-facts .wide { grid-column: 1 / -1; }
.close-facts li { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.16); }

/* Newsletter: the platform's sign-up island carries this look itself (its heading is the
   island's own), so when the organisation has no newsletter nothing of the passage is left. */
.letter { padding: 0 var(--gut) var(--pass); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
.letter h2 { font-size: clamp(28px, 2.4vw, 40px); }
.letter p { margin-top: 8px; color: var(--ink-2); }
/* The static sign-up stand-in (.stand.news: 18px under the words, 520px wide, no frame) carried
   onto the real island: the platform's own .island frame is not part of this design. */
.letter { border: 0; border-radius: 0; }
.letter .island-heading { margin-bottom: 18px; }
.letter form { max-width: 520px; }

/* Tablet and phone compositions. Each width is composed, not squeezed. */
@media (max-width: 1023px) {
  .cb-words { grid-column: 1 / 13; }
  .cb-words { grid-row: 1; padding: 0; }
  .cb-pics { grid-column: 1 / 13; grid-row: 2; margin: 48px calc(-1 * var(--gut)) 0 0; }
  .cb-pics .tall { margin-left: 0; }
  .hedge { padding-left: var(--gut); }
  .hedge-pics { grid-column: 1 / 13; margin-left: calc(-1 * var(--gut)); }
  .hedge-pics .tall { margin-right: 0; }
  .hedge-words { grid-column: 1 / 13; grid-row: 2; margin-top: 40px; }
  .sleep-words { grid-column: 1 / 13; grid-row: 1; margin-bottom: 44px; }
  .dogroom { grid-column: 1 / 13; grid-row: 2; margin-left: 0; }
  .fishroom { grid-column: 1 / 8; grid-row: 3; margin-top: -48px; margin-left: calc(-1 * var(--gut)); border-left: 0; }
  .park-head h2 { grid-column: 1 / 13; }
  .park-foot .said, .park-foot .more { grid-column: 1 / 13; }
  .park-foot .more { margin-top: 28px; }
  .lawn { grid-column: 1 / 13; margin-right: calc(-1 * var(--gut)); }
  .dogs-words { grid-column: 1 / 13; margin-top: 36px; }
  .two-up article { grid-column: 1 / 13; }
  .score { grid-column: 1 / 13; position: static; margin-bottom: 40px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 20px; }
  .score .more { width: 100%; margin-top: 16px; }
  .quotes { grid-column: 1 / 13; }
  .close-shot { grid-column: 1 / 13; margin-left: calc(-1 * var(--gut)); }
}
@media (max-width: 767px) {
  .cb-pics { grid-template-rows: auto 64px auto; margin-top: 36px; }
  .cb-pics .lead { grid-column: 1 / 11; }
  .cb-pics .tall { grid-column: 1 / 6; margin-left: calc(-1 * var(--gut)); border-left: 0; }
  .cb-pics .third { grid-column: 6 / 11; margin-top: 20px; }
  .hedge-pics { grid-template-rows: auto 56px auto; }
  .hedge-pics .lead { grid-column: 1 / 11; }
  .hedge-pics .tall { grid-column: 6 / 11; margin-right: 0; border-right: 0; }
  .fishroom { grid-column: 1 / 9; }
  .park-head h2 span { font-size: 1.5em; }
  .two-up article { grid-template-columns: 1fr; }
  .two-up .pic { grid-row: auto; margin-bottom: 22px; width: 64%; }
  .two-up h2, .two-up p, .two-up .more { grid-column: 1; }
  .quotes { gap: 32px; }
  .quotes blockquote { padding-bottom: 32px; }
  .quotes p { font-size: 19px; }
  .two-up .pic figcaption { font-size: 14px; }
  .close-facts { grid-template-columns: 1fr 1fr; }
}

/* The dock waits below the screen while the hero's own ask is showing, and comes up once the
   guest has scrolled most of the way past the hero (the static page's own moment: 0.8 of the
   hero's height, which is 100svh less the bar, never under 600px or over 1000px). Where the
   browser can tie an animation to the scroll, that is exactly how it is done here, with no
   script; where it cannot, the platform's own .is-scrolled on the header (a few pixels in)
   brings it up instead. */
@media (max-width: 767px) {
  body:has(.bar:not(.is-scrolled)) .dock { transform: translateY(110%); }
  @supports (animation-timeline: scroll()) {
    .dock { animation: dock-wait linear both; animation-timeline: scroll(root); animation-range: 0 calc(0.8 * clamp(600px, 100svh - var(--bar), 1000px)); }
  }
}
@keyframes dock-wait { 0%, 92% { transform: translateY(110%); } 100% { transform: none; } }
