/* Design system: white canvas, near-black text, one green accent, Inter throughout.
   Shape is square: 4px controls, 16px cards, 24px large containers. Elevation is a hairline plus a whisper shadow.
   The hero is the only colourful moment; everything below it is white. */
:root {
  --bg: #eef2f5; --fg: #14342e; --ink: #14342e; --muted: rgba(20,52,46,.66); --accent: #1f8a4c;
  --line: rgba(20,52,46,.10); --border: rgba(20,52,46,.18);
  --r-control: 999px; --r-card: 22px; --r-large: 26px;
  --shadow: 0 2px 4px rgba(0,0,0,.04);
  --max: 1200px; --gut: 28px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Sofia Sans", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.5; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.display { font-weight: 300; line-height: 1.02; letter-spacing: -.035em; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sub { color: var(--muted); font-size: 15px; }
.empty { color: var(--muted); font-size: 15px; padding: 18px 0; }
.pad { padding: 60px var(--gut); text-align: center; }
main, .nav, .footer { max-width: var(--max); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; gap: 20px; padding: 16px var(--gut); }
.brand { font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.links { display: flex; gap: 28px; font-weight: 500; font-size: 14px; margin: 0 auto; letter-spacing: 0; }
.links a:hover { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.links + .tools { margin-left: 0; }
.search { position: relative; min-width: 0; }
.search input, .filter { width: 220px; max-width: 100%; border: 1px solid var(--border); background: #fff; border-radius: var(--r-control); padding: 8px 12px; font-size: 14px; letter-spacing: 0; }
.search input:hover, .filter:hover { border-color: #bbb; }
.search input:focus, .filter:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12,140,94,.12); }
.results { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, 86vw); background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 8px; z-index: 10; }
.results a { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-control); font-size: 14px; font-weight: 500; }
.results a:hover { background: var(--line); }
.results .empty { padding: 10px 12px; }
.units { border: 1px solid var(--border); background: #fff; border-radius: var(--r-control); padding: 8px 12px; font-size: 13px; font-weight: 500; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.units:hover { border-color: #bbb; }

/* ---------- Status strip ---------- */
.strip { display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); padding: 10px 16px 14px; }
.strip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero: the one colourful moment, held in a large rounded container ---------- */
.hero { position: relative; min-height: clamp(580px, 86vh, 900px); margin: 0 var(--gut); border-radius: var(--r-large); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; color: #fff;
  background: #0d1b2a url(/media/hero.jpg) 35% 60% / cover no-repeat; }
/* The tilt and push-in make the slope read steeper; the grade deepens shadows for contrast with the snow. */
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; z-index: -3;
  transform: rotate(-7deg) scale(1.3); filter: contrast(1.22) saturate(1.12) brightness(.9);
  animation: push 18s ease-in-out infinite alternate; }
.grade { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(rgba(6,18,38,.78) 0%, rgba(6,18,38,.32) 34%, transparent 58%),
    radial-gradient(120% 90% at 50% 55%, transparent 55%, rgba(4,12,28,.55) 100%); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@keyframes push { from { transform: rotate(-7deg) scale(1.3); } to { transform: rotate(-8.5deg) scale(1.42); } }
.copy { position: relative; z-index: 1; text-align: center; padding: clamp(44px, 9vh, 96px) var(--gut) 0; text-shadow: 0 2px 30px rgba(2,10,26,.6); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; }
.copy h1 { font-size: clamp(40px, 6.2vw, 72px); margin: 16px 0 16px; }
.copy p { font-size: 18px; margin-bottom: 28px; color: rgba(255,255,255,.9); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; text-shadow: none; }
.copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.copy > :nth-child(2) { animation-delay: .12s; }
.copy > :nth-child(3) { animation-delay: .24s; }
.copy > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }

.outlook { position: relative; z-index: 1; width: min(980px, calc(100% - 2 * var(--gut))); margin: 28px auto clamp(28px, 6vh, 56px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.6fr); align-items: center; gap: 14px 26px; padding: 24px;
  background: rgba(8, 20, 40, .55); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) .5s both; }
.outlook[hidden] { display: none; }
.outlook .lead { display: grid; gap: 4px; min-width: 0; }
.outlook .k { font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #6fe3b1; }
.outlook .name { font-size: clamp(22px, 2.6vw, 30px); overflow-wrap: anywhere; }
.outlook .lead:hover .name { text-decoration: underline; text-underline-offset: 4px; }
.outlook .where { font-size: 14px; color: rgba(255,255,255,.85); }
.outlook .total { white-space: nowrap; }
.outlook .total .display { font-size: clamp(40px, 5vw, 57px); font-variant-numeric: tabular-nums; }
.outlook .total small { font-size: 13px; font-weight: 500; margin-left: 6px; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .05em; }
.outlook .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.outlook .day { display: grid; justify-items: center; gap: 2px; padding: 9px 2px; border: 0; box-shadow: none; border-radius: var(--r-control); background: rgba(255,255,255,.08); font-size: 12px; }
.outlook .day.snowy { background: rgba(255,255,255,.2); }
.outlook .day b { font-weight: 500; font-size: 12px; }
.outlook .day .icon { font-size: 18px; line-height: 1.2; min-height: 22px; }
.outlook .day .amt { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.outlook .also { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; color: rgba(255,255,255,.85); }
.outlook .also a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .hero .bg, .copy > *, .outlook { animation: none; }
  .fx { display: none; }
}

/* ---------- Buttons: square, one filled variant ---------- */
.pill { display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--r-control); padding: 9px 16px; font-weight: 500; font-size: 15px; box-shadow: var(--shadow); }
.pill:hover { background: #26282b; border-color: #26282b; }
.pill.light { background: #fff; color: var(--ink); border-color: #fff; }
.pill.light:hover { background: var(--line); border-color: var(--line); }
.pill.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.pill.ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- Leaderboards ---------- */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 80px var(--gut) 0; scroll-margin-top: 10px; }
.board { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; }
.board:hover { border-color: var(--border); }
.board h2, .countries h2, .panel h2 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 4px; }
.board .sub { margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:hover .name { color: var(--accent); }
.row .n { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.row .who { display: grid; min-width: 0; }
.row .name { font-weight: 500; font-size: 16px; }
.row .where { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.row .val { font-size: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.val small, .big small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Countries ---------- */
.countries { padding: 80px var(--gut); scroll-margin-top: 10px; }
.countries h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; }
.countries .sub { margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 2px; }
.tile:hover { border-color: var(--border); }
.tile:hover b { color: var(--accent); }
.tile .flag { font-size: 22px; }
.tile b { font-size: 15px; font-weight: 500; }
.tile span:last-child { font-size: 13px; color: var(--muted); letter-spacing: 0; }

/* ---------- Country and resort pages ---------- */
.pagehead { padding: 40px var(--gut) 20px; border-top: 1px solid var(--line); }
.crumb { font-size: 14px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
.crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.pagehead h1 { font-size: clamp(32px, 4.6vw, 57px); margin: 12px 0 8px; overflow-wrap: anywhere; }
.filter { margin-top: 20px; width: 320px; }
#table { padding: 0 var(--gut) 80px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: right; padding: 12px 8px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; white-space: normal; padding-left: 0; overflow-wrap: anywhere; }
thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
th button { background: none; border: 0; cursor: pointer; font-weight: 500; color: inherit; padding: 0; text-transform: inherit; letter-spacing: inherit; }
th button:hover, th[aria-sort] button { color: var(--accent); }
td a { font-weight: 500; }
td a:hover { color: var(--accent); }
tbody tr:hover { background: #fafafa; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 8px var(--gut) 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 10px; }
.stat .k { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; }
.fact span { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.fact b { font-weight: 500; }
.big { font-size: clamp(32px, 4.4vw, 48px); font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: 1fr 1fr; }
.panel { padding: 32px var(--gut); }
.panel h2 { margin-bottom: 16px; }
.now { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.icon { font-size: 32px; }
.fact { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.panel .pill { margin: 16px 0 0; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; }
.chart svg { width: 100%; height: auto; display: block; }
.bar { fill: var(--ink); } .bar.zero { fill: var(--border); }
.chart text { text-anchor: middle; font-family: Inter, sans-serif; }
.chart .v { font-size: 13px; font-weight: 500; fill: var(--fg); }
.chart .d { font-size: 12px; fill: var(--muted); }
.forecast { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 4px; font-size: 14px; }
.day b { font-size: 15px; font-weight: 500; } .day .snow { font-weight: 500; color: var(--accent); }
.caveat { padding: 0 var(--gut) 60px; font-size: 14px; color: var(--muted); }
.notfound { text-align: center; padding: 100px var(--gut); }
.notfound h1 { font-size: clamp(32px, 4.6vw, 57px); margin-bottom: 12px; }
.notfound p { margin-bottom: 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px var(--gut) 56px; font-size: 14px; color: var(--muted); display: grid; gap: 10px; letter-spacing: 0; }
.footer .brand { color: var(--fg); font-size: 18px; }
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  :root { --gut: 16px; }
  .links { display: none; }
  .hero { border-radius: var(--r-card); }
  .outlook { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .outlook .days, .outlook .also { grid-column: 1 / -1; }
  .outlook .day { font-size: 11px; padding: 7px 0; }
  .outlook .day .amt { font-size: 14px; }
  .brand { font-size: 18px; }
  .search input { width: 140px; }
  .nav { position: relative; }
  .search { position: static; }
  .results { left: 16px; right: 16px; width: auto; }
  .boards { padding-top: 48px; }
  .boards, .cols { grid-template-columns: 1fr; gap: 16px; }
  .board { padding: 20px; }
  .countries { padding: 48px var(--gut); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .wide { display: none; }
  .filter { width: 100%; }
  th, td { padding: 12px 5px; font-size: 14px; }
  .forecast { grid-template-columns: 1fr 1fr; }
}

.maplink { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.panel .pill + .pill { margin-left: 8px; }
