/* snowmaker.yipbit.com. One stylesheet for the home page (built by ../build_home.py) and the hand-written support, privacy
   and terms pages. The page runs through a day on the mountain: the hero follows the time-of-day switch, "what you do" is
   daylight on snow, the mountains are the night sky, the World Pass is dusk. Colours are the game's own (SnowTheme.swift). */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #070B22; --glacier: #111A44; --indigo: #27307A; --violet: #5A49B8; --periwinkle: #A9B4FF;
  --ice: #D6EAFF; --frost: #7FE3FF; --glow: #F3A6D6; --cobalt: #3D5BFF; --lime: #C8F25A;
  --snow: #F1F6FD; --drift: #E1EBF8; --ink: #1A2B45; --ink-soft: #46597A;
  --green: #2E9E5B; --blue: #2F6FE0; --black: #10131C;
  --display: "Bricolage", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px; --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: #fff; font: 400 1.0625rem/1.55 var(--display); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; }
img, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 84%; font-weight: 800; line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--frost); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -10px rgba(7,11,34,.7); transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 16px 34px -10px rgba(7,11,34,.8); }
.btn:active { transform: translateY(0); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

/* ---------- Header ---------- */
.top { background: var(--night); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.25rem; font-stretch: 88%; letter-spacing: -.01em; }
.brand img { border-radius: 10px; box-shadow: 0 4px 14px rgba(7,11,34,.45); }
.links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: .9375rem; font-weight: 600; }
.links a:not(.btn) { text-decoration: none; padding: 10px 2px; opacity: .92; }
.links a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) { .links a:not(.btn):not(.lang) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); }
.hero .top { background: none; }
.sky, .sky picture, .sky img, .shade, #flakes { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky { z-index: -3; }
.sky img { object-fit: cover; object-position: 50% 60%; }
.sky picture, .screen img { opacity: 0; transition: opacity 1.4s ease; }
.hero:not([data-sky]) .day, .hero[data-sky="day"] .day, .hero[data-sky="dusk"] .dusk, .hero[data-sky="night"] .night { opacity: 1; }
.shade { z-index: -2; background:
  linear-gradient(180deg, rgba(7,11,34,.55) 0%, rgba(7,11,34,.12) 28%, rgba(7,11,34,.1) 60%, var(--snow) 100%),
  linear-gradient(90deg, rgba(7,11,34,.5), rgba(7,11,34,0) 62%); }
#flakes { z-index: -1; pointer-events: none; }

.hero main { display: grid; gap: clamp(28px, 5vw, 56px); padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 110px); }
.pitch { max-width: 620px; }
.hero h1 { font-size: clamp(2.75rem, 7.2vw, 5.25rem); text-shadow: 0 2px 30px rgba(7,11,34,.45); }
.lede { margin-top: 20px; font-size: clamp(1.0625rem, 1.7vw, 1.3125rem); line-height: 1.45; max-width: 34em; text-shadow: 0 1px 14px rgba(7,11,34,.6); }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.free { font-size: .9375rem; font-weight: 600; text-shadow: 0 1px 10px rgba(7,11,34,.7); max-width: 16em; line-height: 1.3; }

.stage { min-width: 0; display: grid; justify-items: center; }
.phone { position: relative; width: min(300px, 68vw); padding: 10px; border-radius: 52px; background: linear-gradient(145deg, #2a2f45, #0a0c16 40%, #1c2033);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 40px 80px -30px rgba(7,11,34,.85), 0 18px 36px -18px rgba(7,11,34,.6); }
.screen { position: relative; aspect-ratio: 603 / 1311; overflow: hidden; border-radius: 43px; background: #0a0c16; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.timeofday { margin-top: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.timeofday > span { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.timeofday > div { display: flex; padding: 4px; border-radius: 999px; background: rgba(7,11,34,.78); box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset; }
.timeofday button { appearance: none; border: 0; background: none; color: #fff; font: 600 .9375rem/1 var(--display); min-height: 40px; padding: 0 18px;
  border-radius: 999px; cursor: pointer; transition: background .25s ease, color .25s ease; }
.hero:not([data-sky]) [data-sky="day"], .hero[data-sky="day"] button[data-sky="day"], .hero[data-sky="dusk"] button[data-sky="dusk"],
.hero[data-sky="night"] button[data-sky="night"] { background: #fff; color: var(--ink); }

@media (min-width: 980px) {
  .hero main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .phone { width: min(340px, 27vw); transform: rotate(3deg); }
  .shade { background:
    linear-gradient(180deg, rgba(7,11,34,.5) 0%, rgba(7,11,34,.06) 30%, rgba(7,11,34,.06) 66%, var(--snow) 100%),
    linear-gradient(90deg, rgba(7,11,34,.62), rgba(7,11,34,0) 58%); }
}

/* ---------- What you do: daylight ---------- */
.do { position: relative; background: var(--snow); color: var(--ink); padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 9vw, 120px); overflow: hidden; }
.intro { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.intro h2 { font-size: clamp(2.125rem, 5vw, 3.5rem); margin-top: 14px; }
.intro > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; max-width: 38em; }
.do .eyebrow { color: var(--cobalt); }

/* A chairlift crosses the top of the section. */
.liftline { position: absolute; left: -5%; right: -5%; top: clamp(26px, 4vw, 48px); height: 2px; background: var(--ink); opacity: .55; transform: rotate(-2.2deg); }
.liftline i { position: absolute; top: 0; left: 0; width: 22px; height: 26px; animation: ride 46s linear infinite; }
.liftline i::before { content: ""; position: absolute; left: 10px; top: 0; width: 2px; height: 16px; background: var(--ink); }
.liftline i::after { content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 11px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 5px 5px; background: #F26A3D; }
.liftline i:nth-child(2) { animation-delay: -11.5s; } .liftline i:nth-child(3) { animation-delay: -23s; } .liftline i:nth-child(4) { animation-delay: -34.5s; }
@keyframes ride { from { left: -3%; } to { left: 103%; } }

.feature { display: grid; gap: 22px; align-items: center; }
.feature + .feature { margin-top: clamp(48px, 8vw, 104px); }
.feature figure { border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: var(--drift);
  box-shadow: 0 0 0 1px rgba(26,43,69,.1), 0 30px 60px -30px rgba(26,43,69,.45), 0 12px 24px -16px rgba(26,43,69,.3); }
.feature img { width: 100%; aspect-ratio: 11 / 7; object-fit: cover; }
.feature h3 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.feature p { margin-top: 14px; font-size: 1.125rem; color: var(--ink-soft); max-width: 30em; }
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 72px); }
  .feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature.flip figure { order: 2; }
}
.feature.flip figure { background: #0A0F2C; }
.feature.flip img { object-fit: contain; }
.signs { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; font: 500 .8125rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.signs li { display: flex; align-items: center; gap: 9px; }
.signs i { width: 14px; height: 14px; flex: none; }
.signs .s0 i { border-radius: 50%; background: var(--green); }
.signs .s1 i { background: var(--blue); }
.signs .s2 i, .signs .s3 i { background: var(--black); transform: rotate(45deg) scale(.82); }
.signs .s3 i { box-shadow: 9px -9px 0 var(--black); margin-right: 11px; }

/* ---------- Mountains: night ---------- */
.mountains { background: radial-gradient(120% 70% at 80% 0%, rgba(90,73,184,.38), transparent 60%), linear-gradient(180deg, var(--glacier), var(--night) 70%);
  padding: clamp(70px, 10vw, 130px) 0; }
.mountains .eyebrow { color: var(--frost); }
.mountains .intro > p:not(.eyebrow) { color: var(--ice); }

.map { position: relative; margin-bottom: 26px; }
.map img { width: 100%; }
.dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--frost);
  box-shadow: 0 0 0 4px rgba(127,227,255,.2), 0 0 18px 2px rgba(127,227,255,.7); transition: transform .2s ease, background .2s ease; }
.dot::after { content: ""; position: absolute; inset: -12px; }
@media (max-width: 760px) { .dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; box-shadow: 0 0 0 2px rgba(127,227,255,.2), 0 0 10px 1px rgba(127,227,255,.7); } }
.dot:hover { transform: scale(1.3); }
.dot.on { background: var(--lime); box-shadow: 0 0 0 5px rgba(200,242,90,.25), 0 0 24px 4px rgba(200,242,90,.75); transform: scale(1.35); }
.dot.on::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--lime); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

.peaks ul { display: flex; flex-wrap: wrap; gap: 8px; }
.peaks a { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap;
  background: rgba(169,180,255,.1); box-shadow: 0 0 0 1px rgba(169,180,255,.28) inset; transition: background .2s ease, color .2s ease; }
.peaks a:hover { background: rgba(169,180,255,.22); }
.peaks a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: none; }
@media (max-width: 760px) {
  .peaks { margin: 0 calc(var(--gutter) * -1); }
  .peaks ul { flex-wrap: nowrap; overflow-x: auto; padding: 4px var(--gutter) 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .peaks ul::-webkit-scrollbar { display: none; }
  .peaks li { scroll-snap-align: center; }
}

.board { margin-top: 22px; display: grid; gap: 20px; }
.atlas.js .peak { display: none; }
.atlas.js .peak.on { display: grid; animation: arrive .45s cubic-bezier(.2,.7,.2,1); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
.peak { display: grid; gap: 26px; padding: clamp(22px, 3.4vw, 40px); border-radius: clamp(20px, 2.4vw, 30px); scroll-margin-top: 24px;
  background: linear-gradient(160deg, rgba(39,48,122,.62), rgba(17,26,68,.72)); box-shadow: 0 0 0 1px rgba(169,180,255,.26) inset, 0 30px 70px -40px #000; }
.view { grid-column: 1 / -1; margin: calc(clamp(22px, 3.4vw, 40px) * -1) calc(clamp(22px, 3.4vw, 40px) * -1) 0; border-radius: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px) 0 0; overflow: hidden; background: var(--glacier); }
.view img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.tag { display: inline-block; font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px;
  background: var(--lime); color: var(--ink); }
.tag.paid { background: var(--glow); }
.peak h3 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); margin-top: 16px; }
.where { margin-top: 10px; font-weight: 600; color: var(--periwinkle); }
.blurb { margin-top: 14px; font-size: 1.125rem; color: var(--ice); max-width: 32em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; align-content: start; }
.facts dt, .months p { font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--periwinkle); }
.facts dd { margin-top: 8px; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 700; font-stretch: 88%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.facts div:nth-child(4), .facts div:nth-child(5) { grid-column: span 2; }
.pips { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: 2px; }
.pips i { width: 10px; height: 10px; border-radius: 2px; background: rgba(169,180,255,.28); transform: rotate(45deg) scale(.85); }
.pips i.on { background: var(--frost); }
.months ol { margin-top: 14px; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(3px, .8vw, 8px); height: 120px; }
.months li { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; min-width: 0; }
.months span { display: block; border-radius: 4px 4px 1px 1px; background: rgba(169,180,255,.4); min-height: 0; }
.months li.open span { background: linear-gradient(180deg, #fff, var(--frost)); }
.months b { font: 500 .6875rem/1 var(--mono); text-align: center; color: var(--periwinkle); }
.months li.open b { color: #fff; }
@media (min-width: 900px) {
  .peak { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 72px); }
  .months { grid-column: 1 / -1; }
  .atlas:not(.js) .board { grid-template-columns: 1fr; }
}

/* ---------- World Pass: dusk ---------- */
.pass { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 130px) 0;
  background: radial-gradient(90% 80% at 85% 100%, rgba(243,166,214,.55), transparent 62%), linear-gradient(180deg, var(--night), #2A2470 55%, #6A458F); }
.pass .wrap { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.pass .eyebrow { color: var(--glow); }
.pass h2 { font-size: clamp(2.125rem, 5vw, 3.5rem); margin-top: 14px; }
.pass .copy > p:not(.eyebrow) { margin-top: 20px; font-size: 1.125rem; color: var(--ice); max-width: 34em; }
.ticks { margin-top: 24px; display: grid; gap: 12px; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--glow); transform: rotate(45deg); border-radius: 2px; }
@media (min-width: 900px) { .pass .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* The pass as a lift ticket: a punched stub for the wicket, a tear line, and the face. */
.ticket { justify-self: center; width: min(340px, 86vw); color: var(--ink); transform: rotate(4deg); transition: transform .5s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 34px 40px rgba(7,11,34,.55)); }
.ticket:hover { transform: rotate(1deg) translateY(-6px); }
.ticket .stub { height: 92px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; border-radius: 22px 22px 0 0;
  background: radial-gradient(circle at 50% 30px, transparent 13px, var(--cobalt) 14px); color: #fff; font: 500 .75rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.ticket .face { position: relative; padding: 30px 26px 26px; border-radius: 0 0 22px 22px; background: #FBFDFF;
  -webkit-mask: radial-gradient(circle at 0 0, transparent 9px, #000 10px) left top / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 9px, #000 10px) right top / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 9px, #000 10px) left top / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 9px, #000 10px) right top / 51% 100% no-repeat; }
.ticket .face::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; border-top: 2px dashed rgba(26,43,69,.3); }
.ticket strong { display: block; font-size: 3.5rem; font-weight: 800; font-stretch: 76%; line-height: .86; letter-spacing: -.02em; text-transform: uppercase; }
.ticket dl { margin-top: 24px; display: grid; gap: 12px; }
.ticket dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(26,43,69,.14); }
.ticket dt { font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ticket dd { font-weight: 700; text-align: right; }
.ticket .bars { margin-top: 22px; height: 44px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 9px, transparent 9px 11px, var(--ink) 11px 12px, transparent 12px 17px); }

/* ---------- The end, and the footer ---------- */
.end { background: radial-gradient(90% 70% at 85% 0%, rgba(243,166,214,.55), transparent 62%), linear-gradient(180deg, #6A458F, #2A2470 45%, var(--night)); text-align: center; padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 10vw, 120px); }
.end img { margin: 0 auto; border-radius: 18px; box-shadow: 0 16px 40px -12px rgba(7,11,34,.7); }
.end h2 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); margin: 24px 0 28px; }
.end p { margin-top: 18px; color: var(--ice); font-size: .9375rem; }
footer { background: var(--night); padding: 34px 0 44px; font-size: .875rem; color: rgba(255,255,255,.72); border-top: 1px solid rgba(169,180,255,.14); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 16px; font-weight: 600; color: #fff; }
footer nav a { text-underline-offset: 4px; padding: 6px 0; }
footer p { max-width: 62em; line-height: 1.5; }

/* ---------- Support, privacy and terms ---------- */
.page { background: var(--snow); color: var(--ink); padding: clamp(36px, 7vw, 84px) 0 clamp(60px, 9vw, 110px); }
.sheet { max-width: 720px; margin: 0 auto; }
.sheet h1 { font-size: clamp(2.375rem, 6vw, 3.75rem); }
.sheet .lede { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-soft); text-shadow: none; }
.sheet h2 { font-size: 1.625rem; margin: 48px 0 14px; letter-spacing: -.01em; line-height: 1.1; scroll-margin-top: 20px; }
.sheet h3 { font-size: 1.1875rem; margin: 28px 0 8px; line-height: 1.2; letter-spacing: 0; }
.sheet p, .sheet li { color: #2B3D5C; }
.sheet p + p, .sheet ul + p, .sheet p + ul { margin-top: 14px; }
.sheet ul { list-style: disc; padding-left: 22px; display: grid; gap: 10px; }
.sheet a { color: #2242D6; text-underline-offset: 3px; }
.sheet strong { color: var(--ink); }
.sheet details { border-top: 1px solid rgba(26,43,69,.16); }
.sheet details:last-of-type { border-bottom: 1px solid rgba(26,43,69,.16); }
.sheet summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 700; font-size: 1.0625rem; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.sheet details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.sheet details > div { padding: 0 2px 20px; max-width: 60ch; }
.sheet .updated, .sheet .note { font-size: .9375rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .liftline i:nth-child(1) { left: 14%; } .liftline i:nth-child(2) { left: 38%; } .liftline i:nth-child(3) { left: 63%; } .liftline i:nth-child(4) { left: 86%; }
}
