/* Range — instrument language.
   Deliberately unlike the other five sites, because six legal pages that share a look are
   the same 4.3(a) signal as six apps that share a look:

     site-intone   dark plum, straight tick-rule masthead, keyline panels with inset legends
     site-rota     dark violet, inline styles
     site-runway   light cool slate, ruled rows, right-aligned money
     site-verdant  warm cream, serif, botanical
     site-tally    warm paper, seven-column week strip, numbered form fields

   This one is a measuring device: cold slate and electric blue, a protractor arc instead of
   a rule, degree figures in monospace, and readings set as bordered blocks. Intone is the
   other dark instrument page, so the two are kept apart on hue (plum vs slate-blue) and on
   the masthead figure (straight ticks vs a swept arc).

   Palette is the app's own `RangeInk` (apps/range/Range/RangeConfig.swift, 0x4FC3F7 accent
   on 0x0B1016) so the page and the app read as one product.

   No rounded cards, no shadows, no gradient buttons — that was the shared vocabulary. */

:root {
  --void:   #0b1016;
  --panel:  #151d26;
  --raised: #1f2a36;
  --blue:   #4fc3f7;
  --deep:   #0288d1;
  --text:   #edf3f8;
  --dim:    #8fa3b3;
  --warm:   #ff8a65;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 16px/1.62 ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 660px; margin: 0 auto; padding: 0 22px 88px; }

/* ---- masthead: a swept arc with a radius arm, the figure the app draws to show an angle ---- */

header { padding: 54px 0 0; margin-bottom: 34px; }

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}

.tag {
  margin: 0 0 20px;
  color: var(--dim);
  font: 500 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
}

/* Fixed size rather than width:100% — the figure is a measured angle, and letting the
   viewBox stretch to the container would render a 138° reading as some other number. */
.arc { display: block; width: 240px; height: 62px; }
.arc .band  { fill: none; stroke: var(--raised); stroke-width: 2; }
.arc .swept { fill: none; stroke: var(--blue); stroke-width: 2; }
.arc .arm   { stroke: var(--blue); stroke-width: 2; }
.arc .base  { stroke: var(--raised); stroke-width: 2; }
.arc .pivot { fill: var(--blue); }
.arc .deg {
  fill: var(--blue);
  font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---- headings: a legend over a keyline, in the instrument's own register ---- */

h2 {
  font: 600 11px/1 ui-sans-serif, -apple-system, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 42px 0 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--raised);
}

h2 + p, h2 + ul, h2 + .row, h2 + .qa { margin-top: 15px; }

p { margin: 0 0 14px; }
a { color: var(--blue); text-decoration-color: rgba(79, 195, 247, 0.4); }
a:hover { color: var(--warm); }
strong { color: var(--text); }

.lede {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 8px;
  padding-left: 16px;
  border-left: 2px solid var(--blue);
}

/* ---- lists: a short arc-tick in the margin, never round bullets ---- */

ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
li { position: relative; margin-bottom: 8px; padding-left: 20px; }
li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
}

/* ---- readings: label left, degree figure right ---- */

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--raised);
  padding: 11px 0;
}
.row span:last-child {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--blue);
  white-space: nowrap;
}

/* ---- Q&A ---- */

.qa { border-top: 1px solid var(--raised); padding: 15px 0 4px; }
.qa:first-of-type { border-top: 0; }
.q { margin: 0 0 6px; font-weight: 650; color: var(--text); }
.a { margin: 0 0 10px; color: var(--dim); }

/* ---- reading block: a bordered instrument panel on the raised ground ---- */

.panel {
  background: var(--panel);
  border-left: 3px solid var(--blue);
  padding: 18px 18px 14px;
  margin: 28px 0;
}
.panel .legend {
  display: block;
  font: 600 11px/1 ui-sans-serif, -apple-system, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.panel p:last-child { margin-bottom: 0; }

/* The safety notice is the one warm element on the page, on purpose — it should not read
   as another blue instrument panel. Its text is `RangeConfig.disclaimer`, verbatim. */
.safety {
  background: var(--panel);
  border-left: 3px solid var(--warm);
  padding: 18px 18px 14px;
  margin: 28px 0;
  color: var(--text);
}
.safety .legend {
  display: block;
  font: 600 11px/1 ui-sans-serif, -apple-system, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 12px;
}
.safety p:last-child { margin-bottom: 0; }

.note {
  color: var(--dim);
  font-size: 15px;
  padding-left: 14px;
  border-left: 2px solid var(--raised);
}

footer {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--raised);
  font-size: 14px;
  color: var(--dim);
}
