:root {
  color-scheme: light;
  --paper: #fff;
  --text: #2b2019;
  --quiet: #5e5249;
  --blue: #1e4d8c;
  --brass: #d9a441;
  --rule: #ddd5cd;
  --space: 88px;

  --scene-time: .4s;
  --chest-time: .9s;
  --chair-time: 1.2s;
  --owl-time: .4s;
  --reveal-time: .8s;
  --chest-travel: -24px;
  --chair-x: 30px;
  --chair-y: -18px;
  --door-tilt: -3deg;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 20px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure { margin: 0; }
button, input { font: inherit; }
a, button, summary, input { -webkit-tap-highlight-color: transparent; }

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-wrap: pretty;
}

h1 {
  margin: 0 0 26px;
  max-width: 21ch;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.17;
  letter-spacing: -.015em;
}

h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}

p { margin: 0; max-width: 62ch; }
p + p { margin-top: 22px; }
strong { font-weight: 600; }

.shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.prose { max-width: 62ch; }
.quiet, .caption { color: var(--quiet); }
.caption { font-size: 18px; line-height: 1.45; }
.section { margin-top: var(--space); }

.site-header {
  padding-block: 10px 8px;
  border-bottom: 1px solid var(--rule);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 18px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration-thickness: 2px;
  font-weight: 600;
}

.page-intro { padding-top: 56px; }
.page-intro > p { max-width: 58ch; }
.eyebrow { color: var(--quiet); margin-bottom: 14px; }

.home-intro { padding-top: 36px; }
.identity { display: flex; align-items: center; gap: 20px; }

.portrait {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.identity p + p { margin-top: 2px; }
.identity-name { font-size: 24px; font-weight: 600; }
.identity .quiet { font-size: 18px; }

.home-intro h1 {
  margin-top: 28px;
  max-width: 23ch;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  max-width: 920px;
  font-size: 18px;
}

.contacts a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.contact-booking-line {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.contacts .contact-booking {
  display: inline-block;
  min-width: 0;
  padding-block: 8px;
}

.contact-booking-line > sup {
  flex: 0 0 auto;
}

.home-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.home-story .prose { min-width: 0; }

.scene {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.scene > img:not(.chest-moth):not(.chair-moth) {
  width: 100%;
}

.scene-soft {
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}

.chest-scene { margin-top: 0; }

.scene > img.chest-art:not(.chest-moth):not(.chair-moth) {
  width: 100%;
  margin-left: 0;
}

.chest-moth {
  position: absolute;
  left: 0;
  top: 24%;
  width: clamp(28px, 7vw, 56px);
  pointer-events: none;
}

.question {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.4;
}

.prose .question { margin-top: 32px; }

.door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.door {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 152px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.door img {
  width: 64px;
  height: 84px;
  object-fit: contain;
  transform-origin: 50% 75%;
  transition: transform .2s ease;
}

.door strong {
  display: block;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.door > span > span {
  display: block;
  margin-top: 5px;
  color: var(--quiet);
  font-size: 18px;
  line-height: 1.45;
}

.door:hover img,
.door:focus-visible img {
  transform: rotate(var(--door-tilt));
}

.door:hover strong { text-decoration-thickness: 2px; }

.project { max-width: 100%; }
.project-lead > * { min-width: 0; }
.owl-moment { max-width: 720px; margin-top: 36px; }

.owl-stage {
  position: relative;
  height: 360px;
  max-width: 720px;
  isolation: isolate;
}

.owl-pose {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  object-fit: contain;
  transition: opacity var(--owl-time) ease;
  pointer-events: none;
}

.owl-quiet { width: 160px; opacity: 1; }
.owl-speaks { width: 240px; opacity: 0; }
.owl-stage[data-pose="speaks"] .owl-quiet { opacity: 0; }
.owl-stage[data-pose="speaks"] .owl-speaks { opacity: 1; }

.owl-moment .question { margin-top: 28px; }
.connected { margin-top: 56px; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: white;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

button:hover, .button:hover {
  box-shadow: inset 0 0 0 1px var(--blue);
}

button[aria-pressed="true"], .button.primary {
  color: white;
  background: var(--blue);
}

.js-only { display: none; }
.enhanced button.js-only { display: inline-flex; }

details {
  border-top: 1px solid var(--rule);
  padding-block: 0;
}

details:last-of-type { border-bottom: 1px solid var(--rule); }

summary {
  min-height: 64px;
  padding: 18px 6px 18px 0;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}

summary::marker { font-size: .9em; }
.details-body { padding: 4px 0 28px 24px; }

.reveal-toggle { margin-top: 24px; }

.looks {
  max-width: 720px;
  margin-inline: auto;
}

.look-card h2 { font-size: 32px; }

.look-card .question { max-width: 48ch; }
.look-card .reveal-toggle { margin-top: 22px; }

.inline-answer {
  margin-top: 24px;
  padding: 8px 0 8px 22px;
  border-left: 2px solid var(--rule);
  max-width: 62ch;
}

.invitation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.invitation h1 { font-size: clamp(36px, 4.6vw, 54px); }
.contact-caption { margin-top: 12px; }

.chair-scene {
  --lantern-x: 69%;
  --lantern-y: 39%;
  --lantern-size: 16%;
  margin-top: 56px;
  isolation: isolate;
}

.chair-moth {
  position: absolute;
  top: 4%;
  left: 62%;
  width: clamp(40px, 7vw, 64px);
  pointer-events: none;
}

.lantern-glow {
  position: absolute;
  left: var(--lantern-x);
  top: var(--lantern-y);
  width: var(--lantern-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(217,164,65,.5),
    rgba(217,164,65,.16) 38%,
    rgba(217,164,65,0) 72%
  );
  opacity: .3;
  pointer-events: none;
}

.site-footer {
  margin-top: var(--space);
  padding-bottom: 48px;
  color: var(--quiet);
  font-size: 18px;
}

.divider {
  width: 240px;
  height: 48px;
  margin-bottom: 20px;
}

.site-footer p + p { margin-top: 8px; }

.play[data-arrival="scene"] .scene-fade,
.play[data-arrival="chest"] .scene-fade,
.play[data-arrival="chair"] .scene-fade {
  animation: scene-arrive var(--scene-time) ease-out both;
}

.play[data-arrival="chest"] .chest-moth {
  animation: chest-settle var(--chest-time) ease-out both;
}

.play[data-arrival="chair"] .chair-moth {
  animation: chair-settle var(--chair-time) ease-out both;
}

.play[data-arrival="chair"] .lantern-glow {
  animation: lantern-warm .8s ease-out .4s both;
}

@keyframes scene-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chest-settle {
  from { transform: translateY(var(--chest-travel)); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes chair-settle {
  0% {
    transform: translate(var(--chair-x), var(--chair-y)) rotate(-5deg);
    opacity: 0;
  }
  25% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}

@keyframes lantern-warm {
  0% { opacity: .05; }
  60% { opacity: .65; }
  100% { opacity: .3; }
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.motion-off .door img { transform: none !important; }

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

  .door img { transform: none !important; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 1000px) {
  .project-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .project-lead > .owl-moment,
  .project-lead > .wildlife-moment {
    margin-top: 0;
  }
}

@media (max-width: 899px) {
  .home-story,
.invitation-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-story .prose { max-width: 62ch; }
  .chest-scene { max-width: 600px; }

  .chair-scene { margin-top: 0; }
  .door-grid { gap: 0 32px; }
}

@media (max-width: 600px) {
  :root { --space: 48px; }
  .shell { width: calc(100% - 40px); }

  .site-header { padding-block: 4px; }

  .site-header nav { gap: 0 16px; }

  .site-header nav a { min-height: 44px; }

  .home-intro { padding-top: 12px; }
  .identity { gap: 16px; }
  .portrait { width: 56px; height: 56px; }
  .identity-name { font-size: 22px; line-height: 1.2; }
  .identity .quiet { line-height: 1.4; }

  .home-intro h1 {
    margin: 12px 0 8px;
    font-size: 28px;
    line-height: 1.14;
    letter-spacing: -.02em;
    max-width: 25ch;
  }

  .contacts { gap: 0 18px; }

  .contacts .contact-email,
  .contact-booking-line {
    flex-basis: 100%;
  }

  .contacts .contact-booking { font-size: 18px; }

  .page-intro { padding-top: 32px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .question { font-size: 24px; }

  .home-story { gap: 32px; }
  .door-grid { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 124px; gap: 16px; padding-block: 18px; }
  .door-grid .door:last-child { border-bottom: 1px solid var(--rule); }
  .door > span > span { font-size: 18px; }

  .owl-stage { height: 340px; }
  .connected { margin-top: 40px; }

  .details-body { padding-left: 16px; }
  summary { min-height: 64px; }

  .inline-answer { padding-left: 16px; }
  .invitation h1 { font-size: 38px; }
}

@media (max-width: 359px) {
  .shell { width: calc(100% - 32px); }
  .site-header nav { column-gap: 12px; }

  .door {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .door img { width: 48px; }
  .contacts { column-gap: 12px; }
  h1, .invitation h1 { font-size: 32px; }
}

.chest-scene .gears { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 3568 / 5011; pointer-events: none; }
.chest-scene .gears img { position: absolute; display: block; height: auto; max-width: none; }
@keyframes gear-turn { to { transform: rotate(360deg); } }
.gear-mid { left: 50.813%; top: 41.728%; width: 5.577%; animation: gear-turn 27s linear infinite reverse; }
.gear-front { left: 50.813%; top: 41.728%; width: 5.577%; }
.gear-top { left: 50.673%; top: 34.464%; width: 9.781%; animation: gear-turn 48s linear infinite; }

.door img[src*="kit_owl"] { animation: door-owl 13.3s ease-in-out 1.8s infinite; }
.door img[src*="kit_lantern"] { transform-origin: 50% 8%; animation: door-lantern 17.1s ease-in-out 5.2s infinite; }
.door img[src*="kit_moth"] { animation: door-moth 9.7s ease-in-out 3.1s infinite; }
.door img[src*="kit_key"] { animation: door-key 21.9s ease-in-out 8.4s infinite; }

@keyframes door-owl {
  0%, 12%, 100% { rotate: 0deg; }
  3%, 6% { rotate: -9deg; }
  9% { rotate: 5deg; }
}
@keyframes door-lantern {
  0%, 14%, 100% { rotate: 0deg; filter: none; }
  3% { rotate: 5deg; filter: brightness(1.12); }
  6% { rotate: -4deg; }
  9% { rotate: 2.5deg; }
  12% { rotate: -1deg; filter: none; }
}
@keyframes door-moth {
  0%, 10%, 100% { scale: 1 1; translate: 0 0; }
  2% { scale: .7 1; translate: 0 -2px; }
  4% { scale: 1 1; translate: 0 -4px; }
  6% { scale: .75 1; translate: 0 -3px; }
  8% { scale: 1 1; translate: 0 -1px; }
}
@keyframes door-key {
  0%, 9%, 100% { rotate: y 0deg; }
  4.5% { rotate: y 180deg; }
  8.9% { rotate: y 359deg; }
}

.play[data-arrival="chair"] .lantern-glow {
  animation: lantern-warm .8s ease-out .4s both, lantern-flicker 7.3s ease-in-out 1.4s infinite;
}
.play[data-arrival="chair"] .chair-moth {
  animation: chair-settle var(--chair-time) ease-out both, moth-flutter 11.3s ease-in-out 5s infinite;
}
@keyframes lantern-flicker {
  0%, 100% { opacity: .3; }
  18% { opacity: .38; }
  31% { opacity: .27; }
  47% { opacity: .41; }
  63% { opacity: .31; }
  80% { opacity: .36; }
}
@keyframes moth-flutter {
  0%, 9%, 100% { scale: 1 1; translate: 0 0; }
  2% { scale: .72 1; translate: 0 -2px; }
  4% { scale: 1 1; translate: 0 -4px; }
  6% { scale: .78 1; translate: 0 -3px; }
  8% { scale: 1 1; translate: 0 -1px; }
}

.lamp-glow {
  position: absolute;
  left: 21.8%;
  top: 35%;
  width: 12%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217,164,65,.55), rgba(217,164,65,.16) 38%, rgba(217,164,65,0) 72%);
  opacity: .3;
  pointer-events: none;
  animation: lantern-flicker 6.1s ease-in-out infinite;
}

.look-page .page-intro,
.look-page .looks {
  max-width: 960px;
  margin-inline: auto;
}
.look-page .looks { margin-top: 40px; }
.look-page .look-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: min-content 1fr;
  grid-template-areas:
    "picture heading"
    "picture copy";
  gap: 16px 40px;
  align-items: start;
  margin: 0;
  padding-block: 40px;
  border-top: 1px solid var(--rule);
}
.look-page .look-heading { grid-area: heading; }
.look-page .look-heading h2 { margin: 0 0 12px; }
.look-page .look-illustration {
  grid-area: picture;
  width: 300px;
  height: 230px;
  margin: 0;
}
.look-page .look-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.look-page .look-copy { grid-area: copy; }
.look-page .look-card .reveal-toggle { margin-top: 0; }
.look-page .inline-answer { margin-top: 16px; }
.look-page .look-invite {
  margin-top: 0;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 759px) {
  .look-page .look-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "heading" "picture" "copy";
    gap: 20px;
    padding-block: 32px;
  }
  .look-page .look-illustration {
    width: min(100%, 300px);
    justify-self: center;
  }
}

.look-page .page-intro,
.look-page .looks { max-width: 100%; margin-inline: 0; }

.booking-note { margin-top: 10px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split .split-picture { margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.split-text > h2 { margin-top: 0; }
.write-box.split { align-items: start; }
.write-box .split-picture { max-width: 480px; }
@media (max-width: 759px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .write-box .split-picture { max-width: 360px; }
}

html { scroll-padding-top: calc(var(--menu-h, 72px) + 8px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  transition: transform .28s ease;
}
.site-header.menu-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.motion-off .site-header { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none !important; } }

@media (min-width: 900px) {
  .home-story .chest-scene {
    align-self: end;
    margin-block: -130% -10.42%;
  }
  .home-intro { position: relative; z-index: 1; }
}

.home-story .home-lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.015em;
}
.home-story .home-lead + p { margin-top: 14px; }
@media (max-width: 600px) {
  .home-story .home-lead { font-size: 30px; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--paper);
}
.skip-link:focus { top: 12px; }
.not-found-owl { width: 96px; margin-top: 40px; }
