/* ============================================================
   Canadian Ski Council — Design System
   Palette: Ink / Paper / Signal Red (logo colors)
   Type: Space Grotesk (display) + Geist (text) + Geist Mono (data)
   ============================================================ */

:root {
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --paper: #F6F3EE;
  --paper-2: #EFEBE3;
  --line: #E0D9CB;
  --line-soft: rgba(14, 14, 14, 0.08);
  --smoke: #6B6B6B;
  --smoke-2: #999488;
  --red: #D9261C;
  --red-deep: #A81A14;
  --red-tint: rgba(217, 38, 28, 0.08);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Type ramp ---------------------------------------------------- */
.display-xxl { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 8vw, 132px); line-height: 0.92; letter-spacing: -0.04em; }
.display-xl  { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 96px);  line-height: 0.95; letter-spacing: -0.035em; }
.display-l   { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.5vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.display-m   { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
.display-s   { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.body-l      { font-size: 19px; line-height: 1.5; color: var(--ink); }
.body-m      { font-size: 16px; line-height: 1.55; }
.body-s      { font-size: 14px; line-height: 1.5; color: var(--smoke); }
.mono        { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.mono-md     { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; }

/* Layout ------------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(72px, 9vw, 140px); }
.section-tight { padding-block: clamp(56px, 6vw, 96px); }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before {
  content: ""; display: block; width: 24px; height: 1px; background: currentColor;
}
.eyebrow.red { color: var(--red); }
.eyebrow.on-dark { color: var(--paper); }

/* Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-radius: 999px;
  font-family: var(--font-text); font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
}
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary   { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost     { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light     { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark      { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: color .2s, border-color .2s, gap .2s;
}
.btn-link:hover { color: var(--red); border-color: var(--red); gap: 14px; }

/* Card hover utility */
.hover-lift { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hover-lift:hover { transform: translateY(-3px); }

/* Image placeholder utility for stock photos */
.ph-img { background: var(--paper-2); overflow: hidden; position: relative; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }

/* Divider */
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-dark { height: 1px; background: rgba(255,255,255,0.16); width: 100%; }

/* Focus */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Nav ---------------------------------------------------------- */
.utility-bar {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.utility-bar a { opacity: 0.7; transition: opacity .2s; }
.utility-bar a:hover { opacity: 1; color: #fff; }
.utility-bar .links { display: flex; gap: 28px; }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-logo .mark {
  width: 36px; height: 36px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  position: relative;
}
.nav-logo .mark::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; background: var(--red);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  position: relative;
  padding: 10px 14px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }
.nav-cta { margin-left: 14px; }

/* Footer ------------------------------------------------------- */
.footer { background: var(--ink); color: var(--paper); padding-block: 80px 32px; }
.footer .container { display: grid; gap: 48px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke-2); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--paper); opacity: 0.78; font-size: 15px; transition: opacity .2s, color .2s; }
.footer ul a:hover { opacity: 1; color: var(--red); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--smoke-2);
}
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--paper); }
.footer-brand { max-width: 320px; }
.footer-brand .display-m { color: var(--paper); margin-block: 12px 18px; }
.footer-brand p { color: rgba(246,243,238,0.65); font-size: 14px; line-height: 1.6; }

/* Page header (used on inner pages) ---------------------------- */
.page-header {
  background: var(--ink); color: var(--paper);
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
  background-color: var(--ink);
  background-blend-mode: multiply;
}
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow.on-dark { color: var(--red); }
.page-header .display-xl { color: var(--paper); margin-top: 18px; max-width: 16ch; }
.page-header .lede { margin-top: 28px; max-width: 60ch; color: rgba(246,243,238,0.78); font-size: 20px; line-height: 1.5; }
.page-header .meta-row {
  display: flex; gap: 48px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.14);
}
.page-header .meta-row .item .mono { color: var(--smoke-2); margin-bottom: 6px; display: block; }
.page-header .meta-row .item .val { font-family: var(--font-display); font-weight: 600; font-size: 22px; }

/* Specific section helpers ------------------------------------- */
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .body-s { color: var(--smoke-2); }

/* Responsive --------------------------------------------------- */
@media (max-width: 1100px) {
  .nav .nav-cta { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(4, 1fr); }
  .utility-bar .links { gap: 16px; }
}
