/* Look: white page, heavy black type, one blue accent, hairlines instead of boxes. */
:root {
  --page: #ffffff;
  --wash: #f3f4f6;
  --line: #e3e5e9;
  --ink: #0b0b0c;
  --ink-2: #454a52;
  --muted: #868c96;
  --accent: #1ea7d8;
  --accent-ink: #0b83ad; /* the accent, dark enough for text on white */
  --lo: #0b0b0c; /* downside / low forecast */
  --hi: #1ea7d8; /* upside / high forecast */
  --ok: #0f8f57;
  --warn: #b06f00;
  --bad: #d43535;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --brush: "Knewave", "Montserrat", cursive;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--page);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); min-height: 100vh; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.icon {
  font-family: "Material Symbols Sharp"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased;
  width: 1em; height: 1em; overflow: hidden; vertical-align: middle; flex: none; user-select: none;
  text-transform: none; letter-spacing: normal; /* icon names are ligatures: keep them as typed */
}
.kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.hint { font-size: 0.8rem; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Small outlined, letter-spaced buttons and links */
.btn, .more {
  display: inline-flex; align-items: center; padding: 8px 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.btn:hover, .more:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn:disabled { opacity: 0.35; }

/* Top bar: brand, mountain picker, refresh */
.top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 12px 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; fill: currentColor; flex: none; }
.mtns { display: flex; gap: 4px 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mtns::-webkit-scrollbar { display: none; }
.mtns a { padding: 6px 0; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
.mtns a:hover { color: var(--ink); text-decoration: none; }
.mtns a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.top__meta { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 820px) {
  .top__row { flex-wrap: wrap; padding-block: 10px 0; }
  .top__meta { margin-left: auto; }
  .mtns { order: 3; flex: 1 0 100%; gap: 20px; padding-bottom: 2px; }
  .mtns a { padding: 10px 0; }
}
@media (max-width: 480px) { #updated { display: none; } }

/* Page grid */
main.wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 40px; padding-block: 28px 64px; align-items: start; transition: opacity 0.15s; }
main[data-loading="true"] { opacity: 0.35; pointer-events: none; }
main > * { grid-column: span 12; min-width: 0; }
.loading, .error { padding: 80px 0; color: var(--muted); }
.stack { display: grid; gap: 56px; align-content: start; }
.stack > * { min-width: 0; }
@media (min-width: 900px) {
  .span-7 { grid-column: span 7; }
  .span-5 { grid-column: span 5; }
}
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.sec__head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; margin-top: 6px; }

/* Headline: big name over the live camera */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.hero__text { position: relative; z-index: 1; margin-right: -18%; padding-block: 12px; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; text-transform: uppercase; margin: 10px 0 6px; }
/* Each line of the name sits on its own white plate, so it reads over any camera image. */
.hero h1 span { background: var(--page); padding: 0 0.12em 0 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__verdict { display: inline-block; font-family: var(--brush); font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.05; color: var(--ink); background: var(--page); padding-right: 0.3em; transform: rotate(-2deg); transform-origin: left center; }
.hero[data-tone="great"] .hero__verdict, .hero[data-tone="good"] .hero__verdict { color: var(--accent-ink); }
.hero[data-tone="bad"] .hero__verdict { color: var(--bad); }
.hero__sub { margin-top: 10px; font-weight: 600; color: var(--ink-2); max-width: 30ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--ink); background: var(--page); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.fact .icon { font-size: 16px; }
.fact[data-level="bad"] { border-color: var(--bad); color: var(--bad); }
.hero__shot { position: relative; }
.hero__shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--wash); }
.hero__shot figcaption { position: absolute; left: 100%; bottom: 0; transform-origin: left bottom; transform: rotate(-90deg) translateY(100%); padding: 6px 0; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hero--plain { grid-template-columns: 1fr; }
.hero--plain .hero__text { margin-right: 0; padding-block: 28px 8px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero__shot { order: -1; margin-inline: -20px; }
  .hero__shot figcaption { display: none; }
  .hero__text { margin: -22px 0 0; padding-block: 0; }
  .hero__text .kicker { display: inline-block; background: var(--page); padding: 8px 12px 0 0; }
  .hero--plain .hero__text { margin-top: 0; padding-top: 8px; }
}

/* Headline numbers: no boxes, just big figures on a rule */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 2px solid var(--ink); }
.stat { display: grid; gap: 4px; padding: 16px 16px 4px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat__label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.stat__value small { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.stat__sub { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 10px 12px 0; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
}

/* Day planner */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 22px; scrollbar-width: none; }
.tab { flex: 1 0 76px; display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); }
.tab b { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.tab span { font-size: 0.74rem; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: rgb(255 255 255 / 0.75); }
.tab[aria-selected="true"] b { color: #fff; }
.planner__body { display: grid; gap: 28px 40px; }
@media (min-width: 900px) { .planner__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.planner__day { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; font-size: 1.05rem; font-weight: 700; }
.planner__day .icon { color: var(--accent-ink); font-size: 26px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; }
.side { padding-right: 16px; }
.side--up { padding: 0 0 0 20px; border-left: 1px solid var(--line); }
.side__label { display: flex; align-items: center; gap: 8px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.side__label i { width: 10px; height: 10px; background: var(--lo); }
.side--up .side__label i { background: var(--hi); }
.side__num { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin: 4px 0 10px; }
.side--up .side__num { color: var(--accent-ink); }
.side__num small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.points { display: grid; gap: 7px; font-size: 0.88rem; color: var(--ink-2); }
.points li { display: flex; align-items: center; gap: 8px; }
.points .icon { font-size: 18px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts .icon { font-size: 17px; color: var(--muted); }

/* Column charts: hatched track, black low case, blue up to the high case */
.chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.col { display: grid; grid-template-rows: auto 132px auto; justify-items: center; gap: 6px; padding: 6px 0; min-width: 0; }
.col__val { font-size: 0.76rem; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.col__track {
  width: min(30px, 70%); height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: repeating-linear-gradient(135deg, #eceef1 0 4px, #f8f9fa 4px 8px);
}
.col__hi { background: var(--hi); }
.col__lo { background: var(--lo); }
.col__day { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.col[data-pick] { cursor: pointer; }
.col:hover, .col[data-state="on"] { background: var(--wash); }
.col[data-state="on"] .col__day, .col[data-state="on"] .col__val { color: var(--ink); }
.col[data-state="after"] { opacity: 0.4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.76rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }

/* Cameras */
.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px 16px; }
.cam__frame { display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; background: var(--wash); }
.cam__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.cam__frame:hover img { transform: scale(1.03); }
.cam__play { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 8px; background: var(--ink); color: #fff; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.cam__frame:hover .cam__play { background: var(--accent-ink); }
.cam figcaption { margin-top: 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.cam--down .cam__frame img { visibility: hidden; }
.cam--down figcaption::after { content: " · offline"; color: var(--muted); }
@media (max-width: 560px) { .cams { grid-template-columns: 1fr 1fr; gap: 16px 10px; } }

/* Forecast rows */
.days { margin-top: 18px; border-bottom: 1px solid var(--line); }
.day { border-top: 1px solid var(--line); }
.day > summary { list-style: none; cursor: pointer; padding: 11px 0; display: grid; grid-template-columns: 24px 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.9rem; }
.day > summary::-webkit-details-marker { display: none; }
.day > summary > .icon { color: var(--accent-ink); font-size: 22px; }
.day > summary > b { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.day__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 0.84rem; }
.day__meta span { display: inline-flex; align-items: center; gap: 4px; }
.day__meta .icon { font-size: 16px; color: var(--muted); }
.day__snow { font-weight: 800; text-align: right; white-space: nowrap; }
.day__body { padding: 0 0 14px 34px; font-size: 0.86rem; color: var(--ink-2); display: grid; gap: 6px; }
.chip { display: inline-flex; align-items: center; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border: 1.5px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip[data-level="high"] { border-color: var(--ok); color: var(--ok); }
.chip[data-level="low"] { border-color: var(--warn); color: var(--warn); }
.chip[data-level="bad"] { border-color: var(--bad); color: var(--bad); }

/* Reality check */
.flags { border-bottom: 1px solid var(--line); }
.flag { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; }
.flag[data-level="warn"] .icon { color: var(--warn); }
.flag[data-level="note"] .icon { color: var(--accent-ink); }
.flag[data-level="ok"] .icon { color: var(--ok); }

/* History table */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
th, td { text-align: right; padding: 10px; border-top: 1px solid var(--line); white-space: nowrap; }
thead th { border-top: 0; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
td:first-child, th:first-child { padding-left: 0; }
td .icon { color: var(--accent-ink); font-size: 19px; margin-right: 6px; }
.up { color: var(--ok); font-weight: 700; }
.dn { color: var(--bad); font-weight: 700; }

/* Lifts, sources */
.lift { border-top: 1px solid var(--line); }
.lift:last-of-type { border-bottom: 1px solid var(--line); }
.lift > summary { list-style: none; cursor: pointer; padding: 11px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 700; }
.lift > summary::-webkit-details-marker { display: none; }
.lift > summary .hint { font-weight: 500; margin-left: 6px; }
.lift ul { padding: 0 0 12px; columns: 2 200px; font-size: 0.84rem; color: var(--ink-2); }
.lift li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; break-inside: avoid; }
.status { color: var(--muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.status[data-open="true"] { color: var(--ok); }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.src { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--line); color: var(--ink-2); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.src:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.src .icon { font-size: 16px; color: var(--ok); }
.src[data-ok="false"] { color: var(--bad); border-color: var(--bad); }
.src[data-ok="false"] .icon { color: var(--bad); }
.fine { margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.fine summary { cursor: pointer; font-weight: 600; }
.fine ul { list-style: disc; padding: 8px 0 0 18px; display: grid; gap: 4px; max-width: 80ch; }

/* Footer: the one black block */
.foot { background: var(--ink); color: #b9bdc4; font-size: 0.8rem; }
.foot__row { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 28px 40px; padding-block: 44px 52px; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 900; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; align-self: start; }
.foot__brand .brand__mark { width: 40px; height: 40px; }
.foot h3 { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.foot nav { display: grid; gap: 4px; }
.foot a { color: #fff; }
.foot nav a[aria-current="page"] { color: var(--accent); }
.foot p + p { margin-top: 6px; }
@media (max-width: 700px) { .foot__row { grid-template-columns: 1fr; } }

/* Promo banner for the game */
.promo { position: relative; display: block; height: 190px; overflow: hidden; color: #fff; text-decoration: none; container-type: inline-size; }
.promo:hover { text-decoration: none; }
.promo__sky { position: absolute; inset: 0; background:
  radial-gradient(2px 2px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 31% 12%, #fff 50%, transparent 51%),
  radial-gradient(2px 2px at 58% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 77% 14%, #fff 50%, transparent 51%),
  radial-gradient(2px 2px at 91% 36%, #fff 50%, transparent 51%), linear-gradient(#0d0b24, #2a2470 55%, #6f7fe0); }
.promo__hill { position: absolute; inset: 0; background: linear-gradient(#f4f6ff, #aab6ee); clip-path: polygon(0 48%, 30% 76%, 40% 74%, 47% 60%, 48% 86%, 100% 100%, 0 100%); }
.promo__rider { position: absolute; width: 108px; height: 108px; margin: -96px 0 0 -54px; image-rendering: pixelated; background: url(/shred/ski.png) 0 0 / 972px 324px no-repeat; animation: promo-path 3.4s linear infinite, promo-frame 3.4s step-end infinite; }
@keyframes promo-path {
  0% { left: -6%; top: 43%; rotate: 25deg; }
  30% { left: 30%; top: 76%; rotate: 25deg; }
  40% { left: 40%; top: 74%; rotate: -10deg; }
  47% { left: 47%; top: 60%; rotate: -40deg; }
  55% { left: 57%; top: 34%; rotate: -130deg; }
  63% { left: 67%; top: 30%; rotate: -230deg; }
  72% { left: 78%; top: 52%; rotate: -310deg; }
  80% { left: 88%; top: 96%; rotate: -345deg; }
  100% { left: 112%; top: 104%; rotate: -345deg; }
}
@keyframes promo-frame { 0% { background-position: 0 0; } 30% { background-position: -108px 0; } 47% { background-position: -216px 0; } 80% { background-position: 0 0; } }
.promo__text { position: absolute; left: 18px; top: 16px; display: grid; gap: 2px; text-shadow: 0 1px 8px rgb(13 11 36 / 0.8); }
.promo__text b { font-size: clamp(1.2rem, 4cqw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; }
.promo__text span { font-size: 0.9rem; color: #d6d4ee; }
.promo__go { position: absolute; right: 18px; top: 18px; padding: 10px 20px; border-radius: 999px; font-weight: 600; background: linear-gradient(135deg, #7c6cf0, #3987e5); box-shadow: 0 6px 20px rgb(13 11 36 / 0.5); }
@media (prefers-reduced-motion: reduce) { .promo__rider { animation: none; left: 62%; top: 34%; rotate: -20deg; background-position: -216px 0; } }
@media (max-width: 560px) { .promo { height: 170px; } .promo__go { top: auto; bottom: 14px; right: 14px; } }
