/* The cover hands its last frame to the journal on pale paper. */
.home-passage {
  --stock:#f5f7f3; --wash:#e3eee8; --mid-ink:#365b5e;
  position:relative; background:var(--stock);
}
.home-passage .story-reel { position:relative; background:var(--stock); }
.home-passage .reel-sheet { padding-top:clamp(2.25rem,6vmin,5rem); }
.home-passage .reel-stage::before { border-color:#476e75; }
.home-folio {
  display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.84fr);
  column-gap:clamp(3rem,7vw,8rem); position:relative; isolation:isolate;
  padding-block:clamp(2rem,5vw,5rem) clamp(2rem,5vw,5rem);
}
.home-folio::before {
  content:''; pointer-events:none; z-index:-1; position:absolute; inset:-4rem 0 0;
  background:radial-gradient(ellipse at 26% 36%,#d5e4dd75,transparent 49%),
             radial-gradient(ellipse at 58% 75%,#dfebe757,transparent 47%);
}
.folio-easel { position:sticky; align-self:start; top:clamp(1.8rem,8svh,7rem); min-width:0; }
.folio-contact-sheet { display:grid; position:relative; isolation:isolate; }
.folio-frame { grid-area:1/1; min-width:0; visibility:hidden; pointer-events:none; opacity:0; }
.folio-frame[data-on-paper] { visibility:visible; opacity:1; pointer-events:auto; z-index:2; }
.folio-negative {
  position:relative; display:block; overflow:hidden; background:#c6d6ce;
  height:clamp(19rem,65svh,49rem); color:var(--ink);
}
.folio-negative img,.folio-negative picture,.folio-negative .image-type { display:block; width:100%; height:100%; object-fit:cover; }
.folio-negative .image-type { display:grid; place-items:center; font:italic 400 clamp(2.5rem,7vw,8rem)/1 var(--italic); }
.folio-frame figcaption {
  display:flex; justify-content:space-between; align-items:baseline; gap:.3rem .8rem; flex-wrap:wrap;
  padding:.55rem 0; color:var(--mid-ink); font:400 .77rem/1.45 var(--sans); text-wrap:pretty;
}
.folio-frame figcaption>span:first-child { font:italic 400 clamp(.97rem,1.22vw,1.25rem)/1.2 var(--italic); }
.folio-frame:not([data-on-paper]) figcaption { visibility:hidden; }
.folio-leaves { min-width:0; }
.folio-leaves section { position:relative; padding-block:clamp(1.9rem,6.3svh,5.7rem); }
.folio-feature { min-height:min(78svh,50rem); }
.folio-destinations { min-height:min(85svh,56rem); }
.folio-label { font:600 .78rem/1.6 var(--sans); text-transform:uppercase; letter-spacing:.1em; color:var(--ocean); }
.folio-leaves h2,.empty-passage h2 {
  max-width:15ch; margin:.75rem 0 1.15rem; font:400 clamp(3rem,5.55vw,6.1rem)/.99 var(--serif);
  letter-spacing:-.055em; text-wrap:balance;
}
.folio-leaves .folio-feature h2 { font-size:clamp(2.6rem,3.75vw,4.65rem); }
.folio-leaves h2 a { text-decoration:none; }
.folio-leaves h2 a:hover,.folio-leaves h2 a:focus-visible { color:var(--ocean); }
.folio-leaves h2 em,.empty-passage h2 em { color:var(--ocean); font-family:var(--italic); }
.folio-dek { max-width:40ch; margin-bottom:1rem; font:400 clamp(1.03rem,1.27vw,1.23rem)/1.58 var(--sans); text-wrap:pretty; }
.folio-link { display:inline-flex; align-items:center; min-height:44px; position:relative; font-size:.92rem; font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.35em; }
.folio-link:hover { color:var(--ocean); }
.folio-inset { margin:clamp(.8rem,3vh,2.6rem) 0 0 auto; width:min(47%,12rem); transform:rotate(4deg); }
.folio-inset img { display:block; width:100%; height:auto; aspect-ratio:1.55; object-fit:cover; }
.folio-inset figcaption { margin-top:.3rem; font:italic 400 .85rem/1.3 var(--italic); color:var(--mid-ink); }
.folio-index {
  margin:1rem 0 .7rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:1rem;
}
.folio-region {
  position:relative; display:flex; flex-direction:column; justify-content:center; min-height:56px; padding:.38rem .1rem .58rem 0;
  text-decoration:none; color:var(--ink);
}
.folio-region span { font:400 clamp(1.3rem,1.75vw,1.95rem)/1.12 var(--serif); }
.folio-region small { margin-top:.18rem; font:400 .8rem/1.4 var(--sans); color:var(--muted); }
.folio-region:hover span,.folio-region:focus-visible span,.folio-region[data-viewing] span {color:var(--ocean); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.21em;}
.folio-letter .mm-compact { background:transparent; padding:0; margin:1rem 0 .3rem; border:0; color:var(--ink); }
.folio-letter .mm-compact input[type=email] { background:#ffffff80; }
.folio-partner { margin-top:clamp(2rem,6vh,5rem); display:flex; flex-direction:column; align-items:flex-start; }
.folio-partner>span { color:var(--muted); font-size:.84rem; }
.empty-passage { padding-block:3rem; }
.empty-passage .folio-letter { max-width:33rem; margin-top:2rem; }
@media (prefers-reduced-motion:no-preference) {
  .folio-easel { --reframe:0; }
  .folio-negative img { transform:scale(calc(1.07 + var(--reframe) * .035)) translateY(calc(-1.5% * var(--reframe))); }
  .folio-frame[data-replaced] { visibility:visible; opacity:1; z-index:1; }
  .folio-easel[data-moving] .folio-frame[data-on-paper] { animation:folio-develop .34s ease-out both; }
  @keyframes folio-develop { from{opacity:0} to{opacity:1} }

}
@media(min-width:1500px) {
  .home-folio { grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr); }
}
@media(max-width:850px) {
  .home-folio { grid-template-columns:1fr; gap:0; padding-top:1.4rem; }
  .folio-easel { position:relative; top:auto; }
  .folio-negative { height:clamp(13rem,46vw,25rem); }
  .folio-leaves section { padding:clamp(1.65rem,4.3vw,2.8rem) 0; min-height:0; }
  .folio-leaves h2 { font-size:clamp(3.05rem,8.7vw,5.6rem); }
  .folio-leaves .folio-feature h2 { font-size:clamp(2.15rem,6.2vw,4rem); max-width:19ch; }
  .folio-index { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .folio-region span { font-size:1.33rem; }
  .folio-inset { position:absolute; right:2%; bottom:1.4rem; width:19%; }
  .folio-feature:has(.folio-inset) { padding-right:23%; }
  .folio-negative img { object-position:center 48%; }
  .home-folio.is-mounted .folio-easel { position:sticky; z-index:3; top:0; margin-inline:calc(-1 * var(--gutter)); pointer-events:none; }
  .home-folio.is-mounted .folio-contact-sheet { position:relative; }
  .home-folio.is-mounted .folio-negative {
    height:clamp(11rem,41vw,21rem);
    clip-path:inset(0 0 var(--fold-foot,0%) 0);
  }
  .home-folio.is-mounted .folio-frame figcaption { display:none; }
  .home-folio.is-mounted .folio-frame[data-on-paper] { pointer-events:none; }
  .home-folio.is-mounted .folio-frame .folio-negative { pointer-events:none; }
  .home-folio.is-mounted .folio-leaves { position:relative; z-index:1; }
  .home-folio.is-mounted .folio-leaves section { scroll-margin-top:clamp(5rem,16vw,8rem); }
  .home-folio.is-mounted .folio-region { scroll-margin:clamp(6rem,18vw,9rem) 0 1rem; }
}
@media(max-width:650px) {
  .folio-index { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .folio-feature:has(.folio-inset) { padding-right:0; }
  .folio-inset { position:static; width:35%; margin:.2rem 0 0 auto; }
  .home-folio { padding-bottom:2rem; }
}
@media(max-height:540px) and (max-width:850px) {
  .home-folio.is-mounted .folio-easel { position:relative; }
  .home-folio.is-mounted .folio-negative { clip-path:none; }
}
@media print {
  .home-folio,.folio-easel,.home-folio.is-mounted .folio-easel { display:block; position:static; }
  .folio-frame:not([data-on-paper]),.folio-inset,.folio-letter form { display:none; }
  .folio-leaves section { min-height:0; }
}
@media(max-width:850px) {
  .home-folio.is-mounted .folio-frame[data-on-paper] .folio-negative { pointer-events:auto; }
  .home-folio.is-mounted .folio-frame[data-on-paper] figcaption {
    position:absolute; display:block; top:.45rem; right:.5rem; max-width:75%; padding:.25rem .42rem;
    color:#f5f7f3; background:#0c2429df; font-size:.7rem; line-height:1.36; pointer-events:auto;
  }
  .home-folio.is-mounted .folio-frame figcaption>span:first-child { display:none; }
  .home-folio.is-mounted .folio-frame figcaption:not(:has(>span:nth-child(2))) { display:none; }
  .home-folio.is-mounted .folio-frame .folio-negative:focus-visible { outline-offset:-4px; }
}
.folio-postmark{width:fit-content;max-width:100%;margin:1.3rem 0;padding:.65rem 1rem .75rem 0;border-block:1px solid #89a7a0}
.folio-postmark span{display:block;color:#376168;font:600 .79rem/1.45 var(--sans)}
.folio-postmark b{display:block;font:400 clamp(1.3rem,2.05vw,2.05rem)/1.25 var(--serif);letter-spacing:-.035em}
.folio-postmark i{font-family:var(--italic);font-weight:400;color:#27636b}
.folio-letter .mm-capture .mm-button{justify-self:start}
@media(max-width:850px) {
  .folio-index { grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); }
  .folio-region { min-width:0; overflow-wrap:anywhere; }
}

/* The reel is a wall of mounted prints. The reading pages return to warm stock. */
@media screen {
  .home-passage { --stock:#f8f5ec; --mid-ink:#344f59; }
  .home-passage .story-reel {
    --ink:#fff9e9; --ocean:#ffe294; --muted:#d7e3f4;
    color:var(--ink); background:#193b78;
  }
  .home-passage .reel-sheet {
    background:linear-gradient(118deg,#244d8e 0%,#183971 62%,#163666 100%);
  }
  .home-passage .reel-stage::before { border-color:#f0c87688; }
  .home-passage .reel-negative {
    border:clamp(3px,.45vw,6px) solid #fff8e5;
    background:#fff8e5; box-shadow:0 .38rem .85rem #071a343b;
  }
  .home-passage .reel-caption { padding-inline:.12rem; }
  .home-passage .reel-caption h3 { color:var(--ink); }
  .home-passage .reel-caption p { color:#ffe294; }
  .home-passage .reel-all { color:var(--ink); text-decoration-color:#ffdb8f; }
  .home-passage .reel-controls { border-top:1px solid #d1dcf04d; padding-top:.5rem; }
  .home-passage .story-reel :focus-visible { outline-color:#ffdf8c; }
  .home-folio::before { background:none; }
  .folio-feature { --folio-accent:#ab391f; }
  .folio-destinations { --folio-accent:#205482; }
  .folio-letter { --folio-accent:#25634b; }
  .folio-label { display:flex; align-items:center; gap:.55rem; color:var(--folio-accent); }
  .folio-label::before { content:""; height:3px; width:1.7rem; background:currentColor; }
  .folio-leaves h2 em { color:var(--folio-accent); }
  .folio-inset { padding:.34rem .34rem .42rem; background:#fffdf5; box-shadow:0 3px 13px #45391b2b; }
  .folio-link { text-decoration-color:var(--folio-accent); }
  .folio-region { border-top:1px solid #b8c1b7; }
}
@media screen and (min-width:851px) {
  .folio-negative {
    border:clamp(.35rem,.6vw,.68rem) solid #fffdf5;
    box-shadow:0 .5rem 1.25rem #412c191c,0 1px 2px #30322040;
  }
}
