/* A single length of paper holds the cover, the loupe and the story list. */
.paper-journal {
  background:linear-gradient(155deg,#f5f7f3 0,#eef3ee 680px,#f5f7f3 1500px);
}
.journal-opening { padding-block:1rem clamp(1.6rem,4vw,4rem); }
.journal-opening .bread { margin:0; }
.journal-exposure {
  --opening-shift:0;
  display:grid; grid-template-columns:repeat(16,minmax(0,1fr)); align-items:center;
  padding-block:clamp(1.7rem,3.5vw,3.7rem) clamp(.6rem,1.8vw,2rem);
}
.journal-aperture {
  grid-area:1/4/2/17; margin:0; align-self:start;
}
.journal-aperture>a {
  display:block; overflow:hidden; background:#203c41;
  clip-path:polygon(4% 4%,100% 0,97% 93%,0 100%);
}
.journal-aperture img {
  width:100%; height:clamp(21rem,36vw,37rem); object-fit:cover; object-position:center 51%;
  display:block;
}
.journal-aperture figcaption {
  text-align:right; color:var(--ocean); font:italic 1.1rem/1.35 var(--italic);
  padding-right:3.25%; margin-top:-.65rem; position:relative;
}
.journal-aperture figcaption a { text-decoration:underline; text-underline-offset:.24em; }
.journal-inscription { position:relative; grid-area:1/1/2/11; align-self:end; z-index:1; pointer-events:none; }
.journal-inscription h1 {
  font:400 clamp(4.7rem,9vw,9.3rem)/.88 var(--serif); letter-spacing:-.072em;
  margin:0; color:var(--ink); width:fit-content;
  text-shadow:0 1px 1.2rem #f5f7f3;
}
.journal-inscription em {
  display:block; width:fit-content; color:var(--ink);
  font:italic 400 1.05em/.88 var(--italic);
}
.journal-inscription p {
  max-width:32ch; position:relative; font-size:clamp(1rem,1.2vw,1.16rem); line-height:1.5;
  margin:1.05rem 0 .35rem; text-wrap:pretty;
}
.journal-inscription .journal-browse { pointer-events:auto; }
.journal-exposure:has(.journal-aperture) .journal-inscription::before {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:-.8rem -8% -.9rem calc(-1 * var(--gutter));
  background:linear-gradient(90deg,#f4f6f1 0%,#f3f6f0 40%,#f2f5f0db 58%,#f0f4ee00 88%);
}
.paper-journal .journal-contents-title { align-items:baseline; border:0; }
.paper-journal .journal-contents-title::before { display:none; }
.paper-journal .journal-contents-title h2 { font:italic 400 clamp(2.4rem,4.3vw,4.35rem)/1.06 var(--italic); }
.paper-journal .archive-tools { border-top:0; }
.journal-projector[hidden],.journal-story[hidden],.country-locator[hidden] { display:none!important; }
.journal-reel.is-projecting { display:grid; align-items:start; grid-template-columns:minmax(0,1.26fr) minmax(0,.89fr); gap:clamp(1.35rem,5.7vw,6.7rem); }
.journal-projector {
  position:sticky; top:clamp(1.25rem,9svh,6rem); z-index:2; min-width:0; isolation:isolate;
  color:var(--ink); align-self:start;
}
.projection-link { display:block; color:inherit; text-decoration:none; }
.projection-window { position:relative; display:block; width:100%; height:clamp(15rem,60svh,36rem); overflow:clip; background:#d2dfd9; }
.projection-plate { position:absolute; inset:0; overflow:hidden; }
.projection-plate img,.projection-plate .image-type { width:100%;height:100%;display:block;object-fit:cover; }
.projection-legend {
  display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;padding:.72rem .08rem .6rem;
}
.projection-location { font:italic 400 clamp(1.12rem,2vw,1.8rem)/1.2 var(--italic); }
.projection-reading { font:400 .8rem/1.2 var(--mono);font-variant-numeric:tabular-nums;color:var(--muted); }
.is-projecting .journal-gallery { display:block; min-width:0; }
.is-projecting .journal-story { display:flex; align-items:center; min-height:clamp(15rem,49svh,28rem); }
.is-projecting .journal-story:first-child { align-items:flex-start; min-height:clamp(12rem,40svh,25rem); }
.is-projecting .journal-story:last-child { min-height:clamp(16rem,60svh,30rem); }
.is-projecting .journal-story .story-negative { display:none; }
.is-projecting .story-caption { padding:.85rem 0 1.1rem; }
.is-projecting .story-caption h3 {
  font:400 clamp(2.1rem,3.6vw,4.1rem)/1.02 var(--serif); letter-spacing:-.052em; text-wrap:balance;
}
.is-projecting .story-caption .story-location { color:var(--ocean); font-size:.87rem; }
.is-projecting .story-caption .story-dek { max-width:38ch; font-size:1.02rem; text-wrap:pretty; }
.is-projecting .journal-story.is-exposed h3 a { text-decoration:underline; text-decoration-color:#719692; text-decoration-thickness:1px; text-underline-offset:.13em; }
.paper-journal .book-rights { display:block; color:var(--muted); font:400 .78rem/1.4 var(--sans); }
.projection-rights .book-rights { text-align:left; padding:0 .08rem .25rem; }
.journal-story.is-exposed .book-rights { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.journal-story.is-exposed .book-rights:focus-within { position:static; width:auto; height:auto; overflow:visible; clip-path:none; }
.journal-reel.is-projecting:not(:has(.journal-story:not([hidden]))) { display:none; }

/* On the destination desk the coordinates stay in view as the prints pass. */
.destination-book { background:linear-gradient(173deg,#f5f7f3 0,#edf2ed 850px,#f5f7f3 2300px); }
.destination-book .country-pages {
  display:grid; grid-template-columns:minmax(13rem,.67fr) minmax(0,1.35fr);
  align-items:start; gap:clamp(1.5rem,7.6vw,9rem); padding-block:clamp(1.4rem,4vw,4.5rem) 2.5rem;
}
.folio-margin { position:sticky; top:1.75rem; }
.folio-margin h2 { font:400 clamp(2.55rem,4.1vw,4.9rem)/1.01 var(--serif);letter-spacing:-.055em;margin:0; }
.folio-margin h2 em { display:block;font-family:var(--italic);color:var(--ocean); }
.country-locator { margin:clamp(1.25rem,2.7vw,2.8rem) 0 1rem; }
.country-locator .atlas-board { background:transparent; }
.country-locator .atlas-board img { filter:brightness(.55); opacity:.48; }
.country-locator .map-pin { background:#577e81; width:4px; }
.country-locator .map-pin.is-here { background:#264751; box-shadow:0 0 0 4px #c1d8d2,0 0 0 5px #719995; z-index:1; }
.country-locator figcaption { color:var(--muted); font:.77rem/1.35 var(--sans); margin:.45rem 0 0; }
.folio-margin .country-index { justify-content:flex-start; gap:0 1rem; }
.country-index a[aria-current="location"] { text-decoration-thickness:2px; text-decoration-color:var(--ocean); }
.destination-book .country-shelves { display:block; min-width:0; }
.country-shelves .country-entry { position:relative; margin:0 0 clamp(2.5rem,5.7vw,6rem); }
.country-shelves .country-image { margin-inline:0 6%; }
.country-shelves .country-entry:nth-child(even) .country-image { margin-inline:6% 0; }
.country-shelves .country-entry:nth-child(n) .country-image img,
.country-shelves .country-entry:nth-child(n) .country-image .image-type { aspect-ratio:1.9; }
.country-shelves .country-entry h3 {
  position:relative; isolation:isolate; width:fit-content; max-width:100%; overflow-wrap:anywhere; margin:-.32em 0 .15em 5%; padding:0 .16em .02em .045em;
  font:400 clamp(2.75rem,5.3vw,5.8rem)/1.07 var(--serif); letter-spacing:-.034em;
}
.country-shelves .country-entry h3::before { content:""; position:absolute; z-index:-1; inset:0; background:var(--paper); clip-path:polygon(0 0,calc(100% - .12em) 0,100% 100%,0 100%); }
.country-shelves .country-entry:nth-child(even) h3 { margin-left:0; }
.country-shelves .country-entry ul { padding-left:5%; }
.country-shelves .country-entry:nth-child(even) ul { padding-left:0; }
.country-shelves .country-entry li strong { max-width:44ch;font:400 1.04rem/1.4 var(--sans); }
.country-shelves .country-entry:has(.book-rights) h3 { margin-top:.1em; }
.destination-book .book-regions,.destination-book .region-routes { background:transparent; }
.destination-book .book-regions .book-division,.region-book .book-division {border:0;}
.destination-book .book-division::before { display:none; }
.region-book .book-route { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); border:0; align-items:center; gap:clamp(1rem,5vw,5.5rem);padding-block:clamp(1.5rem,4vw,4rem); }
.region-book .book-route:nth-of-type(even) .route-negative { order:2; }
.region-book .route-negative { transform:rotate(-1.6deg); }
.region-book .book-route:nth-of-type(even) .route-negative { transform:rotate(1.8deg); }
.region-book .book-route:has(.book-route-copy:only-child) { display:block; }
@media(prefers-reduced-motion:no-preference) {
  .journal-aperture img { transform:scale(1.055) translateX(calc(var(--opening-shift)*1.8%)); }
  .journal-exposure .journal-inscription h1 { transform:translateY(calc(var(--opening-shift)*-.16em)); }
  .projection-plate.is-new { z-index:1; animation:expose-print .44s cubic-bezier(.2,.72,.25,1) both; }
  .projection-window.is-back { --film-shift:-1.25%; }
  .projection-plate.is-rushing { animation-duration:.2s; }
  @keyframes expose-print {
    from { opacity:0; transform:scale(1.035) translateY(var(--film-shift,1.25%)); }
    to { opacity:1; transform:none; }
  }
  .country-locator .map-pin::after {
    content:"";position:absolute;inset:-4px;border:1px solid #52777a;border-radius:50%;
    opacity:0;transform:scale(.65);transition:transform .26s ease-out,opacity .26s ease-out;
  }
  .country-locator .map-pin.is-here::after { opacity:.75; transform:scale(1); }
}
@media(max-width:760px) {
  .paper-journal .journal-contents { padding-top:0; }
  .destination-book .country-pages {display:block; padding-top:.75rem;}
  .folio-margin {position:static;}
  .folio-margin h2 em {display:inline;}
  .country-locator {max-width:19rem;margin:1.3rem 0 .3rem;}
  .country-locator figcaption { margin-top:.15rem; }
  .folio-margin .country-index { margin-bottom:1.45rem; }
  .country-shelves .country-entry:nth-child(n) .country-image img,.country-shelves .country-entry:nth-child(n) .country-image .image-type {aspect-ratio:1.64;}
  .country-shelves .country-entry li a { padding-block:.56rem; }
  .region-book .book-route { display:block; }
  .region-book .route-negative { width:88%; margin-bottom:1.25rem; }
}
@media(max-height:490px) { .journal-projector,.folio-margin { position:static; } .projection-window { height:10rem; } }
@media print {
  .journal-projector,.country-locator {display:none!important;}
  .journal-reel.is-projecting,.journal-reel.is-projecting .journal-gallery {display:block;}
  .journal-reel.is-projecting .journal-story {min-height:0;display:block;break-inside:avoid;}
  .journal-reel.is-projecting .story-negative {display:block;max-width:10rem;}
}
.country-locator figcaption [data-folio-place] {display:block;color:var(--ocean);font:italic 1.2rem/1.2 var(--italic);}
.country-locator figcaption small {font:.75rem/1.35 var(--sans);}
@media screen and (max-width:760px) and (min-height:491px) {
  .country-pages.has-locator {display:grid;grid-template-columns:minmax(0,1fr);gap:0;}
  .has-locator .folio-margin {display:contents;}
  .has-locator .folio-margin .country-index {order:1;margin:.4rem 0 .8rem;}
  .has-locator .country-locator {order:2;position:sticky;top:0;z-index:3;min-width:0;max-width:none;display:flex;align-items:center;gap:.85rem;margin:0 0 .65rem;padding:.25rem .3rem;background:var(--paper);}
  .has-locator .country-locator .atlas-board {width:6.2rem;}
  .has-locator .country-locator figcaption {display:flex;align-items:baseline;justify-content:space-between;gap:.6rem;flex:1;}
  .has-locator .country-locator figcaption [data-folio-place] {font-size:1.05rem;}
  .has-locator .country-locator .map-pin {width:2px;}
  .has-locator .country-locator .map-pin.is-here {box-shadow:0 0 0 2px #c1d8d2,0 0 0 3px #719995;}
  .has-locator .country-shelves {order:3;}
  .has-locator .country-entry {scroll-margin-top:4.1rem;}
}
.paper-journal.is-searching .journal-aperture,.paper-journal.is-searching .journal-inscription p,.paper-journal.is-searching .journal-browse {display:none;}
.paper-journal.is-searching .journal-exposure {display:block;padding:.7rem 0 0;}
.paper-journal.is-searching .journal-inscription {margin:0;}
.paper-journal.is-searching .journal-inscription h1 {font-size:clamp(2.85rem,5.5vw,5.25rem);}
.paper-journal.is-searching .journal-inscription em {display:inline;}
.paper-journal.is-searching .journal-inscription::before {display:none;}

@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .has-locator .country-locator .atlas-board {
    opacity:calc(1 - var(--index-release,0)*.42);
    transform:translateY(calc(var(--index-release,0)*-3px));
  }
}
.projection-location,.story-caption h3,.folio-margin figcaption { min-width:0;overflow-wrap:anywhere; }
.projection-reading { flex:none; }

/* A guide saved from the index appears on the same shelf as one saved in the story. */
.shelf-tools { column-gap:1.1rem;row-gap:.5rem;align-items:center }
.shelf-tools .search-control { border-block-end:1px solid #77918a }
.shelf-tools .search-control button { color:var(--ink);background:transparent;font-weight:650;padding-inline:.65rem }
.shelf-tools .search-control button:hover { color:var(--ocean);text-decoration:underline }
.shelf-tools .saved-selector { padding:0 .3rem;gap:.5rem }
.journal-reel[hidden],.shelf-tools [hidden],.shelf-empty[hidden],.shelf-empty [hidden],.shelf-pin[hidden] { display:none!important }
.shelf-pin,.shelf-reset { display:inline-flex;align-items:center;gap:.48rem;width:fit-content;min-height:44px;color:var(--ocean);background:none;border:0;padding:0;font:600 .88rem/1.25 var(--sans);cursor:pointer }
.shelf-pin:hover span,.shelf-reset:hover { text-decoration:underline;text-underline-offset:.25em }
.shelf-pin i { width:.68rem;height:.91rem;display:inline-block;background:currentColor;clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%,0 0,1.5px 1.5px,1.5px calc(100% - 2.4px),50% calc(74% - 1.6px),calc(100% - 1.5px) calc(100% - 2.4px),calc(100% - 1.5px) 1.5px,1.5px 1.5px) }
.shelf-pin[aria-pressed="true"] i { clip-path:polygon(0 0,100% 0,100% 100%,50% 75%,0 100%) }
.story-caption .shelf-pin { margin-top:.18rem }
.shelf-empty { position:relative;display:grid;gap:clamp(1.3rem,6vw,6rem);align-items:center;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);padding:clamp(1.6rem,4vw,4rem) clamp(1.15rem,4vw,4.5rem);background:linear-gradient(110deg,#dbe9e0,#eef3ec);color:var(--ink) }
.shelf-letter { min-width:0 }
.shelf-letter h3 { font:400 clamp(2.25rem,4.5vw,4.7rem)/1.01 var(--serif);letter-spacing:-.055em;margin:0;max-width:13ch;text-wrap:balance }
.shelf-letter p { font:400 1.03rem/1.55 var(--sans);max-width:34ch;margin:.8rem 0 .5rem;color:#365958 }
.shelf-reset { color:var(--ink);text-decoration:underline;text-underline-offset:.24em }
.shelf-first { display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1fr);gap:1.05rem;align-items:center;margin:0 }
.shelf-print { display:block;aspect-ratio:.8;background:#c5d8d0 }
.shelf-print img,.shelf-print .image-type{ width:100%;height:100%;object-fit:cover;display:block }
.shelf-first figcaption>span { display:block;color:var(--ocean);font:400 .82rem/1.3 var(--sans);margin:0 0 .4rem }
.shelf-first h4 { margin:0;font:400 clamp(1.48rem,2vw,2.4rem)/1.07 var(--serif);letter-spacing:-.035em }
.shelf-first h4 a { color:var(--ink);text-decoration:none }
.shelf-first h4 a:hover { text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em }
.shelf-empty:is([data-empty-state="saved"],[data-empty-state="search"]) { display:block;background:transparent;border-left:2px solid #91afa5;padding-left:clamp(1rem,2.3vw,2.3rem);padding-block:.65rem }
.shelf-empty:is([data-empty-state="saved"],[data-empty-state="search"]) h3 { font-size:clamp(2rem,3.2vw,3.2rem);max-width:none }
@media(max-width:760px){
  .shelf-tools .search-control{flex:1 1 100%}
  .shelf-tools .region-control{flex:1}
  .shelf-tools .region-control select{width:100%;max-width:22rem;font-size:1rem}
  .shelf-empty { grid-template-columns:1fr;gap:1.15rem }
  .shelf-first { grid-template-columns:minmax(5rem,.57fr) minmax(0,1fr);gap:.9rem;border-top:1px solid #b5cbbf;padding-top:1rem }
  .shelf-print { aspect-ratio:1 }
}
@media print{.shelf-tools,.shelf-pin,.shelf-empty{display:none!important}}

.atlas-board .coordinate-pins { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.coordinate-pins .folio-pin { fill:#b0dad3; stroke:#1b504f; stroke-width:1; }
.coordinate-pins .folio-pin.is-current,.coordinate-pins .folio-pin.is-here { fill:#d7ffd8; stroke:#428f76; stroke-width:3; }
.country-locator .folio-pin { fill:#345454; stroke:#fff; }
@media(max-width:580px) {
  .destination-book .atlas-bar,.has-locator .country-locator figcaption { flex-wrap:wrap; }
  .destination-book .atlas-choose { min-width:0; max-width:100%; }
  .destination-book .atlas-choose select { min-width:0; width:100%; }
  .has-locator .country-locator .atlas-board { width:min(6.2rem,26%); flex-shrink:0; }
  .has-locator .country-locator figcaption { min-width:0; overflow-wrap:anywhere; }
  .book-regions .atlas-caption { min-width:0; overflow-wrap:anywhere; }
}

/* A waterfront dusk photograph and a plum cover cut from the same palette. */
@media screen {
  .paper-journal { background:linear-gradient(160deg,#f7eae0 0,#faf7ed 46rem,#f5f7f3 72rem); }
  .paper-journal:not(.is-searching) .journal-exposure:has(.journal-aperture) .journal-inscription {
    align-self:center; width:fit-content; max-width:100%; padding:clamp(1.25rem,2.8vw,3rem);
    color:#fff7e7; background:#492d47;
  }
  .paper-journal:not(.is-searching) .journal-exposure:has(.journal-aperture) .journal-inscription::before { content:none; }
  .paper-journal:not(.is-searching) .journal-inscription h1 { color:inherit; text-shadow:none; }
  .paper-journal:not(.is-searching) .journal-exposure:has(.journal-aperture) .journal-inscription em { color:#ffd798; }
  .journal-aperture>a { clip-path:none; }
  .journal-aperture figcaption {
    display:flex; justify-content:flex-end; align-items:baseline; flex-wrap:wrap;
    gap:.15rem .8rem; padding:0; margin:.5rem 0 0; color:#5f4252;
  }
  .journal-aperture .book-rights { margin:0; text-align:inherit; color:#53494c; }
  .paper-journal .journal-exposure:has(.journal-aperture) .journal-browse { color:#ffe0a8; }
  .paper-journal .journal-exposure:has(.journal-aperture) .journal-browse:focus-visible { outline-color:#ffe0a8; }
  .paper-journal:not(.is-searching) .journal-contents-title { border-top:2px solid #6a4b57; }
}
@media screen and (min-width:701px) {
  .journal-aperture { grid-column:5/17; }
  .journal-aperture img { object-position:62% center; }
  .paper-journal:not(.is-searching) .journal-inscription { grid-column:1/8; }
  .paper-journal:not(.is-searching) .journal-exposure .journal-inscription h1 { transform:none; font-size:clamp(4rem,6.9vw,8rem); }
}
@media screen and (max-width:760px) {
 .paper-journal { background:var(--paper); }
 .paper-journal:not(.is-searching) .journal-exposure { display:grid; grid-template-columns:minmax(0,1fr); gap:1.25rem; padding-top:1.05rem; }
 .paper-journal:not(.is-searching) .journal-exposure:has(.journal-aperture) .journal-inscription {
   grid-area:auto; margin:0; padding:0; color:var(--ink); background:transparent; width:100%;
 }
 .paper-journal:not(.is-searching) .journal-exposure .journal-inscription h1 {
   font-size:clamp(3.25rem,12vw,5.4rem); line-height:.96; transform:none;
 }
 .paper-journal:not(.is-searching) .journal-exposure:has(.journal-aperture) .journal-inscription em { color:var(--ocean); }
 .paper-journal .journal-inscription p { margin:.8rem 0 .25rem; }
 .paper-journal .journal-exposure:has(.journal-aperture) .journal-browse { color:var(--ocean); }
 .paper-journal .journal-exposure:has(.journal-aperture) .journal-browse:focus-visible { outline-color:var(--ocean); }
 .paper-journal .journal-aperture { grid-area:auto; margin:0; }
 .paper-journal .journal-inscription em { display:inline; }
 .paper-journal .journal-aperture img { height:clamp(13rem,60vw,25rem); }
 .paper-journal .journal-aperture figcaption { justify-content:flex-start; text-align:left; margin-top:.45rem; color:var(--muted); }
 .paper-journal .journal-opening { padding-bottom:1.75rem; }
 .paper-journal:not(.is-searching) .journal-contents-title { border-top:1px solid #a9bbb3; }
 .paper-journal .journal-contents-title { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.24rem .65rem; }
 .journal-contents-title h2 { grid-column:1; font-size:clamp(2.65rem,8.8vw,4rem); }
 .journal-contents-title .filter-result { grid-area:1/2; align-self:end; text-align:right; padding-bottom:.25rem; }
 .journal-contents-title .planner-shortcut { grid-column:1/-1; margin:0; min-height:44px; width:fit-content; display:inline-flex; align-items:center; }
 .paper-journal .shelf-tools { margin-block:.4rem 1.5rem; }
 .paper-journal .journal-projector { display:none; }
 .paper-journal .journal-gallery { grid-template-columns:minmax(0,1fr); gap:1.55rem; }
 .paper-journal .journal-story { border-bottom:1px solid #bdcbc4; padding-bottom:1.25rem; }
 .paper-journal .journal-story .story-negative { display:block; aspect-ratio:1.37; }
 .paper-journal .story-negative img { width:100%; height:100%; object-fit:cover; transition:none; }
 .paper-journal .story-caption { padding-top:.92rem; }
 .paper-journal .story-caption h3 { font-size:clamp(1.85rem,7.4vw,3.1rem); line-height:1.06; text-wrap:balance; }
 .paper-journal .story-location { margin-bottom:.34rem; }
 .paper-journal .story-dek { margin-top:.58rem; max-width:43ch; line-height:1.5; }
 .paper-journal .story-caption .book-rights { margin-top:.2rem; }
 .travel-in-motion .paper-journal .story-negative { clip-path:none; }
}

@media screen and (max-width:760px) and (prefers-reduced-motion:no-preference) {
 .paper-journal .journal-aperture img {
   transform:scale(calc(1.04 + var(--opening-shift) * .045)) translateY(calc(var(--opening-shift) * -2%));
 }
}
