/* Letterpress on snow. The same ink and numeral shapes carry through the invitation. */
@font-face{font-family:Instrument;src:url('assets/passage/InstrumentSerif-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Instrument;src:url('assets/passage/InstrumentSerif-Italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
:root{--ink:#1c3c5a;--muted:var(--ink);--orange:#d16b00;--orange-small:var(--orange);--paper:#fff;--letter:Instrument,Georgia,serif}
.paper-surface{inset:-768px 0;opacity:.58;filter:grayscale(1) brightness(1.025);background-image:url('assets/slalom-20261110/powder-snow.webp');background-size:1152px 768px;mix-blend-mode:multiply;will-change:transform}
.camera-on #felix{width:clamp(100px,11vw,154px);filter:none}
.camera-on .chapter{will-change:transform,opacity}
.camera-on .encounter-portal{z-index:4}
.camera-on :is(.encounter-beer,.encounter-disco-lift,.encounter-fondue){z-index:3}
.paper-night{position:absolute;inset:0;overflow:hidden;z-index:3;background:#071b37 url(assets/celestial/nocturne-wash.webp?v=nov16-night) 48% 61%/cover no-repeat}
.night-glint {
  position:absolute; aspect-ratio:1; pointer-events:none;
  background:radial-gradient(circle,#fffef5 0%,#fff3c9 14%,#ffecb5a6 32%,#fff0bd00 70%);
  clip-path:polygon(50% 0,57% 42%,100% 50%,57% 58%,50% 100%,43% 58%,0 50%,43% 42%);
}
.snow-crystals { position:absolute; inset:0; pointer-events:none; }
.snow-crystals i {
  position:absolute; aspect-ratio:1; opacity:0;
  background:radial-gradient(ellipse,#fff 8%,#fffaf1 26%,#b8afa2 56%,transparent 72%);
  clip-path:polygon(50% 0,61% 38%,100% 50%,60% 59%,47% 100%,40% 60%,0 51%,40% 42%);
  animation: snow-reflection 31s ease-in-out infinite;
}
@keyframes snow-reflection {
  0%,4%,100% {opacity:0;transform:scale(.5) rotate(12deg)}
  1.7% {opacity:.72;transform:scale(1) rotate(24deg)}
}
.paper-world:not([data-environment="paper"]) .snow-crystals,
body:not(.camera-on) .snow-crystals { visibility:hidden; }
@media(prefers-reduced-motion:reduce) { .snow-crystals i {animation:none} }
.paper-clock-night {background:radial-gradient(ellipse at 45% 55%,#aeacb0,#494956 85%);}
.world-light {
  --light-center: 57%;
  --light-size: min(78vw, 90vh);
  background: transparent;
}
.world-light .portal-rings {
  position: absolute;
  inset: auto;
  left: var(--light-center);
  top: 49%;
  translate: -50% -50%;
  width: var(--light-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    #ff9c27 0%, #ff9827 24%, #ff8a32 42%, #ff694f 56%,
    #ff407c 68%, #f624a4 79%, #fa39b0 85%, #fa53bad9 90%,
    #fc8cd075 95%, #fce5f100 100%);
}
.lift-peaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lift-peaks::before, .lift-peaks::after {
  content: '';
  position: absolute;
  width: min(55vw, 790px);
  height: 30%;
  background: url(assets/carve/ridge-west.webp) center bottom / contain no-repeat;
  opacity: .26;
  filter: saturate(.52);
}
.lift-peaks::before { left: -5%; bottom: 19%; }
.lift-peaks::after {
  right: -3%;
  bottom: 33%;
  width: min(42vw, 640px);
  background-image: url(assets/carve/ridge-east.webp);
  opacity: .19;
}
.beer-cap, .beer-lager { position: absolute; inset: 0 0 auto; overflow: hidden; }
.beer-lager { bottom: 0; }
.beer-cap .scene-art, .beer-lager .scene-art { width: 100%; max-width: none; height: auto; }
.beer-lager .scene-art { top: auto; bottom: 0; object-fit: fill; }

.fondue-pull {position:absolute;inset:0;z-index:3;width:100%;height:100%;pointer-events:none}
.fondue-pigment {display:none}
.fondue-vessel {z-index:2}
.cocktail-ribbon{z-index:1;pointer-events:none}
.cocktail-ribbon path{stroke:none}
.cocktail-ribbon .pour-base{fill:url(#champagne-pigment) #eabe74}.cocktail-ribbon .pour-tide{fill:#b77232;opacity:.21}.cocktail-ribbon .pour-wash{fill:#ffe6ac;opacity:.19}.cocktail-ribbon .pour-light{fill:#fff2cb;opacity:.52}.cocktail-ribbon .pour-glint{fill:#d49c4d;opacity:.43}
.encounter .pouring-silver{z-index:2;filter:none}
.encounter .fashion-skier{z-index:3;filter:none;transform-origin:center}
.encounter .martini-back { z-index: 0; }
.encounter .martini-waterline {
  z-index: 4;
  clip-path: polygon(0 27%, 52% 27%, 58% 26%, 63% 22%, 69% 21%, 74% 22%, 75% 26%, 100% 27%, 100% 100%, 0 100%);
}
.finale .final-matterhorn.peak,
.camera-on .finale .final-matterhorn.peak {
  position: relative;
  inset: auto;
  width: min(90vw, 1050px);
  height: min(45svh, 480px);
  flex: none;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 10%;
  margin: 0 0 10px;
}
/* The image gets the space left above the countdown. It can shrink independently
   of the date and footer when a wide window has little vertical room. */
body #countdown {
  isolation: auto;
  mix-blend-mode: multiply;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  justify-content: stretch;
  justify-items: center;
  align-items: center;
  height: var(--screen-height, 100svh);
  min-height: 0;
  padding: clamp(28px, 5svh, 60px) 5% clamp(20px, 4svh, 50px);
}
body #countdown .final-matterhorn.peak {
  z-index: 2;
  mix-blend-mode: multiply;
  align-self: end;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: min(50svh, 540px);
  min-height: 0;
  margin: 0;
  transform-origin: center bottom;
}
body #countdown .final-copy { margin: 0; }
/* Separate paint on separate planes. The feathered alpha edges belong to the
   artwork; only their positions and opacity change as the mountain recedes. */
body #countdown .final-wash {
  position: absolute;
  pointer-events: none;
  height: auto;
  max-width: none;
  mix-blend-mode: multiply;
  transform-origin: center;
}
body #countdown .final-sky { z-index: 1; width: min(58vw, 880px); top: 16%; opacity: .75; }
body #countdown .final-ridge { z-index: 3; width: min(37vw, 530px); top: 26%; opacity: .85; }
body #countdown .final-left { left: 0; }
body #countdown .final-right { right: 0; }
body #countdown :is(.final-copy, footer, .organizer-logo) { position: relative; z-index: 4; }
body #countdown.final-composed .final-wash { top: 0; left: 0; right: auto; opacity: 0; }
@media (max-width: 700px) {
  body #countdown .final-matterhorn.peak { max-width: 76vw; }
  body #countdown .final-sky { width: 80vw; top: 32%; }
  body #countdown .final-ridge { width: 54vw; top: 45%; }
  .camera-on #countdown .final-wash { top: 0; }
}
@media (max-height: 640px) {
  body #countdown { padding-block: 22px 12px; }
  body #countdown .destination { font-size: min(11vw, 12svh); }
  body #countdown .countdown-to { font-size: min(5.5vw, 5.5svh); }
  body #countdown .numbers b { font-size: min(9vw, 8svh); }
  body #countdown .final-copy > p:last-child { margin-block: 10px; }
  body #countdown footer, body #countdown .organizer-logo { padding-block: 3px; }
  body #countdown footer { flex-direction: row; }
}
.camera-on .hero-copy{max-width:82%}
.hero-copy .eyebrow{font:500 10px/1.3 Arial,sans-serif;letter-spacing:.20em;border:0;padding:0}
.hero-copy h1,.camera-on .hero-copy h1{display:flex;align-items:baseline;gap:.10em;font:400 clamp(105px,12.6vw,198px)/.94 var(--letter);letter-spacing:.003em;margin:24px 0 30px;text-transform:none}
.hero-name{display:inline;font:italic 400 .83em/1 var(--letter);letter-spacing:.001em}
.hero-age{display:inline-flex;align-items:baseline;margin:0}
.hero-copy h1 .hero-age em{font:400 1em/1 var(--letter)!important;letter-spacing:.002em;color:var(--ink)}
.hero-ordinal{font:italic 400 .22em/1 var(--letter);letter-spacing:0;align-self:flex-start;margin:.58em 0 0 .12em;transform:none;color:var(--orange)}
.hero-ordinal .type-dot{display:none}
.hero-copy>p{font-size:14px;line-height:1.65;letter-spacing:.02em}
.hero-copy .text-button{font-size:10px;letter-spacing:.13em}
.chapter .eyebrow{font:500 10px/1.4 Arial,sans-serif;letter-spacing:.17em;color:var(--muted)}
.chapter .eyebrow::before{content:none}
#journey .chapter .chapter-title,.camera-on :is(#welcome,#zermatt,#stay,#transfers,#dress-code,#packing,#mountain-info,#rsvp,#schedule) .chapter-title{font:400 clamp(65px,7.1vw,108px)/.98 var(--letter);letter-spacing:.008em;margin:0 0 .32em;text-transform:none}
.chapter .chapter-title .type-solid{font:inherit;letter-spacing:inherit}
.chapter .chapter-title .type-script{font:italic 400 1em/.98 var(--letter)!important;letter-spacing:.006em;color:var(--ink)!important}
.chapter .chapter-title .type-line { display: block; line-height: .96; }
.chapter .chapter-title .type-indent { margin: .03em 0 0 .24em; line-height: 1!important; }
/* Bring paired title lines closer while keeping the long descenders clear. */
html[data-type="instrument"] .chapter-title .type-line { line-height: .88; }
html[data-type="instrument"] .chapter-title .type-indent { margin-top: -.035em; line-height: .9!important; }
.chapter .eyebrow + .chapter-title { margin-top: .14em; }
.chapter .chapter-title .type-prefix{display:block;font-size:.65em!important;line-height:1!important;margin:0 0 .02em .02em}
html[data-type="instrument"] .chapter-title .type-prefix { line-height: .91!important; margin-bottom: -.02em; }
.chapter-title .type-dot{font-size:.78em;color:var(--orange)}
.camera-on .chapter .brief-copy{font-family:'Helvetica Neue',Arial,sans-serif;line-height:1.66;letter-spacing:.005em}
.chapter .brief-copy>p{max-width:35em}
.camera-on .chapter .welcome-lead,.chapter .village-note .car-free,.chapter .packing-lead,#rsvp .brief-copy>p:first-child{font:400 clamp(23px,2.1vw,32px)/1.23 var(--letter);letter-spacing:.008em}
.chapter .brief-copy h3,.chapter .event h3{font:400 26px/1.12 var(--letter);letter-spacing:.008em}
.chapter .signature{font:italic 400 40px/1 var(--letter)!important}
.scroll-invitation a{font:500 11px/1.6 Arial,sans-serif!important;letter-spacing:.05em;color:var(--ink)!important}
.chapter .packing-lead em{font-family:var(--letter)!important}
#journey-menu .menu-title,.camera-on .final-copy .countdown-to{font-family:var(--letter);font-weight:400}
#journey-menu>nav:not(.scene-nav) a{font:400 clamp(21px,1.9vw,29px)/1.19 var(--letter);letter-spacing:.016em}
.camera-on .numbers b,.camera-on .finale h2.destination{font-family:var(--letter);font-weight:400}
@media(min-width:701px) and (max-height:760px){.camera-on :is(#welcome,#zermatt,#stay,#transfers,#dress-code,#packing,#mountain-info,#rsvp,#schedule) .chapter-title{font-size:clamp(60px,6.3vw,94px);margin:0 0 .30em}}
@media(max-width:700px){
 .camera-on #felix{width:64px}
 .camera-on .hero-copy{max-width:95%}.camera-on .hero-copy h1{font-size:24vw;margin:21px 0 27px}
 .camera-on :is(#welcome,#zermatt,#stay,#transfers,#dress-code,#packing,#mountain-info,#rsvp,#schedule) .chapter-title{font-size:clamp(48px,13.6vw,79px);margin:0 0 .36em}
 .chapter .chapter-title .type-prefix{font-size:.72em!important}
 .chapter .brief-copy h3{font-size:23px}.chapter .eyebrow{font-size:9px}
 .world-light { --light-center: 51%; --light-size: min(88vw, 90vh); }
 .paper-night { background-position: 33% 55%; }
 .finale .final-matterhorn.peak,
 .camera-on .finale .final-matterhorn.peak { width:90vw; height:min(41svh,67.5vw); }
}
@media(prefers-reduced-motion:reduce){.paper-surface,.camera-on .chapter{will-change:auto}}

.scene-static.encounter-portal{background:#071b37 url(assets/celestial/nocturne-wash.webp?v=nov16-night) center/cover}

.chapter :is(.eyebrow,.brief-copy h3,.signature){letter-spacing:.018em}
.chapter :is(.guest-code,.village-note,.scroll-invitation,.brief-link,details),.scroll-invitation a,.hero-copy .follow-felix,.journey-hud{border:0}
.chapter .guest-code,.chapter .village-note{padding-left:0!important}
.chapter .brief-link,.chapter .detail-body a,.chapter .brief-copy a:not(.scroll-invitation a){color:var(--orange-small)}
.chapter .brief-link:hover,.scroll-invitation a:hover,.follow-felix:hover{text-decoration:underline;text-underline-offset:.2em}
.chapter details[open]>summary{color:var(--orange-small)}
.chapter .chapter-title .type-dot{color:var(--orange)}
.chapter .chapter-title .type-script.type-indent{color:var(--orange)!important}
.chapter-title .type-prefix{color:var(--muted)}
.hero-copy,.hero-copy h1,.final-copy .destination,.journey-hud{color:var(--ink)}
body:is(.portal-dark,.is-night) header > :is(span,button) {
  color: var(--ink);
  background: rgb(255 255 255 / 94%);
  padding: 6px 10px;
  border-radius: 2px;
}
.fixed-rsvp, body.is-night .fixed-rsvp {
  color: var(--ink);
  background: white;
  border: 1px solid var(--ink);
}
body.is-night .journey-hud {color:var(--ink);background:rgb(255 255 255 / 94%);}
body.is-night .journey-position {color:var(--ink);}
body.is-night .journey-next {color:var(--orange);background:white;}
.fixed-rsvp:hover, body.is-night .fixed-rsvp:hover { background: #f1f6fa; }
.journey-position, #countdown .final-copy .destination { color: var(--ink); }
.journey-next { color: var(--orange); border: 0; }
a:focus-visible,button:focus-visible,summary:focus-visible{outline-color:var(--orange-small)}
#journey-menu .menu-masthead,#journey-menu>nav:not(.scene-nav) a,#journey-menu .motion-toggle{border:0}
#journey-menu .menu-title{font-size:clamp(34px,3.8vw,52px);letter-spacing:.012em}
#journey-menu>nav:not(.scene-nav){max-width:760px;column-gap:7%}
#journey-menu>nav:not(.scene-nav) a{padding:10px 0;min-height:44px}
.clock-sky-art{z-index:1;pointer-events:none}
.melting-clock-canvas{z-index:2}
/* Move related paragraphs together within the skier's open reading lane. */
.chapter .brief-copy {
  --prose-inset: clamp(21px, 3.1vw, 55px);
  text-align: start;
}
.chapter .brief-copy .prose-inset {
  margin-inline-start: var(--prose-inset);
  max-inline-size: 43ch;
}
.prose-inset p, .letter-closing p {
  text-wrap: pretty;
}
/* Each phrase sits on a level baseline. The line starts carry the curve. */
.chapter .brief-copy p.river {
  --bend: min(8.5em, 32%);
  max-inline-size: 31rem;
  text-align: start;
  text-wrap: wrap;
}
.chapter .river-line {
  display: block;
  margin-inline-start: calc(var(--bend) * var(--step, 0));
}
.river-line:nth-child(2) { --step: .35; }
.river-line:nth-child(3) { --step: .78; }
.river-line:nth-child(4) { --step: 1; }
.river-line:nth-child(5) { --step: .86; }
.river-line:nth-child(6) { --step: .50; }
.river-line:nth-child(7) { --step: .17; }
.river-return .river-line:nth-child(1) { --step: .80; }
.river-return .river-line:nth-child(2) { --step: .42; }
.river-return .river-line:nth-child(3) { --step: .09; }
.river-return .river-line:nth-child(4) { --step: 0; }
.river-return .river-line:nth-child(5) { --step: .18; }
#welcome .river {
  line-height: 1.43;
}
#welcome .welcome-lead {
  --bend: min(6.5em, 36%);
  line-height: 1.13;
}
#welcome .brief-copy > .prose-inset {
  margin-inline-start: 0;
}
#welcome .prose-inset > p + p {
  margin-inline-start: var(--prose-inset);
}
@media print {
  .chapter .river .river-line { display: inline; margin: 0; }
}
#welcome .letter-closing {
  margin-inline-start: calc(var(--prose-inset) * .4);
  max-inline-size: 34ch;
}
#zermatt .village-note, #stay .prose-inset {
  margin-block: 1.5em;
}
#mountain-info .detail-body {
  padding-inline-start: calc(var(--prose-inset) * .55);
}
@media (max-width:700px) {
  .chapter .brief-copy { --prose-inset: clamp(8px, 3vw, 16px); }
}
