.corning {
  --paper: #f5f0e4;
  --cream: #fffaf0;
  --ink: #203b34;
  --quiet: #43594e;
  --line: #cac9b8;
  --focus: #963b28;
  --guide-light: #bb603d;
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font: 1rem/1.5 system-ui, sans-serif;
}
.corning *, .corning *::before, .corning *::after { box-sizing: border-box; }
.corning [hidden] { display: none !important; }
.corning a { color: inherit; text-underline-offset: .18em; }
.corning a:hover { text-decoration-thickness: 2px; }
.corning button { font: inherit; color: inherit; cursor: pointer; }
.corning :is(a, button, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.corning-skip { position: absolute; top: .5rem; left: -1000px; z-index: 5; background: var(--cream); padding: .6rem; }
.corning-skip:focus { left: .5rem; }
.corning-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atlas-bar, .atlas-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 4.5rem);
  border-block-end: 1px solid var(--line);
  min-height: 3.6rem;
  font-size: .9rem;
}
.atlas-imprint { text-decoration: none; font-size: 1.02rem; font-weight: 760; }
.atlas-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .7rem 2rem;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 4vw, 4.5rem) clamp(1.45rem, 2.8vw, 2.5rem);
}
.atlas-place { color: var(--quiet); margin: 0 0 .3rem; font-size: .83rem; letter-spacing: .055em; }
.atlas-place span { display: inline-block; width: .55em; height: .55em; background: #c67756; margin-right: .25rem; border-radius: 50%; }
.guide-dot, .atlas-place .guide-dot {
  display: inline-block;
  inline-size: .65rem;
  block-size: .65rem;
  flex: none;
  border-radius: 50%;
  background: var(--guide-light);
  box-shadow: 0 0 0 .18rem #bb603d26;
  transform: none;
}
.atlas-intro h1 { margin: 0; font: 400 clamp(2.8rem, 7.45vw, 7.75rem)/.99 Georgia, serif; letter-spacing: -.07em; }
.atlas-intro h1 em { color: #7e452d; font-weight: 400; }
.atlas-intro > p { margin: 0 0 .22rem; max-width: 32ch; color: var(--quiet); font-size: clamp(1rem, 1.5vw, 1.19rem); }
.atlas { margin-inline: clamp(1rem, 4vw, 4.5rem); }
.atlas-heading { grid-column: 1 / -1; min-width: 0; }
.atlas-heading .atlas-intro { padding-inline: 0; }
.chapter-list { background: #203c33; color: var(--cream); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 1.25rem; padding: .3rem; gap: .18rem; overflow: hidden; }
.chapter-list button {
  position: relative;
  min-width: 0;
  min-height: 4.45rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  text-align: left;
  gap: .6rem;
  padding: .6rem clamp(.55rem, 1.1vw, 1rem);
  border: 0;
  border-radius: .96rem;
  background: none;
  line-height: 1.2;
}
.chapter-list button:hover, .chapter-list button[aria-current] { background: #365447; }
.chapter-list button[aria-current]::after { position: absolute; content: ''; inset: auto .7rem .25rem; height: .18rem; border-radius: 1rem; background: var(--chapter-color); }
.chapter-list button:focus-visible { outline-color: #ffd58a; outline-offset: -4px; }
.chapter-list small { display: block; margin-bottom: .25rem; font-size: .75rem; color: #e0e3cb; }
.chapter-list strong { font-weight: 650; font-size: .9rem; }
.chapter-number, .pin-marker {
  border-radius: 50%;
  background: var(--chapter-color);
  color: #1e3028;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  font-size: .82rem;
  font-weight: 800;
}
.atlas-layout { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(19rem, 1fr); align-items: start; gap: .85rem; }
.map-frame { margin: 0; min-width: 0; background: #dae0c4; border: 1px solid #adb7a0; border-radius: 1.3rem; overflow: hidden; }
.map-toolbar, #map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .32rem .7rem;
  padding: .45rem .65rem;
  background: #dce2c9;
  font-size: .85rem;
}
.map-toolbar { border-bottom: 1px solid #a9b797; }
#map-caption { border-top: 1px solid #a9b797; min-height: 3rem; }
.view-switch { display: flex; flex-wrap: wrap; gap: .22rem; padding: .12rem; border-radius: 99px; background: #b7c3aa; }
.map-toolbar button {
  min-height: 2.38rem;
  padding: .25rem .65rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  background: none;
  font-weight: 650;
}
.view-switch button { border-radius: 999px; }
.map-toolbar button[aria-pressed="true"], .map-toolbar button:hover { background: var(--cream); border-color: #81967e; }
.motion-mark { display: inline-block; width: .60rem; height: .70rem; margin-right: .25rem; border-inline: 2px solid currentColor; vertical-align: -.055em; }
.motion-button[aria-pressed="true"] .motion-mark { border: .37rem solid transparent; border-right: 0; border-left: .57rem solid currentColor; width: auto; height: auto; }
.map-stage { position: relative; isolation: isolate; aspect-ratio: 25/17; background: #b9cc9e; overflow: hidden; }
.scene-world { position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%; }
.town-scene { display: block; width: 100%; height: 100%; }
.map-pins { position: absolute; inset: 0; pointer-events: none; }
.map-pin, .street-pin {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  pointer-events: auto;
}
.map-pin { position: absolute; top: var(--top); left: var(--left); transform: translate(-50%, -50%); }
.street-pin { position: relative; }
.pin-marker { width: 2rem; height: 2rem; border: 2px solid var(--cream); box-shadow: 0 2px 8px #1e30286b; }
:is(.map-pin, .street-pin):is(:hover, :focus-visible, [aria-current], [aria-pressed="true"]) .pin-marker {
  border-color: #1e3028;
  outline: 2px solid var(--cream);
  scale: 1.12;
}
.pin-tip {
  position: absolute;
  inset: auto auto calc(100% + .15rem) 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: max-content;
  max-width: 12rem;
  padding: .24rem .58rem;
  border-radius: .55rem;
  background: #203c33;
  color: var(--cream);
  font-size: .78rem;
  box-shadow: 0 .2rem .5rem #182b2655;
  opacity: 0;
  pointer-events: none;
}
:is(.map-pin, .street-pin):is(:hover, :focus-visible) { z-index: 2; }
:is(.map-pin, .street-pin):is(:hover, :focus-visible) .pin-tip { opacity: 1; }
.street-pins {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: .6rem;
  transform: translateX(-50%);
  display: flex;
  gap: .1rem;
  border: 1px solid #d1c9a5;
  background: #f8f1d9ed;
  border-radius: 99px;
  padding: .1rem .25rem;
}
.chapter-story {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 2rem);
  background: var(--cream);
  border: 1px solid #c5c7ad;
  border-radius: 1.3rem;
  scroll-margin-top: .75rem;
}
.chapter-time { display: flex; align-items: center; gap: .45rem; margin: 0 0 .65rem; font-weight: 720; font-size: .86rem; color: var(--quiet); }
.chapter-time::before { content: ''; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--active-color, #8edbd9); border: 1px solid #516c64; }
.chapter-story h2, .chapter-story h3, .chapter-story p { overflow-wrap: anywhere; }
.chapter-story h2 { margin: 0; max-width: 16ch; letter-spacing: -.045em; font: 400 clamp(1.7rem, 3vw, 3.15rem)/1.02 Georgia, serif; }
.chapter-lede { margin: .85rem 0 1rem; line-height: 1.55; }
.meeting-point { display: flex; flex-direction: column; padding: .55rem .7rem; border-inline-start: .27rem solid var(--active-color); background: #f3eedf; font-size: .9rem; border-radius: .72rem; margin: 0; }
.meeting-point strong { color: var(--quiet); font-size: .83rem; }
.meeting-point span:last-child { color: var(--quiet); font-size: .84rem; }
.branch-note { margin: .75rem 0; color: var(--quiet); font-size: .91rem; }
.stop-heading { margin: 1rem 0 .5rem; font-size: .92rem; }
.stop-choices { display: flex; flex-wrap: wrap; gap: .38rem; }
.stop-choice {
  min-height: 44px;
  padding: .34rem .65rem;
  border: 1px solid #b5bba4;
  border-radius: .85rem;
  background: #f5f1e2;
  text-align: left;
  line-height: 1.2;
}
.stop-choice:hover { background: #e9edda; }
.stop-choice[aria-pressed="true"] { background: var(--active-color); border-color: #718876; font-weight: 680; }
.stop-detail { margin-top: .65rem; background: #f4efdf; padding: .6rem .72rem; border-radius: .75rem; font-size: .92rem; }
.stop-detail p { margin: 0; }
.stop-detail a { display: block; width: fit-content; padding-block: .4rem; font-weight: 630; }
.story-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem; padding-top: 1rem; font-size: .88rem; }
.story-navigation button { border: 1px solid #9ca994; border-radius: .45rem; background: transparent; min-height: 44px; padding: .3rem .55rem; font-weight: 650; }
.story-navigation button:hover:not(:disabled) { background: #e7edda; }
.story-navigation button:disabled { opacity: .57; cursor: default; }
.visit-planner {
  margin: .75rem clamp(1rem, 4vw, 4.5rem) 2rem;
  border: 1px solid #a3ab94;
  border-radius: 1.25rem;
  background: var(--cream);
}
.visit-planner summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  padding: .8rem clamp(1rem, 2vw, 1.65rem);
  border-radius: inherit;
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}
.visit-planner summary::-webkit-details-marker { display: none; }
.visit-planner summary:hover { background: #f4edde; }
.visit-planner[open] summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.visit-planner[open] .guide-dot { box-shadow: 0 0 0 .23rem #bb603d33; }
.visit-planner-content {
  margin-inline: clamp(1rem, 2vw, 1.65rem);
  padding-block: .8rem 1rem;
  border-block-start: 1px solid var(--line);
}
.visit-planner p { max-width: 68ch; margin-block: 0 .6rem; }
.visit-planner ul { margin: 0; padding-left: 1.25rem; }
.visit-planner li { margin-block: .4rem; }
@keyframes guide-light-breathe {
  50% { box-shadow: 0 0 0 .36rem #bb603d12; }
}
@media (prefers-reduced-motion: no-preference) {
  .corning:not(.motion-paused) .visit-planner.is-in-view:not([open]) .guide-dot {
    animation: guide-light-breathe 2s ease-in-out 2;
  }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .corning:not(.motion-paused) .visit-planner { interpolate-size: allow-keywords; }
    .corning:not(.motion-paused) .visit-planner::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size .4s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, content-visibility .4s allow-discrete;
    }
    .corning:not(.motion-paused) .visit-planner[open]::details-content { block-size: auto; opacity: 1; }
  }
}
.no-script { margin-inline: clamp(1rem, 4vw, 4.5rem); }
.atlas-footer { border-block-start: 1px solid var(--line); border-block-end: 0; }
.atlas-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.scene-tint { pointer-events: none; mix-blend-mode: multiply; }
.map-label { paint-order: stroke; stroke: #f0e2bd; stroke-width: 4px; stroke-linejoin: round; fill: #263f34; font: 700 18px system-ui, sans-serif; }
.map-label.water-label { fill: #fdf3d3; stroke: #3e7981; font: italic 25px Georgia, serif; letter-spacing: .13em; }
.map-label.small-label { font-size: 14px; }
.water-sheen { animation: shimmer 6s ease-in-out infinite alternate; }
.bird-flight { animation: fly 36s linear infinite; }
.bike-ride { animation: pedal 26s linear infinite; }
.walk-pair { animation: walk 20s ease-in-out infinite alternate; }
.puppy-tail { transform-box: fill-box; transform-origin: right bottom; animation: wag .65s ease-in-out infinite alternate; }
.lamp-flicker { animation: glow 3.5s ease-in-out infinite alternate; }
.motion-paused :is(.water-sheen, .bird-flight, .bike-ride, .walk-pair, .puppy-tail, .lamp-flicker) { animation-play-state: paused; }
@keyframes shimmer { from { opacity: .32; } to { opacity: .74; } }
@keyframes fly { from { transform: translate(-260px, 8px); } to { transform: translate(780px, -42px); } }
@keyframes pedal { from { transform: translate(-180px, 0); } to { transform: translate(310px, 0); } }
@keyframes walk { from { transform: translate(-85px, 0); } to { transform: translate(95px, 0); } }
@keyframes wag { from { transform: rotate(-12deg); } to { transform: rotate(19deg); } }
@keyframes glow { from { opacity: .48; } to { opacity: .88; } }
@media (prefers-reduced-motion: reduce) {
  .corning:not(.motion-enabled) :is(.water-sheen, .bird-flight, .bike-ride, .walk-pair, .puppy-tail, .lamp-flicker) { animation: none; }
}
@media (max-width: 55rem) {
  .atlas-layout { grid-template-columns: 1fr; }
}
@media (max-width: 41rem) {
  .chapter-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chapter-list button { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; align-items: start; text-align: center; gap: .25rem; padding: .5rem .13rem; min-height: 4.15rem; }
  .chapter-list button strong { display: none; }
  .chapter-list small { font-size: .7rem; margin: 0; }
  .atlas-intro h1 { font-size: clamp(2.6rem, 10vw, 4.6rem); }
  .pin-marker { width: 1.53rem; height: 1.53rem; border-width: 1px; font-size: .75rem; }
  .map-label.small-label { display: none; }
}

.project-details {
  margin: 0 clamp(1rem, 4vw, 4.5rem) 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.project-details h2 { margin-top: 0; font: 400 clamp(1.6rem, 3vw, 2.55rem)/1.1 Georgia, serif; }
.project-details h3 { margin: 1.35rem 0 .4rem; font-size: 1.03rem; }
.project-details h3 + p { margin-top: 0; }
.project-details p { max-width: 58ch; }
.project-details figure { margin: 0; }
.project-map-link { display: block; }
.project-details img { display: block; width: 100%; height: auto; border: 1px solid #adb7a0; }
.project-map-link:hover img { border-color: var(--focus); }
.project-details figcaption { color: var(--quiet); font-size: .85rem; margin-block-start: .35rem; }
@media (max-width: 46rem) { .project-details { grid-template-columns: 1fr; } }

.layout-button { margin-inline-start: auto; }
.map-toolbar .layout-button { background: #26473b; color: var(--cream); border-color: #26473b; }
.map-toolbar .layout-button:hover, .map-toolbar .layout-button[aria-pressed="true"] { background: #365749; color: var(--cream); }
.story-toggle { min-height: 44px; padding: .35rem .62rem; width: 100%; background: #efe9d8; border: 1px solid #b2b69f; border-radius: .45rem; font-weight: 730; }
.story-panel { min-height: 0; }

.is-immersive .atlas-bar { display: none; }
.is-immersive .atlas { margin: 0; }
.is-immersive .atlas-layout {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  isolation: isolate;
  background: #a0b794;
}
.is-immersive .journey-steps { margin-top: -100svh; position: relative; pointer-events: none; }
.is-immersive .journey-step { height: 71svh; }
.is-immersive .journey-step:last-child { height: 100svh; }
.is-immersive .atlas-heading {
  position: absolute;
  top: max(.75rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 3;
  width: min(48rem, calc(100% - 2rem));
  border: 1px solid #e3dfc3;
  border-radius: 1.2rem;
  padding: .45rem;
  background: #f5f0e4f5;
  box-shadow: 0 .4rem 1.5rem #1d38375a;
}
.is-immersive .atlas-intro { padding: .34rem .48rem .54rem; }
.is-immersive .atlas-place { margin: 0 0 .24rem; font-size: .7rem; }
.is-immersive .atlas-intro h1 { font-size: clamp(1.75rem, 4.3vw, 3.5rem); }
.is-immersive .atlas-intro > p { display: none; }
.is-immersive .chapter-list { border-radius: .78rem; padding: .15rem; }
.is-immersive .chapter-list button { min-height: 3.1rem; padding: .32rem .4rem; gap: .25rem; border-radius: .6rem; }
.is-immersive .chapter-list strong { font-size: .76rem; }
.is-immersive .chapter-list small { margin-bottom: .1rem; font-size: .67rem; }
.is-immersive .map-frame { position: absolute; inset: 0; border: 0; border-radius: 0; }
.is-immersive .map-stage { position: absolute; inset: 0; aspect-ratio: auto; }
.is-immersive .map-toolbar {
  position: absolute;
  z-index: 2;
  top: max(.75rem, env(safe-area-inset-top));
  right: 1rem;
  max-width: calc(100% - 2rem);
  border: 1px solid #d1d4b4;
  border-radius: 1.1rem;
  background: #dce2c9f2;
  box-shadow: 0 .25rem .75rem #243c3450;
}
.is-immersive #map-caption {
  position: absolute;
  z-index: 1;
  bottom: max(.8rem, env(safe-area-inset-bottom));
  left: max(4rem, env(safe-area-inset-left));
  min-height: 0;
  border: 1px solid #dae0ba;
  border-radius: .9rem;
  font-size: .77rem;
  background: #f5eed5ef;
}
.is-immersive .street-pins { bottom: 3.4rem; left: max(4rem, env(safe-area-inset-left)); transform: none; }
.is-immersive .street-pin .pin-tip { left: 0; transform: none; }
.is-immersive .chapter-story {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(.8rem, env(safe-area-inset-bottom));
  z-index: 2;
  width: min(22.5rem, 34vw);
  max-height: min(62svh, calc(100svh - 10.5rem));
  padding: .85rem;
  background: #fffaf0f8;
  box-shadow: 0 .4rem 1.5rem #1d38374f;
}
.is-immersive .chapter-story h2 { font-size: clamp(1.26rem, 2.2vw, 1.9rem); }
.is-immersive .chapter-time { margin-bottom: .35rem; }
.is-immersive .chapter-lede, .is-immersive .branch-note { margin: .45rem 0 .6rem; }
.is-immersive .story-panel { overflow: auto; padding: .35rem .3rem .1rem; }
.is-immersive .story-navigation { padding-top: .5rem; }
.is-immersive .stop-heading { margin-top: .6rem; }
.journey-hint {
  position: absolute;
  left: max(4rem, env(safe-area-inset-left));
  bottom: 6.4rem;
  z-index: 2;
  margin: 0;
  border-radius: 99px;
  padding: .35rem .66rem;
  background: #203c33ee;
  color: var(--cream);
  font-size: .8rem;
  pointer-events: none;
}
@media (max-width: 79rem) {
  .is-immersive .atlas-heading { width: min(40rem, calc(100% - 2rem)); }
  .is-immersive .map-toolbar { top: calc(var(--heading-height, 8rem) + 1.12rem); right: auto; left: 1rem; }
}
@media (max-width: 48rem) {
  .is-immersive .atlas-heading { top: max(.45rem, env(safe-area-inset-top)); left: .5rem; width: calc(100% - 1rem); }
  .is-immersive .atlas-place { font-size: .64rem; }
  .is-immersive .chapter-list button { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; text-align: center; min-height: 2.95rem; padding: .24rem .05rem .33rem; gap: .1rem; }
  .is-immersive .chapter-list strong { display: none; }
  .is-immersive .chapter-number { width: 1.22rem; height: 1.22rem; font-size: .7rem; }
  .is-immersive .map-toolbar { top: calc(var(--heading-height, 7rem) + .75rem); left: .5rem; right: .5rem; max-width: none; padding: .22rem; gap: .1rem .16rem; }
  .is-immersive .map-toolbar button { font-size: .76rem; padding-inline: .38rem; min-height: 36px; }
  .is-immersive .map-toolbar .layout-button { margin-inline-start: 0; }
  .is-immersive .chapter-story { width: auto; left: .5rem; right: .5rem; bottom: max(.45rem, env(safe-area-inset-bottom)); max-height: min(49svh, calc(100svh - 12rem)); padding: .33rem; }
  .is-immersive .story-navigation { font-size: .78rem; padding-top: .25rem; padding-left: 3.05rem; }
  .is-immersive .story-navigation button { min-height: 44px; padding: .15rem .35rem; }
  .is-immersive #map-caption { top: calc(var(--heading-height, 7rem) + var(--toolbar-height, 4rem) + 1.05rem); bottom: auto; left: .5rem; width: fit-content; max-width: calc(100% - 1rem); padding: .15rem .35rem; }
  .is-immersive .map-frame:has(.street-pins[hidden]) #map-caption > span { display: none; }
  .is-immersive .street-pins {
    bottom: auto;
    top: calc(var(--heading-height, 7rem) + var(--toolbar-height, 4rem) + var(--caption-height, 2rem) + 1.35rem);
    left: .5rem;
  }
  .is-immersive .street-pin .pin-tip { inset: calc(100% + .15rem) auto auto 0; }
  .journey-hint { left: .65rem; bottom: 7.7rem; font-size: .72rem; }
  .is-immersive .atlas-layout:has(.story-toggle[aria-expanded="true"]) .journey-hint { display: none; }
}
@media (max-height: 31rem) and (orientation: landscape) {
  .is-immersive .atlas-heading { width: min(60vw, 32rem); }
  .is-immersive .atlas-intro h1 { font-size: 1.5rem; }
  .is-immersive .map-toolbar { top: auto; bottom: .65rem; left: 4rem; right: auto; }
  .is-immersive #map-caption { display: none; }
  .is-immersive .chapter-story { max-height: 84svh; }
}

@media (forced-colors: active) {
  .chapter-list button[aria-current], .stop-choice[aria-pressed="true"], .pin-marker,
  .map-toolbar button[aria-pressed="true"] { border: 2px solid Highlight; }
}
