/* Guest-facing pages. The management interface has its own shell. */
:root {
  --edge: clamp(22px, 5.3vw, 100px);
  --display: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --pale: #ebece1;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
.edition, .courtyard-spread, .menu-layout, .stay-finder, .mast-inner, .footer-main, .footer-legal {
  width: min(1440px, calc(100% - var(--edge) * 2));
  margin-inline: auto;
}
.masthead { position: relative; z-index: 4; color: var(--pine); border-bottom: 1px solid var(--line); }
.masthead.over-photo { position: absolute; inset: 0 0 auto; border: 0; color: white; }
.mast-inner { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mast-side { display: flex; align-items: center; gap: clamp(18px,2.6vw,50px); }
.mast-side:last-child { justify-content: flex-end; }
.over-photo .mast-inner { border-bottom: 1px solid #ffffff52; }
.masthead a, .site-menu summary { font-size: 14px; }
.mast-brand { justify-self: center; }
.mast-brand .mark, .guest-footer .mark { color: inherit; }
.mast-brand .brandtype small { text-align: center; }
.mast-stays { justify-self: start; }
.mast-album { justify-self: end; }
.mast-stays, .mast-album { display: inline-flex; align-items: center; min-height: 44px; }
.locale-switch summary {
  display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px;
  cursor: pointer; list-style: none; font-size: 13px; font-weight: 600;
}
.locale-switch summary::-webkit-details-marker { display: none; }
.locale-icon {
  flex: none; position: relative; width: 17px; height: 17px;
  border: 1px solid currentColor; border-radius: 50%;
}
.locale-icon::before, .locale-icon::after { content: ""; position: absolute; }
.locale-icon::before { inset: -1px 4px; border: 1px solid currentColor; border-radius: 50%; }
.locale-icon::after { inset: 50% 0 auto; border-top: 1px solid currentColor; }
.locale-options {
  position: absolute; z-index: 1; inset-block-start: 100%;
  inset-inline-start: max(var(--edge), calc((100% - 1440px) / 2));
  inline-size: min(580px, calc(100% - var(--edge) * 2));
  max-block-size: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
  padding: 11px; color: var(--pine); background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 14px 32px #172b232b;
}
.locale-options a {
  display: flex; align-items: center; min-height: 44px; padding: 4px 10px;
  overflow-wrap: anywhere; line-height: 1.35; border-radius: 2px;
}
.locale-options a[aria-current] { background: var(--pine); color: var(--white); }
.locale-options a:not([aria-current]):is(:hover,:focus-visible) { background: var(--pale); }
.locale-options a:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .locale-switch[open] .locale-options { animation: locale-reveal 220ms var(--ease-out); }
  @keyframes locale-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 620px) {
  .locale-options {
    inset-inline: 12px; inline-size: auto; grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .site-menu summary { min-width: 44px; }
  .site-menu summary :is(.menu-label-open, .menu-label-close) { display: none !important; }
}
.mast-book { display: inline-grid; place-items: center; min-height: 44px; padding: 0 21px; border: 1px solid currentColor; }
.site-menu { justify-self: start; }
.site-menu summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; width: 22px; height: 16px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; }
.menu-icon::before { transform: translateY(-4px); }
.menu-icon::after { transform: translateY(4px); }
.menu-label-close, .site-menu[open]:not([data-expanded="false"]) .menu-label-open { display: none; }
.site-menu[open]:not([data-expanded="false"]) .menu-label-close { display: inline; }
.site-menu[open]:not([data-expanded="false"]) .menu-icon::before { transform: rotate(45deg); }
.site-menu[open]:not([data-expanded="false"]) .menu-icon::after { transform: rotate(-45deg); }
.menu-window { position: absolute; inset: 100% 0 auto; overflow: hidden; pointer-events: none; }
.menu-sheet {
  pointer-events: auto; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); overflow-y: auto;
  color: var(--pine); background: var(--paper); border-block: 1px solid var(--line); overscroll-behavior: contain;
}
.menu-layout { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); align-items: stretch; gap: clamp(32px,7vw,112px); padding-block: clamp(20px,2.6vw,42px); }
.masthead .menu-links a {
  display: flex; align-items: center; justify-content: space-between; min-height: 46px;
  padding: clamp(5px,.6vw,10px) 3px; border-bottom: 1px solid var(--line);
  font: 400 clamp(24px,2.2vw,37px)/1.45 var(--display); letter-spacing: .05em;
}
.menu-links a:first-child { border-top: 1px solid var(--line); }
.menu-links i { font: 16px/1 var(--sans); opacity: .45; }
.menu-links a[aria-current] { border-bottom-color: var(--pine); }
.menu-links a:is(:hover,:focus-visible) i { opacity: 1; transform: translate(2px,-2px); }
.menu-links a:focus-visible { outline-color: #936737; outline-offset: -3px; }
.menu-postcards { position: relative; overflow: hidden; background: var(--pine); }
.menu-postcards figure, .menu-postcards img { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu-postcards figure { opacity: 0; }
.menu-postcards .is-current { z-index: 1; opacity: 1; }
.menu-postcards img { object-fit: cover; object-position: center 54%; }
.menu-postcards figcaption {
  position: absolute; inset: auto 0 0; padding: 32px 20px 13px; color: white;
  background: linear-gradient(transparent,#112319b8); font-size: 14px; letter-spacing: .12em;
}
.arrival { isolation: isolate; position: relative; color: white; background: #2c443e; }
.arrival-photos, .suite-photo { overflow: hidden; }
.arrival-copy [data-scene-title] { display: inline-block; }
.mast-boundary { position: absolute; inset: 48px auto auto 0; width: 1px; height: 1px; pointer-events: none; }
.masthead.follows-page { position: fixed; isolation: isolate; }
.masthead.follows-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--pine); opacity: 0; pointer-events: none;
}
.masthead.follows-page.solid::before, .masthead.follows-page:has(.site-menu[open])::before { opacity: 1; }
html:has(.follows-page) { scroll-padding-top: 100px; }
.arrival-photos, .arrival-photos figure, .arrival-photos img, .arrival::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.arrival-photos { z-index: -2; }
.arrival-photos img { object-fit: cover; object-position: center 48%; }
.arrival::before { content: ""; z-index: -1; background: linear-gradient(180deg, #101c20b8, transparent 33%, transparent 48%, #101e1bd4), linear-gradient(90deg,#14222045,transparent 63%); }
.edition h1, .edition h2, .grounds h2, .suite-name, .contact-number, .section.first h1 { font-family: var(--display); font-weight: 400; }
.glass-link, .ink-link { width: fit-content; display: inline-flex; align-items: center; justify-content: space-between; gap: 19px; min-height: 44px; border-bottom: 1px solid currentColor; font-size: 14px; }
.glass-link { margin-top: 21px; }
i[aria-hidden] { font-family: Arial,sans-serif; font-style: normal; }
.arrival :focus-visible, .over-photo :focus-visible, .guest-footer :focus-visible, .grounds :focus-visible { outline-color: #e3c790; }
.finder-wrap { background: var(--white); border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.stay-finder { padding-block: 25px; display: grid; grid-template-columns: .85fr 1fr 1fr auto; align-items: center; gap: clamp(15px,3vw,56px); }
.stay-finder h2 { font: 400 clamp(21px,2vw,34px) var(--display); letter-spacing: .06em; }
.stay-finder label { margin: 0; padding-left: clamp(14px,2.2vw,38px); border-left: 1px solid var(--line); font-weight: 400; display: block; font-size: 12px; color: var(--muted); }
.stay-finder label small { font-size: inherit; margin-left: 6px; }
.stay-finder input, .stay-finder select { display: block; margin: 3px 0 0; border: 0; border-radius: 0; min-width: 0; width: 100%; padding: 5px 3px 5px 0; height: 42px; background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
.pine-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 50px; padding: 0 clamp(16px,2vw,32px); border: 1px solid var(--pine); background: var(--pine); color: white; font-size: 14px; }
.edition { padding-block: clamp(66px,7vw,116px); }
.edition-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 32px; }
.edition-heading h2, .grounds h2, .journal-edition > div > h2, .listing-head h1 { font-size: clamp(37px, 4vw, 72px); line-height: 1.2; letter-spacing: .04em; }
.room-switch { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.room-switch button { position: relative; border: 0; border-bottom: 2px solid transparent; background: none; padding: 8px 2px 10px; min-height: 44px; color: var(--muted); }
.room-switch [aria-selected="true"] { font-weight: 600; color: var(--pine); }
.tab-rule { display: none; position: absolute; inset: auto 0 -2px; height: 2px; background: var(--pine); transform-origin: left center; }
[aria-selected="true"] > .tab-rule { display: block; }
.suite-spread { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); background: var(--pale); }
.suite-spread + .suite-spread { margin-top: 32px; }
.room-collection[data-enhanced] .suite-spread { margin-top: 0; }
.suite-photo { display: block; align-self: stretch; min-width: 0; position: relative; min-height: clamp(370px,34vw,560px); }
.suite-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.suite-copy { padding: clamp(29px,4.6vw,72px); align-self: center; min-width: 0; }
.suite-category, .notes-index small, .journal-list small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.suite-name { font-size: clamp(32px,3.25vw,56px); }
.suite-description { color: var(--muted); line-height: 1.95; font-size: 15px; margin: 16px 0 24px; max-width: 36em; }
.suite-rates { display: flex; gap: clamp(15px,2.5vw,40px); flex-wrap: wrap; margin-bottom: 18px; }
.suite-rates dt { font-size: 12px; color: var(--muted); }
.suite-rates dd { font: 400 clamp(21px,2.1vw,34px)/1.55 Georgia,var(--display); }
.suite-rates small { font: 12px var(--sans); white-space: nowrap; }
.grounds { background: var(--pine); color: var(--paper); }
.grounds figcaption { color: #d5ded3; }
.journal-edition { display: grid; align-items: start; grid-template-columns: 1fr 1.75fr; gap: clamp(28px,6vw,100px); }
.journal-edition .ink-link { margin-top: 18px; }
.notes-index { border-top: 1px solid var(--line); }
.notes-index a { display: grid; grid-template-columns: 92px 1fr auto; gap: clamp(14px,2vw,30px); align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notes-index img { width: 92px; height: 68px; object-fit: cover; }
.notes-index h3 { font: 400 clamp(18px,1.65vw,27px)/1.4 var(--display); }
.notes-index small { margin: 0 0 4px; }
.notes-index a:hover h3, .journal-list a:hover h2, .suite-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.guest-footer { background: #253e33; color: var(--paper); }
.footer-main { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding-block: 52px; }
.footer-main p { font-size: 14px; color: #d9e0d4; margin-block: 14px 2px; }
.contact-block { display: grid; }
.contact-block p { margin: 0; }
.contact-number { font-family: Georgia,var(--display); font-size: clamp(32px,3.2vw,52px); font-variant-numeric: lining-nums; letter-spacing: .025em; }
.footer-legal { padding-block: 18px; border-top: 1px solid #ffffff4a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #dae2d7; font-size: 12px; }
.listing-page { padding-top: clamp(28px,4vw,64px); }
.listing-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 20px; padding: 14px 0 38px; }
.listing-head p { max-width: 40em; line-height: 1.9; color: var(--muted); }
.listing-page .suite-spread:nth-of-type(even) .suite-photo { order: 2; }
.filter-summary, .search-note { margin-bottom: 24px; padding: 12px 0; border-block: 1px solid var(--line); }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.journal-list article { border-top: 1px solid var(--line); }
.journal-list article>a { display: grid; grid-template-columns: minmax(200px, .72fr) 1fr auto; gap: clamp(18px,4vw,68px); align-items: center; padding-block: 25px; }
.journal-list img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; }
.journal-list h2 { font-size: clamp(25px,3vw,48px); }
.journal-list p { color: var(--muted); margin-top: 12px; }
.section.first { width: min(1440px, calc(100% - var(--edge) * 2)); padding-top: clamp(30px,4vw,64px); }
.section.first .cover { border-radius: 0; }
.section.first .detailgrid { gap: clamp(28px,5vw,84px); grid-template-columns: 1.35fr 1fr; }
.section.first .cover img { aspect-ratio: 1.45; }
.section.first .reading { margin-block: clamp(52px,6vw,90px); }
.arrival img, .suite-photo img, .grounds img { background-color: #808b75; }

@media (max-width: 820px) {
  html:has(.follows-page) { scroll-padding-top: 82px; }
  .mast-inner { min-height: 74px; grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .menu-sheet { max-height: calc(100dvh - 74px); }
  .mast-stays, .mast-album { display: none; }
  .mast-book { justify-self: end; padding-inline: 13px; }
  .mast-brand .mark { width: 35px; height: 35px; }
  .mast-brand .brandtype strong { font-size: 21px; }
  .stay-finder { gap: 16px; grid-template-columns: auto 1fr 1fr auto; }
  .suite-copy { padding: 26px; }
  .suite-photo { min-height: 350px; }
  .section.first .detailgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  html:has(.follows-page) { scroll-padding-top: 74px; }
  .mast-inner { gap: 4px; min-height: 66px; }
  .mast-side { gap: 8px; }
  .menu-sheet { max-height: calc(100dvh - 66px); }
  .menu-layout { grid-template-columns: minmax(0,1fr); padding-block: 13px 20px; }
  .menu-postcards { display: none; }
  .masthead a, .site-menu summary { font-size: 13px; }
  .mast-brand .mark { display: none; }
  .mast-brand .brandtype strong { font-size: 20px; }
  .mast-brand .brandtype small { font-size: 9px; }
  .mast-book { padding-inline: 9px; }
  .site-menu summary { gap: 7px; }
  .arrival-photos img { object-position: 63% center; }
  .glass-link { margin-top: 11px; }
  .stay-finder { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; padding-block: 19px 22px; }
  .stay-finder h2 { grid-column: 1/-1; }
  .stay-finder label { padding: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pine-button { grid-column: 1/-1; min-height: 45px; }
  .edition { padding-block: 50px; }
  .edition-heading { margin-bottom: 18px; }
  .edition-heading .ink-link { gap: 5px; }
  .edition-heading h2, .grounds h2, .journal-edition > div > h2, .listing-head h1 { font-size: 34px; }
  .suite-spread { display: flex; flex-direction: column; }
  .suite-photo { min-height: 0; aspect-ratio: 1.45; }
  .suite-copy { width: 100%; padding: 25px 22px 30px; }
  .suite-description { margin: 12px 0 16px; }
  .suite-rates { margin-bottom: 10px; }
  .listing-page .suite-spread:nth-of-type(even) .suite-photo { order: 0; }
  .journal-edition, .listing-head, .section.first .detailgrid { grid-template-columns: 1fr; }
  .journal-edition { gap: 17px; }
  .journal-edition > div:first-child { display: flex; align-items: center; justify-content: space-between; }
  .journal-edition .ink-link { margin: 0; }
  .notes-index a { grid-template-columns: 66px 1fr auto; gap: 12px; }
  .notes-index img { width: 66px; height: 60px; }
  .footer-main { align-items: flex-start; flex-direction: column; padding-block: 32px; }
  .footer-legal { flex-direction: column; gap: 5px; }
  .listing-head { gap: 10px; padding: 6px 0 25px; }
  .journal-list article>a { grid-template-columns: 1fr auto; gap: 14px; }
  .journal-list img { grid-column: 1/-1; }
  .journal-list small { margin-bottom: 4px; }
}
@media (max-width: 360px) {
  :root { --edge: 15px; }
}
.album-contents { display: flex; flex-wrap: wrap; gap: 0 22px; border-block: 1px solid var(--line); }
.album-contents a { display: inline-flex; align-items: center; gap: 6px; min-height: 50px; font-size: 14px; }
.album-contents small { color: var(--muted); }
.photo-chapter { padding-top: clamp(40px,5vw,78px); scroll-margin-top: 8px; }
.photo-chapter h2 { margin-bottom: 20px; font-size: clamp(27px,3vw,46px); }
.chapter-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,2vw,32px); }
.chapter-photos figure:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.chapter-photos figure:first-child a { flex: 1; position: relative; }
.chapter-photos img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.chapter-photos figure:first-child img { position: absolute; height: 100%; }
@media(max-width:680px) {
  .chapter-photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chapter-photos figure:first-child { grid-row: auto; display: block; }
  .chapter-photos figure:first-child img { position: static; height: auto; }
  .chapter-photos img { aspect-ratio: 1.33; }
}
.visit-spread { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--pale); }
.visit-spread > img { width: 100%; height: 100%; object-fit: cover; }
.visit-directions { padding: clamp(24px,4.6vw,72px); align-self: center; }
.visit-directions h2 { font-size: clamp(24px,2.4vw,40px); margin-bottom: 10px; }
.visit-directions h2:not(:first-child) { margin-top: 28px; }
.visit-directions p { color: var(--muted); }
.visit-directions .contact-number { display: inline-block; font-size: clamp(24px,3vw,48px); }
@media(max-width:680px) {
  .visit-spread { grid-template-columns: 1fr; }
  .visit-spread > img { height: auto; aspect-ratio: 1.7; }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead.follows-page::before { transition: opacity 200ms ease; }
  .site-menu[data-expanded] .menu-sheet { transition: transform 420ms cubic-bezier(.65,0,.25,1); }
  .site-menu[data-expanded="false"] .menu-sheet { transform: translateY(-100%); transition-duration: 290ms; }
  .site-menu[data-expanded] .menu-links a span { transition: transform 320ms var(--ease-out), opacity 260ms ease; }
  .site-menu[data-expanded="true"] .menu-links a span { transition-delay: 110ms; }
  .site-menu[data-expanded="true"] .menu-links a:nth-child(n+3) span { transition-delay: 145ms; }
  .site-menu[data-expanded="true"] .menu-links a:nth-child(n+5) span { transition-delay: 180ms; }
  .site-menu[data-expanded="false"] .menu-links a span { transform: translateX(-12px); opacity: 0; }
  .menu-icon::before, .menu-icon::after { transition: transform 250ms var(--ease-out); }
  .menu-postcards figure { transition: opacity 280ms ease; }
  .menu-links i { transition: transform 180ms var(--ease-out), opacity 180ms ease; }
  @media (hover: hover) and (pointer: fine) {
    .ink-link i, .glass-link i { transition: transform 160ms var(--ease-out); }
    .ink-link:hover i { transform: translate(2px,-2px); }
    .glass-link:hover i { transform: translateY(3px); }
  }
}

.arrival-inner {
  width: min(1440px,calc(100% - 2 * var(--edge))); margin: auto;
  min-height: max(570px,90svh); display: grid; grid-template-rows: 1fr auto;
  align-items: center; padding-block: 96px 25px; touch-action: pan-y pinch-zoom;
}
.opening-film { isolation: isolate; }
.opening-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opening-film picture { position: absolute; inset: 0; z-index: 1; }
.opening-film.has-footage picture { opacity: 0; }
.arrival::before {
  background: linear-gradient(180deg,#0c1a1c89 0%,#14211c1c 25%,#11211b44 55%,#0c1a16cc 100%), linear-gradient(90deg,transparent 5%,#15221928 50%,transparent 95%);
}
.arrival-copy { text-align: center; min-width: 0; padding-block: 45px; }
.location-line { display: flex; align-items: center; justify-content: center; gap: 16px; letter-spacing: .2em; font-size: 14px; }
.location-line::before, .location-line::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.arrival-copy h1 {
  font: 400 clamp(64px,8.3vw,146px)/1.25 var(--display);
  margin: 14px 0 4px; letter-spacing: .11em; text-indent: .11em;
  text-shadow: 0 2px 28px #18231c66;
}
html:not(:lang(zh)) { --display: Georgia, "Times New Roman", serif; }
html:lang(ja) { --display: "Yu Mincho", "Noto Serif CJK JP", serif; }
html:lang(ko) { --display: "Batang", "Noto Serif CJK KR", serif; }
html:lang(ar) { --display: "Noto Naskh Arabic", "Times New Roman", serif; }
html[dir="rtl"] :is(h1, h2, h3, .arrival-place, .menu-links a, .suite-category, .crumb) { letter-spacing: normal; }
html[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }
html:not(:lang(zh)) .arrival-copy h1 {
  font-size: clamp(37px,7.4vw,124px);
  letter-spacing: .022em;
  text-indent: 0;
}
.arrival-copy .glass-link { margin: 15px auto 0; }
.screening-desk {
  position: relative; display: grid; grid-template-columns: 1fr; align-items: center;
  width: 100%; border-top: 1px solid #ffffff6b;
}
.film-control {
  justify-self: start; position: absolute; bottom: calc(100% + 12px); left: 0;
  display: flex; align-items: center; min-height: 44px; padding: 0; gap: 10px;
  color: white; background: transparent; border: 0; font: 13px var(--sans);
}
.film-control i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffffbf; border-radius: 50%; }
.film-control i::before { content: ""; border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: currentColor; margin-left: 2px; }
.film-control[data-playing="true"] i::before { width: 7px; height: 10px; box-sizing: border-box; border: solid currentColor; border-width: 0 2px; margin-left: 0; }
.scene-switch { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(4px,2.8vw,46px); }
.scene-switch button {
  position: relative; color: #fff; background: none; border: 0; min-height: 49px;
  padding: 12px 0 4px; font: 14px var(--sans); letter-spacing: .1em;
}
.scene-switch button::before {
  content: ""; position: absolute; inset: -2px 0 auto; height: 3px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
}
.scene-switch [aria-pressed="true"]::before { transform: scaleX(1); }
.suite-photo .turning-page { z-index: 1; pointer-events: none; }
.edition.room-edition { padding-bottom: clamp(18px,2vw,32px); }
/* This full-width colour change meets the masthead at its anchor. Other targets keep their 8px focus clearance. */
html:has(.follows-page) #courtyard { scroll-margin-block-start: -8px; }
.courtyard-spread {
  padding-block: clamp(40px,4.6vw,76px);
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(20px,2.4vw,36px);
}
.courtyard-spread .edition-heading { grid-column: 1/-1; flex-wrap: wrap; margin: 0; gap: 4px 16px; }
.courtyard-spread figure img { display: block; width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover; }
.courtyard-spread figcaption { margin: 0; padding-top: 11px; font-size: 13px; letter-spacing: .1em; }
.chapter-photos figure[id] { scroll-margin-block-start: 18px; }
@media (max-width:680px) {
  .courtyard-spread { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .courtyard-spread figcaption { padding-top: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .arrival-copy h1 { overflow: hidden; }
  .arrival-copy h1 [data-scene-title] { animation: screen-title 1150ms var(--ease-out); }
  .arrival-photos::before, .arrival-photos::after {
    position: absolute; content: ""; z-index: 2; height: 27%; inset-inline: 0; background: #132019; pointer-events: none;
    animation: open-matte 1250ms cubic-bezier(.77,0,.175,1) both;
  }
  .arrival-photos::before { top: 0; transform-origin: top; }
  .arrival-photos::after { bottom: 0; transform-origin: bottom; }
  .scene-switch button::before { transition: transform 400ms var(--ease-out); }
  .courtyard-spread [data-print] .photo-link::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: var(--pine); transform-origin: bottom; transition: transform 760ms cubic-bezier(.65,0,.25,1);
  }
  .courtyard-spread [data-print="visible"] .photo-link::before,
  .courtyard-spread figure:focus-within .photo-link::before { transform: scaleY(0); }
  @media (min-width:681px) { .courtyard-terrace[data-print] .photo-link::before { transition-delay: 90ms; } }
}
@keyframes open-matte { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes screen-title { from { transform: translateY(78%); opacity: .15; } to { transform: none; opacity: 1; } }
@media (max-width:680px) {
  .arrival-inner { padding-block: 74px 15px; min-height: max(495px,84svh); }
  .arrival-copy h1 { font-size: clamp(41px,10.4vw,68px); letter-spacing: .065em; }
  .arrival:has([aria-controls="opening-film"][aria-pressed="true"]) h1 { font-size: clamp(48px,15.4vw,82px); }
  .location-line { font-size: 12px; gap: 10px; }
  .scene-switch button { font-size: 12px; letter-spacing: .035em; }
}
@media (max-height:520px) and (orientation:landscape) {
  .arrival-inner { min-height: 440px; padding-top: 68px; }
  .arrival-copy { padding-block: 15px; }
}

.photo-link { display: block; position: relative; overflow: hidden; }
.photo-link::after {
  content: var(--photo-symbol, "↗") / "";
  position: absolute; right: clamp(10px,1.4vw,22px); bottom: clamp(10px,1.4vw,22px);
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--paper); color: var(--pine);
  font: 21px/1 Arial,sans-serif; pointer-events: none; opacity: 0; z-index: 2;
}
.chapter-photos .photo-link { --photo-symbol: "+"; }
.photo-link:focus-visible::after { opacity: 1; }
:is(.mast-book,.pine-button,.darkbtn):active { opacity: .85; }

@media (hover:hover) and (pointer:fine) {
  .photo-link:hover::after { opacity: 1; }
  :is(.mast-stays,.mast-album,.album-contents a,.ink-link,.glass-link) { position: relative; }
  :is(.mast-stays,.mast-album,.album-contents a,.ink-link,.glass-link)::after {
    content: ""; position: absolute; inset: auto 0 5px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left; pointer-events: none;
  }
  :is(.ink-link,.glass-link)::after { bottom: -1px; height: 2px; }
  :is(.mast-stays,.mast-album,.album-contents a,.ink-link,.glass-link):hover::after { transform: scaleX(1); }
  :is(.mast-book,.pine-button) { position: relative; isolation: isolate; }
  :is(.mast-book,.pine-button)::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--button-wash, #e1e7db); transform: scaleX(0); transform-origin: left;
  }
  .over-photo .mast-book { --button-wash: #263d30bf; }
  .over-photo.solid .mast-book, .pine-button { --button-wash: #3a5949; }
  :is(.mast-book,.pine-button):hover::before { transform: scaleX(1); }
  .room-switch button:not([aria-selected="true"]):hover { color: var(--pine); border-bottom-color: var(--line); }
  .scene-switch button[aria-pressed="false"]:hover::before { transform: scaleX(.4); }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .photo-link > img:not(.turning-page) { transition: scale 420ms var(--ease-out); }
  .photo-link:hover > img:not(.turning-page) { scale: 1.025; }
  .photo-link::after { transform: translate(-3px,4px); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
  .photo-link:is(:hover,:focus-visible)::after { transform: none; }
  :is(.mast-stays,.mast-album,.album-contents a,.ink-link,.glass-link)::after,
  :is(.mast-book,.pine-button)::before { transition: transform 220ms var(--ease-out); }
  .pine-button i, .notes-index i, .journal-list i { transition: transform 160ms var(--ease-out); }
  .pine-button:hover i { transform: translateX(3px); }
  :is(.notes-index,.journal-list) a:hover i { transform: translate(2px,-2px); }
}
