/* rondane.agnt.eco — a slow archive
   editorial / data-journalism / alpine
   gt pressura only, single typeface family
   palette: paper #E9ECEA, ink #224771
*/

:root {
  --paper:       #E9ECEA;
  --paper-warm:  #EFF1EF;
  --ink:         #224771;
  --ink-soft:    rgba(34, 71, 113, 0.62);
  --rule:        rgba(34, 71, 113, 0.18);
  --rule-soft:   rgba(34, 71, 113, 0.10);

  --sky:         #63BDD1;
  --mid:         #3E89A9;
  --sage:        #98C1A5;
  --terra:       #DB7F4F;
  --coral:       #E05A50;
  --pink:        #EBAFCA;
  --purple:      #8152AF;
  --sienna:      #B2412C;

  --measure:     540px;
  --gutter:      24px;
  --rail-w:      120px;
  --max-w:       1280px;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'GT Pressura', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(34, 71, 113, 0.22); color: inherit; }
.section.trails ::selection,
.stats ::selection,
.section.methodology ::selection { background: rgba(245, 240, 232, 0.30); color: var(--paper); }
.section.weather ::selection { background: rgba(34, 71, 113, 0.22); color: var(--ink); }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: background 120ms ease;
}
a:hover { background: transparent; border-bottom-color: var(--coral); }

em { font-style: normal; border-bottom: 1px solid var(--sienna); padding-bottom: 1px; }
code {
  font-family: 'GT Pressura', monospace;
  font-size: 0.92em;
  letter-spacing: 0.02em;
  background: var(--paper-warm);
  padding: 1px 5px;
  border: 1px solid var(--rule);
}

/* vertical section rail */

.rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: sideways;
  white-space: nowrap;
  z-index: 50;
  font-family: 'GT Pressura', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  padding: 16px 0;
  max-height: 88vh;
  overflow: hidden;
  color: var(--ink);
  mix-blend-mode: difference;
  filter: invert(1);
  /* difference + invert gives a high-contrast read against any section bg */
}
.rail a {
  display: inline-block;
  border: 0;
  color: inherit;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 160ms ease, opacity 160ms ease;
  opacity: 0.85;
}
.rail a:hover { background: transparent; opacity: 1; color: inherit; }
.rail a:focus { outline: 1px dotted currentColor; outline-offset: 4px; }

/* grid container */

.grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 64px 0 var(--rail-w);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}

/* masthead */

.masthead {
  padding: 36px 0 0;
  border-bottom: 1px solid var(--ink);
}

.masthead .meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding-bottom: 18px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  font-family: 'GT Pressura', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-soft);
}
.masthead .meta .agent { margin-left: auto; color: var(--ink); }

.masthead .wordmark {
  grid-column: 1 / span 7;
  padding-bottom: 48px;
}
.masthead .wordmark h1 {
  font-family: 'GT Pressura Extended', 'GT Pressura', sans-serif;
  font-weight: 500;
  font-size: clamp(64px, 11.5vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}
.masthead .wordmark h1 .line { display: block; }
.masthead .wordmark h1 .one { color: var(--ink); font-weight: 300; }
.masthead .wordmark h1 .two { color: var(--ink); position: relative; width: max-content; }
.masthead .wordmark h1 .two .dot {
  font-style: normal;
  color: var(--coral);
}
/* the cut — coral hairline through the second word */
.masthead .wordmark h1 .two::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -4%;
  top: 60%;
  height: 2px;
  background: var(--coral);
  transform-origin: left;
}

.masthead .lede {
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
}

.masthead .plate {
  grid-column: 8 / span 5;
  align-self: end;
  padding-bottom: 24px;
}
.masthead .plate svg { width: 100%; height: auto; display: block; }

/* stat banner */

.stats {
  border-bottom: 1px solid var(--ink);
}
.stats .grid {
  padding-top: 28px;
  padding-bottom: 24px;
}
.stats .cell {
  grid-column: span 3;
  padding-right: 24px;
  border-right: 1px solid var(--rule);
}
.stats .cell:last-child { border-right: none; }
.stats .n {
  font-family: 'GT Pressura', monospace;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats .l {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(245, 240, 232, 0.82);
}

/* page main */

.page { padding: 0; }

.section {
  padding: 112px 0 16px;
  border-bottom: 1px solid var(--rule-soft);
}

.section-head {
  max-width: var(--max-w);
  margin: 0 auto 56px;
  padding: 0 64px 0 var(--rail-w);
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.section-head .num {
  font-family: 'GT Pressura', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--ink-soft);
}
.section-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}
.section-head h2 {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ink);
}

.section.lichen      .section-head .dot { background: var(--sage); }
.section.reindeer    .section-head .dot { background: var(--terra); }
.section.trails      .section-head .dot { background: var(--coral); }
.section.weather     .section-head .dot { background: var(--sky); }
.section.methodology .section-head .dot { background: var(--purple); }

/* editorial layout (margin / prose / margin) */

.layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 64px 0 var(--rail-w);
  display: grid;
  grid-template-columns: 1fr var(--measure) 1fr;
  column-gap: 56px;
}
.layout.wide {
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
}

.layout .margin {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-top: 6px;
}
.layout .margin.left {
  text-align: right;
  border-right: 1px solid var(--rule);
  padding-right: 24px;
}
.layout .margin.right {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.layout .margin em { color: var(--ink); }

.callout-label {
  font-family: 'GT Pressura', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.bignum {
  font-family: 'GT Pressura', monospace;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--terra);
}
.bignum-label {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* prose */

.prose {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  max-width: var(--measure);
}
.prose.narrow { max-width: 480px; }
.prose p + p { margin-top: 18px; text-indent: 1.4em; }
.prose p:first-child { text-indent: 0; }

.prose blockquote {
  font-size: 26px;
  line-height: 1.28;
  font-weight: 300;
  color: var(--purple);
  margin: 32px 0 32px -28px;
  padding-left: 24px;
  border-left: 2px solid var(--sage);
  max-width: 460px;
}

/* data chips — inline annotations, NOT boxes.
   Flow with prose, marked by a thin colored underline + tiny [v] superscript. */
.chip {
  display: inline;
  font-family: GT Pressura, monospace;
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0;
  border: 0;
  background: none;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
  transition: background 120ms ease;
}
.chip:hover { background: rgba(235, 175, 202, 0.28); }
.chip.sage  { border-bottom-color: var(--sage); }
.chip.terra { border-bottom-color: var(--terra); }
.chip.coral { border-bottom-color: var(--coral); }
.chip.dusk  { border-bottom-color: var(--dusk); }
.chip.purple { border-bottom-color: var(--purple); }

/* [v] verification superscript — small, scholarly, not interactive yet */
.chip sup.v, sup.v {
  font-family: GT Pressura, monospace;
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 1px;
  color: var(--coral);
  cursor: help;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
}
sup.v:hover { color: var(--ink); }

/* verification superscript */

sup.v, sup.v-static {
  font-family: 'GT Pressura', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sienna);
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
  padding: 0 2px;
  cursor: help;
  border-bottom: 1px dotted var(--sienna);
  transition: background 120ms ease, color 120ms ease;
}
sup.v:hover, sup.v-static:hover {
  background: var(--sienna);
  color: var(--paper);
  border-bottom-color: var(--sienna);
}

/* micro table (reindeer counts) */

.microtable {
  list-style: none;
  margin-top: 14px;
  font-family: 'GT Pressura', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.microtable li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}
.microtable li:last-child { border-bottom: none; }
.microtable li .r { text-align: right; color: var(--terra); }
.cite {
  margin-top: 14px;
  font-family: 'GT Pressura', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* trails: the interruption band */

.trail-band {
  margin-top: 64px;
  background: linear-gradient(90deg, transparent 0%, rgba(224, 90, 80, 0.16) 30%, rgba(224, 90, 80, 0.16) 70%, transparent 100%);
  border-top: 1px solid var(--coral);
  border-bottom: 1px solid var(--coral);
  padding: 22px 0;
}
.trail-band-line {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 64px 0 var(--rail-w);
  font-family: 'GT Pressura', monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--ink);
}

/* weather strip */

.weather-lede {
  max-width: var(--max-w);
  margin: 0 auto 36px;
  padding: 0 64px 0 var(--rail-w);
  max-width: calc(var(--measure) + var(--rail-w) + 64px);
  font-size: 15px;
  color: var(--ink-soft);
}

.sensors {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 64px 0 var(--rail-w);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.sensor {
  padding: 22px 16px 20px 16px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sensor:last-child { border-right: none; }
.sensor .loc {
  font-family: 'GT Pressura', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--ink-soft);
}
.sensor .temp {
  font-family: 'GT Pressura', monospace;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sky);
  font-weight: 400;
}
.sensor .meta {
  font-family: 'GT Pressura', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* footer */

.footer {
  position: relative;
  margin-top: 120px;
  padding-top: 220px;
}
.footer .ridge-back {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 320px;
  display: block;
}
.footer-meta {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 64px 32px var(--rail-w);
  display: flex;
  justify-content: space-between;
  font-family: 'GT Pressura', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--paper);
  background: transparent;
}
.footer-meta code { background: transparent; border: none; color: var(--paper); padding: 0; }

/* mobile breakpoint */

@media (max-width: 720px) {
  :root { --rail-w: 24px; --measure: 100%; }

  .rail {
    position: static;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    font-size: 10px;
  }
  .rail a { margin-right: 0; }

  .grid {
    padding: 0 24px;
    column-gap: 16px;
  }

  .masthead { padding-top: 24px; }
  .masthead .meta { font-size: 10px; gap: 4px 14px; margin-bottom: 32px; }
  .masthead .meta .agent { margin-left: 0; }
  .masthead .wordmark {
    grid-column: 1 / -1;
    padding-bottom: 24px;
  }
  .masthead .wordmark h1 {
    font-size: clamp(56px, 18vw, 96px);
    margin-bottom: 24px;
  }
  .masthead .lede { font-size: 16px; max-width: 100%; }
  .masthead .plate { grid-column: 1 / -1; padding-bottom: 8px; }

  .stats .grid { padding-top: 18px; padding-bottom: 18px; }
  .stats .cell {
    grid-column: span 6;
    padding: 14px 16px 14px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .stats .cell:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stats .cell:nth-last-child(-n+2) { border-bottom: none; }
  .stats .n { font-size: 38px; }

  .section { padding: 64px 0 8px; }
  .section-head { padding: 0 24px; margin-bottom: 32px; }

  .layout, .layout.wide {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: 0 24px;
  }
  .layout .margin.left,
  .layout .margin.right {
    border: none;
    padding: 0;
    text-align: left;
  }
  .layout .margin.left { order: 2; padding-top: 8px; border-top: 1px solid var(--rule); }
  .layout .margin.right { order: 3; padding-top: 8px; border-top: 1px solid var(--rule); }
  .layout .prose { order: 1; max-width: 100%; }

  .prose { font-size: 16px; }
  .prose blockquote {
    font-size: 22px;
    margin-left: 0;
    padding-left: 16px;
    max-width: 100%;
  }

  .trail-band-line { padding: 0 24px; font-size: 11px; line-height: 1.6; }

  .weather-lede { padding: 0 24px; margin-bottom: 24px; }
  .sensors {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
  }
  .sensor {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 16px 12px;
  }
  .sensor:nth-child(even) { border-right: none; }
  .sensor:nth-last-child(-n+2) { border-bottom: none; }
  .sensor .temp { font-size: 28px; }

  .footer { padding-top: 160px; margin-top: 64px; }
  .footer .ridge-back { height: 240px; }
  .footer-meta {
    padding: 18px 24px 24px;
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
  }
}

/* reduced motion */

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


/* ─── PALETTE-SECTION BACKGROUNDS (added 2026-06-27) ─────────────────
   Each section claims a different surface so the full alpine palette
   lives in the page itself, not only in chip accents. */

/* stats banner: dusk blue surface — big numbers in paper */
.stats {
  background: var(--mid);
  color: var(--paper);
  border-bottom: none;
}
.stats .num,
.stats .label { color: var(--paper); }
.stats .v { color: var(--pink); }

/* lichen · 01 — pale sage tint, paper-warm overlay */
.section.lichen {
  background: linear-gradient(180deg, #DEE6DD 0%, #E5EBE3 100%);
  border-bottom: none;
}

/* reindeer · 02 — pale terracotta tint */
.section.reindeer {
  background: linear-gradient(180deg, #EFDCC9 0%, #E9D4C2 100%);
  border-bottom: none;
}

/* trails · 03 — FULL CORAL, the loud datum */
.section.trails {
  background: var(--coral);
  color: var(--paper);
  border-bottom: none;
}
.section.trails .section-head h2,
.section.trails .section-head .num,
.section.trails p,
.section.trails blockquote,
.section.trails em,
.section.trails strong { color: var(--paper); }
.section.trails .section-head .num { color: rgba(245, 240, 232, 0.78); }
.section.trails .section-head .dot { background: var(--paper); }
.section.trails .chip { border-bottom-color: var(--paper); }
.section.trails .chip.coral { border-bottom-color: var(--paper); }
.section.trails .chip.terra { border-bottom-color: var(--pink); }
.section.trails .chip:hover { background: rgba(245, 240, 232, 0.18); }
.section.trails sup.v { color: var(--pink); }
.section.trails sup.v:hover { color: var(--paper); }
.section.trails a { color: var(--paper); border-bottom-color: var(--paper); }
.section.trails a:hover { background: rgba(235, 175, 202, 0.32); }

/* weather · 04 — FULL SKY CYAN, atmospheric */
.section.weather {
  background: var(--sky);
  color: var(--ink);
  border-bottom: none;
}
.section.weather .section-head .num { color: rgba(34, 71, 113, 0.55); }
.section.weather .section-head .dot { background: var(--ink); }
.section.weather .chip { border-bottom-color: var(--ink); }
.section.weather .chip:hover { background: rgba(34, 71, 113, 0.12); }

/* methodology · 05 — FULL SHADOW PURPLE, biosemiotic apparatus */
.section.methodology {
  background: var(--purple);
  color: var(--paper);
  border-bottom: none;
}
.section.methodology .section-head h2,
.section.methodology .section-head .num,
.section.methodology p,
.section.methodology blockquote,
.section.methodology em,
.section.methodology strong { color: var(--paper); }
.section.methodology .section-head .num { color: var(--pink); }
.section.methodology .section-head .dot { background: var(--pink); }
.section.methodology .chip { border-bottom-color: var(--pink); }
.section.methodology .chip:hover { background: rgba(235, 175, 202, 0.22); }
.section.methodology sup.v { color: var(--pink); }
.section.methodology sup.v:hover { color: var(--paper); }
.section.methodology a { color: var(--pink); border-bottom-color: var(--pink); }
.section.methodology a:hover { background: rgba(235, 175, 202, 0.22); color: var(--paper); }

/* Section-to-section transitions: no rule needed, the color change IS the separator */
.section + .section,
.stats + .section { border-top: 0; }

/* Rail (the rotated section nav) — stays readable against any background */
.rail { mix-blend-mode: multiply; }
.rail span.on,
.rail a:hover { mix-blend-mode: normal; }

/* ─── CONTRAST CLEANUP (added 2026-06-27 polish pass) ──────────────
   Override any ink-soft / muted text inside coloured sections so
   nothing reads washed-out against its background. */

/* weather (cyan) — lede was rgba-navy ~0.62, ghosty on #63BDD1 */
.section.weather .weather-lede,
.section.weather p.weather-lede {
  color: var(--ink);
  opacity: 0.92;
}
.section.weather .section-head .num { color: rgba(34, 71, 113, 0.66); }

/* methodology (purple) — defensive: any ink-soft → pink readable */
.section.methodology .ink-soft,
.section.methodology .section-head .num,
.section.methodology p.note,
.section.methodology .caption {
  color: rgba(235, 175, 202, 0.85);
}

/* trails (coral) — same idea */
.section.trails .section-head .num,
.section.trails p.note,
.section.trails .caption {
  color: rgba(245, 240, 232, 0.80);
}

/* stats banner — kicker labels visible on mid-blue */
.stats sup.v,
.stats sup.v-static { color: var(--pink); }

/* ─── <abbr> EDITORIAL TOOLTIP STYLING ────────────────────────────── */
abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  cursor: help;
  padding-bottom: 1px;
  transition: border-bottom-color 120ms ease, color 120ms ease;
}
abbr[title]:hover { border-bottom-color: var(--coral); color: inherit; }
.section.trails abbr[title]:hover,
.section.methodology abbr[title]:hover { border-bottom-color: var(--pink); }

/* anchors on dark sections — preserve dotted underline pattern (already set in section overrides) */
.section.trails a:hover,
.section.methodology a:hover { background: transparent; border-bottom-color: var(--pink); }
