:root {
  color-scheme: dark;
  --canvas: #0d1014;
  --layer: #151a21;
  --ink: #f4f0e8;
  --muted: #a9adb2;
  --hairline: #292e35;
  --accent: #f0ad76;
  --accent-hover: #ffbf8e;
  --paper: #f6f2eb;
  --paper-ink: #201c19;
  --paper-muted: #655d56;
  --gutter: clamp(1.35rem, 5.15vw, 5rem);
  --content: 100rem;
  --sans: "Inter", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Eddie Serif", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
}

@font-face {
  font-family: "Eddie Serif";
  src: url("assets/display.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: 0.64; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--canvas);
  background: var(--accent);
  z-index: 20;
}

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid #272b30;
  background: var(--canvas);
}

.header-inner, .albums-inner, .footer-inner {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 3.4vw, 3.2rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.66rem;
  width: max-content;
  font-weight: 800;
  font-size: 1.54rem;
  line-height: 1;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.wordmark-dot { color: var(--accent); }
.brand-mark {
  display: inline-block;
  width: 1.27rem;
  height: 1.27rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 0.39rem;
  height: 0.39rem;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px #f0ad7666;
}
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.8rem, 2.7vw, 2.7rem); }
.main-nav a, .footer-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9rem;
  transition: color 160ms ease;
}
.main-nav a:hover, .main-nav .current, .footer-link:hover { color: var(--ink); }
.main-nav .current { position: relative; }
.main-nav .current::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--accent);
  left: 0;
  right: 0;
  bottom: -0.4rem;
}

.primary-button, .outline-button, .text-button, .icon-button {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  padding: 0.5rem 0.94rem;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.primary-button { background: var(--accent); color: #1b130d; }
.primary-button:hover { background: var(--accent-hover); }
.outline-button, .icon-button { background: transparent; color: inherit; border-color: var(--hairline); }
.outline-button:hover, .icon-button:hover { background: #ffffff0a; border-color: #68635d; }
.text-button { padding: 0.18rem 0; min-height: 2rem; color: var(--accent); background: transparent; }
.text-button:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
.icon-button { width: 2.65rem; padding: 0; }
.icon { width: 1rem; height: 1rem; display: inline-block; flex: 0 0 auto; position: relative; }
.icon-plus::before, .icon-plus::after, .icon-minus::before, .icon-close::before, .icon-close::after {
  content: "";
  position: absolute;
  background: currentColor;
  inset: 0;
  margin: auto;
  width: 0.83rem;
  height: 1.5px;
  border-radius: 1px;
}
.icon-plus::after { transform: rotate(90deg); }
.icon-close::before { transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }
.icon-search::before {
  content: "";
  position: absolute;
  width: 0.57rem;
  height: 0.57rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  top: 1px;
  left: 1px;
}
.icon-search::after {
  content: "";
  position: absolute;
  height: 1.5px;
  width: 0.38rem;
  right: 0;
  bottom: 0.11rem;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right;
}
.icon-target { border: 1.5px solid currentColor; border-radius: 50%; }
.icon-target::after {
  content: "";
  position: absolute;
  width: 0.28rem;
  height: 0.28rem;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 50%;
}

.explorer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(17rem, 25vw, 24.25rem) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(0.4rem, 2vw, 2rem);
  width: min(100%, var(--content));
  min-height: min(49rem, max(42.5rem, 86svh));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.explorer-intro {
  grid-column: 1;
  grid-row: 1;
  padding-top: clamp(3.7rem, 8vh, 6.2rem);
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.13em;
  font-size: 0.84rem;
  font-weight: 600;
}
.eyebrow-line { width: 1.7rem; height: 1px; background: var(--accent); }
.explorer-intro h1 {
  margin: 1.1rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3.05rem, 5.15vw, 5.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.09;
}
.explorer-intro h1 em { color: var(--accent); font-style: normal; }
.hero-description { color: var(--muted); max-width: 19rem; line-height: 1.75; }
.place-list-panel { grid-column: 1; grid-row: 2; align-self: start; margin: 2.6rem 0 2.3rem; z-index: 1; }
.place-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.place-list-heading h2 { font-size: 1.05rem; font-weight: 650; display: flex; gap: 0.55rem; align-items: center; }
.place-count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.82rem; font-weight: 500; }
.demo-tag {
  border: 1px solid #75533a;
  color: #f1b991;
  background: #edab7610;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  color: var(--muted);
  background: #171b21;
  border: 1px solid var(--hairline);
  border-radius: 0.42rem;
  padding: 0 0.75rem;
}
.search-field:focus-within { border-color: var(--accent); }
.search-field input {
  outline: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  font-size: 0.92rem;
}
.search-field input::placeholder { color: #a4a7ad; }
.place-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0 0.18rem 0 0;
  max-height: 11.75rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4c4846 transparent;
}
.place-list li { border-bottom: 1px solid #252a31; }
.place-list li:last-child { border-bottom: 0; }
.place-row {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 0.65rem;
  padding: 0.48rem 0.26rem 0.48rem 0;
  border: 0;
  border-radius: 0.32rem;
  background: transparent;
  color: var(--ink);
}
.place-row:hover { background: #ffffff08; }
.place-row:focus-visible { outline-offset: -2px; }
.place-row-thumb {
  width: 2.7rem;
  height: 2.52rem;
  flex: 0 0 auto;
  background: #202730;
  border-radius: 0.3rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  overflow: hidden;
}
.place-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.place-row-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.place-row-title strong, .place-row-title small { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.place-row-title strong { font-size: 0.98rem; font-weight: 600; }
.place-row-title small { color: var(--muted); font-size: 0.79rem; margin-top: 0.16rem; }
.place-row-indicator { color: var(--accent); opacity: 0.8; margin-inline-end: 0.35rem; transform: scale(0.63); }
.list-empty { color: var(--muted); padding: 0.8rem 0.1rem; font-size: 0.88rem; }

.map-shell {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin-inline: -0.65rem calc(var(--gutter) * -0.55);
  z-index: 0;
  background: radial-gradient(ellipse at 51% 47%, #172635, #111820 49%, transparent 73%);
}
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    radial-gradient(1px 1px at 8% 32%, #abaeaa 97%, transparent),
    radial-gradient(1px 1px at 12% 78%, #b2b0aa 97%, transparent),
    radial-gradient(1px 1px at 19% 13%, #7b94a9 97%, transparent),
    radial-gradient(1px 1px at 22% 62%, #b9bcb5 97%, transparent),
    radial-gradient(1px 1px at 28% 88%, #8091a7 97%, transparent),
    radial-gradient(1px 1px at 33% 8%, #d0b9a4 97%, transparent),
    radial-gradient(1px 1px at 42% 93%, #b7b7b7 97%, transparent),
    radial-gradient(1px 1px at 51% 9%, #858e97 97%, transparent),
    radial-gradient(1px 1px at 60% 91%, #c2c8cd 97%, transparent),
    radial-gradient(1px 1px at 64% 11%, #b5a996 97%, transparent),
    radial-gradient(1px 1px at 72% 92%, #a1a8a9 97%, transparent),
    radial-gradient(1px 1px at 79% 22%, #bdc2c2 97%, transparent),
    radial-gradient(1px 1px at 84% 9%, #a1a8a9 97%, transparent),
    radial-gradient(1px 1px at 87% 72%, #a6adae 97%, transparent),
    radial-gradient(1px 1px at 94% 15%, #a9b8c6 97%, transparent),
    radial-gradient(1px 1px at 95% 53%, #98a1aa 97%, transparent);
}
.globe-canvas { position: absolute; inset: 0; }
.globe-canvas canvas { cursor: grab; }
.globe-canvas canvas:active { cursor: grabbing; }
.globe-canvas canvas:focus-visible { outline-offset: -3px; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem 1.25rem 2rem;
  color: var(--muted);
  pointer-events: none;
}
.map-placeholder img {
  width: min(77%, 32rem);
  max-height: 75%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  clip-path: circle(45% at 50% 50%);
}
.map-placeholder p { max-width: 29rem; font-size: 0.9rem; }
.source-button {
  position: absolute;
  z-index: 1;
  top: 1.25rem;
  right: max(0.65rem, 1.5vw);
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #414853;
  border-radius: 0.4rem;
  color: var(--ink);
  background: #121820ed;
  font-size: 0.86rem;
}
.source-button:hover { border-color: var(--accent); }
.source-dot { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: var(--accent); }
.source-button.connected .source-dot { background: #98cba9; }
.map-tools {
  position: absolute;
  z-index: 1;
  right: max(0.65rem, 1.5vw);
  bottom: 4.2rem;
  display: grid;
  gap: 0.55rem;
}
.zoom-controls, .reset-button { border: 1px solid #393e47; background: #141a22e8; border-radius: 0.45rem; }
.map-button {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.55rem;
  background: transparent;
  border: 0;
  color: var(--ink);
}
.map-button:hover { background-color: #ffffff13; color: var(--accent); }
.zoom-controls .map-button + .map-button { border-top: 1px solid #393e47; }
.reset-button { border: 1px solid #393e47; background: #141a22e8; }
.map-caption {
  position: absolute;
  bottom: 1.05rem;
  left: 0.75rem;
  right: max(0.65rem, 1.5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #a6abb4;
  pointer-events: none;
}
.map-caption a { text-underline-offset: 0.23em; pointer-events: auto; }
.globe-credits { margin-left: auto; text-align: end; pointer-events: auto; }
.globe-credits:empty { display: none; }
.globe-credits .cesium-widget-credits { position: static; padding-right: 0; }
.globe-credits .cesium-credit-textContainer { color: inherit; }
.globe-credits .cesium-credit-expand-link { color: var(--muted); }
.globe-credits img { display: inline-block; max-height: 1rem; width: auto; }
.caption-divider { display: inline-block; width: 0.22rem; height: 0.22rem; margin: 0 0.25rem 0.18rem; border-radius: 100%; background: var(--muted); }
.map-picking {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 50%;
  bottom: 3.3rem;
  z-index: 1;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border: 1px solid #6d5645;
  border-radius: 0.45rem;
  background: #181d25;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px #0006;
}
.map-shell.is-picking canvas { cursor: crosshair; }

.albums-section { background: var(--paper); color: var(--paper-ink); padding: clamp(3rem, 5.8vw, 5.5rem) 0; }
.albums-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin-bottom: 1.65rem; }
.albums-heading h2 { font: 700 clamp(2.05rem, 3.15vw, 3.4rem)/1.15 var(--serif); letter-spacing: -0.05em; }
.albums-heading p { color: var(--paper-muted); margin-top: 0.55rem; font-size: 0.91rem; }
.albums-section .outline-button { border-color: #bcb3a7; color: var(--paper-ink); }
.albums-section .outline-button:hover { background: #1b130d0c; border-color: #817469; }
.albums-section :focus-visible { outline-color: #995a30; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(0.9rem, 2vw, 1.8rem); }
.album-card {
  display: grid;
  gap: 0.74rem;
  min-width: 0;
  background: transparent;
  text-align: left;
  border: 0;
  padding: 0;
  color: var(--paper-ink);
}
.album-cover {
  aspect-ratio: 1.53;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #dad2c4;
  border-radius: 0.35rem;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.album-card:hover .album-cover img { transform: scale(1.055); }
.album-card .icon-target { color: #826c57; }
.album-card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.74rem; padding-inline: 0.05rem; }
.album-card-name { font-size: clamp(1.05rem, 1.65vw, 1.4rem); font-weight: 650; overflow-wrap: anywhere; }
.album-card-region { text-align: end; color: var(--paper-muted); font-size: 0.85rem; padding-top: 0.18rem; overflow-wrap: anywhere; }
.albums-empty { color: var(--paper-muted); padding-block: 1.3rem; }
.site-footer { border-top: 1px solid var(--hairline); }
.footer-inner { min-height: 6.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-inner .wordmark { font-size: 1.26rem; }
.footer-inner p { color: var(--muted); font-size: 0.86rem; }

dialog {
  margin: auto;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  background: var(--layer);
  color: var(--ink);
  padding: 0;
  border: 1px solid #3a3d44;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 5rem #0008;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #05080ccd; backdrop-filter: blur(3px); }
.album-sheet {
  position: fixed;
  z-index: 5;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(25rem, 34vw);
  height: max-content;
  max-height: calc(100% - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--layer);
  border: 1px solid #3d4249;
  border-radius: 0.7rem;
  box-shadow: 0 0.8rem 3.6rem #0009;
  animation: album-enter 300ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
@keyframes album-enter {
  from { transform: translateX(2.25rem); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.album-sheet .dialog-content { padding: 1.25rem; }
.album-sheet .dialog-header { align-items: start; }
.album-sheet .dialog-header h2 { font-size: 1.95rem; }
.album-sheet .edit-place { padding-inline: 0.55rem; font-size: 0.82rem; }
.ion-dialog { width: 34rem; }
.ion-dialog .dialog-header h2 { font-size: 1.65rem; }
.ion-summary { color: var(--ink); }
.ion-help { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.ion-help code { color: var(--ink); font-size: 0.85em; }
.ion-help a { display: block; width: max-content; margin-top: 0.45rem; color: var(--accent); }
.ion-actions { justify-content: flex-end; }
.place-dialog { width: 37.5rem; }
.dialog-content { padding: clamp(1rem, 2.6vw, 1.85rem); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 0.8rem; margin-bottom: 1.15rem; }
.dialog-header h2 { font: 700 clamp(1.55rem, 4vw, 2.5rem)/1.25 var(--serif); overflow-wrap: anywhere; }
.dialog-eyebrow { color: var(--accent); font-size: 0.88rem; margin-bottom: 0.35rem; overflow-wrap: anywhere; }
.dialog-actions { display: flex; align-items: center; gap: 0.5rem; }
.album-figure { overflow: hidden; background: #0b0e11; border-radius: 0.43rem; }
.album-figure img { width: 100%; height: auto; min-height: 7rem; max-height: min(45svh, 30rem); object-fit: contain; }
.photo-navigation { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem; color: var(--muted); font-size: 0.86rem; }
.photo-navigation .outline-button { min-height: 2.25rem; }
.album-note { margin-top: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.album-no-photos { padding: 1.7rem; background: #0f1318; border-radius: 0.4rem; color: var(--muted); }
.album-coordinates { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.83rem; margin-top: 0.75rem; }
.dialog-fields { display: grid; gap: 0.9rem; }
.form-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; font-weight: 560; font-size: 0.89rem; }
.form-field input, .form-field textarea {
  background: #10141a;
  color: var(--ink);
  min-width: 0;
  min-height: 2.6rem;
  border: 1px solid #3c414a;
  border-radius: 0.38rem;
  padding: 0.48rem 0.65rem;
  font-size: 1rem;
  font-weight: 400;
}
.form-field :is(input, textarea)::placeholder { color: #969aa1; }
.form-field textarea { resize: vertical; }
.form-field input[type="file"] { width: 100%; font-size: 0.87rem; }
.form-field input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 0.2rem;
  background: #30353f;
  color: var(--ink);
  padding: 0.25rem 0.5rem;
  font: inherit;
  margin-right: 0.5rem;
  cursor: pointer;
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.name-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem; align-items: end; }
.coordinates-fields { position: relative; min-width: 0; border: 1px solid #343941; border-radius: 0.5rem; margin: 0; padding: 0.75rem; }
.coordinates-fields legend { padding-inline: 0.3rem; font-size: 0.88rem; }
.pick-coordinates { position: absolute; right: 0.65rem; top: -1.05rem; padding-inline: 0.35rem; background: var(--layer); font-size: 0.81rem; }
.geocoding-results { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.85rem; }
.geocoding-results button {
  padding: 0.45rem 0.65rem;
  border: 1px solid #3b4149;
  border-radius: 0.35rem;
  background: #10141a;
  color: var(--ink);
  text-align: left;
}
.geocoding-results button:hover { border-color: var(--accent); }
.geocoding-results a { width: max-content; }
.photo-file-list { padding: 0; margin: 0.25rem 0; list-style: none; display: grid; gap: 0.2rem; }
.photo-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.photo-file-list span { overflow-wrap: anywhere; font-size: 0.83rem; color: var(--muted); }
.photo-file-list .text-button { font-size: 0.8rem; }
.form-feedback { color: #ffb291; font-size: 0.85rem; }
.form-feedback:empty { display: none; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.1rem; }
.form-footer p { color: var(--muted); font-size: 0.79rem; margin-right: auto; }
.form-footer .delete-place { color: #fdb29b; }
.status-toast {
  position: fixed;
  right: var(--gutter);
  bottom: 1.3rem;
  z-index: 4;
  max-width: calc(100% - 2rem);
  background: #22252d;
  color: var(--ink);
  border: 1px solid #765c48;
  border-radius: 0.45rem;
  padding: 0.68rem 0.98rem;
  box-shadow: 0 5px 16px #0005;
}

@media (max-width: 1000px) {
  .explorer { grid-template-columns: minmax(15rem, 33%) minmax(0, 1fr); }
  .map-shell { margin-inline: -0.6rem calc(var(--gutter) * -0.65); }
  .map-caption { align-items: flex-end; }
  .map-caption a { text-align: right; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 4.15rem; gap: 0.7rem; }
  .header-add { min-height: 2.35rem; padding-inline: 0.63rem; gap: 0.35rem; }
  .wordmark { gap: 0.48rem; font-size: 1.3rem; }
  .brand-mark { width: 1.05rem; height: 1.05rem; }
  .main-nav { gap: 0.75rem; }
  .main-nav a { font-size: 0.81rem; }
  .explorer { display: flex; flex-direction: column; }
  .explorer-intro { padding-top: 2.4rem; }
  .explorer-intro h1 { font-size: clamp(2.55rem, 8.8vw, 3.75rem); margin: 0.62rem 0 0.55rem; }
  .explorer-intro h1 br { display: none; }
  .hero-description { max-width: none; font-size: 0.95rem; }
  .map-shell { margin-inline: calc(var(--gutter) * -1); min-height: min(108vw, 31rem); }
  .map-tools { bottom: 2.75rem; right: var(--gutter); }
  .source-button { top: 0.65rem; right: var(--gutter); }
  .album-sheet {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 63svh;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 0.75rem 0.75rem 0 0;
    animation-name: album-enter-mobile;
  }
  @keyframes album-enter-mobile {
    from { transform: translateY(2rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .album-sheet .dialog-content { padding: 1rem var(--gutter); }
  .album-sheet .album-figure img { max-height: 39svh; }
  .map-button { width: 2.45rem; height: 2.4rem; }
  .map-caption { left: var(--gutter); right: var(--gutter); bottom: 0.5rem; }
  .map-caption .caption-divider { margin-inline: 0.12rem; }
  .place-list-panel { width: 100%; margin: 1.2rem 0 2.35rem; }
  .place-list { max-height: 11.75rem; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0.8rem; }
  .album-card { gap: 0.4rem; }
  .album-card-meta { flex-direction: column; align-items: start; gap: 0; }
  .album-card-region { text-align: left; padding-top: 0; }
  .albums-heading { gap: 0.6rem; }
  .albums-heading .outline-button { padding-inline: 0.55rem; gap: 0.3rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 1.3rem; }
  .footer-inner p { flex: 1 0 100%; order: 1; }
}

@media (max-width: 385px) {
  .header-inner { padding-inline: 0.85rem; }
  .main-nav { gap: 0.55rem; }
  .main-nav a { font-size: 0.75rem; }
  .header-add { font-size: 0.8rem; }
  .map-caption { font-size: 0.67rem; }
}

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