:root {
  --night: #16213a;
  --night-2: #233252;
  --hud: rgba(91, 111, 130, 0.78);
  --snow: #f4f7fb;
  --card: #ffffff;
  --ink: #1b2438;
  --ink-2: #4d5c75;
  --line: #d3dce8;
  --wood: #8a4a2b;
  --wood-dark: #5a2f1b;
  --glow: #f2a24a;
  --orange: #b9560f;
  --orange-dark: #944308;
  --green: #4fb868;
  --blue: #4b7ce0;
  --red: #d9453d;
  --on-dark: #e8eef8;
  --hud-line: rgba(255, 255, 255, 0.18);
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-head: "Alfa Slab One", "Rockwell", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
p { margin: 0 0 16px; }
.small { font-size: 14px; color: var(--ink-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--card); padding: 8px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* symbols: the four trail-rating shapes from the game */
.sym { display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.sym-green { background: var(--green); border-radius: 50%; }
.sym-blue { background: var(--blue); border-radius: 2px; }
.sym-black { background: var(--ink); width: 10px; height: 10px; transform: rotate(45deg); margin-right: 10px; }
.sym-double { position: relative; width: 22px; height: 12px; background: none; }
.sym-double::before, .sym-double::after { content: ""; position: absolute; top: 1px; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.sym-double::before { left: 1px; }
.sym-double::after { left: 11px; }
.sec-night .sym-black, .hero .sym-black { background: var(--on-dark); }

/* header */
.topbar { background: var(--night); border-bottom: 4px solid var(--wood); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-sign { position: relative; font-family: var(--font-head); font-size: 22px; line-height: 1; color: var(--snow); background: var(--wood); border: 3px solid var(--wood-dark); border-radius: var(--radius); padding: 12px 16px 8px; }
.brand-sign::before { content: ""; position: absolute; left: -3px; right: -3px; top: -8px; height: 12px; background: var(--snow); border-radius: 8px 8px 4px 4px; }
.brand-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glow); }
.nav { display: flex; gap: 24px; overflow-x: auto; }
.nav a { color: var(--on-dark); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--glow); border-bottom-color: var(--glow); }

/* hero: cold blue night, warm window light */
.hero { background: var(--night); color: var(--on-dark); padding: 48px 0 0; }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.kicker { display: flex; align-items: center; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.kicker-glow { color: var(--glow); }
.h1-hero { font-size: 48px; color: var(--snow); margin-bottom: 24px; }
.hero-lead { font-size: 18px; color: var(--on-dark); max-width: 60ch; }
.hero-lead strong { color: var(--glow); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; background: var(--orange); color: var(--card); font-weight: 700; font-size: 16px; text-decoration: none; border-radius: var(--radius); border: 2px solid var(--orange); }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--card); }
.btn.ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn.ghost:hover { background: var(--night-2); color: var(--card); }
.hero-fig { margin: 0; border: 4px solid var(--wood); border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.hero-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-fig figcaption { font-size: 14px; color: var(--on-dark); padding: 8px 16px; background: var(--night-2); }
.lights { height: 24px; margin-top: 32px; background-image: radial-gradient(circle at 50% 12px, var(--glow) 0 4px, transparent 5px); background-size: 48px 24px; background-repeat: repeat-x; }

/* HUD cards */
.hud { background: var(--hud); color: var(--card); border: 1px solid var(--hud-line); border-radius: var(--radius); padding: 16px 24px; }
.hud-title { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--card); margin: 0 0 12px; }
.hud-strip { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 24px; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; }
.strip-cell { border-left: 3px solid var(--glow); padding-left: 12px; }
.strip dt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark); }
.strip dd { overflow-wrap: anywhere; margin: 0; font-family: var(--font-head); font-size: 22px; line-height: 1.2; color: var(--card); }
.hud-note { color: var(--on-dark); margin: 16px 0 0; }

/* trail map toc + legend */
.trailmap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.trail-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.trail-list li { display: flex; align-items: center; padding: 8px 0; break-inside: avoid; border-bottom: 1px dashed var(--line); }
.trail-list a { font-weight: 700; color: var(--ink); text-decoration: none; }
.trail-list a:hover { color: var(--orange); }
.legend { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 24px; box-shadow: var(--shadow-1); }
.legend ul { list-style: none; margin: 0; padding: 0; }
.legend li { font-size: 14px; color: var(--ink-2); padding: 8px 0; }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); margin-right: 8px; white-space: nowrap; }
.tag .sym { margin-right: 6px; transform-origin: center; }
.tag .sym-black { margin-right: 8px; }

.guides { padding-bottom: 16px; }
.guides-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guides-list:empty { display: none; }
.guides:has(.guides-list:empty) { display: none; }
.guides-list li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--wood); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); }
.guides-list a { font-weight: 700; display: block; margin-bottom: 8px; }
.guides-list span { display: block; font-size: 14px; color: var(--ink-2); }

/* sections */
.sec { padding: 48px 0; }
.sec-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-night { background: var(--night); color: var(--on-dark); }
.sec-night h2, .sec-night h3 { color: var(--snow); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose-dark { color: var(--on-dark); }
.prose-dark a { color: var(--glow); }
.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--night); color: var(--card); font-size: 14px; }
.prose blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 4px solid var(--glow); background: var(--card); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split-rev { grid-template-columns: 0.9fr 1.1fr; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--radius); border: 3px solid var(--wood); aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.page-wrap .shot { margin: 0 0 32px; max-width: 900px; }
.more { margin-top: 16px; font-weight: 700; }

/* lift-ticket steps */
.tickets { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ticket { display: flex; gap: 16px; background: var(--snow); border: 2px dashed var(--wood); border-radius: var(--radius); padding: 16px 24px; }
.ticket-no { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 22px; color: var(--snow); background: var(--wood); border-radius: 50%; }
.ticket h3 { margin-bottom: 8px; }
.ticket p { margin: 0; font-size: 16px; }

/* slope legend */
.slope-grid { margin: 24px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.slope-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.slope-row:last-child { border-bottom: 0; }
.slope-row span { font-weight: 700; color: var(--orange); }
.slope-row .sym { margin: 0; }

/* mountains */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; padding: 0; }
.chips li { font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--night-2); border: 1px solid var(--hud); color: var(--on-dark); }
.hud-table { padding: 16px 24px 8px; margin-bottom: 24px; }
.peaks { display: grid; }
.peak { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--hud-line); }
.peak strong { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--card); }
.peak span { font-size: 16px; }
.peak-tag { white-space: nowrap; margin: 0; }

.weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.wcard { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 16px 24px; box-shadow: var(--shadow-1); }
.wcard p { font-size: 16px; margin: 0; }
.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.money-card p { font-size: 16px; }
.money-card .hud-title { color: var(--glow); }

/* tables */
.tablewrap { overflow-x: auto; margin: 24px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cmp th { background: var(--night); color: var(--card); font-size: 14px; }
.cmp tr:last-child td { border-bottom: 0; }

/* ad */
.ad-slot { max-width: 360px; margin: 48px auto; text-align: center; }
.ad-label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.ad-box { min-height: 250px; display: flex; align-items: center; justify-content: center; }

/* faq */
.faq { margin-top: 24px; max-width: 800px; }
.faq h2 { margin-bottom: 24px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-1); }
.sec-white .faq-item { background: var(--snow); }
.faq-item summary { cursor: pointer; padding: 16px 24px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-head); color: var(--orange); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 24px 16px; }
.faq-a p:last-child { margin-bottom: 0; }
.src-list { padding-left: 24px; }
.src-list li { margin-bottom: 8px; }

/* inner pages */
.page-wrap { padding-top: 32px; padding-bottom: 48px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.crumbs a { color: var(--ink-2); }
.page-head { margin-bottom: 24px; max-width: 900px; }
.h1-page { font-size: 36px; margin-bottom: 8px; }
.answer { max-width: 900px; margin-bottom: 32px; border-left: 6px solid var(--glow); background: var(--night); }
.answer .hud-title { color: var(--glow); }
.answer-body { font-size: 18px; color: var(--on-dark); }
.answer-body p:last-child { margin-bottom: 0; }
.answer-body strong { color: var(--card); }
.page-wrap .prose { max-width: 70ch; }
.legal { max-width: 70ch; }
.lead-dark { font-size: 18px; color: var(--ink-2); }
.related { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.related-card { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); }
.related-card:hover { border-color: var(--wood); }
.lost { text-align: left; }

/* footer */
.footer { background: var(--night); color: var(--on-dark); border-top: 4px solid var(--wood); padding: 32px 0 24px; }
.footer .small { color: var(--on-dark); }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-about { max-width: 60ch; }
.footer-brand { font-family: var(--font-head); font-size: 22px; color: var(--snow); margin: 0 0 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--glow); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { margin-top: 24px; }

@media (max-width: 900px) {
  .hero-in, .split, .split-rev, .trailmap { grid-template-columns: 1fr; gap: 32px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .guides-list, .weather-grid, .money-grid { grid-template-columns: 1fr; }
  .tickets { grid-template-columns: 1fr; }
  .peak { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  h2 { font-size: 22px; }
  .h1-hero { font-size: 28px; }
  .h1-page { font-size: 28px; }
  .topbar-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { width: 100%; gap: 16px; }
  .hero { padding-top: 32px; }
  .btn { width: 100%; }
  .trail-list { columns: 1; }
  .sec { padding: 32px 0; }
  .ticket { padding: 16px; }
  .brand-sub { display: none; }
  .strip dd { font-size: 18px; }
  .hud { padding: 16px; }
}


