@font-face {
  font-family: Zodiak;
  src: url("./assets/fontshare/zodiak-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: General Sans;
  src: url("./assets/fontshare/general-sans-400.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1c2c32;
  --paper: #f0f0eb;
  --brick: #913f32;
  --night-ink: #f5eee4;
  --serif: Zodiak, Georgia, serif;
  --sans: General Sans, Arial, sans-serif;
  --gutter: clamp(28px, 6.1vw, 104px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.55 var(--sans); color: var(--ink); background: #d8bfb1; }
html:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { font: 400 clamp(3rem, 6vw, 5.75rem)/.98 var(--serif); letter-spacing: -.037em; }
p { text-wrap: pretty; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 16px; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
/* Keep the drawing buffer stable as the browser bars slide. */
.world { position: fixed; inset: 0; height: 100lvh; pointer-events: none; visibility: hidden; }
.scene-visible .world { visibility: visible; }
.world canvas { height: 100%; width: 100%; display: block; }
.world > div { position: absolute; inset: 0; }
.world-light, .arrival .veil {
  background: radial-gradient(ellipse 74% 93% at 0 34%, #f0e1d5e8, #efdcd4ad 32%, #ede4dd29 61%, transparent 88%),
    linear-gradient(0deg, #d7e0e9 0, #e3e7eac9 8%, transparent 21%);
}
.place .veil {
  background: linear-gradient(270deg, #e5edf1fa 0, #e5edf1f2 29%, #e5edf16b 41%, transparent 59%);
  mask-image: linear-gradient(transparent, #000 12% 88%, transparent);
}
.world-day, .day .veil {
  background: linear-gradient(180deg, #e3e9ecdc, #e3e9ec5e 15%, transparent 32% 68%, #e9e9e98a 87%, #e9e9e9ea);
}
.world-night, .night .veil {
  background: radial-gradient(ellipse at 0 47%, #111c2cf2, #111c2cb0 34%, #111c2c28 59%, transparent 76%);
}
.world-light { opacity: var(--light-veil, 1); }
.world-day { opacity: var(--day-veil, 0); }
.world-night { opacity: var(--night-veil, 0); }
main { position: relative; }
.chapter { position: relative; display: grid; min-height: 100svh; padding-inline: var(--gutter); isolation: isolate; }
.still, .veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.still { z-index: -2; background: var(--still-color) var(--still-image) center / cover no-repeat; }
.scene-visible:not(.scene-seen) :is(.still, .arrival .veil, .day .veil) { transition: opacity 480ms ease; }
.scene-visible :is(.still, .arrival .veil, .day .veil, .night .veil) { opacity: 0; }
.arrival .still { height: 100lvh; min-height: 100%; background-position: center top; }
.arrival { --still-color: #d8bfb1; --still-image: url("./assets/plans/arrivee.webp"); align-items: center; }
.masthead { position: absolute; top: 0; inset-inline: var(--gutter); display: flex; justify-content: space-between; align-items: center; min-height: 85px; border-bottom: 1px solid #25363b45; }
.brand, .mast-book { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand { font: 1.2rem/1.2 var(--serif); }
.stamp { display: inline-block; width: 26px; height: 25px; position: relative; border-bottom: 1px solid; }
.stamp::before { content: ""; position: absolute; width: 16px; height: 16px; border-top: 1.5px solid; border-left: 1.5px solid; transform: rotate(45deg) skew(-7deg, -7deg); left: 5px; top: 8px; }
.stamp::after { content: ""; position: absolute; width: 5px; height: 8px; border: 1px solid; border-bottom: 0; left: 11px; bottom: 0; }
.mast-book { padding: 0 15px; border: 1px solid #23343970; line-height: 1; }
.mast-book span, .walk span { color: var(--brick); }
.arrival-copy { padding: 106px 0 142px; }
.altitude { display: flex; gap: 10px; align-items: center; font-size: .81rem; letter-spacing: .11em; text-transform: uppercase; }
.altitude span { width: 6px; height: 6px; background: var(--brick); transform: rotate(45deg); }
.arrival h1 { margin: 21px 0 23px; font-size: clamp(4.05rem, 8.5vw, 8.55rem); line-height: .92; }
.intro { font-size: clamp(1.25rem, 2vw, 1.54rem); }
.walk { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; margin-top: 23px; }
.walk span { font-size: 1.27rem; display: grid; place-items: center; height: 32px; width: 32px; border: 1px solid #913f3280; border-radius: 50%; }
.route { position: absolute; bottom: 26px; inset-inline: var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #26373e65; }
.route a { padding: 10px 4px 8px 0; min-height: 44px; text-decoration: none; position: relative; }
.route a::before { content: ""; display: block; position: absolute; top: -5px; width: 1px; height: 5px; background: #26373e90; }
.route a[aria-current]::before { width: 27px; height: 3px; top: -2px; background: var(--brick); }
.route a[aria-current] { color: #773226; }

.place { --still-color: #bac4c9; --still-image: url("./assets/plans/refuge.webp"); justify-items: end; align-items: center; padding-block: 74px; }
.has-scene .place .veil { visibility: visible; }
.place-copy { width: min(100%, 405px); }
.place-copy h2 { font-size: clamp(2.85rem, 4.4vw, 4.35rem); }
.place-copy > p { margin-top: 21px; max-width: 35ch; }
.facts { display: flex; gap: clamp(12px, 2.1vw, 32px); margin-top: 27px; border-top: 1px solid #21363e55; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 3px; padding-top: 11px; }
.facts dd { font: 1.28rem/1.12 var(--serif); color: #6c382d; }
.facts dd span { display: block; }

.day { --still-color: #bec8d1; --still-image: url("./assets/plans/journee.webp"); display: block; padding: 0; color: #1a303d; }
.has-scene .day { min-height: 260svh; }
.day-frame { position: relative; display: grid; align-content: start; min-height: 100svh; padding: 60px var(--gutter); isolation: isolate; }
.has-scene .day-frame { position: sticky; top: 0; }
.day-copy { display: grid; justify-items: center; text-align: center; }
.day-copy h2 { font-size: clamp(3rem, 5.1vw, 5.2rem); text-wrap: balance; }
.hours { margin: 20px 0 0; padding: 0; list-style: none; }
.hours li { padding: 10px 0; border-top: 1px solid #283e4955; }
.hours time { color: #783b2d; font-variant-numeric: tabular-nums; }
.hours strong { display: block; font: 1.46rem/1.18 var(--serif); }
.hours li div span { display: block; margin-top: 5px; }
html:not(.has-scene) .day-copy { text-align: left; justify-items: start; }
html:not(.scene-visible) .day .veil { background: linear-gradient(160deg, #e5eaf0ec 2%, #e5eaf0cc 28%, transparent 70%); }
html:not(.has-scene) .hours { max-width: 355px; }
html:not(.has-scene) .hours li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.has-scene .hours { position: absolute; inset: auto 0 0; margin: 0; height: 109px; }
@media (width > 720px) {
  /* Keep the contrast behind the caption only, and fade both before the day frame unpins. */
  .scene-visible .day-copy h2 { opacity: var(--day-title-opacity, 1); }
  .has-scene .hours { opacity: var(--caption-opacity, 1); }
  .has-scene .hours li { isolation: isolate; }
  .has-scene .hours li::after {
    content: ""; position: absolute; inset: -15px -24px 0; z-index: -1;
    background: radial-gradient(ellipse at center, #e5e9ec 44%, #e5e9ec00 74%);
    opacity: var(--exit-veil, 0); pointer-events: none;
  }
}
.has-scene .hours::before {
  content: ""; position: absolute; left: var(--leader-x, 50%); bottom: 100%;
  height: var(--leader-length, 0px); width: 1px; background: linear-gradient(#843d2aac, #843d2a26);
  opacity: var(--leader-opacity, 0); pointer-events: none;
}
.has-scene .hours li {
  position: absolute;
  left: clamp(calc(var(--gutter) + 210px), var(--leader-x, 50%), calc(100% - var(--gutter) - 210px));
  width: min(420px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  padding: 11px 0 15px;
}
.has-scene .hours :is(time, li:not([aria-current])) { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; }
.sundial { position: absolute; inset: 0; pointer-events: none; }
html:not(.has-scene) .sundial { display: none; }
.sundial a {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
  min-height: 44px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 0 8px 5px;
  pointer-events: auto;
  white-space: nowrap;
  text-decoration: none;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-variant-numeric: tabular-nums;
  color: #162d3b;
  text-shadow: 0 0 3px #f7f2e8, 0 0 7px #f7f2e8, 0 0 13px #f7f2e8;
}
.sundial a::after { content: ""; height: 2px; width: 19px; margin-top: 1px; }
.sundial a[aria-current] { color: #732d20; }
.sundial a[aria-current]::after { background: #953e2c; }
.sundial a:hover { text-decoration: underline; }
.hour-stop { position: absolute; top: 0; pointer-events: none; }
#midi { top: calc((100% - 100svh) * .41); }
#crepuscule { top: calc((100% - 100svh) * .80); }
.night { --still-color: #111c2d; --still-image: url("./assets/plans/nuit.webp"); color: var(--night-ink); align-items: center; padding-block: 86px 122px; }
.night-copy { text-shadow: 0 1px 12px #111827af; }
.night-copy > p { max-width: 325px; margin-top: 21px; }
.night-copy .night-season { margin: 0 0 18px; color: #f6c8b0; }
.primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 19px; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); padding: 10px 16px; cursor: pointer; transition: transform 140ms var(--ease-out); }
.primary:active { transform: scale(.97); }
.night-copy .primary { margin-top: 25px; text-shadow: none; }
.night footer { position: absolute; bottom: 20px; inset-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f5eee45c; padding-top: 9px; }
.night footer a { display: inline-flex; min-height: 44px; gap: 9px; align-items: center; }
.night footer small { font-size: inherit; }
dialog { width: min(calc(100% - 32px), 490px); max-height: calc(100% - 32px); border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #0c1423bd; }
.booking-inner { position: relative; padding: clamp(26px, 6vw, 50px); }
dialog h2 { font-size: clamp(2.85rem, 6vw, 4.25rem); margin: 0 26px 15px 0; }
.close { position: absolute; top: 14px; right: 14px; cursor: pointer; background: none; color: var(--ink); border: 1px solid #23343955; width: 44px; height: 44px; line-height: 1; font-size: 1.6rem; }
form { display: grid; margin-top: 17px; }
form label { margin-top: 10px; }
form input { border: 1px solid #546468; border-radius: 0; background: #fafaf6; color: var(--ink); padding: 8px 10px; min-width: 0; min-height: 45px; }
dialog .primary { background: var(--ink); color: var(--night-ink); margin-top: 21px; border-color: var(--ink); }
.confirmation { margin-top: 22px; border-top: 1px solid #21363e48; padding-top: 15px; }
[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .mast-book:hover, .walk:hover, .route a:hover, .brand:hover { color: #773226; }
  .primary:hover { box-shadow: inset 0 0 0 1px currentColor; }
}
@media (max-width: 720px) {
  .chapter { --gutter: clamp(24px, 6.2vw, 40px); }
  .arrival { --still-image: url("./assets/plans/arrivee-portrait.webp"); align-items: start; }
  .world-light, .arrival .veil {
    background: radial-gradient(ellipse 133% 72% at 7% 5%, #f1e2d8f7, #ecdcd3e0 35%, #e6dad157 67%, transparent 94%),
      linear-gradient(0deg, #d7e0e9, #dfe6ece0 8%, transparent 22%);
  }
  .place .veil {
    background: linear-gradient(180deg, transparent, #e4edf2f7 36px, #e4edf2f0 245px, #e4edf2d4 325px, transparent 420px);
    mask-image: none;
  }
  .world-night, .night .veil {
    background: radial-gradient(ellipse 142% 80% at 15% 0%, #101a2af7, #101a2aae 45%, transparent 92%),
      radial-gradient(ellipse 102% 38% at 50% 119%, #111b2af2, transparent);
  }
  .masthead { min-height: 73px; }
  .brand { gap: 8px; }
  .mast-book { padding: 0 11px; gap: 8px; }
  .arrival-copy { padding-top: clamp(104px, 14.4svh, 150px); padding-bottom: 76px; }
  .arrival h1 { font-size: clamp(4.05rem, 12.2vw, 6rem); margin: 14px 0 12px; }
  .altitude { font-size: .875rem; }
  .walk { margin-top: 12px; }
  .route { bottom: 13px; grid-template-columns: auto auto auto auto; justify-content: space-between; gap: 5px; }
  .route a { padding-right: 0; }
  .place { --still-image: url("./assets/plans/refuge-portrait.webp"); align-items: start; justify-items: start; padding-block: 48px; }
  .place-copy h2 { font-size: clamp(2.85rem, 8vw, 3.4rem); }
  .place-copy > p { margin-top: 15px; }
  .facts { margin-top: 18px; column-gap: clamp(12px, 4.5vw, 24px); }
  .day { --still-image: url("./assets/plans/journee-portrait.webp"); }
  .has-scene .day { min-height: 225svh; }
  .day-frame { padding-block: 38px; }
  .day-copy h2 { max-width: 9ch; font-size: clamp(3rem, 8vw, 3.4rem); }
  html:not(.scene-visible) .day .veil {
    background: linear-gradient(180deg, #e5eaf0ed, #e5eaf0dc 370px, #e5eaf080 460px, transparent 520px);
  }
  .has-scene .hours li { left: 50%; }
  .has-scene .hours { height: 113px; }
  .hours { margin-top: 16px; }
  .night { --still-image: url("./assets/plans/nuit-portrait.webp"); align-items: start; padding-block: clamp(50px, 8.5svh, 85px) 115px; }
  .scene-visible .night .veil { opacity: 1; background: linear-gradient(180deg, #111c2dd9, #111c2d8c 24%, transparent 57%); }
  .night footer { bottom: 12px; }
  .night footer small { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-visible:not(.scene-seen) :is(.still, .arrival .veil, .day .veil) { transition: none; }
  .primary { transition: none; }
  .primary:active { transform: none; }
}
