@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Barlow-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/BarlowCondensed-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/BarlowCondensed-600-latin.woff2") format("woff2"); }

:root {
  --ground: #eef3f5;
  --ground-deep: #e2eaee;
  --ink: #1b2328;
  --ink-soft: #46545c;
  --rule: #b9c7ce;
  --accent: #e5735c;
  --blue: #387795;
  --blue-deep: #2b5f78;
  --ice: #9cc6d8;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--blue) var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Barlow", system-ui, sans-serif;
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--accent); }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.label {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Home */
.sheet {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-bottom: 1px solid var(--rule);
}
.intro {
  padding: calc(var(--space) * 1.6) var(--space) var(--space) calc(var(--space) * 1.6);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  border-right: 1px solid var(--rule);
}
.brand { display: flex; align-items: flex-end; gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.brand .mark { width: clamp(5.5rem, 11vw, 9.5rem); height: auto; flex: none; margin-bottom: -0.3em; }
.intro h1 {
  margin: 0;
  font: 600 clamp(3.4rem, 7.2vw, 6rem)/0.88 "Barlow Condensed", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.lead { margin: 0; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 30ch; }
.action { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.button {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  background: var(--blue); color: #fff;
  font: 600 1.15rem/1 "Barlow Condensed", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 6px 16px -8px rgba(43, 95, 120, 0.6);
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.button svg { width: 1.1rem; height: 1.1rem; flex: none; }
.action small { color: var(--ink-soft); font-size: 0.95rem; }

.legend { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.legend li {
  display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.9rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--rule);
}
.legend .belay {
  grid-row: span 2;
  width: 1.75rem; height: 1.75rem; margin-top: 0.1rem;
  border: 2px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center;
  font: 600 0.95rem/1 "Barlow Condensed", system-ui, sans-serif;
  color: var(--ink); background: #fff;
}
.legend .label { font-size: 1.05rem; line-height: 1.2; }
.legend p { margin: 0.15rem 0 0; color: var(--ink-soft); max-width: 46ch; }

.topo {
  position: relative;
  background: linear-gradient(180deg, var(--ground) 0%, var(--ground-deep) 100%);
  overflow: hidden;
}
.topo { margin: 0; }
.topo svg { display: block; width: 100%; height: 100%; max-height: 100vh; overflow: visible; }
.topo svg text { font-family: "Barlow Condensed", system-ui, sans-serif; font-weight: 600; letter-spacing: 0.08em; }

@media (prefers-reduced-motion: no-preference) {
  .js .route { stroke-dasharray: 1; stroke-dashoffset: 0; animation: climb 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
  @keyframes climb { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

.footer {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  padding: 1.25rem calc(var(--space) * 1.6);
  color: var(--ink-soft); font-size: 0.95rem;
}
.footer nav { display: flex; gap: 1.5rem; }

@media (max-width: 900px) {
  .sheet { grid-template-columns: 1fr; min-height: 0; padding: 2.5rem 1.25rem 0; row-gap: 1.75rem; }
  .intro { display: contents; }
  .brand { order: 1; }
  .lead { order: 2; }
  .action { order: 3; }
  .topo { order: 4; margin: 0 -1.25rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .legend { order: 5; margin-bottom: 2rem; }
  .route-labels { font-size: 21px; }
  .topo svg { max-height: none; height: auto; overflow: hidden; }
  .footer { padding: 1.25rem; }
}

/* Privacy */
.doc { max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.doc header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 1rem; margin-bottom: 2.5rem; }
.doc header { flex-wrap: wrap; }
.doc header a.label { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-size: 1.6rem; white-space: nowrap; }
.doc header a:not(.label) { font-size: 1rem; }
.doc h1 { font: 600 clamp(2.4rem, 6vw, 3.6rem)/0.95 "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; margin: 0 0 0.75rem; }
.doc h2 { font: 600 1.35rem/1.2 "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; margin: 2.5rem 0 0.5rem; }
.doc p, .doc li { max-width: 68ch; }
.doc .meta { color: var(--ink-soft); margin: 0; }
.doc header .mark { width: 2.2rem; height: 2.2rem; }
