@font-face {
  font-family: 'DM Sans';
  src: url('./dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('./manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: 'DM Sans', system-ui, sans-serif;
  --paper: #101214;
  --panel: #201e1b;
  --ink: #f2f2f1;
  --muted: #bcb7b1;
  --border: #45403a;
  --accent: #d4b996;
  --accent-dark: #241c14;
  --brand-gradient: linear-gradient(115deg, #c4a484, #d2b595 54%, #dfc8ab);
}
body { font-size: 1rem; }
a { color: var(--accent); }
a:hover { color: #ead9c3; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible,
input:focus-visible, .viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header {
  min-height: 84px;
  padding: 18px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: #0c0f11;
  border-bottom: 1px solid #ffffff14;
}
.site-brand { flex: 0 0 auto; }
.site-brand img { display: block; width: 125px; height: auto; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 32px; align-items: center; }
.site-header nav a { color: #d1d0ce; font-size: .8125rem; line-height: 1.6; white-space: nowrap; text-decoration: none; }
.site-header nav a:hover, .breadcrumb a:hover, .site-footer nav a:hover { color: var(--accent); }
main { width: 100%; max-width: 1500px; padding-inline: 5vw; }
.breadcrumb {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 13px;
  padding-top: 27px; color: #a6a39f; font-size: .8125rem; letter-spacing: .6px; text-transform: uppercase;
}
.breadcrumb a, .site-footer nav a { color: inherit; text-decoration: none; }
.hero { width: auto; margin: 34px 0 25px; padding: 0; }
.hero .eyebrow { color: #c7c4c0; font-size: .8125rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { font: 500 clamp(32px, 4vw, 56px)/1.1 Manrope, 'DM Sans', sans-serif; letter-spacing: -2.8px; margin: 12px 0; }
.hero .subtitle { margin: 0; color: #b7b5b2; font-size: .8125rem; }
.summit-stat strong { color: var(--accent); font-family: Manrope, 'DM Sans', sans-serif; font-weight: 600; letter-spacing: -.04em; }
.atlas { border-radius: 16px; background: #191b1d; }
.map-toolbar { background: #17191a; border-bottom: 1px solid #45403a; }
.layers { background: #101214; }
.map-toolbar button { color: #d6d4d1; font-size: .875rem; }
.map-toolbar button:hover { background: #342c24; }
.map-toolbar button[aria-pressed="true"] { background: var(--brand-gradient); color: var(--accent-dark); }
.viewport { background: radial-gradient(ellipse at 50% 42%, #45565c 0%, #29373e 52%, #12171a 100%); }
.viewport .map-note, .viewport .map-actions { background: #131719ed; }
.map-actions button:hover, .map-actions button[aria-pressed="true"] { background: #554537; }
.route-panel { background: linear-gradient(140deg, #2b241e 0%, #201e1b 50%, #191817 100%); }
.route-header h2 { font-family: Manrope, 'DM Sans', sans-serif; font-size: 1.48rem; letter-spacing: -.035em; }
.route-header p, .detail p { color: var(--muted); }
.landmarks li:not(:last-child)::after { background: #5e5145; }
.landmark-row { color: var(--ink); }
.landmark-row:hover, .landmark-row[aria-pressed="true"] { background: #3a3027; }
.landmark-row[aria-pressed="true"] { color: #f1d8b7; }
.landmark-row .symbol { border-color: #bc8e69; background: #28221c; }
.landmark-row.summit .symbol, .landmark-row[aria-pressed="true"] .symbol { background: #d4b996; }
.profile-section { background: #191b1d; border-top: 1px solid #45403a; }
.profile .gridline { stroke: #393631; }
.profile text { font-family: 'DM Sans', system-ui, sans-serif; fill: var(--muted); }
.profile .trace { stroke: #d4b996; }
.profile .area { fill: #47392d; }
.profile-point::before { background: #221f1c; border-color: #d4b996; }
.profile-point[aria-pressed="true"]::before, .profile-point:hover::before { background: #d4b996; box-shadow: 0 0 0 2px #211c18; }
.profile-cursor-line { stroke: #ad896c; }
.profile-cursor-dot { fill: #efd6b0; stroke: #795b40; }
.route-tip { background: #211d19f2; color: #f8e8d1; }
.imagery-notice { background: #362b22; color: var(--accent); }
#imagery-settings { background: var(--panel); }
#imagery-settings h2 { font-family: Manrope, 'DM Sans', sans-serif; }
#imagery-settings input, .imagery-actions button, .imagery-manage {
  border-color: var(--border); background: #171615; color: var(--ink);
}
#imagery-connect { background: var(--brand-gradient); color: var(--accent-dark); border-color: #c4a484; }
.sources { padding-bottom: 16px; }
.site-footer {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
  padding: 35px 5vw; border-top: 1px solid #292725; background: #0b0e10; color: #989591; font-size: .8125rem;
}
.site-footer .site-brand img { width: 95px; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.site-footer .footer-youtube { display: inline-flex; align-items: center; gap: 6px; }
.footer-youtube svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .atlas { border-radius: 12px; }
}
@media (max-width: 650px) {
  .site-header { min-height: 74px; padding-block: 14px; gap: 18px; }
  .site-brand img { width: 102px; }
  .site-header nav { gap: 12px 15px; min-width: 0; }
  .site-header .desktop { display: none; }
  .hero { margin-top: 24px; }
  .hero h1 { letter-spacing: -1.8px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer nav { gap: 12px 15px; }
}

.calibration { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); }
.calibration[hidden], .map-callout[hidden] { display: none; }
.calibration h3 { margin: 0 0 6px; font: 650 1rem Manrope, system-ui, sans-serif; }
.calibration p { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.calibration form { display: grid; gap: 7px; margin-top: 10px; }
.calibration label { font-size: .84rem; font-weight: 650; }
.calibration input, .calibration select, .calibration button {
  color: var(--ink); background: #191715;  border: 1px solid var(--border);
  border-radius: 5px; padding: 6px 8px; font: inherit; font-size: .86rem;
}
.calibration input, .calibration select { width: 100%; min-width: 0; }
.calibration button:enabled:hover, .calibration button[aria-pressed="true"] { background: #49382b; }
.calibration button:disabled { opacity: .45; cursor: default; }
.calibration input { margin-top: 3px; }
.calibration-coordinates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calibration-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.viewport.calibration-picking { cursor: crosshair; }
.viewport.calibration-picking .marker { pointer-events: none; }
.viewport.calibration-picking.dragging { cursor: grabbing; }
.map-callout {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: max-content; max-width: calc(100% - 28px); margin: 0;
  background: #211d19f2; color: #f8e8d1; padding: 5px 8px; border-radius: 4px;
  font-size: .8rem; text-align: center; pointer-events: none;
}
.marker.draft-marker::before { box-shadow: 0 0 0 2px #192a30, 0 0 0 4px #eac9a0; }

.mountain-guide {
  padding-block: clamp(24px, 3.5vw, 48px) clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--border);
}
.mountain-guide h2, .mountain-guide h3, .mountain-facts dd { font-family: Manrope, 'DM Sans', sans-serif; }
.mountain-guide h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.14; font-weight: 550; letter-spacing: -.04em; }
.mountain-guide .guide-intro { max-width: 72ch; margin-top: 14px; }
.mountain-guide p { line-height: 1.65; color: #d2ccc6; }
.mountain-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 26px 0 34px; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--border);
}
.mountain-facts div { padding: clamp(12px, 1.7vw, 22px); background: var(--panel); }
.mountain-facts dt { color: var(--muted); font-size: .85rem; }
.mountain-facts dd { margin: 6px 0 0; color: var(--accent); font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 650; }
.mountain-facts small { display: block; margin-top: 2px; color: var(--muted); font-size: .75em; font-weight: 500; }
.guide-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 70px); }
.guide-sections section { padding-top: 18px; border-top: 1px solid var(--border); }
.guide-sections h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 650; letter-spacing: -.024em; }
.guide-sections p { margin-top: 10px; }
.guide-sources { display: flex; flex-wrap: wrap; gap: 6px 17px; font-size: .875rem; }
@media (max-width: 720px) {
  .mountain-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-sections { grid-template-columns: 1fr; gap: 24px; }
}
