/* ============================================================
   SKI NEW ENGLAND — design tokens & base
   Display/UI: Archivo · Data: Spline Sans Mono · Editorial: Newsreader
   ============================================================ */
:root {
  /* Ink / navy ramp */
  --ink-950: #061321;
  --ink-900: #0b1f33;
  --ink-850: #0f283f;
  --ink-800: #143350;
  --ink-700: #1d4a6f;

  /* Retro footer blue (from the chairlift art) */
  --retro-900: #001e66;
  --retro-950: #001543;

  /* Brand blues */
  --blue-600: #235a91;
  --blue-500: #2f6fb0;
  --blue-400: #3b9fe0;
  --blue-300: #6fc0ee;

  /* Frost / paper */
  --frost-100: #eaf2fb;
  --frost-50:  #f4f8fd;
  --paper:     #ffffff;

  /* Powder alert — used VERY sparingly */
  --pow: #ff5a36;
  --pow-soft: #ffe7df;

  /* Trail difficulty */
  --trail-green: #2e9e5b;
  --trail-blue:  #2f6fb0;
  --trail-black: #16202c;
  --trail-dd:    #16202c;

  /* Neutrals */
  --line: rgba(11,31,51,0.12);
  --line-soft: rgba(11,31,51,0.07);
  --muted: #5c7186;
  --muted-2: #8597a8;

  /* Type */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, monospace;
  --f-serif: "Newsreader", Georgia, serif;

  --maxw: 1280px;
  --gut: 28px;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(11,31,51,0.06), 0 8px 24px rgba(11,31,51,0.06);
  --shadow-pop: 0 12px 40px rgba(6,19,33,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-display);
  color: var(--ink-900);
  background: var(--frost-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono { font-family: var(--f-mono); }
.serif { font-family: var(--f-serif); }

.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-transform: uppercase;
}

/* layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--paper);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn--blue { background: var(--blue-500); }
.btn--retro { background: var(--retro-900); }
.icon-btn { position: relative; }
.article-body { font-family: var(--f-serif); font-size: 18px; line-height: 1.62; color: var(--ink-900); }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { font-family: var(--f-display); font-size: 27px; font-weight: 800; letter-spacing: -0.01em; margin: 2em 0 .6em; }
.article-body h3 { font-family: var(--f-display); font-size: 21px; font-weight: 800; margin: 1.7em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin-bottom: .45em; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.article-body figure { margin: 1.8em 0; }
.article-body figcaption { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); margin-top: 9px; }
.article-body blockquote { margin: 1.8em 0; padding-left: 20px; border-left: 3px solid var(--blue-400); color: var(--muted); font-style: italic; }
.article-body a { color: var(--blue-500); }
.article-body a:hover { color: var(--ink-900); }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 13px; margin: 1.6em 0; }
.article-body th, .article-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.icon-btn::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(3px); background: var(--ink-950); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; padding: 6px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; box-shadow: var(--shadow-pop); z-index: 60; }
.icon-btn::before { content: ""; position: absolute; bottom: calc(100% + 4px); left: 50%; width: 0; height: 0; transform: translateX(-50%) translateY(3px); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--ink-950); opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; z-index: 60; }
.icon-btn:hover::after, .icon-btn:focus-visible::after, .icon-btn:hover::before, .icon-btn:focus-visible::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.btn--retro:hover { background: var(--retro-950); }
.btn--blue:hover { background: var(--blue-600); }
.btn--pow { background: var(--pow); }
.btn--pow:hover { background: #e84a28; }
.btn--ghost {
  background: transparent; color: var(--ink-900);
  border: 1.5px solid var(--line); 
}
.btn--ghost:hover { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.btn--light { background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,0.22); }

/* trail difficulty markers */
.trail-dot { display:inline-block; width:13px; height:13px; vertical-align:middle; }
.trail-dot.green { border-radius:50%; background:var(--trail-green); }
.trail-dot.blue { background:var(--trail-blue); border-radius:2px; }
.trail-dot.black { background:var(--trail-black); transform: rotate(45deg); }

/* scrollbars in dashboard */
.thin-scroll::-webkit-scrollbar { height:8px; width:8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius:8px; }

/* ---- animated chairlift footer ---- */
.lift-chair { transform-box: view-box; transform-origin: 0 0; will-change: transform; }
.lift-a { animation: liftRideA 34s linear infinite; }
.lift-b { animation: liftRideB 34s linear infinite reverse; }
@keyframes liftRideA {
  0% { transform: translate(1120px,653px) scale(.045); opacity: 0; }
  10% { opacity: 1; }
  14% { transform: translate(1052px,595px) scale(.062); }
  34% { transform: translate(976px,526px) scale(.10); }
  46% { transform: translate(900px,474px) scale(.155); }
  58% { transform: translate(800px,405px) scale(.25); }
  70% { transform: translate(650px,302px) scale(.40); }
  82% { transform: translate(450px,164px) scale(.60); }
  88% { transform: translate(200px,-8px) scale(.88); }
  100% { transform: translate(-300px,-347px) scale(1.05); opacity: 1; }
}
@keyframes liftRideB {
  0% { transform: translate(1170px,662px) scale(.05); opacity: 0; }
  10% { opacity: 1; }
  14% { transform: translate(1110px,592px) scale(.07); }
  34% { transform: translate(1054px,526px) scale(.12); }
  46% { transform: translate(990px,433px) scale(.18); }
  58% { transform: translate(920px,332px) scale(.28); }
  70% { transform: translate(850px,231px) scale(.42); }
  82% { transform: translate(760px,101px) scale(.62); }
  88% { transform: translate(660px,-43px) scale(.88); }
  100% { transform: translate(520px,-246px) scale(1.1); opacity: 1; }
}
.snow-plume { transform-box: view-box; transform-origin: 1100px 572px; animation: snowPuff 5s ease-in-out infinite; }
@keyframes snowPuff { 0%, 100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .lift-a, .lift-b, .snow-plume { animation-play-state: paused; } }

/* utility */
.uppercase { text-transform: uppercase; }
.tnum { font-variant-numeric: tabular-nums; }

/* fresh-snow badge pulse */
@keyframes powpulse { 0%,100%{ box-shadow:0 0 0 0 rgba(255,90,54,0.35);} 50%{ box-shadow:0 0 0 6px rgba(255,90,54,0);} }
.pow-badge { animation: powpulse 2.4s ease-in-out infinite; }

/* social wall hover */
.social-tile:hover .social-overlay { opacity: 1 !important; }
.social-tile { transition: transform .18s ease; }
.social-tile:hover { transform: translateY(-2px); }

/* chairlift ride */
@keyframes chairlift-slide { from { transform: translateX(0); } to { transform: translateX(-190px); } }
.chairlift-chairs { animation: chairlift-slide 17s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
