/* Soft-launch: sharp map, blurred homepage chrome ghosts, Comfort Mode */
:root {
  --bg: #F6F3EC;
  --ink: #1B2838;
  --mist: #5C6570;
  --line: #D3CBBC;
  --accent: #2C5874;
  --warm: #B85A2A;
  --panel: rgba(246, 243, 236, 0.88);
  --panel-strong: rgba(255, 253, 248, 0.94);
  --shadow: 0 16px 48px rgba(27, 40, 56, 0.22);
  --focus: #2C5874;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { color-scheme: light; }
body.soft-launch {
  font-family: system-ui, "Segoe UI", sans-serif;
  background: #0b1216;
  color: var(--ink);
  min-height: 100%;
  overflow: hidden;
  font-size: 1.125rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

#map {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #dce6ee;
  filter: none;
}

/* Ghost homepage HUD: shapes only, no text, heavily blurred */
.ghost-hud {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  filter: blur(10px) saturate(0.7);
  opacity: 0.55;
}
.ghost-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.75), transparent);
}
.ghost-mark {
  width: 140px;
  height: 18px;
  border-radius: 4px;
  background: rgba(27, 40, 56, 0.35);
}
.ghost-search {
  flex: 1;
  max-width: 420px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(211, 203, 188, 0.7);
}
.ghost-nav {
  width: 220px;
  height: 18px;
  border-radius: 4px;
  background: rgba(27, 40, 56, 0.28);
  margin-left: auto;
}
.ghost-layers {
  position: absolute;
  top: 86px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ghost-layers span {
  width: 92px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
  border: 1px solid rgba(211, 203, 188, 0.65);
}
.ghost-ticker {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}
.ghost-ticker span {
  width: 120px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.45);
}

.soft-blur {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(12px) saturate(0.85);
  -webkit-backdrop-filter: blur(12px) saturate(0.85);
}
.soft-blur-top {
  top: 0;
  left: 0;
  right: 0;
  height: min(22vh, 180px);
  background: linear-gradient(180deg, rgba(246, 243, 236, 0.72) 0%, rgba(246, 243, 236, 0.28) 60%, transparent 100%);
}
.soft-blur-sides {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 243, 236, 0.45) 0%, transparent 14%, transparent 86%, rgba(246, 243, 236, 0.45) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mask-image: linear-gradient(90deg, #000 0%, transparent 18%, transparent 82%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 18%, transparent 82%, #000 100%);
}
.soft-blur-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: min(28vh, 220px);
  background: linear-gradient(0deg, rgba(246, 243, 236, 0.82) 0%, rgba(246, 243, 236, 0.35) 55%, transparent 100%);
}

.soft-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 50% 48%, transparent 0%, rgba(7, 8, 11, 0.12) 100%);
}

.soft-mark {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(246, 243, 236, 0.85);
}
.soft-mark svg { color: var(--ink); }

.soft-banner {
  position: fixed;
  z-index: 22;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  padding: 28px 32px 26px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.soft-eyebrow {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
}

.soft-banner h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
}

.soft-subline {
  margin: 16px 0 0;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.soft-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--mist);
}

.soft-foot {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  padding: 0 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mist);
}
.soft-foot p { margin: 0; }
.soft-desk-link {
  color: var(--accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.soft-desk-link:hover { color: var(--warm); }

.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-top-right,
.maplibregl-ctrl-top-left,
.maplibregl-ctrl-attrib {
  display: none !important;
}

@media (max-width: 640px) {
  .soft-mark { left: 14px; top: 12px; font-size: 0.85rem; }
  .soft-banner { padding: 22px 18px 20px; }
  .soft-foot { bottom: 10px; flex-direction: column; gap: 4px; }
  .ghost-layers, .ghost-ticker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ghost-hud { filter: blur(6px); }
}
