/* Ora pe care o pierde statul
   A dark night register and a pale paper register for the forms themselves.
   One warm accent for the hour that exists, one rust accent for the hour that
   has already disappeared by the next station. */

:root {
  --ink-0: #0d1016;
  --ink-1: #14181f;
  --ink-2: #1f2530;
  --ink-3: #2f3745;
  --paper-0: #e7e1d2;
  --paper-1: #f3efe4;
  --paper-2: #d9d2bd;
  --paper-3: #bfb69c;

  --dawn: #a8672c;
  --dawn-lum: #c9873f;
  --dawn-hi: #e3ab6c;
  --rust: #7c342a;
  --rust-lum: #a04a3a;
  --slate: #5c6472;

  --tx-d: #14110c;
  --tx-d-mut: #5c5548;
  --tx-l: #eee9dd;
  --tx-l-mut: #9aa0ab;

  --shell: 1140px;
  --narrow: 720px;

  --f-disp: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-data: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--1: clamp(.78rem, .74rem + .18vw, .86rem);
  --step-0: clamp(1rem, .96rem + .22vw, 1.12rem);
  --step-1: clamp(1.15rem, 1.06rem + .42vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.24rem + .95vw, 2.1rem);
  --step-3: clamp(1.85rem, 1.42rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.9vw, 4.9rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper-0);
  color: var(--tx-d);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

h1, h2, h3, .disp {
  font-family: var(--f-disp);
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.13;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--dawn-lum);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: min(100% - 2.4rem, var(--shell)); margin-inline: auto; }
.narrow { width: min(100%, var(--narrow)); }
.nb { white-space: nowrap; }
/* At the narrowest supported viewport, reserve a real gutter for the
   progressive fixed control after JavaScript enhancement. No-JS keeps the
   normal full-width editorial layout. */
@media (max-width: 360px) {
  html.js .shell { width: calc(100% - 5.8rem); margin-left: 1.2rem; margin-right: 4.6rem; }
}
.mono { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: .6rem; top: -4rem; z-index: 90;
  background: var(--dawn-lum); color: var(--ink-0);
  padding: .6rem 1rem; font-family: var(--f-disp); font-weight: 700;
  transition: top .15s;
}
.skip:focus { top: .6rem; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink-0); color: var(--tx-l);
  border-bottom: 1px solid var(--ink-2);
}
.topbar .shell {
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.1rem; justify-content: space-between;
}
.brand {
  font-family: var(--f-disp); font-weight: 800; font-size: var(--step--1);
  letter-spacing: .01em; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand .tick { width: .55rem; height: .55rem; background: var(--dawn-hi); border-radius: 50%; flex: none; }
.brand .tick.b { background: var(--rust-lum); margin-left: -.32rem; }
.topnav { display: flex; align-items: center; gap: .1rem; }
.topnav a {
  font-family: var(--f-data); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  padding: .45rem .55rem; color: var(--tx-l-mut); border-radius: 2px;
}
.topnav a:hover { color: var(--tx-l); background: var(--ink-2); }
.langsw { display: flex; border: 1px solid var(--ink-3); border-radius: 2px; overflow: hidden; }
.langsw a {
  font-family: var(--f-data); font-size: .72rem; letter-spacing: .07em;
  padding: .38rem .55rem; text-decoration: none; color: var(--tx-l-mut);
}
.langsw a[aria-current='page'] { background: var(--tx-l); color: var(--ink-0); font-weight: 600; }
.topnav .hide-s { display: none; }
@media (min-width: 900px) { .topnav .hide-s { display: inline-block; } }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--ink-0); color: var(--tx-l);
  padding: clamp(2.6rem, 6vw, 5.4rem) 0 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, var(--dawn) 0 38%, var(--rust) 38% 100%);
}
.hero-grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); }
}
.kicker {
  font-family: var(--f-data); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tx-l-mut); margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: var(--step-4);
  font-stretch: 106%;
  line-height: 1.03;
  margin-bottom: 1.1rem;
}
.deck {
  font-family: var(--f-disp); font-weight: 500; font-size: var(--step-1);
  line-height: 1.34; color: var(--dawn-hi); margin: 0 0 1.3rem;
  max-width: 38ch; text-wrap: pretty;
}
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--tx-l); max-width: 50ch; }
.hero .status {
  margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--ink-2);
  font-family: var(--f-data); font-size: var(--step--1); color: var(--tx-l-mut);
  max-width: 46ch;
}

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink-2); margin-top: clamp(2rem, 5vw, 3.4rem);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  container-type: inline-size;
  padding: 1.3rem 1.1rem 1.5rem;
  border-bottom: 1px solid var(--ink-2);
}
@media (min-width: 760px) { .stat + .stat { border-left: 1px solid var(--ink-2); } }
@media (max-width: 759px) { .stat:nth-child(even) { border-left: 1px solid var(--ink-2); } }
.stat .v {
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(1.5rem, 15cqi, 2.6rem);
  line-height: 1.06; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--tx-l); display: block;
}
.stat .v u { font-size: .46em; font-weight: 700; text-decoration: none; margin-left: .18em; color: var(--dawn-lum); }
.stat:nth-child(2) .v { color: var(--rust-lum); }
.stat:nth-child(3) .v { color: var(--dawn-hi); }
.stat .l { display: block; margin-top: .55rem; font-size: var(--step--1); line-height: 1.4; color: var(--tx-l); }
.stat .n { display: block; margin-top: .35rem; font-family: var(--f-data); font-size: .68rem; letter-spacing: .04em; color: var(--tx-l-mut); }

/* hero dial */
.dial { width: 100%; max-width: 360px; margin-inline: auto; display: block; }
@media (min-width: 1000px) { .dial { max-width: none; } }
.dial-cap {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-l-mut); text-align: center; margin-top: .7rem;
}

/* ---------------------------------------------------------------- sections */
.sect { padding: clamp(3.2rem, 8vw, 6.4rem) 0; }
.sect.dark { background: var(--ink-0); color: var(--tx-l); }
.sect.dark a { color: var(--dawn-hi); }
.sect.paper { background: var(--paper-1); }
.sect.field {
  background: linear-gradient(180deg, var(--paper-1) 0%, var(--paper-0) 100%);
}

.shead { display: flex; gap: 1.1rem; align-items: baseline; margin-bottom: 1.4rem; }
.eyebrow {
  font-family: var(--f-data); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; color: var(--rust); flex: none;
  padding-top: .25em;
}
.sect.dark .eyebrow { color: var(--dawn-hi); }
.sect h2 { font-size: var(--step-3); max-width: 24ch; font-stretch: 104%; }
.standfirst {
  font-family: var(--f-disp); font-weight: 500; font-size: var(--step-1);
  line-height: 1.4; max-width: 42ch; margin: 1rem 0 0; color: var(--tx-d-mut);
}
.sect.dark .standfirst { color: var(--tx-l-mut); }
.body { max-width: 62ch; margin-top: 1.8rem; }
.body.cols { max-width: none; }
@media (min-width: 900px) {
  .body.cols { columns: 2; column-gap: 3rem; }
  .body.cols p { break-inside: avoid; }
}
.fn {
  font-family: var(--f-data); font-size: .7rem; letter-spacing: .03em;
  color: var(--tx-d-mut); margin-top: 1.4rem; line-height: 1.6;
}
.sect.dark .fn { color: var(--tx-l-mut); }
.fn b { font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.fn a { text-decoration-color: currentColor; }

.callout {
  border-left: 3px solid var(--dawn-lum);
  padding: .1rem 0 .1rem 1.1rem; margin: 1.6rem 0;
  font-family: var(--f-disp); font-weight: 600;
  font-size: var(--step-1); line-height: 1.4; color: var(--tx-d); max-width: 46ch;
}
.sect.dark .callout { color: var(--tx-l); }

/* -------------------------------------------------------------- facsimile */
.facsimile {
  margin: 2rem 0 0; padding: 1.3rem 1.4rem 1.5rem;
  background: var(--paper-2); border: 1px solid var(--paper-3);
  border-radius: 2px; max-width: 46rem;
}
.facsimile figcaption {
  font-family: var(--f-data); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--tx-d-mut); margin-bottom: .8rem;
}
.facsimile .fx {
  font-size: clamp(.92rem, 2vw, 1.1rem); line-height: 1.9;
  color: var(--tx-d); letter-spacing: .01em; margin: 0;
  overflow-x: auto; white-space: pre;
}
.facsimile .fxnote {
  font-family: var(--f-data); font-size: .72rem; color: var(--tx-d-mut);
  margin: .9rem 0 0; line-height: 1.55;
}

/* ------------------------------------------------------------- pipeline */
.stations { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--paper-3); border-block: 1px solid var(--paper-3); }
.sect.dark .stations { background: var(--ink-2); border-block-color: var(--ink-2); }
.stations li {
  background: var(--paper-1); padding: 1rem 1.1rem;
  display: grid; gap: .2rem .9rem;
  grid-template-columns: 8rem minmax(0, 1fr) auto; align-items: baseline;
}
.sect.dark .stations li { background: var(--ink-1); }
.stations .d { font-family: var(--f-data); font-weight: 700; font-size: .76rem; color: var(--tx-d); }
.sect.dark .stations .d { color: var(--tx-l); }
.stations .h { font-family: var(--f-disp); font-weight: 600; font-size: var(--step--1); color: var(--tx-d-mut); }
.sect.dark .stations .h { color: var(--tx-l-mut); }
.stations .p { grid-column: 1 / -1; font-size: var(--step--1); color: var(--tx-d-mut); margin: .15rem 0 0; }
.sect.dark .stations .p { color: var(--tx-l-mut); }
.stations .tag { grid-column: 3; grid-row: 1; justify-self: end; }
@media (max-width: 640px) {
  .stations li { grid-template-columns: minmax(0, 1fr) auto; }
  .stations .tag { grid-column: 1 / -1; grid-row: auto; justify-self: start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .stations .h { grid-column: 1 / -1; }
  .stations .p { grid-column: 1 / -1; }
}

.tag {
  display: inline-block; font-family: var(--f-data); font-size: .64rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: .22rem .5rem; border: 1px solid currentColor; border-radius: 2px;
  white-space: nowrap;
}
.tag.yes { color: var(--dawn); }
.sect.dark .tag.yes { color: var(--dawn-hi); }
.tag.no { color: var(--rust); }
.sect.dark .tag.no { color: var(--rust-lum); }
.tag.unknown { color: var(--slate); }

/* ------------------------------------------------------------------- bars */
.bars { margin-top: 2.2rem; display: grid; gap: .1rem; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: .85rem 0; border-bottom: 1px solid var(--paper-2); }
.sect.dark .bar { border-bottom-color: var(--ink-2); }
@media (min-width: 620px) {
  .bar { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); align-items: center; gap: 1.2rem; }
}
.bar .bl { font-size: var(--step--1); line-height: 1.35; letter-spacing: .04em; }
.bar .bt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem; }
.bar .bf { height: 15px; background: var(--paper-3); max-width: 100%; }
.sect.dark .bar .bf { background: var(--ink-3); }
.bar.hi .bf { background: var(--dawn-lum); }
.bar .bv { font-family: var(--f-data); font-weight: 600; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar.hi .bv { color: var(--dawn); }
.sect.dark .bar.hi .bv { color: var(--dawn-hi); }

/* -------------------------------------------------------------- cares bars */
.cares { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.cares-row .cl {
  font-family: var(--f-disp); font-weight: 700; font-size: var(--step--1);
  margin: 0 0 .6rem; color: var(--tx-l);
}
.cpair { display: grid; gap: .5rem; }
.crow { display: grid; grid-template-columns: 1rem 9rem minmax(0, 1fr); align-items: center; gap: .7rem; }
.ck { width: .7rem; height: .7rem; border-radius: 50%; }
.ck.day { background: var(--tx-l-mut); }
.ck.night { background: var(--rust-lum); }
.ct { font-family: var(--f-data); font-size: .72rem; color: var(--tx-l-mut); letter-spacing: .02em; }
.cbar { position: relative; height: 15px; background: var(--ink-2); }
.cf { display: block; height: 100%; background: var(--tx-l-mut); }
.cf.night { background: var(--rust-lum); }
.cv {
  position: absolute; left: calc(100% + .6rem); top: 50%; transform: translateY(-50%);
  font-size: .76rem; font-weight: 600; color: var(--rust-lum); white-space: nowrap;
}
@media (min-width: 561px) { .cbar { margin-right: 4rem; } }
@media (max-width: 560px) {
  .crow { grid-template-columns: 1rem 6.2rem minmax(0, 1fr); }
  .cv { position: static; display: block; margin-top: .2rem; transform: none; }
}

/* ------------------------------------------------------------------- exit */
.exit-items { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.exit-items li { padding: 1.5rem 0; border-top: 1px solid var(--paper-2); display: grid; gap: .5rem 1.6rem; grid-template-columns: minmax(0, 1fr); }
.exit-items li:first-child { border-top: none; }
@media (min-width: 860px) { .exit-items li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.exit-items .q { font-family: var(--f-disp); font-weight: 700; font-size: var(--step-1); line-height: 1.28; }
.exit-items .a { color: var(--tx-d-mut); font-size: var(--step--1); line-height: 1.6; }
.closing {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 2px solid var(--rust);
  font-family: var(--f-disp); font-weight: 700; font-size: var(--step-2);
  line-height: 1.28; max-width: 34ch; text-wrap: balance;
}

/* ----------------------------------------------------------------- footer */
.foot { background: var(--ink-0); color: var(--tx-l-mut); padding: 2.4rem 0 3rem; }
.foot .shell { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; }
.foot .fl { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.foot a { font-family: var(--f-data); font-size: .74rem; letter-spacing: .05em; color: var(--tx-l); text-decoration: none; border-bottom: 1px solid var(--ink-3); padding-bottom: 2px; }
.foot a:hover { border-color: var(--dawn-lum); }
.foot .upd { font-family: var(--f-data); font-size: .74rem; }

/* ------------------------------------------------------------- sub pages */
.subhead { background: var(--ink-0); color: var(--tx-l); padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.2rem, 5vw, 3.4rem); }
.subhead h1 { font-size: var(--step-3); margin-bottom: .9rem; }
.subhead .lede { font-size: var(--step-1); color: var(--tx-l-mut); max-width: 46ch; }

.srcitem { padding: 1.6rem 0; border-top: 1px solid var(--paper-2); max-width: 76ch; }
.srcitem h3 { font-size: var(--step-1); margin-bottom: .45rem; }
.srcitem .pub { font-family: var(--f-data); font-size: .74rem; letter-spacing: .05em; color: var(--rust); margin: 0 0 .7rem; }
.srcitem dl { margin: .8rem 0 0; display: grid; gap: .3rem .9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .srcitem dl { grid-template-columns: 8.5rem minmax(0, 1fr); } }
.srcitem dt { font-family: var(--f-data); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-d-mut); }
.srcitem dd { margin: 0 0 .55rem; font-size: var(--step--1); line-height: 1.55; }
.srcitem dd a { word-break: break-word; }

.msect { padding: 1.7rem 0; border-top: 1px solid var(--paper-2); max-width: 72ch; }
.msect:first-child { border-top: none; }
.msect h2 { font-size: var(--step-2); margin-bottom: .8rem; max-width: 28ch; }
.msect ol, .msect ul { padding-left: 1.15rem; margin: 0; display: grid; gap: .6rem; }
.msect li { font-size: var(--step--1); line-height: 1.6; }

.btn {
  font-family: var(--f-disp); font-weight: 700; font-size: .8rem;
  letter-spacing: .04em; padding: .55rem 1rem; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-3); background: var(--ink-2); color: var(--tx-l);
  border-radius: 2px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--ink-3); }

/* --------------------------------------------------------------- glossary */
.gt {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: help; border-bottom: 1px dashed currentColor; text-align: left;
}
.gt:hover { border-bottom-style: solid; }
#tt {
  position: fixed; z-index: 95; max-width: min(22rem, calc(100vw - 1.6rem));
  background: var(--ink-0); color: var(--tx-l); border: 1px solid var(--ink-3);
  padding: .7rem .85rem; font-family: var(--f-body); font-size: .86rem;
  line-height: 1.5; border-radius: 3px; box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
  display: none;
}
#tt.on { display: block; }
#tt b { display: block; font-family: var(--f-data); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dawn-hi); margin-bottom: .35rem; }

/* ----------------------------------------------------------------- to top */
.totop-static { display: inline-block; margin-top: 1.6rem; font-family: var(--f-data); font-size: .74rem; }
#totop {
  display: inline-block;
}
html.js #totop {
  position: fixed; right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55; width: 46px; height: 46px; display: none;
  align-items: center; justify-content: center;
  background: var(--ink-0); color: var(--tx-l); border: 1px solid var(--ink-3);
  border-radius: 3px; text-decoration: none;
}
html.js #totop.on { display: flex; }
html.js #totop:hover { background: var(--ink-2); }
@media print { #totop, .topbar { display: none; } }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
