/* Alpine Route Atlas – site styles */
:root {
  --bg: #f2eee7;          /* same ivory as behind the 3D models, so they float on the page */
  --bg-2: #ebe5db;
  --card: #fbf9f5;
  --ink: #1a1d1b;
  --ink-2: #5e5d57;
  --ink-3: #8f8c84;
  --line: #ddd6ca;
  --night: #15191a;
  --night-2: #b9b6ae;
  --gold: #a8844f;
  --easy: #3f8f5a; --mid: #c08a2e; --hard: #c1493b; --extreme: #6d3fa0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans);
       -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
em { font-style: italic; color: var(--gold); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
       gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 82%, transparent);
       backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px;
        text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-tag { font: 500 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 2px; }
.logo-mark { display: block; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-size: 14.5px; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.pill { display: inline-flex; align-items: center; gap: 6px; color: var(--bg); background: var(--ink);
                  padding: 9px 16px; border-radius: 999px; font-weight: 500; }
@media (max-width: 640px) { .nav nav a:not(.pill) { display: none; } .logo { font-size: 17px; } }

/* hero */
.hero { position: relative; text-align: center; padding: clamp(36px, 7vw, 88px) 16px 0; overflow: hidden; }
.hero-text { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.eyebrow.light { color: var(--night-2); }
.hero h1 { font-size: clamp(46px, 9vw, 112px); line-height: .98; font-weight: 300; letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 620px; margin: 20px auto 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero-img { position: relative; z-index: 1; width: min(920px, 100%); margin: clamp(28px, 5vw, 56px) auto 0; }

.btn { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--bg); text-decoration: none;
       font-weight: 500; font-size: 15px; padding: 14px 22px; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.light { background: var(--bg); color: var(--ink); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin: 0 auto;
         border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stat-v { display: block; font: 300 clamp(26px, 3.4vw, 40px)/1.1 var(--serif); letter-spacing: -0.02em; }
.stat-k { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); margin: 0 16px; }
  .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections */
.sec { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 16px 0;
       display: grid; grid-template-columns: 260px 1fr; gap: 24px 48px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.sec > :not(.sec-head) { grid-column: 2; }
@media (max-width: 860px) { .sec { grid-template-columns: 1fr; } .sec > :not(.sec-head) { grid-column: 1; } }
.prose p { margin: 0; font: 300 clamp(19px, 2vw, 23px)/1.6 var(--serif); color: var(--ink); }
.muted { color: var(--ink-3); } .small { font-size: 13.5px; margin-top: 14px; }

/* routes */
.routes { display: grid; gap: 10px; }
.route { display: grid; grid-template-columns: 62px 1fr auto; gap: 18px; align-items: center; background: var(--card);
         border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.route h3 { font-size: 19px; line-height: 1.3; }
.route p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; }
.route p a { color: var(--ink); }
.grade { display: grid; place-items: center; height: 46px; border-radius: 12px; font: 600 15px var(--sans); color: #fff; }
.grade.easy { background: var(--easy); } .grade.mid { background: var(--mid); } .grade.hard { background: var(--hard); } .grade.extreme { background: var(--extreme); }
.src { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 520px) { .route { grid-template-columns: 54px 1fr; } .src { display: none; } }

/* promo band */
.promo { background: var(--night); color: #f4f1ea; margin-top: clamp(64px, 9vw, 112px); padding: clamp(56px, 8vw, 96px) 16px; overflow: hidden; }
.promo-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.promo h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; font-weight: 300; }
.promo em { color: #d9b77e; }
.promo p { color: var(--night-2); font-size: 17px; margin: 18px 0 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; color: #e6e2d9; font-size: 15px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 1.6px solid #d9b77e;
                    border-bottom: 1.6px solid #d9b77e; transform: rotate(-45deg); }
.frame { border-radius: 14px; overflow: hidden; background: #2a2f30; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #23282a; font-size: 12px; color: #8d8b85; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #45494a; }
.frame-bar span { margin-left: 10px; }
@media (max-width: 860px) { .promo-in { grid-template-columns: 1fr; } .frame { transform: none; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards.three { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
        border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(40,30,10,.35); }
.card-img { aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform .6s; }
a.card:hover .card-img img { transform: scale(1.32); }
.card.no-img .card-img { display: none; }
.card-body { padding: 16px 18px 18px; }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.rating { position: absolute; top: 12px; right: 12px; background: var(--card); border-radius: 999px; padding: 3px 10px;
          font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card.no-img .rating { position: static; display: inline-block; margin-top: 10px; box-shadow: none; border: 1px solid var(--line); }
a.card:not(.no-img) h3::after { content: " →"; color: var(--ink-3); }

/* hut highlights */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.pc h3 { font-size: 20px; margin-bottom: 10px; }
.pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.pc li { padding-left: 26px; position: relative; }
.pc li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.pos li::before { content: "+"; color: var(--easy); } .neg li::before { content: "–"; color: var(--hard); }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }
.hikes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hikes li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hikes li span:last-child { color: var(--ink-3); font-size: 14px; white-space: nowrap; }

/* closing call to action */
.cta { position: relative; max-width: 1120px; margin: clamp(64px, 9vw, 112px) auto 0; padding: 0 16px; text-align: center; }
.cta img { width: min(640px, 90%); margin: 40px auto 0; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 300; margin-bottom: 22px; }

/* footer */
.foot { margin-top: clamp(64px, 9vw, 112px); background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 48px 16px; display: grid; grid-template-columns: 1.3fr .7fr 1.5fr; gap: 32px; font-size: 14px; color: var(--ink-2); }
.foot h4 { margin: 0 0 10px; font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.foot-in > div > a:not(.logo) { display: block; text-decoration: none; margin: 4px 0; }
.foot .small p { font-size: 12.5px; line-height: 1.6; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* menu links land with the section title visible below the sticky bar */
[id] { scroll-margin-top: 88px; }

/* route drop-downs */
details.route { display: block; padding: 0; }
details.route > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 62px 1fr auto 22px; gap: 18px;
  align-items: center; padding: 16px 20px; border-radius: 16px; }
details.route > summary::-webkit-details-marker { display: none; }
details.route > summary:hover { background: color-mix(in srgb, var(--bg) 55%, var(--card)); }
details.route > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.route-t h3 { font-size: 19px; line-height: 1.3; }
.route-sub { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14.5px; }
.route-sub a { color: var(--ink); }
.chev { width: 10px; height: 10px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .25s; justify-self: center; margin-top: -4px; }
details[open] .chev { transform: rotate(225deg); margin-top: 4px; }
.route-body { padding: 4px 24px 24px 100px; border-top: 1px solid var(--line); margin: 0 0 0; }
.route-desc { font: 300 18px/1.6 var(--serif); margin: 18px 0 0; }
.route-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 0; }
.route-facts div { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.route-facts dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.route-facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; }
.route-body h4 { margin: 20px 0 6px; font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.dots { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.small-btn { margin-top: 22px; padding: 10px 16px; font-size: 14px; }
@media (max-width: 600px) {
  details.route > summary { grid-template-columns: 54px 1fr 18px; gap: 14px; padding: 14px 16px; }
  details.route .src { display: none; }
  .route-body { padding: 4px 16px 20px; }
}

/* search and filters */
.finder { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 999px; padding: 0 18px; color: var(--ink-3); }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.search input { flex: 1; border: 0; background: transparent; font: 16px var(--sans); color: var(--ink); padding: 14px 0; outline: none; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filters select { appearance: none; -webkit-appearance: none; font: 14px var(--sans); color: var(--ink); background: var(--bg)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238f8c84' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 34px 9px 14px; cursor: pointer; max-width: 100%; }
.results { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.count { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.results li a { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 10px 10px; border-radius: 12px; text-decoration: none; }
.results li a:hover { background: var(--bg); }
.results .grade { height: 36px; border-radius: 10px; font-size: 13px; }
.grade.none { background: var(--line); color: var(--ink-3); }
.grade.star { background: var(--ink); color: #f1d7a6; font-size: 12.5px; }
.r-t b { display: block; font: 400 17px/1.3 var(--serif); }
.r-t small { color: var(--ink-3); font-size: 13px; }
.r-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.more { margin: 12px auto 0; display: flex; }
.eyebrow.feat { margin: 32px 0 12px; }
@media (max-width: 520px) { .r-go { display: none; } .results li a { grid-template-columns: 48px 1fr; } }

/* credits */
.credits { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.credits h4 { margin: 0 0 8px; font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.credits p { margin: 0 0 6px; }

/* real hut photos */
.hero-img.hero-photo { width: min(1120px, calc(100% - 32px)); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(40, 30, 10, .45); margin-bottom: 40px; }

/* ski areas */
.grade.run-green { background: #3f8f5a; } .grade.run-blue { background: #2f63c7; } .grade.run-red { background: #c1493b; }
.grade.run-black { background: #1a1d1b; } .grade.run-yellow { background: #d9a21b; } .grade.run-grey { background: var(--ink-3); }
.grade.ski { background: var(--ink); color: var(--bg); }
.mix { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.mix-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bg); }
.mix-bar span { display: block; height: 100%; }
.mix-0 { background: var(--ink); } .mix-1 { background: var(--gold); } .mix-2 { background: #7d8a5a; } .mix-3 { background: #9aa7b3; } .mix-4 { background: var(--line); } .mix-5 { background: #c9b48f; }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--ink-2); }
.chips b { font: 400 22px var(--serif); color: var(--ink); margin-right: 4px; }
.chips .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.run-green { background: #3f8f5a; } .dot.run-blue { background: #2f63c7; } .dot.run-red { background: #c1493b; } .dot.run-black { background: #1a1d1b; } .dot.run-yellow { background: #d9a21b; }
.mix-h { margin: 24px 0 0; font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tab-bar { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); margin-bottom: 18px; }
.tab { border: 0; background: transparent; font: 500 14.5px var(--sans); color: var(--ink-2); padding: 9px 20px; border-radius: 999px; cursor: pointer; }
.tab.on { background: var(--ink); color: var(--bg); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* terms and privacy */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 16px 24px; }
.legal h1 { font: 400 clamp(34px, 5vw, 48px)/1.1 var(--serif); margin: 0 0 6px; }
.legal h2 { font: 500 22px/1.25 var(--serif); margin: 32px 0 8px; }
.legal .meta { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; }
.legal li { margin: 0 0 8px; }
.legal .warn, .legal .note-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 18px 0; background: var(--card); }
.legal .warn { border-color: color-mix(in srgb, var(--mid) 45%, var(--line)); background: color-mix(in srgb, var(--mid) 8%, var(--card)); }
.legal .warn h2, .legal .note-box h2 { margin-top: 0; }
