@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces-variable-normal.woff2');
}
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-regular.ttf');
}
* {
  box-sizing: border-box;
}
html {
  background: #162526;
  color: #f7f2e6;
}
body {
  margin: 0;
  font:
    16px/1.5 Inter,
    Arial,
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
summary {
  font-family: Fraunces, Georgia, serif;
  font-weight: 440;
}
p,
figure {
  margin: 0;
}
.cover {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 98svh;
  padding: 2rem 6vw 2.7rem;
}
.cover > img,
.cover:after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
}
.cover:after {
  content: '';
  z-index: -1;
  background: linear-gradient(180deg, #13202178, transparent 35%, #101815c9 78%, #101815e8);
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #fbf1df88;
  padding-bottom: 0.8rem;
  font:
    600 1.4rem Fraunces,
    Georgia,
    serif;
}
.mast span,
.begin,
.place,
footer nav a {
  font:
    600 0.73rem/1.45 Inter,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cover-type {
  margin-top: auto;
  max-width: 54rem;
}
.cover h1 {
  font-size: clamp(3.8rem, 7.4vw, 8rem);
  line-height: 0.93;
  letter-spacing: -0.046em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.cover-type > p {
  font-size: clamp(1rem, 1.55vw, 1.45rem);
}
.begin {
  width: fit-content;
  margin-top: 2rem;
  text-decoration: none;
}
.begin span {
  font-size: 1.2rem;
  margin-left: 1rem;
}
.unfold {
  --unfold-beat: 185svh;
  --unfold-ink: #17292a;
  --unfold-display: Fraunces, Georgia, serif;
}
.unfold-view {
  background: radial-gradient(ellipse at 42% 48%, #63706a 0, #374947 45%, #182b2c 100%);
}
.unfold-view:before {
  content: '';
  position: absolute;
  inset: 1.2rem;
  border: 1px solid #feefdc28;
  pointer-events: none;
}
.unfold-scrim {
  background: none;
}
.unfold-progress i {
  background: #bdcdc3;
}
.unfold-print img {
  border-radius: 1px;
}
.unfold-print {
  right: auto;
  bottom: auto;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.unfold-print::after { display: none; }
.unfold-print .unfold-lead { height: auto; aspect-ratio: 3 / 2; }
.unfold-print figcaption {
  position: static;
  margin-top: 8px;
  max-width: none;
}
.unfold-tile { border-radius: 2px; }
.unfold-words {
  border-radius: 2px;
  background: #10212052;
  box-shadow: none;
}
.place {
  color: #e0ddc9;
  font-size: 0.69rem;
}
.place span {
  opacity: 0.45;
}
.copy h2 {
  font-size: clamp(2.15rem, 3.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0.65rem 0 1rem;
  text-wrap: balance;
}
.copy .line {
  font:
    400 clamp(1.05rem, 1.5vw, 1.28rem) / 1.5 Fraunces,
    Georgia,
    serif;
}
.unfold-print figcaption,
figcaption {
  font:
    0.72rem/1.4 Inter,
    sans-serif;
  letter-spacing: 0.01em;
  color: #d5dacc;
}
.plain-scene {
  max-width: 66rem;
  margin: auto;
  padding: 4rem 4vw;
  border-bottom: 1px solid #fcf7e633;
}
.photographs {
  display: flex;
  gap: 0.75rem;
}
.photographs figure {
  flex: 1;
  min-width: 0;
}
.photographs img {
  width: 100%;
  height: auto;
}
.plain-scene .copy {
  max-width: 36rem;
  margin: 2rem 0;
}
.plain-scene h2 {
  font-size: 3rem;
}
footer {
  background: #efecdf;
  color: #24312b;
  padding: 5rem 7vw;
  display: grid;
  gap: 2rem;
}
footer .place {
  color: #5e675b;
}
summary {
  cursor: pointer;
}
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #bc8035;
  outline-offset: 4px;
}
.egg summary {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}
.egg p {
  font:
    1.5rem Fraunces,
    serif;
}
.sources {
  border-block-start: 1px solid #56675666;
  padding: 1rem 0;
}
.sources li {
  margin: 1rem 0;
}
.sources a {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.tower-invite { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.tower-view { position: relative; isolation: isolate; overflow: hidden; background: #27312d; }
.tower-view img { display: block; width: 100%; height: auto; }
.tower-view .tower-today { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut,52%)); }
.tower-edge { position: absolute; inset: 0 auto 0 var(--cut,52%); border-left: 2px solid #ffedbc; pointer-events: none; }
.tower-edge::after { content: '↔'; position: absolute; top: 55%; left: -1px; transform: translate(-50%,-50%); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #ffedbc; color: #213328; box-shadow: 0 2px 12px #151a1680; }
.tower-dates { position: absolute; inset: auto .6rem .6rem; display: flex; justify-content: space-between; pointer-events: none; }
.tower-dates span { padding: .2rem .45rem; font: 650 .73rem/1.35 Inter,sans-serif; color: #fff7e9; background: #142019e6; }
.tower-dates span:last-child { margin-left: auto; }
.tower-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.tower-view:focus-within { outline: 3px solid #9b6426; outline-offset: 3px; }
.tower-view [hidden] { display: none; }
.tower-invite figcaption { margin-top: .45rem; color: #535d54; }
.tower-invite-copy h2 { margin: .7rem 0; max-width: 13ch; font-size: clamp(2.4rem, 4.4vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.tower-invite-copy > p:not(.place) { max-width: 36ch; font: 1.1rem/1.5 Fraunces,Georgia,serif; }
.tower-walk { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1rem; min-height: 44px; font-weight: 650; text-underline-offset: 5px; }
@media (max-width: 740px), (max-width: 900px) and (max-aspect-ratio: 1/1) { .tower-invite { grid-template-columns: 1fr; gap: 1.2rem; } }
.unfold[aria-label] .unfold-print {
  filter: none;
}
@media (max-width: 899px) {
  .cover {
    padding: 1.35rem 1.4rem 2.25rem;
  }
  .mast {
    font-size: 1.1rem;
  }
  .mast span {
    font-size: 0.57rem;
  }
  .cover > img {
    object-position: 50% center;
  }
  .unfold-view:before {
    inset: 0.65rem;
  }
  .unfold-print {
    top: 10%;
    left: 1.3rem;
    width: calc(100% - 2.6rem);
  }
  .unfold-words {
    bottom: 9%;
    left: 1.35rem;
    right: 1.35rem;
    padding: 1.25rem;
  }
  .photographs {
    display: block;
  }
  .photographs figure + figure {
    margin-top: 0.75rem;
  }
  .copy .line {
    font-size: 1.1rem;
  }
  footer {
    padding: 4rem 1.4rem;
  }
}

.approach { max-width: 64rem; margin: 2rem auto; padding: 0 1.5rem; }
.approach summary { cursor: pointer; font: inherit; }
.approach details > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1.25rem; }
.approach figure { margin: 0; }
.approach img { display: block; width: 100%; height: auto; max-height: 23rem; object-fit: contain; }
.approach figcaption { margin-top: .5rem; font-size: .875rem; }

@media (max-width: 899px) {
  .unfold-tile.is-1, .unfold-tile.is-2 {
    --lead-width: calc(100vw - 2.6rem);
    width: calc(var(--lead-width) * 0.28);
    top: calc(10% + var(--lead-width) * 2 / 3 + .48rem);
    left: auto;
    right: 1.55rem;
    outline-width: 2px;
  }
  .unfold-tile.is-1 { right: calc(1.95rem + var(--lead-width) * 0.28); }
  .unfold-tile.is-1:not(:has(+ .is-2)) {
    right: 1.55rem; width: calc(var(--lead-width) * .46);
    height: calc(var(--lead-width) * .19); object-fit: cover;
  }
  .unfold-print.has-more figcaption {
    width: 40%;
  }
  .unfold-stations {
    top: 49%;
  }
}
@media (min-width: 900px) {
  .unfold-view {
    --lead-width: min(54vw, 93svh);
    --profile-width: min(56vw, 139.5svh);
    --mill-lead: calc((var(--profile-width) - 10px) * 2 / 3);
    --mill-top: calc(54% - var(--mill-lead) / 3 - 12px);
  }
  .unfold-print {
    left: 5vw;
    top: calc(54% - var(--lead-width) / 3 - 12px);
    width: var(--lead-width);
  }
  .unfold-print.has-more { width: var(--mill-lead); top: var(--mill-top); }
  .unfold-tile.is-1, .unfold-tile.is-2 {
    left: calc(5vw + var(--mill-lead) + 10px);
    top: var(--mill-top);
    right: auto;
    width: calc((var(--profile-width) - 10px) / 3);
    height: calc(var(--mill-lead) / 3 - 5px);
    outline: 0;
  }
  .unfold-tile.is-2 { top: calc(var(--mill-top) + var(--mill-lead) / 3 + 5px); }
  .unfold-tile.is-1:not(:has(+ .is-2)) { top: calc(var(--mill-top) + var(--mill-lead) / 6); object-fit: contain; }
  .unfold-words { bottom: 8svh; }
  .unfold-stations {
    left: 64.5%;
    right: 5%;
  }
}
.spoken-date {
  /* Read aloud even when the narrow station rail shows only the current date. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-height: 720px) and (min-width: 900px) {
  .unfold-stations {
    top: 21%;
  }
}
.unfold-station { min-width: 0; flex: 1 1 0; font-size: 0; }
.unfold-station:first-child.is-here { text-align: left; }
.unfold-station:last-child.is-here { text-align: right; }
.unfold-station.is-here { font-size: 11px; white-space: nowrap; }
@media(min-width: 1100px) {
  .unfold-station { font-size: 10px; }
}

/* The Old Town time-lapse, bound as a cream, facing-page foldout. */
.gable { background: #f2ede1; color: #262b24; }
.gable-opening {
  max-width: 80rem; margin: auto; padding: 4rem clamp(1.25rem, 5vw, 6rem);
  display: grid; grid-template-columns: minmax(13rem, .7fr) minmax(0, 1.3fr);
  align-items: center; gap: clamp(1.5rem, 6vw, 7rem);
}
.gable-copy { max-width: 26rem; }
.gable .place { color: #556252; }
.gable h2 { font: 500 clamp(3rem, 6vw, 6.5rem)/.93 Fraunces,Georgia,serif; letter-spacing: -.06em; margin: .4em 0 .3em; text-wrap: balance; }
.gable-look { font: 1.25rem/1.45 Fraunces,Georgia,serif; max-width: 24em; }
.gable-signs { font: 500 1rem/1.4 Fraunces,Georgia,serif; }
.gable-signs dt { margin-top: 1.1rem; color: #556252; font: 600 .72rem/1.6 Inter,sans-serif; }
.gable-signs dd { margin: 0; }
.gable:not(.is-pinned) .gable-signs { display: none; }
.gable-credit { display: inline-block; padding: .6rem 0; font: .75rem/1.5 Inter,sans-serif; text-underline-offset: .22em; }
.gable-stills { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.gable-stills figure { margin: 0; }
.gable-stills img { width: 100%; height: auto; display: block; }
.gable-stills figcaption { color: #354238; margin-top: .5rem; }
.gable-frame, .gable-stills[hidden] { display: none; }
.gable.is-pinned { height: 245svh; }
.is-pinned .gable-opening { position: sticky; top: 0; height: 100svh; box-sizing: border-box; padding-block: 4svh; }
.is-pinned .gable-frame { display: block; min-width: 0; }
.gable .tl-frame { position: relative; width: min(100%, 81svh); aspect-ratio: .92; margin-inline: auto; overflow: hidden; background: #dad5c9; box-shadow: 0 .6rem 2.5rem #33332224; }
.gable .tl-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Register the small window vertically, preserving the width of both painted signs. */
.gable [data-layer="then"] { object-position: center 72%; }
.gable [data-layer="now"] { object-position: center 99%; }
.gable .tl-wiped { clip-path: inset(0 0 0 var(--wipe,100%)); }
.gable .tl-floors, .gable .tl-year, .gable .tl-date { display: none; }
.gable .tl-line { position: absolute; z-index: 21; inset: 0 auto 0 var(--wipe); border-left: 2px solid #fffaf0; pointer-events: none; }
.gable .tl-handle { display: none; position: absolute; top: 29%; left: -23px; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: #fff9ee; color: #262b24; box-shadow: 0 2px 12px #0004; touch-action: none; cursor: ew-resize; pointer-events: auto; }
.gable .can-drag .tl-handle { display: grid; }
.gable .tl-handle[aria-valuenow="0"] { left: 0; }
.gable .tl-handle[aria-valuenow="100"] { left: -46px; }
.gable .tl-handle::before { content: '‹ ›'; font: 1.5rem/1 Georgia,serif; }
.gable .tl-handle:focus-visible { outline: 3px solid #293d45; outline-offset: -5px; }
@media (max-width: 740px) {
  .gable-opening { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1rem; }
  .gable h2 { font-size: clamp(2.3rem, 9vw, 3.6rem); margin: .3rem 0; }
  .gable-look { font-size: 1.05rem; margin: .4rem 0; }
  .gable-signs { display: none; }
  .is-pinned .gable-copy { display: contents; }
  .is-pinned .gable-copy .place, .is-pinned .gable-copy h2, .is-pinned .gable-look { order: -2; margin: 0; }
  .is-pinned .gable-signs { order: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; margin: 0; font-size: .84rem; }
  .is-pinned .gable-signs dt { margin: 0; font-size: .66rem; }
  .is-pinned .gable-credit { order: 2; width: fit-content; }
  .gable-credit { padding: .25rem 0; }
  .gable .tl-frame { width: min(100%, 49svh); }
  .is-pinned .gable-opening { gap: .65rem; }
}
@media (max-width: 460px) {
  .gable-stills { grid-template-columns: 1fr; }
}
