@font-face {
  font-family: Forum;
  src: url("assets/forum-cyrillic.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Forum;
  src: url("assets/forum-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Onest;
  src: url("assets/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url("assets/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #e9e4da;
  --mint: #daeccd;
  --ink: #383b2d;
  --olive: #6d6948;
  --copy: #625e40;
  --white: #f7f3e8;
  --gutter: 4vw;
  --display: Forum, Georgia, serif;
  --text: Onest, Arial, sans-serif;
  --page-color: var(--paper);
  --nav-wash: #e9e4daaa;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--page-color); color: var(--olive); font: 17px/1.5 var(--text); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tree { fill: currentColor; stroke: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { color: var(--white); background: var(--olive); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
:where(section, footer)[id] { scroll-margin-top: 110px; }
.wrap { width: min(1472px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: absolute; top: 10px; left: 10px; padding: 8px 14px; z-index: 20; color: var(--ink); background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { position: absolute; z-index: 10; inset: calc(100svh + 8px) 0 auto; overflow: hidden; }
.desktop-nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; height: 74px; font-size: .9375rem; text-transform: uppercase; transition: transform .75s; }
.mini-mark svg { width: 59px; height: 38px; stroke-width: 2.5; }
.below-hero .header { position: fixed; top: 0; }
.below-hero .desktop-nav { transform: translateY(-102%); }
.below-hero .header:is(:hover, :focus-within) .desktop-nav, .scrolling-up .desktop-nav { transform: none; }
.header::before { content: ""; position: absolute; inset: 0; background: var(--nav-wash); backdrop-filter: blur(20px); transform: translateY(-100%); transition: transform .55s; }
.below-hero .header:is(:hover, :focus-within)::before, .below-hero.scrolling-up .header::before { transform: none; }
.menu-toggle, .mobile-menu { display: none; }

.hero { position: relative; height: calc(100svh - 8px); min-height: 360px; color: var(--white); overflow: clip; }
.hero-frame { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 56px 56px; animation: arrival-frame 2s .75s cubic-bezier(.22,.61,.36,1) both; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translateY(var(--hero-y, 0%)) scale(var(--hero-scale, 1.1)); }
.hero-brand { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); transform: translateY(var(--mark-y, 0%)) scale(var(--mark-scale, 1)); text-align: center; }
.hero-brand:hover { text-decoration: none; }
.hero-brand h1 { font: 400 3.75rem/1 var(--display); text-wrap: balance; text-shadow: 0 2px 6px #15190ff2, 0 5px 24px #15190fd9; animation: arrival-label .55s 1.5s both; }
.brand-mark { width: 90px; height: 56px; stroke-width: 2.5; }
.brand-mark path { transform-box: fill-box; transform-origin: center; animation: arrival-path 1s 1.15s both; }
.brand-mark path:nth-child(2) { animation-delay: 1.23s; }
.brand-mark path:nth-child(3) { animation-delay: 1.31s; }
@keyframes arrival-frame { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes arrival-path { from { opacity: 0; transform: scale(0) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes arrival-label { from { opacity: 0; } to { opacity: 1; } }

.intro { padding: 160px var(--gutter) 0; text-align: center; }
.intro h2 { max-width: 900px; margin: 0 auto; font-size: 6.25rem; }
.intro p { max-width: 500px; margin: 64px auto 0; }
.intro p, .book p, .house h3, .house li, .footer address, .footer nav { color: var(--copy); }
.motion [data-reveal] { opacity: 0; transform: translateY(10%); transition: opacity .6s, transform .6s; }
.motion [data-reveal].in-view, .motion [data-reveal]:focus-within { opacity: 1; transform: none; }

.gallery-layout { position: relative; }
.triptych { margin-block: 26.5% 11%; }
.triptych .photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.triptych figure:nth-child(1) { transform: translateX(14%); }
.triptych figure:nth-child(2) { transform: translateY(-35%); }
.triptych figure:nth-child(3) { transform: translate(-14%, 11%); }
.triptych img { aspect-ratio: 2 / 3; }
.triptych figure img { transform: translate(var(--photo-x, 0%), var(--photo-y, 0%)); }
.photo-strip img { width: 100%; object-fit: cover; background: #c3bba4; -webkit-user-drag: none; user-select: none; }
.photo-strip:focus-visible { outline-offset: -3px; }
.rail-prev, .rail-next { display: none !important; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid currentColor; border-radius: 50%; color: var(--white); background: #231f1c48; transition: background-color .25s, opacity .25s; }
.icon-button:hover { background: #231f1ca0; }
.icon-button:disabled { opacity: 0; pointer-events: none; }
.icon-button svg { width: 19px; height: 19px; }

.letter-art { display: flex; justify-content: center; align-items: center; min-height: 230px; margin: 0 auto 42px; font-size: 8rem; line-height: 1; }
.letter-art span { translate: 0 var(--letter-y); rotate: var(--letter-tilt); }
.motion .letter-art span { opacity: var(--letter-opacity, 0); translate: 0 calc(var(--letter-y) + var(--letter-rise, .18em)); }

/* A ridge over the cabins and a gentler bend over the activities. */
#houses-title span:nth-child(1) { --letter-y: .13em; --letter-tilt: -9deg; }
#houses-title span:nth-child(2) { --letter-y: 0em; --letter-tilt: -6deg; }
#houses-title span:nth-child(3) { --letter-y: -.13em; --letter-tilt: -3deg; }
#houses-title span:nth-child(4) { --letter-y: -.16em; --letter-tilt: 2deg; }
#houses-title span:nth-child(5) { --letter-y: -.08em; --letter-tilt: 6deg; }
#houses-title span:nth-child(6) { --letter-y: .08em; --letter-tilt: 9deg; }

#rest-title span:nth-child(1) { --letter-y: -.04em; --letter-tilt: 5deg; }
#rest-title span:nth-child(2) { --letter-y: .045em; --letter-tilt: 5deg; }
#rest-title span:nth-child(3) { --letter-y: .115em; --letter-tilt: 1deg; }
#rest-title span:nth-child(4) { --letter-y: .10em; --letter-tilt: -4deg; }
#rest-title span:nth-child(5) { --letter-y: .025em; --letter-tilt: -8deg; }
#rest-title span:nth-child(6) { --letter-y: -.095em; --letter-tilt: -5deg; }
#rest-title span:nth-child(7) { --letter-y: -.15em; --letter-tilt: 1deg; }

.house-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 940px; margin: 0 auto; }
.house h3 { font: 17px/1.5 var(--text); text-align: center; margin: 24px 0; text-transform: uppercase; }
.house ol { list-style: none; padding: 0 0 0 42px; margin: 0; }
.house li { position: relative; margin-bottom: 20px; }
.house li::before { content: counter(list-item); position: absolute; left: -38px; top: -3px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid; border-radius: 50%; }
.flip-card { display: grid; position: relative; isolation: isolate; aspect-ratio: 364 / 476; perspective: 1200px; }
.flip-media, .flip-copy { grid-area: 1 / 1; transition: transform .4s, opacity .4s; backface-visibility: hidden; }
.flip-media { position: relative; min-width: 0; min-height: 0; cursor: pointer; }
.flip-media img { position: absolute; inset: 0; height: 100%; transition: opacity .5s; }
.flip-media img[aria-hidden="true"] { opacity: 0; }
.flip-copy { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 34px 20px; text-align: center; background: #41432c; color: var(--white); opacity: 0; transform: rotateY(-180deg); }
.flip-copy h3 { font-size: 2.1rem; }
.flip-copy a { text-decoration: underline; }
.flip-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.flipped .flip-media { opacity: 0; transform: rotateY(180deg); pointer-events: none; }
.flipped .flip-copy { opacity: 1; transform: none; }
.flipped .flip-copy > * { opacity: 1; transform: none; transition-delay: .34s; }
.flip-toggle { position: absolute; inset: 15px 15px auto auto; z-index: 1; }
.flip-toggle svg:last-child, .flipped .flip-toggle svg:first-child { display: none; }
.flipped .flip-toggle svg:last-child { display: block; }
.slide-controls { position: absolute; inset: auto 16px 27px; display: flex; justify-content: space-between; }

.rest { margin-top: 120px; }
.activities { --activity-step: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; padding-bottom: calc(var(--activity-step) * 2); }
.activities > :nth-child(3n + 2) { translate: 0 var(--activity-step); }
.activities > :nth-child(3n) { translate: 0 calc(var(--activity-step) * 2); }
.book { position: relative; margin-top: 175px; padding-bottom: 125px; }
.book h2 { font-size: 6.25rem; }
.book p { max-width: 500px; margin-top: 32px; }
.booking-stamp { display: grid; place-items: center; width: 112px; aspect-ratio: 1; position: fixed; z-index: 8; right: 10px; bottom: 10px; color: var(--white); background: #8a271f; border-radius: 50%; overflow: hidden; }
.motion .booking-stamp:not(.ready) { opacity: 0; }
.booking-stamp { transition: opacity .5s; }
.booking-stamp.docked { position: absolute; width: min(25vw, 365px); right: 0; bottom: 0; }
.stamp-wheel { grid-area: 1 / 1; width: 100%; height: auto; overflow: visible; stroke-width: 1; animation: stamp-spin 10s linear infinite; }
.stamp-wheel text { fill: currentColor; stroke: none; font-size: 11px; }
.stamp-phone { grid-area: 1 / 1; width: 23%; height: auto; aspect-ratio: 1; transform: rotate(var(--stamp-angle, 0deg)); }
@keyframes stamp-spin { to { rotate: 360deg; } }

.closing { margin-top: 125px; }
.closing h2 { font: 600 1rem/1.5 var(--text); text-align: center; text-transform: uppercase; margin-bottom: 30px; }
.closing .photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3%; }
.closing img { aspect-ratio: 4 / 5; }
.footer-inner { min-height: 500px; display: grid; grid-template-columns: 1.2fr 1fr .8fr 1fr; align-items: center; gap: 4%; padding-block: 100px 65px; font-size: 1.1rem; }
.footer-wordmark { display: grid; justify-items: center; font: 4.5rem/.85 var(--display); text-align: center; rotate: -10deg; }
.footer-wordmark span:last-child { font-size: .63em; }
.footer address { font-style: normal; }
.footer nav { display: grid; text-transform: uppercase; }
.footer-sign { display: grid; justify-items: center; text-align: center; gap: 30px; }
.footer-mark { width: min(100%, 235px); height: auto; aspect-ratio: 100 / 62; stroke-width: 2.4; }

@media (max-width: 1070px) {
  .hero-brand h1 { font-size: 3.25rem; }
  .intro h2, .book h2 { font-size: 5rem; }
  .letter-art { min-height: 190px; font-size: 6rem; }
  .activities { --activity-step: 16px; }
  .footer-wordmark { font-size: 3.5rem; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .header { display: none; }
  .menu-toggle { position: fixed; display: grid; justify-items: center; z-index: 12; top: 16px; right: 16px; width: 90px; padding: 0; border: 0; background: none; color: var(--white); text-transform: uppercase; transition: translate .35s; }
  .menu-toggle svg { width: 90px; height: 56px; margin-bottom: 5px; stroke-width: 2.5; animation: arrival-path .9s .6s both; }
  .below-hero:not(.menu-open) .menu-toggle { color: var(--olive); background: var(--nav-wash); backdrop-filter: blur(8px); }
  .below-hero:not(.menu-open, .scrolling-up) .menu-toggle:not(:focus-visible) { translate: 0 -130%; }
  .mobile-menu { display: flex; align-items: center; position: fixed; z-index: 11; inset: 0; padding: 90px 20px 65px; background: #575336ed; backdrop-filter: blur(20px); color: var(--paper); transform: translateX(110%); transition: transform .5s, visibility .5s; visibility: hidden; overflow: auto; }
  .mobile-menu > div { display: grid; transform: translateX(50vw); transition: transform .6s; }
  .mobile-menu a { font: 1.875rem/1.95 var(--display); text-transform: uppercase; }
  .mobile-menu .menu-map { position: absolute; right: 32px; bottom: 32px; }
  .menu-open { overflow: hidden; }
  .menu-open .mobile-menu { transform: none; visibility: visible; }
  .menu-open .mobile-menu > div { transform: none; }
  .hero-frame { border-radius: 0 0 46px 46px; }
  .hero-brand { top: auto; bottom: 118px; translate: -50% 0; }
  .hero-brand h1 { font-size: 2.5rem; }
  .hero-brand svg { display: none; }
  .intro { padding-top: 48px; }
  .intro h2 { font-size: 2.55rem; line-height: .98; }
  .intro p { margin-top: 48px; }
  .triptych { margin-block: 48px 80px; }
  .gallery-layout, .houses { width: 100%; }
  .gallery-layout .photo-strip, .house-list { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); }
  .photo-strip::-webkit-scrollbar { display: none; }
  .photo-strip.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
  .gallery-layout .photo-strip > *, .house-list > * { flex: 0 0 75%; min-width: 0; scroll-snap-align: start; }
  .house-list { scroll-snap-type: x mandatory; }
  .motion .house:not(.on-rail) :is(h3, ol) { visibility: hidden; }
  .triptych figure:nth-child(n), .triptych figure img { transform: none; }
  .activities { padding-bottom: 0; }
  .activities > :nth-child(n) { translate: none; }
  .rail-prev, .rail-next { display: grid !important; position: absolute; z-index: 2; top: 50%; translate: 0 -50%; }
  .rail-prev { left: 12px; }
  .rail-next { right: 12px; }
  .letter-art { min-height: 115px; margin-bottom: 27px; font-size: 4rem; }
  .rest { margin-top: 72px; }
  .book { margin-top: 100px; padding-bottom: 55%; }
  .book h2 { font-size: 3.3rem; }
  .book p { margin-top: 22px; }
  .booking-stamp { width: 87px; }
  .booking-stamp.docked { width: min(50%, 220px); right: 50%; translate: 50% 0; }
  .closing { margin-top: 66px; }
  .closing h2 { margin-inline: 16px; }
  .closing .photo-strip > * { flex-basis: 66%; }
  .footer-inner { max-width: 300px; grid-template-columns: 1fr; gap: 42px; justify-items: center; text-align: center; padding-block: 78px 50px; }
}
@media (max-width: 360px) {
  .hero-brand h1 { font-size: 2.125rem; }
  .intro h2 { font-size: 2.2rem; }
  .letter-art { font-size: 3.5rem; }
  .book h2 { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .hero-image, .hero-brand, .triptych figure img, .stamp-phone { transform: none; }
  .motion .letter-art span { opacity: 1; translate: 0 var(--letter-y); }
  .motion [data-reveal] { opacity: 1; transform: none; }
}
