/* Summit Trail front page. Same trail-sign language as the game. */
:root {
  --ink: #13212c;
  --ink-2: #1b2d3a;
  --glacier: #e6eef0;
  --snow: #ffffff;
  --wanderweg: #f2c200;
  --spruce: #1e4a43;
  --blaze: #c8332b;
  --mist: #5d7480;
  --mist-light: #93a8b2;
  --f-sign: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, sans-serif;
  --f-data: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--glacier); color: var(--ink); font: 400 17px/1.55 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wanderweg); outline-offset: 3px; }

.eyebrow { margin: 0 0 14px; font: 700 14px/1.2 var(--f-sign); letter-spacing: .18em; text-transform: uppercase; color: var(--wanderweg); }
.eyebrow-dark { color: var(--spruce); }

/* ---------- top bar ---------- */
.bar {
  position: absolute; z-index: 5; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); color: var(--snow);
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 800 20px/1 var(--f-sign); letter-spacing: .14em; text-transform: uppercase; }
.wordmark svg { width: 22px; height: 22px; color: var(--wanderweg); }
.bar-link { font: 600 15px/1 var(--f-sign); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 11px 16px; border: 1.5px solid rgb(255 255 255 / .55); border-radius: 99px; }
.bar-link:hover { background: rgb(255 255 255 / .12); }

/* ---------- hero: the trail junction ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--snow);
  min-height: min(880px, 100svh);
  background: linear-gradient(180deg, #2a5674 0%, #5f8eab 42%, #a9c6d6 70%, #d9e6ec 100%);
  padding: clamp(110px, 16vh, 150px) var(--gutter) 0;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.ridges { position: absolute; inset: auto 0 0; width: 100%; height: 52%; }
.r1 { fill: #7f9db0; }
.snow { fill: #eef4f6; }
.r2 { fill: #3d6a63; }
.r3 { fill: var(--ink); }
.trail { fill: none; stroke: var(--wanderweg); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; opacity: .85;
  animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -32; } }

.hero-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start;
}
.hero-copy h1 {
  margin: 0; font: 800 clamp(48px, 7.4vw, 104px)/.92 var(--f-sign); letter-spacing: -.01em;
  text-wrap: balance; text-shadow: 0 2px 24px rgb(19 33 44 / .25);
}
.lede { margin: 22px 0 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: rgb(255 255 255 / .95); text-shadow: 0 1px 12px rgb(19 33 44 / .45); }

/* The signpost: a pole with arrow plates. The plates are the buttons. */
.post { position: relative; display: grid; gap: 12px; padding: 6px 0 0 22px; justify-items: start; }
.pole { position: absolute; left: 4px; top: 0; bottom: -40px; width: 14px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #7a848a, #c4ccd0 40%, #7a848a); box-shadow: 2px 0 8px rgb(0 0 0 / .2); }
.plate {
  position: relative; display: grid; gap: 2px; margin: 0; text-decoration: none; color: var(--ink);
  padding: 14px 46px 14px 18px; min-height: 64px; min-width: min(340px, 100%);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  box-shadow: 0 10px 24px rgb(0 0 0 / .22);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.plate-main { font: 800 clamp(22px, 2.4vw, 28px)/1 var(--f-sign); letter-spacing: .01em; }
.plate-sub { font: 500 13px/1.2 var(--f-data); opacity: .75; }
.plate-go { background: var(--wanderweg); }
.plate-alt { background: var(--snow); }
a.plate:hover { transform: translateX(6px); filter: brightness(1.04); }
a.plate:active { transform: translateX(3px); }
a.plate[aria-disabled="true"] { cursor: default; }
a.plate[aria-disabled="true"]:hover { transform: none; }
.plate-info {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; min-width: min(300px, 100%); min-height: 0;
  padding: 10px 16px; clip-path: none; border-radius: 3px; background: var(--ink-2); color: var(--snow);
  font: 700 20px/1 var(--f-sign); letter-spacing: .04em;
}
.plate-info .km { font: 500 14px/1 var(--f-data); color: var(--wanderweg); }

/* The hiker strides along the trail line at the foot of the hero. */
.walker {
  --h: clamp(170px, 24vh, 250px);
  --w: calc(var(--h) * 163 / 320);
  position: absolute; z-index: 1; left: clamp(12px, 12vw, 220px); bottom: clamp(26px, 6vh, 60px);
  width: var(--w); height: var(--h);
  background: url(/hiker/walk/regular.webp) 0 0 / calc(var(--w) * 26) 100% no-repeat;
  animation: stride 1.08s steps(26) infinite;
  filter: drop-shadow(0 8px 10px rgb(0 0 0 / .35));
}
@keyframes stride { to { background-position: calc(var(--w) * -26) 0; } }

/* ---------- walking pad ---------- */
.pad {
  max-width: 1180px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 6vw, 90px); align-items: center;
}
.pad h2, .section-head h2, .beta h2 {
  margin: 0 0 18px; font: 800 clamp(36px, 4.6vw, 60px)/.98 var(--f-sign); text-wrap: balance;
}
.pad p { margin: 0 0 14px; max-width: 34em; color: #2c3f4c; }

.phone {
  position: relative; margin: 0; justify-self: center; width: min(360px, 100%);
  padding: 12px; border-radius: 48px; background: var(--ink);
  box-shadow: 0 30px 60px rgb(19 33 44 / .3), inset 0 0 0 2px #2b3e4c;
}
.phone img { width: 100%; border-radius: 36px 36px 22px 22px; }
.live {
  position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 2px;
  padding: 12px 16px; border-radius: 22px; background: rgb(19 33 44 / .94); color: var(--snow);
  box-shadow: 0 8px 20px rgb(0 0 0 / .3);
}
.live strong { font: 700 19px/1.1 var(--f-sign); }
.live span { font: 500 13px/1.3 var(--f-body); color: var(--wanderweg); }

/* ---------- ranks ---------- */
.ranks { background: var(--ink); color: var(--snow); padding: clamp(64px, 10vw, 120px) var(--gutter); }
.section-head { max-width: 1180px; margin: 0 auto; }
.section-head p { margin: 0; max-width: 40em; color: var(--mist-light); }
.rank-line {
  position: relative; max-width: 1180px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end;
}
/* One rising, dashed trail behind the six hikers. */
.rank-line::before {
  content: ''; position: absolute; left: 4%; right: 4%; bottom: 58px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--wanderweg) 0 6px, transparent 6px 16px);
  transform: rotate(-6deg); transform-origin: left; opacity: .7;
}
.rank-line li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.rank-line li:nth-child(2) { transform: translateY(-14px); }
.rank-line li:nth-child(3) { transform: translateY(-28px); }
.rank-line li:nth-child(4) { transform: translateY(-42px); }
.rank-line li:nth-child(5) { transform: translateY(-56px); }
.rank-line li:nth-child(6) { transform: translateY(-70px); }
.rank-line img { height: clamp(120px, 15vw, 190px); width: auto; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .4)); }
.rank-line span { font: 700 clamp(16px, 1.6vw, 20px)/1.1 var(--f-sign); }
.rank-line small { font: 500 12px/1 var(--f-data); color: var(--wanderweg); }
.trail-facts {
  max-width: 1180px; margin: clamp(28px, 4vw, 40px) auto 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 28px; font: 500 14px/1.4 var(--f-data); color: var(--mist-light);
}
.trail-facts b { font: 700 17px/1 var(--f-sign); color: var(--snow); margin-right: 6px; letter-spacing: .02em; }

/* ---------- more ---------- */
.more {
  max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
}
.more article { border-top: 4px solid var(--wanderweg); padding-top: 18px; }
.more h3 { margin: 0 0 8px; font: 800 26px/1.05 var(--f-sign); }
.more p { margin: 0; color: #2c3f4c; }

/* ---------- beta ---------- */
.beta {
  margin: 0 var(--gutter) clamp(56px, 8vw, 96px); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
  border-radius: 10px; background: var(--spruce); color: var(--snow);
}
.beta p { margin: 0 0 24px; max-width: 38em; color: rgb(255 255 255 / .85); }
.plate-big { min-height: 72px; padding-right: 56px; }
.plate-big .plate-main { font-size: clamp(24px, 3vw, 32px); }
.fine { margin: 14px 0 0 !important; font-size: 14px; color: rgb(255 255 255 / .7) !important; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  padding: 28px var(--gutter) 40px; border-top: 1px solid #c9d6db; font-size: 15px; color: var(--mist);
}
.foot a { color: var(--ink); font-weight: 600; }
.foot span { flex-basis: 100%; font-size: 13px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-bottom: clamp(220px, 34vh, 300px); min-height: 0; }
  .pad { grid-template-columns: 1fr; }
  .more { grid-template-columns: 1fr; }
  .rank-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .rank-line::before { display: none; }
  .rank-line li:nth-child(n) { transform: none; }
}
@media (max-width: 520px) {
  .plate { min-width: 0; width: 100%; }
  .bar-link { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .walker { animation: none; }
  .trail { animation: none; }
  a.plate { transition: none; }
}
.beta .plate { display: inline-grid; }
