/* Palm House: a concept hotel site, shown as proof of web design.
   One page: opening picture with a booking bar, the house, the rooms, a day there,
   finding us, a closing picture, and the booking drawer (assets/js/palm.js).
   It is its own brand and shares nothing with the rest of the site. */

:root {
  --lime: #f5f0e6;      /* lime-wash: the page */
  --stone: #ebe4d5;     /* coral stone: the rooms band, picture grounds */
  --ink: #16221c;
  --mute: #58625a;
  --green: #1d4234;     /* the shutters */
  --deep: #0f1f18;
  --night: #0b1510;
  --line: rgba(22, 34, 28, .16);
  --line-light: rgba(245, 240, 230, .2);
  --display: "Libre Caslon Display", "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --top: 84px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --gap: clamp(20px, 2.8vw, 48px);   /* between cards, the same in every row of three */
  --wrap: 1360px;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); -webkit-text-size-adjust: 100%; }
/* While the drawer is open the page behind it holds still. --bar is the width of the scrollbar
   that goes away (palm.js measures it), given back as padding so nothing shifts sideways. */
html:has(.ph-book[open]) { overflow: hidden; }
html:has(.ph-book[open]) body { padding-right: var(--bar, 0px); }
html:has(.ph-book[open]) .ph-top { right: var(--bar, 0px); }
body { margin: 0; background: var(--lime); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.ph-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ph-skip { position: fixed; left: 12px; top: 12px; z-index: 60; padding: 12px 16px; background: var(--lime); color: var(--ink); font: 500 .8125rem var(--sans); text-decoration: none; }
.ph-skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ph-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.ph-sec { padding-block: clamp(72px, 9vw, 164px); }
.ph-label { font: 500 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h2 { max-width: 15em; font-size: clamp(2rem, 3.3vw, 3.5rem); line-height: 1.08; letter-spacing: -.005em; }
.ph-label + h2 { margin-top: 18px; }

/* Pictures. Each stands on its own ground and comes up once it has loaded. */
.ph-fig { overflow: clip; background: var(--stone); }
.ph-fig img { width: 100%; height: 100%; object-fit: cover; }
.js .ph-fig img, .js .ph-close__pic { opacity: 0; transition: opacity 1.4s var(--ease), scale 1.6s var(--ease); }
.js .ph-fig img.is-loaded, .js .ph-close__pic.is-loaded { opacity: 1; }

/* Things come up as they are reached. */
.js [data-in] { opacity: 0; translate: 0 22px; transition: opacity 1.1s var(--ease), translate 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-in].is-in { opacity: 1; translate: none; }

/* Buttons and links */
.ph-arrow { width: 24px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; transition: translate .6s var(--ease); }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 26px; border: 1px solid currentColor; border-radius: 2px; font: 500 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), opacity .5s var(--ease); }
.ph-btn:hover .ph-arrow, .ph-link:hover .ph-arrow { translate: 5px 0; }
.ph-btn--light { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.ph-btn--light:hover { border-color: #fff; background: #fff; }
.ph-btn--solid { border-color: var(--green); background: var(--green); color: var(--lime); }
.ph-btn--solid:hover { border-color: var(--deep); background: var(--deep); }
.ph-btn:disabled { opacity: .38; cursor: default; }
.ph-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 6px; font: 500 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--green); }
.ph-text { font: 500 .875rem/1 var(--sans); color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- The top ---------- */
.ph-top { position: fixed; inset: 0 0 auto; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--top); padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2); color: #fff; transition: background-color .7s var(--ease), color .7s var(--ease), box-shadow .7s var(--ease); }
.ph-top.is-solid, .ph-top.is-open { background: var(--lime); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.ph-top__nav { display: flex; gap: clamp(18px, 2.2vw, 40px); }
.ph-top__nav a { padding-block: 8px; font: 500 .875rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.ph-top__nav a:hover { background-size: 100% 1px; }
.ph-mark { display: grid; justify-items: center; gap: 4px; text-decoration: none; }
.ph-mark svg { width: 34px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.ph-mark span { margin-right: -.34em; font: 400 1.25rem/1 var(--display); letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; }
.ph-top__act { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.ph-btn--top { min-height: 44px; padding-inline: 22px; border-color: rgba(255, 255, 255, .7); }
.ph-btn--top:hover { background: #fff; border-color: #fff; color: var(--ink); }
.ph-top.is-solid .ph-btn--top, .ph-top.is-open .ph-btn--top { border-color: var(--green); background: var(--green); color: var(--lime); }
.ph-top.is-solid .ph-btn--top:hover, .ph-top.is-open .ph-btn--top:hover { border-color: var(--deep); background: var(--deep); }
.ph-burger { display: none; position: relative; width: 44px; height: 44px; }
.ph-burger i { position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; background: currentColor; transition: translate .5s var(--ease), rotate .5s var(--ease); }
.ph-burger i:first-of-type { translate: 0 -4.5px; }
.ph-burger i:last-of-type { translate: 0 3.5px; }
.ph-burger[aria-expanded="true"] i:first-of-type { translate: 0 -.5px; rotate: 45deg; }
.ph-burger[aria-expanded="true"] i:last-of-type { translate: 0 -.5px; rotate: -45deg; }

/* ---------- The opening picture ---------- */
.ph-hero { position: relative; isolation: isolate; display: grid; align-content: end; min-height: max(100svh, 640px); padding: calc(var(--top) + 24px) var(--gutter) clamp(24px, 4.6svh, 48px); overflow: clip; background: var(--night); color: #fff; }
.ph-hero__pic { position: absolute; inset: 0; z-index: -2; }
.ph-hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.js .ph-hero__pic img { opacity: 0; }
.js .ph-hero__pic img.is-loaded { animation: ph-arrive 2.8s var(--ease) both; }
.ph-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(8, 14, 11, .64), rgba(8, 14, 11, 0) 30%), linear-gradient(to top, rgba(8, 14, 11, .8), rgba(8, 14, 11, .38) 36%, rgba(8, 14, 11, 0) 66%); }
.ph-hero__in { width: min(100%, var(--wrap)); margin-inline: auto; }
.ph-hero__copy { animation: ph-up 1.7s var(--ease) .3s both; }
.ph-hero .ph-label { color: rgba(255, 255, 255, .84); }
.ph-hero h1 { max-width: 12em; margin-top: 18px; font-size: clamp(2.5rem, 4.7vw, 5.5rem); line-height: 1.04; letter-spacing: -.01em; }

.ph-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; margin-top: clamp(28px, 5svh, 52px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; background: rgba(9, 17, 13, .62); animation: ph-up 1.7s var(--ease) .55s both; }
.ph-bar__cell { display: grid; gap: 8px; padding: 18px 28px 20px; border-right: 1px solid rgba(255, 255, 255, .16); text-align: left; transition: background-color .5s var(--ease); }
.ph-bar__cell:hover { background: rgba(255, 255, 255, .08); }
.ph-bar__cell span { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.ph-bar__cell b { font: 400 1.25rem/1.15 var(--serif); }
.ph-bar__go { align-self: center; min-height: 56px; margin: 12px; }

/* ---------- The house ----------
   The words stand beside a picture of the whole house that runs off the right edge of the
   screen. The doorway is set into its lower corner. */
.ph-house { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; padding: clamp(72px, 9vw, 164px) 0 clamp(130px, 15vw, 270px) max(var(--gutter), (100% - var(--wrap)) / 2); }
.ph-house__copy { padding-top: clamp(0px, 1.6vw, 32px); }
.ph-prose { display: grid; gap: 1em; max-width: 34em; margin-top: 28px; color: var(--mute); }
.ph-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 34em; margin-top: clamp(36px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.ph-facts li { display: grid; align-content: start; gap: 8px; }
.ph-facts b { font: 400 clamp(2.5rem, 3.6vw, 3.5rem)/1 var(--display); }
.ph-facts span { font-size: .875rem; line-height: 1.35; color: var(--mute); }
.ph-house__pics { position: relative; }
.ph-house__wide { aspect-ratio: 3 / 2; }
.ph-house__door { position: absolute; left: clamp(-96px, -5vw, -28px); bottom: clamp(-160px, -8.4vw, -64px); width: 31%; aspect-ratio: 2 / 3; outline: clamp(8px, .8vw, 14px) solid var(--lime); }

/* ---------- Rooms ---------- */
.ph-rooms { background: var(--stone); }
.ph-rooms .ph-fig { background: #e0d8c6; }
.ph-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25em); gap: 24px clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.ph-head__note { color: var(--mute); }
.ph-rooms__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: var(--gap); width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.js .ph-rooms__row[data-in] { opacity: 1; translate: none; }
.js .ph-rooms__row[data-in] > * { opacity: 0; translate: 0 22px; transition: opacity 1.1s var(--ease), translate 1.3s var(--ease); }
.js .ph-rooms__row[data-in] > :nth-child(2) { transition-delay: 130ms; }
.js .ph-rooms__row[data-in] > :nth-child(3) { transition-delay: 260ms; }
.js .ph-rooms__row[data-in].is-in > * { opacity: 1; translate: none; }
.ph-room { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.ph-room .ph-fig { aspect-ratio: 4 / 5; }
.ph-room:hover .ph-fig img.is-loaded { scale: 1.035; }
.ph-room h3 { margin-top: 24px; font-size: clamp(1.625rem, 2.1vw, 2rem); line-height: 1.1; }
.ph-room > p { margin-top: 10px; color: var(--mute); }
.ph-room__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 16px; font-size: .875rem; }
.ph-room__meta li + li::before { content: "·"; margin-inline: .7em; color: var(--mute); }
.ph-room__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ph-room__foot p { font-size: .9375rem; color: var(--mute); }
.ph-room__foot b { margin-right: 2px; font: 400 1.5rem/1 var(--serif); color: var(--ink); }

/* ---------- A day ---------- */
.ph-day { background: var(--deep); color: var(--lime); }
.ph-day .ph-fig { background: #16291f; }
.ph-day .ph-label { color: rgba(245, 240, 230, .66); }
.ph-day__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; margin-top: clamp(36px, 5vw, 76px); }
.ph-day__item:nth-child(2) { margin-top: clamp(36px, 6vw, 104px); }
.ph-day__item .ph-fig { aspect-ratio: 4 / 5; }
.ph-day__time { margin-top: 24px; font: italic 400 1.25rem/1 var(--serif); color: rgba(245, 240, 230, .7); }
.ph-day__item h3 { margin-top: 12px; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.12; }
.ph-day__item h3 + p { max-width: 26em; margin-top: 10px; color: rgba(245, 240, 230, .78); }

/* ---------- Finding us ----------
   The bay from the air, edge to edge. The house is on the left of the picture and the open
   water on the right, where the directions stand on a card that hangs below the picture. */
.ph-find { display: grid; grid-template-rows: auto clamp(48px, 6vw, 104px); padding-bottom: clamp(72px, 9vw, 164px); }
.ph-find__fig { grid-area: 1 / 1 / 2 / 2; height: clamp(560px, 78svh, 820px); }
.ph-find__fig img { object-position: 22% 42%; }
.ph-find__panel { grid-area: 1 / 1 / 3 / 2; align-self: end; justify-self: end; width: min(540px, 100% - 2 * var(--gutter)); margin-right: max(var(--gutter), (100% - var(--wrap)) / 2); padding: clamp(28px, 3vw, 48px); background: var(--lime); }
.ph-find__panel h2 { font-size: clamp(1.875rem, 2.5vw, 2.625rem); }
.ph-steps { margin-top: 26px; counter-reset: step; }
.ph-steps li { display: grid; grid-template-columns: 2.4em 1fr; padding-block: 15px; border-top: 1px solid var(--line); counter-increment: step; }
.ph-steps li:last-child { border-bottom: 1px solid var(--line); }
.ph-steps li::before { content: counter(step); font: italic 400 1.25rem/1.4 var(--serif); color: var(--green); }
.ph-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin-top: 30px; }
.ph-terms dt { font: 500 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ph-terms dd { margin-top: 6px; font: 400 1.125rem/1.3 var(--serif); }

/* ---------- The closing picture ---------- */
/* The house is in the upper half of the picture and the words stand on the water below it. */
.ph-close { position: relative; isolation: isolate; display: grid; align-content: end; justify-items: center; min-height: min(92svh, 880px); padding: 96px var(--gutter) clamp(56px, 10svh, 120px); overflow: clip; background: var(--night); color: #fff; text-align: center; }
.ph-close__pic { position: absolute; inset: -6% 0; z-index: -2; width: 100%; height: 112%; max-width: none; object-fit: cover; object-position: 30% 14%; }
.ph-close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 14, 11, .66), rgba(8, 14, 11, .24) 48%, rgba(8, 14, 11, 0) 76%); }
.ph-close h2 { max-width: none; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.04; }
.ph-close .ph-btn { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- The foot ---------- */
.ph-foot { padding: clamp(48px, 6vw, 88px) 0 36px; background: var(--night); color: rgba(245, 240, 230, .76); font-size: .9375rem; }
.ph-foot__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gap); align-items: start; }
.ph-foot__mark { margin-bottom: 18px; font: 400 1.375rem/1 var(--display); letter-spacing: .34em; text-transform: uppercase; color: var(--lime); }
.ph-foot__nav { display: grid; justify-items: start; gap: 10px; }
.ph-foot__head { margin-bottom: 10px; font: 500 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 240, 230, .6); }
.ph-foot__book { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding-block: 6px; font: 500 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.ph-foot__book:hover .ph-arrow { translate: 5px 0; }
.ph-foot a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease), color .6s var(--ease); }
.ph-foot a:hover { background-size: 100% 1px; color: var(--lime); }
.ph-foot__credit { grid-column: 1 / -1; margin-top: clamp(12px, 2vw, 32px); padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .875rem; }
.ph-foot__credit a { color: var(--lime); background-size: 100% 1px; }

/* ---------- The booking drawer ---------- */
.ph-book { position: fixed; inset: 0 0 0 auto; width: min(100vw, 540px); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--lime); color: var(--ink); }
.ph-book[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: ph-sheet-in .75s var(--ease) both; }
.ph-book::backdrop { background: rgba(8, 14, 11, .56); animation: ph-fade-in .75s var(--ease) both; }
.ph-book.is-closing { animation: ph-sheet-out .5s cubic-bezier(.5, 0, .85, .45) both; }
.ph-book.is-closing::backdrop { animation: ph-fade-out .5s ease both; }

.ph-book__top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 16px; padding: 22px 30px 0; }
.ph-book__top h2 { max-width: none; font-size: 1.875rem; line-height: 1; outline: none; }
.ph-book__x { grid-area: 1 / 2; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; border-radius: 50%; transition: background-color .4s var(--ease); }
.ph-book__x:hover { background: rgba(22, 34, 28, .08); }
.ph-book__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ph-book__steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: tab; }
.ph-book__steps li { padding-top: 10px; border-top: 2px solid var(--line); font: 500 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); counter-increment: tab; transition: border-color .6s var(--ease), color .6s var(--ease); }
.ph-book__steps li::before { content: counter(tab) "\2002"; }
.ph-book__steps li.is-on { border-color: var(--green); color: var(--ink); }

.ph-book__body { padding: 26px 30px 36px; overflow-y: auto; overscroll-behavior: contain; }
.ph-step { animation: ph-step .55s var(--ease) both; }
.ph-step__title { font-size: 1.5rem; line-height: 1.15; outline: none; }
.ph-step__dates { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 8px; color: var(--mute); }

.ph-cal__head { display: flex; align-items: center; justify-content: space-between; }
.ph-cal__head p { font: 400 1.5rem/1 var(--display); }
.ph-cal__head button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .4s var(--ease), opacity .4s var(--ease); }
.ph-cal__head button:hover:not(:disabled) { background: rgba(22, 34, 28, .08); }
.ph-cal__head button:disabled { opacity: .25; cursor: default; }
.ph-cal__head svg { width: 8px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ph-cal__days, .ph-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ph-cal__days { margin-top: 16px; font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-align: center; text-transform: uppercase; color: var(--mute); }
.ph-cal__grid { row-gap: 4px; margin-top: 10px; }
.ph-cal__grid button { position: relative; aspect-ratio: 1; font: 500 .9375rem/1 var(--sans); font-variant-numeric: tabular-nums; transition: background-color .35s var(--ease), color .35s var(--ease); }
/* Three kinds of day that cannot be chosen: gone by, full (struck), and open that night but
   with no two-night stay able to start on it. */
.ph-cal__grid button:disabled { cursor: default; }
.ph-cal__grid button.is-past { color: rgba(22, 34, 28, .2); }
.ph-cal__grid button.is-nostart, .ph-cal__key i.is-nostart { color: rgba(22, 34, 28, .46); }
.ph-cal__grid button.is-full, .ph-cal__key i.is-full { color: rgba(22, 34, 28, .46); text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* Hover is the weakest of a day's states, so a chosen day stays chosen under the pointer. */
.ph-cal__grid :where(button:not(:disabled):hover, button.is-preview) { background: #e4ebdc; }
.ph-cal__grid button.is-between { background: #d5e2d2; }
.ph-cal__grid button.is-arrive, .ph-cal__grid button.is-depart { background: var(--green); color: var(--lime); }
.ph-cal__grid button.is-today::after { content: ""; position: absolute; left: 50%; bottom: 16%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; translate: -50% 0; }
.ph-cal__key { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; font-size: .8125rem; color: var(--mute); }
.ph-cal__key i { margin-right: 8px; font: 500 .8125rem/1 var(--sans); }

.ph-guests { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ph-guests__label { font: 400 1.25rem/1.2 var(--serif); }
.ph-guests__note { margin-top: 2px; font-size: .875rem; color: var(--mute); }
.ph-stepper { display: flex; align-items: center; gap: 6px; }
.ph-stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .4s var(--ease), background-color .4s var(--ease), opacity .4s var(--ease); }
.ph-stepper button:hover:not(:disabled) { border-color: var(--green); background: rgba(29, 66, 52, .07); }
.ph-stepper button:disabled { opacity: .3; cursor: default; }
.ph-stepper svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ph-stepper output { min-width: 2.2em; font: 400 1.375rem/1 var(--serif); font-variant-numeric: tabular-nums; text-align: center; }

.ph-options { display: grid; gap: 12px; margin-top: 22px; }
.ph-opt { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease); }
.ph-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ph-opt img { width: 84px; height: 104px; object-fit: cover; background: var(--stone); }
.ph-opt b { display: block; font: 400 1.3125rem/1.15 var(--display); }
.ph-opt i { display: block; margin-top: 5px; font-style: normal; font-size: .875rem; line-height: 1.35; color: var(--mute); }
.ph-opt__price { text-align: right; }
.ph-opt__price b { font: 400 1.3125rem/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.ph-opt:hover { border-color: rgba(29, 66, 52, .55); }
.ph-opt:has(input:checked) { border-color: var(--green); background: #fbf8f1; box-shadow: inset 0 0 0 1px var(--green); }
.ph-opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.ph-opt.is-off { cursor: default; }
.ph-opt.is-off:hover { border-color: var(--line); }
.ph-opt.is-off img, .ph-opt.is-off b { opacity: .45; }

.ph-review__room { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 18px; }
.ph-review__room img { width: 96px; height: 120px; object-fit: cover; background: var(--stone); }
.ph-review__room span { display: block; font-size: .9375rem; color: var(--mute); }
.ph-review__room b { display: block; margin-top: 4px; font: 400 1.75rem/1.1 var(--display); }
.ph-review__room i { display: block; margin-top: 6px; font-style: normal; font-size: .9375rem; color: var(--mute); }
.ph-review, .ph-sum { display: grid; margin-top: 20px; }
.ph-review div, .ph-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 11px; border-top: 1px solid var(--line); }
.ph-review dt, .ph-sum dt { font-size: .9375rem; color: var(--mute); }
.ph-review dd { font: 400 1.125rem/1.3 var(--serif); text-align: right; }
.ph-sum { margin-top: 26px; }
.ph-sum dd { font-variant-numeric: tabular-nums; }
.ph-sum__total dt { color: var(--ink); font-weight: 500; }
.ph-sum__total dd { font: 400 1.625rem/1 var(--serif); }

.ph-done { display: grid; justify-items: start; gap: 14px; padding-top: 8vh; }
.ph-done__mark { width: 56px; height: 33px; margin-bottom: 10px; fill: var(--green); stroke: var(--green); stroke-width: 1.1; stroke-linejoin: round; }
.ph-done .ph-step__title { font-size: 2rem; }
.ph-done p { max-width: 26em; color: var(--mute); }
.ph-done .ph-link { margin-top: 12px; }

.ph-book__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; padding: 16px 30px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--lime); }
.ph-book__status { font-size: .9375rem; line-height: 1.35; color: var(--mute); }
.ph-book__status b { display: block; font: 400 1.125rem/1.3 var(--serif); color: var(--ink); }
.ph-book__act { display: flex; align-items: center; gap: 20px; flex: none; }

@keyframes ph-arrive { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes ph-up { from { opacity: 0; translate: 0 26px; } }
@keyframes ph-step { from { opacity: 0; translate: 0 12px; } }
@keyframes ph-sheet-in { from { translate: 100% 0; } }
@keyframes ph-sheet-out { to { translate: 100% 0; } }
@keyframes ph-fade-in { from { opacity: 0; } }
@keyframes ph-fade-out { to { opacity: 0; } }

/* The pictures drift a little as the page moves, where the browser can tie motion to scroll. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .ph-hero__pic { animation: ph-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .ph-close__pic { animation: ph-pass linear both; animation-timeline: view(); }
  }
}
@keyframes ph-drift { to { translate: 0 9%; } }
@keyframes ph-pass { from { translate: 0 -5%; } to { translate: 0 5%; } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1000px) {
  .ph-top { grid-template-columns: 1fr auto; }
  .ph-mark { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 10px; }
  .ph-mark svg { width: 27px; height: 16px; }
  .ph-burger { display: block; }
  .ph-top__nav { position: absolute; inset: 100% 0 auto; display: grid; gap: 0; padding: 6px var(--gutter) 26px; background: var(--lime); color: var(--ink); box-shadow: 0 1px 0 var(--line); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
  .ph-top.is-open .ph-top__nav { clip-path: inset(0 0 -2px 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .ph-top__nav a { padding-block: 16px; border-bottom: 1px solid var(--line); font: 400 1.5rem/1 var(--display); letter-spacing: 0; background: none; }
  .ph-house { grid-template-columns: 1fr; padding-inline: var(--gutter); padding-bottom: clamp(190px, 30vw, 300px); }
  .ph-house__wide { margin-inline: calc(-1 * var(--gutter)); }
  .ph-house__door { left: auto; right: 0; bottom: clamp(-200px, -30vw, -118px); width: clamp(132px, 34%, 240px); }
  .ph-head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  :root { --top: 64px; }
  body { font-size: 1rem; }
  .ph-mark span { font-size: 1rem; letter-spacing: .28em; }
  .ph-btn--top { min-height: 40px; padding-inline: 16px; font-size: .75rem; }
  .ph-top__act { gap: 4px; }
  .ph-burger { margin-right: -10px; }

  .ph-hero h1 { margin-top: 14px; font-size: 2.875rem; }
  .ph-hero__pic img { object-position: 84% 50%; }
  .ph-bar { grid-template-columns: 1fr 1fr; }
  .ph-bar__cell { padding: 14px 18px 16px; }
  .ph-bar__cell:nth-child(2) { border-right: 0; }
  .ph-bar__cell--guests { display: none; }
  .ph-bar__go { grid-column: 1 / -1; min-height: 52px; margin: 0; border-radius: 0 0 2px 2px; }

  .ph-facts b { font-size: 2.5rem; }

  .ph-rooms__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); column-gap: 16px; width: auto; margin: 0; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .ph-rooms__row::-webkit-scrollbar { display: none; }
  .ph-room { scroll-snap-align: start; }

  .ph-day__row { grid-template-columns: 1fr; gap: 28px; }
  .ph-day__item { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 20px; align-items: center; }
  .ph-day__item:nth-child(2) { margin-top: 0; }
  .ph-day__item .ph-fig { aspect-ratio: 3 / 4; }
  .ph-day__time { margin-top: 0; }

  .ph-find { grid-template-rows: auto auto; }
  .ph-find__fig { height: auto; aspect-ratio: 4 / 3; }
  .ph-find__panel { grid-area: 2 / 1; justify-self: stretch; width: auto; margin: -44px var(--gutter) 0; padding: 26px 22px 28px; }
  .ph-terms { gap: 18px 20px; }
  .ph-close { min-height: 76svh; }
  .ph-foot__in { grid-template-columns: 1fr 1fr; }
  .ph-foot__in > :first-child { grid-column: 1 / -1; }

  .ph-book { inset: 0; width: 100vw; }
  .ph-book__top { padding: 16px 20px 0; }
  .ph-book__body { padding: 22px 20px 26px; }
  .ph-book__foot { padding-inline: 20px; }
  .ph-book__foot .ph-btn { padding-inline: 18px; }
  .ph-book__act { gap: 16px; }
  .ph-opt { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding-right: 14px; }
  .ph-opt img { width: 64px; height: 84px; }
  @keyframes ph-sheet-in { from { translate: 0 100%; } }
  @keyframes ph-sheet-out { to { translate: 0 100%; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-in], .js .ph-rooms__row[data-in] > *, .js .ph-fig img, .js .ph-close__pic, .js .ph-hero__pic img { opacity: 1; translate: none; }
}
