@font-face {
  font-family: 'Golos Text'; src: url('assets/golos.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; src: url('assets/golos-latin.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Playfair Display'; src: url('assets/playfair.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display'; src: url('assets/playfair-italic.woff2') format('woff2');
  font-style: italic; font-weight: 500; font-display: swap;
}

:root {
  color-scheme: light;
  font-family: 'Golos Text', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --paper: #f4f2ea;
  --ink: #172829;
  --gold: #f0d6a4;
  --gutter: clamp(20px, 4.6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #a87834; outline-offset: 4px; }
.forest :is(button, a):focus-visible { outline-color: #ffe3ad; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.forest {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  height: min(79svh, 920px);
  overflow: hidden;
  color: #fffdf6;
  background: #597b96;
  --brightness: .86;
  --saturation: .76;
  --night: .35;
  --glow: .45;
}

.map-view {
  position: absolute; inset: 0;
  overflow: hidden; cursor: grab; touch-action: none; user-select: none;
  outline: none;
}
.map-view:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.map-view.is-dragging, .map-view.is-dragging * { cursor: grabbing; }
.world {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
}
.terrain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: brightness(var(--brightness)) saturate(var(--saturation)); transition: filter 950ms ease; }
.lights { position: absolute; inset: 0; opacity: var(--glow); transition: opacity 950ms ease; pointer-events: none; }
.warm-light { position: absolute; width: 55px; height: 55px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #ffd58ab5, #ffbd7359 23%, #ffa65c14 51%, transparent 72%); mix-blend-mode: screen; }
.ambient { position: absolute; inset: 0; pointer-events: none; }
.ambient::before { content: ''; position: absolute; inset: 0; background: #21436e; mix-blend-mode: multiply; opacity: var(--night); transition: opacity 950ms ease; }
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #19283fe8 -5%, #19283f94 23%, #19283f0a 55%, transparent 76%), linear-gradient(180deg, #14253eb5 0%, transparent 22%, transparent 75%, #14253ea5 100%);
  transition: opacity 600ms ease;
}
.is-exploring .ambient::after { opacity: .48; }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.masthead {
  position: absolute; z-index: 3; top: 0; inset-inline: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  min-height: 90px; margin-inline: var(--gutter);
  border-bottom: 1px solid #ffffff31;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-weight: 600; font-size: 17px; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; border: 1px solid #f9d9997d; color: var(--gold); }
.brand-mark .icon { width: 21px; height: 21px; }
.domain { color: var(--gold); }
.nav { display: flex; align-self: stretch; align-items: center; gap: 33px; color: #f5f3e6d6; font-size: 14px; }
.nav a { display: grid; align-content: center; height: 100%; min-width: 36px; text-align: center; padding-top: 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.nav-active { color: #fff; }
.nav .nav-active { border-bottom-color: var(--gold); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.glass { color: #fffaf0; border: 1px solid #eaffff35; background: #172b2de6; box-shadow: 0 5px 19px #11242b24; }
.time-button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 7px 13px; min-height: 44px; border-radius: 11px; }
.time-button > .icon { color: var(--gold); }
.time-caption { display: block; color: #e2e8e5; font-size: 12px; line-height: 1.15; }
.time-button time { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; }
.glass:hover { background: #2c494b; }
.icon-button:disabled { opacity: .42; cursor: default; }

.intro {
  position: absolute; z-index: 2;
  top: clamp(137px, 20%, 204px); left: var(--gutter);
  width: min(40%, 440px);
  transition: opacity 270ms ease, translate 270ms ease;
  pointer-events: none;
}
.intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(58px, 7.5vw, 117px); font-weight: 500; line-height: .96; letter-spacing: -.062em; text-shadow: 0 8px 28px #10262240; }
.intro h1 em { display: block; color: var(--gold); font-weight: 500; }
.intro p { max-width: 290px; margin: 27px 0 23px; color: #f0f1e8; font-size: 16px; line-height: 1.55; }
.walk-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; background: var(--gold); color: #1d2c25; font-size: 14px; font-weight: 600; box-shadow: 0 5px 22px #16241d40; pointer-events: auto; }
.walk-button:hover { background: #ffe6b9; }
.is-exploring .intro { opacity: 0; translate: 0 -10px; }
.is-exploring .walk-button { visibility: hidden; pointer-events: none; }

.markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; color: #fffaf0; background: transparent; white-space: nowrap; pointer-events: auto; }
.marker-caption { padding: 7px 11px; border: 1px solid #e6f2ef59; border-radius: 6px; background: #182d2ee8; font-size: 13px; font-weight: 500; box-shadow: 0 5px 17px #122b2a40; }
.marker-pin { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 5px; border: 1px solid #f4d49baf; border-radius: 50%; background: #1a2c2cf3; color: var(--gold); box-shadow: 0 3px 12px #0d222470; }
.marker-pin .icon { width: 15px; height: 15px; }
.marker:hover .marker-caption, .marker.is-active .marker-caption { border-color: var(--gold); background: #f1d8ad; color: #172829; }
.marker.is-active .marker-pin { background: var(--gold); color: #172829; }
button[hidden] { display: none; }

.map-tools { position: absolute; z-index: 2; right: var(--gutter); top: 48%; display: grid; gap: 9px; }
.zoom-tools { display: grid; border-radius: 10px; }
.zoom-tools .icon-button { width: 42px; height: 42px; border: 0; border-radius: 0; background: none; }
.zoom-tools .icon-button + .icon-button { border-top: 1px solid #f1f4ee29; }
.zoom-tools .icon-button:hover:not(:disabled) { color: var(--gold); }
.map-footer { position: absolute; z-index: 2; inset-inline: var(--gutter); bottom: 27px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; }
#map-instructions { display: flex; align-items: center; gap: 9px; margin: 0; color: #fff9e8; text-shadow: 0 1px 8px #15282b; font-size: 14px; }
#map-instructions .icon { color: var(--gold); }
.mini-map { display: grid; gap: 7px; width: 166px; padding: 6px 6px 9px; text-align: left; border-radius: 10px; pointer-events: auto; }
.mini-map-art { position: relative; display: block; aspect-ratio: var(--map-aspect, 2.61); overflow: hidden; border-radius: 4px; background: var(--map-art) center / 100% 100% no-repeat, #668087; }
.mini-map .mini-map-art { min-height: 49px; }
.mini-view { position: absolute; left: var(--view-x, 32%); top: var(--view-y, 15%); width: var(--view-width, 35%); height: var(--view-height, 70%); border: 1px solid #f8d294; background: #ffd99830; border-radius: 2px; box-shadow: 0 0 0 100px #11282b3b; }
.mini-map-caption { display: flex; align-items: center; gap: 6px; line-height: 1; padding: 0 5px; font-size: 13px; }
.mini-map-caption .icon { width: 15px; height: 15px; color: var(--gold); }

.places { max-width: 1690px; padding: 28px var(--gutter) 57px; margin-inline: auto; }
.section-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { flex: none; margin: 0; font: 500 clamp(30px, 3.1vw, 45px)/1.15 var(--serif); letter-spacing: -.048em; }
.heading-rule { height: 1px; background: #d4d2c5; flex: 1; }
.place-region-title { margin: 0 0 12px; font: 500 clamp(23px, 2.3vw, 32px)/1.15 var(--serif); }
.place-grid + .place-region-title { margin-top: 27px; }
.place-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.far-trail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.place-card { overflow: hidden; display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 1px solid #d4d6ca; border-radius: 11px; text-align: left; background: #fcfbf5; transition: background 200ms, border-color 200ms; }
.place-card:hover, .place-card.is-active { background: #f5ead4; border-color: #b39865; }
.place-image { display: block; aspect-ratio: 2.05; background: center / cover no-repeat #b2c9d4; transition: filter 200ms ease; }
.place-card:hover .place-image { filter: brightness(1.12); }
.place-name { display: flex; align-items: center; gap: 8px; padding: 11px 11px 12px; font-size: 14px; font-weight: 600; }
.place-name .icon { width: 17px; height: 17px; color: #8b692e; }

.dialog { position: fixed; max-width: min(540px, calc(100vw - 30px)); max-height: calc(100svh - 28px); width: 100%; padding: 29px; overflow: auto; border-radius: 16px; color: var(--ink); border: 1px solid #d6d6c8; background: #f8f6ed; box-shadow: 0 16px 70px #0b1e2469; }
.dialog::backdrop { background: #101f25a3; backdrop-filter: blur(4px); }
.dialog h2 { margin: 0 35px 12px 0; font: 500 33px/1.1 var(--serif); letter-spacing: -.035em; }
.dialog p, .dialog li { margin: 0 0 16px; line-height: 1.5; }
.close-button { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; }
.close-button:hover { background: #e8e8db; }
.mode-buttons, .atlas-places { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.mode-buttons button, .atlas-places button, .location-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; min-height: 42px; border: 1px solid #a9b3a7; border-radius: 8px; background: #f8f6ed; }
.mode-buttons button[aria-pressed='true'], .mode-buttons button:hover, .atlas-places button:hover, .location-button:hover { background: #e2eae0; border-color: #617872; }
.location-button { font-size: 14px; }
.location-button:disabled { opacity: .65; cursor: default; }
.dialog .location-status { margin: 10px 0 0; font-size: 14px; }
.help-list { padding-inline-start: 20px; }
.help-list kbd { font: inherit; font-weight: 600; }
.overview-dialog { max-width: min(880px, calc(100% - 28px)); }
.atlas { margin-top: 20px; border-radius: 9px; overflow: visible; cursor: crosshair; }
.atlas-places { margin-bottom: 0; }
.atlas-places button { font-size: 14px; }
.atlas .marker-pin { position: absolute; translate: -50% -50%; width: 23px; height: 23px; margin: 0; }
.atlas .marker-pin .icon { width: 13px; height: 13px; }
.atlas .far-trail-pin { background: #f9e4b7; color: #26433e; border-color: #688074; }
.atlas .marker-pin:hover { background: var(--gold); color: var(--ink); }
.noscript { position: fixed; bottom: 0; z-index: 4; padding: 10px; background: var(--paper); }

@media (max-width: 1050px) {
  .place-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-tools { top: 49%; }
  .intro h1 { font-size: clamp(58px, 9.5vw, 90px); }
}

@media (max-width: 600px) {
  .forest { min-height: 530px; height: 76svh; }
  .ambient::after { background: linear-gradient(90deg, #19283fd9, #19283f8c 42%, #19283f18 74%, transparent 93%), linear-gradient(180deg, #14253eb5 0%, transparent 23%, transparent 80%, #14253ea5 100%); }
  .masthead { min-height: 70px; grid-template-columns: 1fr auto; gap: 8px; }
  .nav { display: none; }
  .wordmark { font-size: 15px; gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-mark .icon { width: 18px; height: 18px; }
  .header-actions { gap: 6px; }
  .time-button { gap: 6px; padding: 6px 8px; min-height: 38px; }
  .time-button > .icon { width: 16px; height: 16px; }
  .time-caption { display: none; }
  .time-button time { margin-top: 0; font-size: 13px; }
  .help-button { width: 38px; height: 38px; }
  .intro { top: 115px; width: calc(100% - 44px); }
  .intro h1 { font-size: clamp(57px, 14vw, 75px); }
  .intro p { max-width: 225px; margin: 18px 0 17px; font-size: 15px; }
  .walk-button { min-height: 43px; padding-inline: 13px; }
  .map-tools { top: auto; bottom: 106px; }
  .map-footer { bottom: 15px; align-items: end; }
  #map-instructions { gap: 5px; font-size: 12px; line-height: 1.25; max-width: 168px; }
  #map-instructions > .icon { width: 16px; height: 16px; }
  .mini-map { width: 122px; }
  .mini-map .mini-map-art { min-height: 34px; }
  .mini-map-caption { font-size: 12px; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .places { padding-top: 22px; }
  .section-heading { gap: 15px; margin-bottom: 15px; }
  .marker-caption { font-size: 12px; padding: 5px 7px; }
  .dialog { padding: 25px 18px; }
  .atlas { min-height: 103px; }
  .atlas .marker-pin { width: 13px; height: 13px; }
  .atlas .marker-pin .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
