/* Glacier Line — design system for self_travel-4 (Icefields Parkway corridor site)
   Palette grounded in the real corridor: glacial-lake teal, granite grey-black,
   pale ice background, larch-gold autumn accent. Cool-dominant, unlike the
   warm-paper (self_travel-1), navy/brass (self_travel-2) and dusk-warm
   (self_travel-3) systems already in the series. */

:root {
  --rk-ice: #eef5f5;
  --rk-ice-deep: #dde9ea;
  --rk-granite: #1c2427;
  --rk-granite-soft: #3a4448;
  --rk-teal: #1f7a8c;
  --rk-teal-deep: #14505c;
  --rk-larch: #d9a441;
  --rk-larch-deep: #a97a26;
  --rk-spruce: #2f4a3c;
  --rk-white: #ffffff;
  --rk-line: rgba(28, 36, 39, .14);
  --rk-line-strong: rgba(28, 36, 39, .28);
  --rk-shadow: 0 20px 44px rgba(10, 16, 18, .16);
  --rk-shadow-sm: 0 8px 20px rgba(10, 16, 18, .12);

  --rk-font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --rk-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rk-font-mono: 'Roboto Mono', ui-monospace, Menlo, monospace;

  --rk-radius: 4px;
  --rk-radius-lg: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rk-ice);
  color: var(--rk-granite);
  font-family: var(--rk-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--rk-font-display); margin: 0; font-weight: 400; line-height: 1.08; }
p { margin: 0 0 1em; }
.rk-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.rk-eyebrow {
  font-family: var(--rk-font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rk-teal-deep);
  display: block;
  margin-bottom: 10px;
}
.rk-section { padding: 56px 0; }
.rk-section--sunk { background: var(--rk-ice-deep); }
.rk-section--dark { background: var(--rk-granite); color: var(--rk-ice); }
.rk-section--dark .rk-eyebrow { color: var(--rk-larch); }

/* ---------- placeholder image slots (no real images generated yet) ---------- */
.rk-photo {
  position: relative;
  border: 1.5px dashed var(--rk-line-strong);
  border-radius: var(--rk-radius-lg);
  background: repeating-linear-gradient(135deg, rgba(28,36,39,.05) 0 1px, transparent 1px 16px), var(--rk-white);
  aspect-ratio: var(--ar, 16/10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rk-photo__inner { text-align: center; padding: 16px; max-width: 30ch; }

.rk-real-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rk-radius-lg);
  box-shadow: var(--rk-shadow-sm);
  margin: 0 0 28px;
}
.rk-photo__icon { width: 30px; height: 30px; color: var(--rk-teal); opacity: .8; margin: 0 auto 10px; }
.rk-photo__label { font-family: var(--rk-font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rk-teal-deep); display: block; margin-bottom: 6px; }
.rk-photo__brief { font-size: .8rem; color: var(--rk-granite-soft); }
.rk-photo__size { font-family: var(--rk-font-mono); font-size: .65rem; color: var(--rk-granite-soft); opacity: .65; display: block; margin-top: 8px; }

/* ---------- header ---------- */
.rk-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 245, 245, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rk-line);
}
.rk-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.rk-brand { display: flex; align-items: center; gap: 9px; font-family: var(--rk-font-display); font-size: 1.3rem; color: var(--rk-granite); }
.rk-brand__mark { width: 26px; height: 26px; color: var(--rk-teal); flex: none; display: inline-flex; }
.rk-nav { display: none; }
.rk-nav a { font-size: .92rem; padding: 8px 4px; color: var(--rk-granite-soft); min-height: 44px; display: inline-flex; align-items: center; }
.rk-nav a:hover { color: var(--rk-teal-deep); }
.rk-header__cta {
  font-size: .88rem; font-weight: 600; padding: 10px 16px; min-height: 44px; min-width: 44px;
  border-radius: var(--rk-radius); background: var(--rk-granite); color: var(--rk-ice);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.rk-header__cta:hover { background: var(--rk-teal-deep); }
.rk-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--rk-line-strong); border-radius: var(--rk-radius);
  background: var(--rk-white); flex: none;
}
.rk-menu-toggle svg { width: 20px; height: 20px; }
.rk-mobile-nav { display: none; flex-direction: column; padding: 10px 0 18px; border-top: 1px solid var(--rk-line); }
.rk-mobile-nav.is-open { display: flex; }
.rk-mobile-nav a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--rk-line); color: var(--rk-granite-soft); }

@media (min-width: 900px) {
  .rk-nav { display: flex; gap: 22px; }
  .rk-menu-toggle { display: none; }
  .rk-mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.rk-hero { padding: 48px 0 30px; }
.rk-hero__grid { display: grid; gap: 30px; }
.rk-hero h1 { font-size: 2.3rem; letter-spacing: -.01em; }
.rk-hero__lede { font-size: 1.08rem; color: var(--rk-granite-soft); margin-top: 16px; max-width: 52ch; }
.rk-hero__facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.rk-fact { border-left: 2px solid var(--rk-larch); padding-left: 12px; }
.rk-fact__num { display: block; font-family: var(--rk-font-mono); font-size: 1.25rem; color: var(--rk-granite); font-weight: 600; }
.rk-fact__label { font-size: .8rem; color: var(--rk-granite-soft); }

@media (min-width: 900px) {
  .rk-hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* ---------- signature: the profile line (elevation ridge across the corridor) ---------- */
.rk-profile { padding: 10px 0 50px; overflow: hidden; }
.rk-profile__head { max-width: 60ch; margin-bottom: 22px; }
.rk-profile__svg-wrap {
  position: relative;
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius-lg);
  background: var(--rk-white);
  padding: 18px 6px 34px;
  overflow-x: auto;
}
.rk-profile__svg { width: 100%; min-width: 640px; height: auto; display: block; }
.rk-profile__ridge { fill: none; stroke: var(--rk-teal); stroke-width: 2.5; }
.rk-profile__fill { fill: url(#rk-ridge-fill); stroke: none; }
.rk-profile__base { stroke: var(--rk-line-strong); stroke-width: 1; }
.rk-profile__marker circle { fill: var(--rk-white); stroke: var(--rk-teal); stroke-width: 2.5; cursor: pointer; }
.rk-profile__marker.is-active circle { fill: var(--rk-larch); stroke: var(--rk-larch-deep); }
.rk-profile__marker text { font-family: var(--rk-font-mono); font-size: 10px; fill: var(--rk-granite-soft); }
.rk-profile__marker.is-active text { fill: var(--rk-granite); font-weight: 700; }
.rk-profile__marker { cursor: pointer; }

/* ---------- stop cards ---------- */
.rk-stops { display: grid; gap: 18px; margin-top: 10px; }
.rk-stop-card {
  display: grid; gap: 16px; padding: 20px; background: var(--rk-white);
  border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg);
  box-shadow: var(--rk-shadow-sm); scroll-margin-top: 90px;
}
.rk-stop-card__km { font-family: var(--rk-font-mono); font-size: .72rem; color: var(--rk-teal-deep); letter-spacing: .06em; text-transform: uppercase; }
.rk-stop-card h3 { font-size: 1.4rem; margin-top: 6px; }
.rk-stop-card p { color: var(--rk-granite-soft); font-size: .95rem; }
.rk-stop-card__link { font-size: .85rem; font-weight: 600; color: var(--rk-teal-deep); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.rk-stop-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--rk-radius); display: block; }

@media (min-width: 760px) {
  .rk-stop-card { grid-template-columns: 220px 1fr; align-items: start; }
}

/* ---------- buttons ---------- */
.rk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border-radius: var(--rk-radius);
  font-size: .92rem; font-weight: 600; border: 1.5px solid transparent; cursor: pointer;
}
.rk-btn--solid { background: var(--rk-teal); color: var(--rk-white); }
.rk-btn--solid:hover { background: var(--rk-teal-deep); }
.rk-btn--ghost { background: transparent; border-color: var(--rk-line-strong); color: var(--rk-granite); }
.rk-btn--ghost:hover { border-color: var(--rk-teal); color: var(--rk-teal-deep); }
.rk-btn--on-dark { background: var(--rk-larch); color: var(--rk-granite); }
.rk-btn--on-dark:hover { background: var(--rk-larch-deep); color: var(--rk-ice); }

/* ---------- practical grid (season/driving-notes style cards) ---------- */
.rk-notes-grid { display: grid; gap: 16px; margin-top: 20px; }
.rk-note { padding: 18px; background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg); }
.rk-note h3 { font-size: 1.05rem; margin-bottom: 8px; }
.rk-note p { font-size: .9rem; color: var(--rk-granite-soft); margin-bottom: 0; }
@media (min-width: 700px) {
  .rk-notes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .rk-notes-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- pacing options (plan-your-day) ---------- */
.rk-pace-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.rk-pace-tab {
  padding: 9px 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--rk-line-strong);
  font-size: .85rem; font-weight: 600; color: var(--rk-granite-soft); background: var(--rk-white);
}
.rk-pace-tab.is-active { background: var(--rk-granite); border-color: var(--rk-granite); color: var(--rk-ice); }
.rk-pace-panel { display: none; }
.rk-pace-panel.is-active { display: block; }

/* ---------- lead-capture strip (site-wide CTA mechanic — not an account system) ---------- */
.rk-capture {
  border: 1.5px dashed var(--rk-line-strong); border-radius: var(--rk-radius-lg);
  padding: 26px; background: var(--rk-ice-deep); display: grid; gap: 16px; align-items: center;
}
.rk-capture h3 { font-size: 1.3rem; }
.rk-capture form { display: flex; flex-wrap: wrap; gap: 10px; }
.rk-capture input[type="email"] {
  flex: 1 1 220px; min-height: 44px; padding: 0 14px; border-radius: var(--rk-radius);
  border: 1.5px solid var(--rk-line-strong); font-size: 1rem; font-family: var(--rk-font-body);
}
@media (min-width: 760px) {
  .rk-capture { grid-template-columns: 1.1fr 1fr; padding: 34px; }
}

/* ---------- footer ---------- */
.rk-footer { background: var(--rk-granite); color: var(--rk-ice); padding: 44px 0 26px; }
.rk-footer a { color: var(--rk-ice); opacity: .82; min-height: 44px; display: inline-flex; align-items: center; }
.rk-footer a:hover { opacity: 1; color: var(--rk-larch); }
.rk-footer__grid { display: grid; gap: 26px; }
.rk-footer__col h4 { font-family: var(--rk-font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rk-mist, rgba(238,245,245,.6)); margin-bottom: 10px; }
.rk-footer__col nav { display: flex; flex-direction: column; }
.rk-footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(238,245,245,.14); font-size: .8rem; opacity: .7; }
@media (min-width: 760px) {
  .rk-footer__grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
}

/* ---------- generic page hero (subpages) ---------- */
.rk-page-hero { padding: 44px 0 34px; border-bottom: 1px solid var(--rk-line); }
.rk-page-hero h1 { font-size: 2rem; }
.rk-page-hero p { color: var(--rk-granite-soft); max-width: 60ch; margin-top: 12px; }
.rk-breadcrumb { font-family: var(--rk-font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rk-teal-deep); margin-bottom: 14px; display: block; }

.rk-prose { max-width: 68ch; }
.rk-prose h2 { font-size: 1.4rem; margin: 30px 0 12px; }
.rk-prose h2:first-child { margin-top: 0; }
.rk-prose h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.rk-prose p { color: var(--rk-granite-soft); }
.rk-prose ul { color: var(--rk-granite-soft); padding-left: 20px; }
.rk-prose li { margin-bottom: 8px; }

.rk-callout {
  background: var(--rk-white);
  border-left: 3px solid var(--rk-larch);
  border-radius: var(--rk-radius);
  padding: 16px 18px;
  margin: 22px 0;
}
.rk-callout p { margin-bottom: 0; font-size: .92rem; }
.rk-callout p + p { margin-top: 8px; }
.rk-callout strong { color: var(--rk-granite); }

.rk-section-head { margin-bottom: 8px; }
.rk-section + .rk-section { border-top: 1px solid var(--rk-line); }
