/* Sky Core — design system "Polar Field Instrument" (built 2026-09-25,
   self_travel-25, Canada — a 4th site added after the 7x3 batch closed,
   deliberately NOT a transport/route/city-hub site like -4/-5/-6: this is
   an instrument/calculator site, built around a live likelihood score
   rather than a itinerary. Direction consulted with Codex CLI (design
   brief -> "Polar Field Instrument": field-equipment aesthetic, aurora
   colour treated as measured evidence, not atmospheric decoration).
   Palette: Snowblind (near-white ground, ~70% of the interface) /
   Graphite Lake (green-black ink) / Survey Orange (decisive accent) /
   Ice Core (secondary / "dark hours") / Solar Sulfur (geomagnetic flash,
   used sparingly) / Magnetic Violet (uncertainty, historical data).
   Type: Fjalla One (compressed, blunt, stamped-equipment display) +
   Atkinson Hyperlegible Next (open, accessibility-minded body) +
   Recursive in its MONO axis (data/coordinates/scores). Signature: the
   Sky Core widget itself, a 24-chamber vertical "ice-core/exposure-strip"
   instrument with a draggable hour scrubber and exposed-math scoring —
   not a slider-to-lookup, toggle, quiz, filter, scatter, or comparison
   table, all of which are already used elsewhere in the series. Hero is
   a folded-latitude-chart composition (diagonal 60th-parallel fold,
   no photograph) — visually distinct from -22's SVG-route-map no-photo
   hero (that was a country outline; this is an abstract instrument
   fold with the widget itself piercing it). */

@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Atkinson+Hyperlegible+Next:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Recursive:opsz,wght,slnt,CASL,MONO@6..12,340..800,-15..0,0..1,0..1&display=swap');

:root {
  --sc-snow: #f4f7f2;
  --sc-snow-deep: #e7ece1;
  --sc-paper: #fbfcf9;
  --sc-graphite: #172628;
  --sc-graphite-soft: #3a4b4d;
  --sc-orange: #ff5a36;
  --sc-orange-deep: #d1431f;
  --sc-ice: #a9e7e1;
  --sc-ice-deep: #6fb9b2;
  --sc-sulfur: #e5f04b;
  --sc-violet: #6857a8;
  --sc-violet-deep: #4c3d80;
  --sc-hairline: rgba(23, 38, 40, .16);
  --sc-hairline-strong: rgba(23, 38, 40, .32);
  --sc-shadow: 0 14px 30px rgba(23, 38, 40, .14);

  --sc-font-display: 'Fjalla One', 'Arial Narrow', sans-serif;
  --sc-font-body: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sc-font-mono: 'Recursive', ui-monospace, 'SF Mono', Menlo, monospace;

  --sc-shell: min(100% - 32px, 1180px);
  --sc-radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sc-snow);
  color: var(--sc-graphite);
  font-family: var(--sc-font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--sc-graphite); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--sc-orange-deep); }
h1, h2, h3 {
  font-family: var(--sc-font-display);
  font-weight: 400;
  text-transform: none;
  line-height: 1.05;
  margin: 0;
  letter-spacing: .002em;
}
.sc-mono {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 500, 'slnt' 0;
  letter-spacing: .01em;
}
.sc-wrap { width: var(--sc-shell); margin-inline: auto; }
.sc-eyebrow {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 600;
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sc-orange-deep);
}
.sc-lede { font-size: 18px; line-height: 1.65; color: var(--sc-graphite-soft); max-width: 62ch; }
.sc-section { padding: 56px 0; }
.sc-section--tight { padding: 40px 0; }
.sc-section--dark { background: var(--sc-graphite); color: var(--sc-snow); }
.sc-section--dark .sc-eyebrow { color: var(--sc-sulfur); }
.sc-hairline { border: none; border-top: 1px solid var(--sc-hairline); margin: 0; }
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--sc-radius);
  border: 2px solid var(--sc-graphite);
  background: var(--sc-orange);
  color: var(--sc-graphite);
  font-family: var(--sc-font-display);
  font-size: 16px;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
}
.sc-btn:hover { background: var(--sc-orange-deep); color: var(--sc-snow); }
.sc-btn--ghost { background: transparent; border-color: var(--sc-hairline-strong); }
.sc-btn--ghost:hover { border-color: var(--sc-graphite); background: transparent; color: var(--sc-graphite); }
.sc-btn--ghost.is-active { background: var(--sc-graphite); border-color: var(--sc-graphite); color: var(--sc-snow); }
.sc-section--dark .sc-btn--ghost { border-color: rgba(244,247,242,.4); color: var(--sc-snow); }
.sc-section--dark .sc-btn--ghost:hover { border-color: var(--sc-snow); }

/* ---------- header ---------- */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sc-paper);
  border-bottom: 1px solid var(--sc-hairline);
}
.sc-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px 0;
}
.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sc-graphite);
  font-family: var(--sc-font-display);
  font-size: 21px;
  letter-spacing: .01em;
}
.sc-brand__mark { width: 30px; height: 30px; flex: none; }
.sc-nav { display: none; }
.sc-nav a {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 500;
  font-size: 14px;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--sc-graphite-soft);
  padding: 10px 2px;
}
.sc-nav a:hover, .sc-nav a[aria-current="page"] { color: var(--sc-orange-deep); }
.sc-navtoggle {
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--sc-graphite);
  background: var(--sc-snow);
  border-radius: var(--sc-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sc-mobilemenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 16px;
  border-top: 1px solid var(--sc-hairline);
}
.sc-mobilemenu.is-open { display: flex; }
.sc-mobilemenu a {
  padding: 12px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--sc-graphite);
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 500;
  border-bottom: 1px solid var(--sc-hairline);
}

/* ---------- hero: folded latitude chart ---------- */
.sc-hero { position: relative; overflow: hidden; background: var(--sc-graphite); }
.sc-hero__fold {
  position: absolute;
  inset: 0;
  background-color: var(--sc-graphite);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%);
}
.sc-hero__fold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,38,40,.35) 0%, rgba(23,38,40,.08) 30%, rgba(23,38,40,.08) 70%, rgba(23,38,40,.3) 100%);
}
.sc-hero__fold::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(38% - 3px);
  height: 6px;
  background: linear-gradient(90deg, var(--sc-orange), var(--sc-sulfur));
  transform: skewY(-12deg);
  transform-origin: left;
}
.sc-hero__lower { position: absolute; inset: 0; background: var(--sc-snow); clip-path: polygon(0 62%, 100% 38%, 100% 100%, 0 100%); }
.sc-hero__inner { position: relative; padding: 40px 0 56px; }
.sc-hero__line1 {
  font-family: var(--sc-font-display);
  font-size: clamp(40px, 11vw, 84px);
  line-height: .96;
  color: var(--sc-snow);
  margin: 0 0 4px;
}
.sc-hero__line2 {
  font-family: var(--sc-font-display);
  font-size: clamp(26px, 6.4vw, 46px);
  line-height: 1.05;
  color: var(--sc-graphite);
  margin: clamp(64px, 24vw, 190px) 0 0;
}
.sc-hero__line2 span {
  display: inline-block;
  background: var(--sc-snow);
  padding: 4px 12px;
  box-shadow: 6px 0 0 var(--sc-snow), -6px 0 0 var(--sc-snow);
}
.sc-hero__coords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 500;
  font-size: 12.5px;
  color: rgba(244,247,242,.72);
}
.sc-hero__coords span { white-space: nowrap; }
.sc-hero__coords .is-live { color: var(--sc-orange); }
.sc-hero__lede { margin: 18px 0 0; max-width: 46ch; color: var(--sc-graphite-soft); font-size: 17px; }
.sc-hero__cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.sc-hero__parallel {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(23,38,40,.5);
  margin-top: 26px;
}

/* ---------- Sky Core instrument ---------- */
.skycore {
  background: var(--sc-paper);
  border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 22px;
}
.skycore__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.skycore__field { display: flex; flex-direction: column; gap: 6px; }
.skycore__field label {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 600;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sc-graphite-soft);
}
.skycore__select {
  min-height: 46px;
  border: 2px solid var(--sc-graphite);
  border-radius: var(--sc-radius);
  background: var(--sc-snow);
  font-family: var(--sc-font-body);
  font-size: 16px;
  padding: 8px 10px;
  color: var(--sc-graphite);
}
.skycore__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.skycore__core {
  display: flex;
  gap: 10px;
  align-items: stretch;
  touch-action: pan-y;
}
.skycore__chambers {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--sc-graphite);
  border-radius: var(--sc-radius);
  overflow: hidden;
  min-height: 340px;
  position: relative;
  cursor: ns-resize;
}
.skycore__chamber {
  flex: 1;
  position: relative;
  border-bottom: 1px solid rgba(23,38,40,.10);
  display: flex;
  align-items: center;
  transition: filter .15s ease;
}
.skycore__chamber:last-child { border-bottom: none; }
.skycore__chamber[data-phase="day"] { background: var(--sc-snow-deep); }
.skycore__chamber[data-phase="twilight"] { background: linear-gradient(90deg, var(--sc-snow-deep), var(--sc-ice)); }
.skycore__chamber[data-phase="dark"] { background: var(--sc-graphite); }
.skycore__chamber[data-phase="dark-active"] { background: linear-gradient(90deg, var(--sc-graphite), var(--sc-violet-deep)); }
.skycore__chamber[data-phase="peak"] { background: linear-gradient(90deg, var(--sc-graphite), var(--sc-orange)); }
.skycore__chamber-fila {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--sc-sulfur);
  opacity: .85;
}
.skycore__chamber-hour {
  position: absolute;
  left: 10px;
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 500;
  font-size: 10.5px;
  color: rgba(244,247,242,.55);
}
.skycore__chamber[data-phase="day"] .skycore__chamber-hour,
.skycore__chamber[data-phase="twilight"] .skycore__chamber-hour { color: rgba(23,38,40,.42); }
.skycore__scrubber {
  position: absolute;
  left: -4px; right: -4px;
  height: 3px;
  background: var(--sc-orange);
  box-shadow: 0 0 0 2px var(--sc-paper), 0 0 0 3px var(--sc-graphite);
  pointer-events: none;
  top: 0;
}
.skycore__scrubber::before {
  content: "";
  position: absolute;
  right: -4px; top: -8px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent var(--sc-graphite);
}
.skycore__readout {
  border: 2px solid var(--sc-graphite);
  border-radius: var(--sc-radius);
  padding: 18px;
  background: var(--sc-snow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skycore__score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.skycore__score-num {
  font-family: var(--sc-font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--sc-orange-deep);
}
.skycore__score-den { font-family: var(--sc-font-mono); font-variation-settings: 'MONO' 1, 'wght' 500; color: var(--sc-graphite-soft); font-size: 18px; }
.skycore__verdict { font-family: var(--sc-font-display); font-size: 21px; }
.skycore__math {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 450;
  font-size: 13.5px;
  color: var(--sc-graphite-soft);
  line-height: 1.7;
  padding-top: 8px;
  border-top: 1px solid var(--sc-hairline);
}
.skycore__hourline {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 550;
  font-size: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--sc-hairline);
  min-height: 20px;
}
.skycore__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 500;
  font-size: 12px;
  color: var(--sc-graphite-soft);
}
.skycore__legend span { display: inline-flex; align-items: center; gap: 6px; }
.skycore__legend i { width: 12px; height: 12px; display: inline-block; border-radius: 2px; }
.skycore__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--sc-graphite-soft);
  border-top: 1px solid var(--sc-hairline);
  padding-top: 12px;
}

/* ---------- generic content ---------- */
.sc-h1 { font-size: clamp(32px, 6vw, 52px); }
.sc-h2 { font-size: clamp(24px, 4.4vw, 34px); margin-bottom: 14px; }
.sc-h3 { font-size: 20px; margin-bottom: 8px; }
.sc-prose { max-width: 68ch; }
.sc-prose p { margin: 0 0 16px; }
.sc-prose ul, .sc-prose ol { margin: 0 0 16px; padding-left: 22px; }
.sc-prose li { margin-bottom: 6px; }
.sc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.sc-card {
  background: var(--sc-paper);
  border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-radius);
  padding: 22px;
}
.sc-card__tag {
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sc-orange-deep);
  margin-bottom: 6px;
  display: block;
}
.sc-facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--sc-hairline);
  display: grid;
  gap: 8px;
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 480;
  font-size: 13.5px;
  color: var(--sc-graphite-soft);
}
.sc-facts b { color: var(--sc-graphite); font-variation-settings: 'MONO' 1, 'wght' 650; }
.sc-stripband {
  display: flex;
  overflow-x: auto;
  gap: 0;
  border-top: 1px solid var(--sc-hairline-strong);
  border-bottom: 1px solid var(--sc-hairline-strong);
}
.sc-stripband__cell {
  flex: 1 0 130px;
  padding: 14px 12px;
  border-right: 1px solid var(--sc-hairline);
  text-align: center;
}
.sc-stripband__cell:last-child { border-right: none; }
.sc-stripband__month { font-family: var(--sc-font-mono); font-variation-settings: 'MONO' 1, 'wght' 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-graphite-soft); }
.sc-stripband__score { font-family: var(--sc-font-display); font-size: 26px; color: var(--sc-orange-deep); margin-top: 4px; }
.sc-destgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.sc-destcard {
  display: block;
  text-decoration: none;
  color: var(--sc-graphite);
  border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: var(--sc-paper);
  transition: box-shadow .15s ease, transform .15s ease;
}
.sc-destcard:hover { box-shadow: var(--sc-shadow); transform: translateY(-2px); color: var(--sc-graphite); }
.sc-destcard .sc-photo { border: none; border-radius: 0; }
.sc-destcard__body { padding: 16px 18px 20px; }
.sc-photo {
  border: 1px solid var(--sc-hairline-strong);
  background: var(--sc-snow-deep);
}
.sc-photo img { width: 100%; height: auto; }
.sc-photo figcaption {
  padding: 10px 14px;
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 480;
  font-size: 12.5px;
  color: var(--sc-graphite-soft);
  border-top: 1px solid var(--sc-hairline);
}
.sc-callout {
  border-left: 4px solid var(--sc-orange);
  padding: 4px 0 4px 16px;
  color: var(--sc-graphite-soft);
}
.sc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sc-table th, .sc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sc-hairline); vertical-align: top; }
.sc-table th { font-family: var(--sc-font-mono); font-variation-settings: 'MONO' 1, 'wght' 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--sc-graphite-soft); }
.sc-table-wrap { overflow-x: auto; border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-radius); }

/* ---------- forms ---------- */
.sc-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.sc-form label { font-family: var(--sc-font-mono); font-variation-settings: 'MONO' 1, 'wght' 600; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--sc-graphite-soft); display: block; margin-bottom: 6px; }
.sc-form input, .sc-form textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--sc-graphite);
  border-radius: var(--sc-radius);
  padding: 10px 12px;
  font-family: var(--sc-font-body);
  font-size: 16px;
  background: var(--sc-paper);
  color: var(--sc-graphite);
}
.sc-form textarea { min-height: 140px; resize: vertical; }
.sc-form__error { color: var(--sc-orange-deep); font-size: 14px; }

/* ---------- footer ---------- */
.sc-footer { background: var(--sc-graphite); color: rgba(244,247,242,.82); padding: 44px 0 26px; }
.sc-footer a { color: var(--sc-snow); }
.sc-footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.sc-footer h4 { font-family: var(--sc-font-display); font-size: 16px; color: var(--sc-snow); margin: 0 0 10px; }
.sc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sc-footer__bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(244,247,242,.16);
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-family: var(--sc-font-mono);
  font-variation-settings: 'MONO' 1, 'wght' 480;
}
.sc-footer__legal { color: rgba(244,247,242,.55); max-width: 74ch; }

/* ---------- cookie banner ---------- */
.sc-cookiebar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  background: var(--sc-graphite);
  color: var(--sc-snow);
  border-radius: var(--sc-radius);
  padding: 16px;
  box-shadow: var(--sc-shadow);
  display: none;
  gap: 12px;
  flex-direction: column;
}
.sc-cookiebar.is-visible { display: flex; }
.sc-cookiebar p { margin: 0; font-size: 14px; }
.sc-cookiebar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-cookiebar .sc-btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }

/* ---------- responsive (mobile-first, min-width only) ---------- */
@media (min-width: 620px) {
  .sc-grid--2 { grid-template-columns: 1fr 1fr; }
  .sc-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .sc-destgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .skycore__core { min-height: 380px; }
  .skycore__body { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
@media (min-width: 860px) {
  .sc-nav { display: flex; gap: 22px; align-items: center; }
  .sc-navtoggle { display: none; }
  .sc-mobilemenu { display: none !important; }
  .sc-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sc-destgrid { grid-template-columns: repeat(4, 1fr); }
  .sc-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .sc-hero__inner { padding: 64px 0 96px; }
}
@media (min-width: 1040px) {
  .sc-grid--2 { grid-template-columns: 1.1fr .9fr; }
}
