/* ==========================================================================
   Storm Island — a reading map
   ========================================================================== */

:root {
  --ink: #101b1a;
  --ink-soft: #2e3733;
  --deep: #0a1615;
  --deep-2: #0f2321;
  --paper: #ece2ce;
  --paper-hi: #f4ecdc;
  --paper-dim: #d9cdb6;
  --gold: #c2a263;
  --gold-bright: #e2c58a;
  --thyme: #80749a;
  --sea: #12383a;
  --cream: #f0e8d8;
  --cream-dim: rgba(240, 232, 216, 0.62);
  --hairline: rgba(240, 232, 216, 0.16);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --read: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

button:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--deep);
}

/* --------------------------------------------------------------------------
   Scene
   -------------------------------------------------------------------------- */

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 2s ease;
}

body.ready #world {
  opacity: 1;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 42%, rgba(4, 10, 10, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 12, 12, 0.42) 0%, transparent 22%, transparent 74%, rgba(5, 12, 12, 0.5) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Markers
   -------------------------------------------------------------------------- */

#markers {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.marker {
  position: absolute;
  width: 27px;
  height: 27px;
  padding: 0;
  color: var(--cream);
  pointer-events: auto;
  will-change: transform, opacity;
  transition: opacity 0.25s ease;
}

.marker .dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 232, 216, 0.42);
  border-radius: 50%;
  background: rgba(7, 17, 16, 0.66);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(240, 232, 216, 0.92);
  box-shadow: 0 0 0 4px rgba(226, 197, 138, 0.06);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s,
    box-shadow 0.35s;
}

.marker:hover .dot {
  transform: scale(1.12);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(226, 197, 138, 0.12);
}

.marker .tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px 6px 9px;
  border: 1px solid rgba(240, 232, 216, 0.16);
  border-radius: 2px;
  background: rgba(7, 17, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.28s ease, transform 0.4s var(--ease), visibility 0.28s;
  pointer-events: none;
}

.marker .tag::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 10px;
  background: linear-gradient(rgba(226, 197, 138, 0.5), transparent);
}

.marker:hover .tag,
.marker:focus-visible .tag,
.marker.is-active .tag {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.marker .tag .no {
  color: var(--gold-bright);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.marker.is-active .dot {
  background: var(--paper);
  border-color: var(--paper-hi);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(236, 226, 206, 0.16), 0 0 24px rgba(236, 226, 206, 0.4);
}

.marker.is-active .tag {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.marker.is-active .tag .no {
  color: #8a6a2e;
}

.marker.is-visited:not(.is-active) .dot {
  background: rgba(194, 162, 99, 0.9);
  border-color: rgba(236, 226, 206, 0.35);
  color: #101b1a;
  box-shadow: 0 0 0 4px rgba(194, 162, 99, 0.1);
}

.marker.is-hidden {
  opacity: 0;
  pointer-events: none;
}

body:not(.entered) .rail,
body:not(.entered) .hud,
body:not(.entered) .coords,
body:not(.entered) #markers {
  opacity: 0;
  pointer-events: none;
}

.rail,
.hud,
.coords,
#markers {
  transition: opacity 1s ease 0.25s;
}

/* --------------------------------------------------------------------------
   Left rail
   -------------------------------------------------------------------------- */

.rail {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 314px;
  padding: 38px 26px 26px 36px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 13, 12, 0.82) 0%, rgba(5, 13, 12, 0.5) 52%, rgba(5, 13, 12, 0.08) 88%, transparent 100%);
}

.brand,
.places,
.rail-foot {
  pointer-events: auto;
}

.brand-eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 13px;
}

.brand-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 47px;
  line-height: 0.88;
  letter-spacing: 0.005em;
  color: var(--cream);
}

.brand-title em {
  font-style: italic;
  font-weight: 300;
  color: #ddcbaa;
}

.brand-sub {
  margin: 16px 0 0;
  font-family: var(--read);
  font-size: 13.5px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--cream-dim);
}

.brand-sub span {
  font-style: normal;
  font-family: var(--ui);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.42);
}

.places {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  scrollbar-width: none;
  margin: 0 -10px;
  padding: 2px 10px;
}

.places::-webkit-scrollbar {
  display: none;
}

.place {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: baseline;
  gap: 9px;
  width: 100%;
  padding: 6px 0;
  text-align: left;
  color: rgba(240, 232, 216, 0.55);
  transition: color 0.35s ease, transform 0.45s var(--ease);
}

.place .no {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(194, 162, 99, 0.62);
  transition: color 0.35s;
}

.place .nm {
  position: relative;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.15;
}

.place .nm::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.25;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.place:hover {
  color: rgba(240, 232, 216, 0.92);
  transform: translateX(3px);
}

.place:hover .nm::after {
  transform: scaleX(1);
}

.place.is-visited .no::after {
  content: "•";
  display: inline-block;
  margin-left: 4px;
  color: var(--gold-bright);
  opacity: 0.8;
}

.place.is-active {
  color: var(--paper-hi);
  transform: translateX(5px);
}

.place.is-active .no {
  color: var(--gold-bright);
}

.place.is-active .nm {
  font-style: italic;
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trail-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.45);
}

.trail-label span:last-child {
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.trail-bar {
  display: flex;
  gap: 3px;
  margin-top: 7px;
}

.trail-bar i {
  flex: 1;
  height: 2px;
  background: rgba(240, 232, 216, 0.14);
  transition: background 0.6s ease;
}

.trail-bar i.on {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(194, 162, 99, 0.35);
}

.reset {
  margin-top: 9px;
  padding: 0;
  font-family: var(--read);
  font-size: 11.5px;
  font-style: italic;
  color: rgba(240, 232, 216, 0.32);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  transition: color 0.3s;
}

.reset:hover {
  color: var(--cream);
}

.weather {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(240, 232, 216, 0.14);
  border-radius: 999px;
  background: rgba(8, 20, 18, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  transition: border-color 0.4s, background 0.4s;
}

.weather:hover {
  border-color: rgba(226, 197, 138, 0.4);
  background: rgba(8, 20, 18, 0.6);
}

.weather-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: rgba(240, 232, 216, 0.8);
}

.weather-ico svg {
  width: 100%;
  height: 100%;
}

.weather-ico .bolt {
  opacity: 0;
  transition: opacity 0.4s;
}

.weather[aria-pressed="true"] .weather-ico {
  color: var(--gold-bright);
}

.weather[aria-pressed="true"] .bolt {
  opacity: 1;
}

.weather-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.weather-copy b {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.weather-copy small {
  font-family: var(--read);
  font-size: 11.5px;
  font-style: italic;
  font-weight: 300;
  color: rgba(240, 232, 216, 0.5);
}

.switch {
  flex: 0 0 auto;
  width: 32px;
  height: 17px;
  padding: 2px;
  border: 1px solid rgba(240, 232, 216, 0.28);
  border-radius: 999px;
  transition: border-color 0.4s, background 0.4s;
}

.switch i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(240, 232, 216, 0.6);
  transition: transform 0.4s var(--ease), background 0.4s;
}

.weather[aria-pressed="true"] .switch {
  background: rgba(194, 162, 99, 0.28);
  border-color: var(--gold);
}

.weather[aria-pressed="true"] .switch i {
  transform: translateX(15px);
  background: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   HUD
   -------------------------------------------------------------------------- */

.hud {
  position: fixed;
  z-index: 5;
  top: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
}

.compass {
  width: 64px;
  height: 64px;
  color: rgba(240, 232, 216, 0.72);
}

.compass svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#needle {
  transform-origin: 32px 32px;
  transition: transform 0.2s linear;
}

.hints {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.38);
  transition: opacity 1s ease;
}

.hints i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.hints.is-gone {
  opacity: 0;
}

.coords {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.28);
  pointer-events: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Reader
   -------------------------------------------------------------------------- */

.reader {
  position: fixed;
  z-index: 8;
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: min(432px, 33vw);
  min-width: 370px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 2px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: translateX(calc(100% + 44px));
  transition: transform 0.8s var(--ease);
  overflow: hidden;
  visibility: hidden;
}

.reader.is-open {
  transform: translateX(0);
  visibility: visible;
}

.reader::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, #8a6a2e 55%, var(--gold) 85%, transparent);
  opacity: 0.85;
}

.reader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.reader-scroll {
  position: relative;
  z-index: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 36px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 27, 26, 0.25) transparent;
}

.reader-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 27, 26, 0.18);
  border-radius: 50%;
  color: rgba(16, 27, 26, 0.65);
  background: rgba(236, 226, 206, 0.7);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.reader-close:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}

.reader-close svg {
  width: 13px;
  height: 13px;
}

.sheet-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  color: #7b6c50;
}

.sheet-kicker .n {
  color: #8a6a2e;
  letter-spacing: 0.12em;
}

.sheet-kicker i {
  width: 26px;
  height: 1px;
  background: rgba(16, 27, 26, 0.22);
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.seal {
  flex: 0 0 auto;
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(138, 106, 46, 0.5);
  border-radius: 50%;
  color: #8a6a2e;
}

.seal svg {
  width: 25px;
  height: 25px;
}

.sheet-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 45px;
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: #152321;
}

.sheet-deck {
  margin: 23px 0 0;
  padding-left: 14px;
  border-left: 1.5px solid rgba(138, 106, 46, 0.55);
  font-family: var(--read);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: #46503f;
}

.prose {
  margin-top: 22px;
  font-family: var(--read);
  font-size: 15.2px;
  font-weight: 350;
  line-height: 1.68;
  color: #2c3631;
}

.prose p {
  margin: 0 0 14px;
}

.prose p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 0.72;
  color: #6c5527;
  padding: 7px 8px 0 0;
}

.pull {
  position: relative;
  margin: 24px 0 0;
  padding: 19px 0 18px;
  border-top: 1px solid rgba(16, 27, 26, 0.15);
  border-bottom: 1px solid rgba(16, 27, 26, 0.15);
  font-family: var(--read);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
  color: #4a513f;
}

.pull::before {
  content: "✳";
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-style: normal;
  color: rgba(138, 106, 46, 0.7);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
}

.tags span {
  padding: 4px 8px;
  border: 1px solid rgba(16, 27, 26, 0.18);
  border-radius: 2px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #6c6757;
}

.questions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 27, 26, 0.16);
}

.questions h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6c5527;
}

.questions h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(16, 27, 26, 0.12);
}

.questions ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
}

.questions li {
  position: relative;
  counter-increment: q;
  margin: 0 0 18px;
  padding-left: 31px;
  font-family: var(--read);
  font-size: 14.6px;
  font-weight: 350;
  line-height: 1.58;
  color: #333d36;
}

.questions li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: #8a6a2e;
  letter-spacing: 0.02em;
}

.sheet-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 27, 26, 0.16);
}

.sheet-foot button {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 47%;
  padding: 4px 0;
  font-family: var(--ui);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6f6652;
  text-align: left;
  transition: color 0.3s;
}

.sheet-foot button:hover {
  color: #152321;
}

.sheet-foot button.next {
  margin-left: auto;
  text-align: right;
  justify-content: flex-end;
}

.sheet-foot .arrow {
  font-family: var(--serif);
  font-size: 15px;
  color: #8a6a2e;
}

.sheet-foot .which {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sheet-foot .which span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-foot .which em {
  font-family: var(--read);
  font-size: 10.5px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #7c7462;
}

.colophon {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  font-family: var(--read);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(16, 27, 26, 0.35);
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(100% 80% at 50% 42%, rgba(8, 20, 18, 0.58) 0%, rgba(5, 12, 12, 0.93) 72%, rgba(4, 10, 10, 0.98) 100%);
  transition: opacity 1.1s ease, visibility 1.1s;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(240, 232, 216, 0.08);
  pointer-events: none;
}

.intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-inner {
  position: relative;
  width: min(600px, 100%);
  text-align: center;
  transition: transform 1.1s var(--ease), opacity 0.8s ease;
}

.intro.is-gone .intro-inner {
  transform: translateY(-18px);
  opacity: 0;
}

.intro-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.intro-eyebrow span {
  width: 26px;
  height: 1px;
  background: rgba(194, 162, 99, 0.55);
}

.intro-title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 10vw, 112px);
  line-height: 0.82;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.intro-title em {
  font-style: italic;
  font-weight: 300;
  color: #ddcbaa;
}

.intro-line {
  margin: 26px auto 0;
  max-width: 390px;
  font-family: var(--read);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(240, 232, 216, 0.78);
}

.intro-body {
  margin: 20px auto 0;
  max-width: 410px;
  font-family: var(--read);
  font-size: 13.8px;
  font-weight: 350;
  line-height: 1.7;
  color: rgba(240, 232, 216, 0.5);
}

.enter {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  padding: 14px 26px 14px 30px;
  border: 1px solid rgba(236, 226, 206, 0.7);
  border-radius: 999px;
  background: rgba(236, 226, 206, 0.06);
  font-family: var(--ui);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-hi);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.enter span {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 0.5;
  transition: transform 0.4s var(--ease);
}

.enter:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.enter:hover span {
  transform: translateX(4px);
}

.intro-note {
  margin-top: 26px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.24);
}

.intro-aside {
  position: absolute;
  left: 44px;
  bottom: 40px;
  font-family: var(--read);
  font-size: 12.5px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(240, 232, 216, 0.36);
}

.intro-aside em {
  color: rgba(226, 197, 138, 0.65);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--read);
  font-size: 18px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .rail {
    width: 280px;
    padding-left: 28px;
  }

  .brand-title {
    font-size: 41px;
  }

  .reader {
    width: min(410px, 38vw);
  }
}

@media (max-width: 900px) {
  .reader {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 52vw);
    min-width: 0;
    border-radius: 0;
  }

  .reader-scroll {
    padding: 36px 28px 26px;
  }

  .rail {
    background: linear-gradient(180deg, rgba(5, 13, 12, 0.55), transparent);
  }
}

@media (max-width: 760px) {
  .marker {
    width: 32px;
    height: 32px;
  }

  .marker .dot {
    font-size: 8px;
  }

  .rail {
    top: 0;
    left: 0;
    height: auto;
    width: 100%;
    padding: 20px 18px 0;
    background: linear-gradient(180deg, rgba(5, 13, 12, 0.68), transparent);
    gap: 0;
  }

  .brand {
    padding-right: 60px;
  }

  .brand-eyebrow {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .brand-title {
    font-size: 31px;
  }

  .brand-sub {
    display: none;
  }

  .places {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 34px 14px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(5, 13, 12, 0.86) 45%);
    -webkit-overflow-scrolling: touch;
  }

  .place {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 8px 11px;
    border: 1px solid rgba(240, 232, 216, 0.14);
    border-radius: 999px;
    background: rgba(8, 20, 18, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .place .nm {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .place .nm::after {
    display: none;
  }

  .place .no {
    font-size: 7.5px;
  }

  .place.is-active {
    transform: none;
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
  }

  .place.is-active .no {
    color: #8a6a2e;
  }

  .rail-foot {
    position: fixed;
    top: 18px;
    right: 16px;
    margin: 0;
    z-index: 7;
  }

  .trail {
    display: none;
  }

  .weather {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: rgba(8, 20, 18, 0.6);
  }

  .weather-ico {
    width: 20px;
    height: 20px;
  }

  .weather-copy,
  .switch {
    display: none;
  }

  .hud,
  .coords {
    display: none;
  }

  .reader {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateY(103%);
  }

  .reader.is-open {
    transform: translateY(0);
  }

  .reader-scroll {
    padding: 54px 24px calc(34px + env(safe-area-inset-bottom));
  }

  .reader-close {
    top: 16px;
  }

  .sheet-title {
    font-size: 39px;
  }

  .sheet-deck {
    font-size: 16px;
  }

  .prose {
    font-size: 15px;
  }

  .intro {
    padding: 24px;
  }

  .intro::before {
    inset: 10px;
  }

  .intro-title {
    font-size: clamp(58px, 17vw, 82px);
  }

  .intro-line {
    font-size: 16px;
  }

  .intro-body {
    font-size: 13px;
  }

  .intro-aside {
    display: none;
  }

  .marker .tag {
    gap: 5px;
    padding: 4px 7px;
    font-size: 7.5px;
    letter-spacing: 0.12em;
  }

  .marker .tag .name {
    display: none;
  }

  .marker .tag .no {
    font-size: 7px;
  }

  .marker.is-active .tag .name {
    display: inline;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .rail {
    padding-top: 24px;
    gap: 20px;
  }

  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 38px;
  }

  .place {
    padding: 4px 0;
  }

  .place .nm {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
