/* FederAstro, direction C: "One night".
   The page is one imaging night. The sky behind it is a cyclorama: script.js sets
   --sky-top / --sky-mid / --sky-glow / --sky-low from the time the scroll position stands for. */

:root {
  --ink: #EDE6D9;
  --ink-2: #D6CDBD;
  --ink-3: #ABA191;
  --accent: #E8743B;
  --ha: #C2473C;
  --sii: #D99A3E;
  --oiii: #4E9E95;
  --ha-ink: #E0756A;      /* band colours lifted for text on black */
  --oiii-ink: #6CC0B6;
  --sii-ink: #E9B25E;
  --paper: #100F0D;
  --ground: #030304;
  --rule: rgba(237, 230, 217, .26);
  --tick: rgba(237, 230, 217, .55);

  /* the sky at 18:05, before script.js takes over */
  --sky-top: #20325a;
  --sky-mid: #34497a;
  --sky-glow: #6f5f7e;
  --sky-low: #c98068;
  --stars: 0;
  --window: #030304;
  --redlight: 0;

  --rail: 188px;
  --ground-h: clamp(64px, 8.75vw, 140px);
  --gutter: clamp(16px, 4vw, 64px);

  --f-display: "Cabinet Grotesk", "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-hand: "Nanum Pen Script", "Segoe Print", cursive;

  color-scheme: dark;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--f-body);
  font-stretch: 96%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body { margin: 0; background: transparent; overflow-x: clip; text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: #fff; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; margin: 0; letter-spacing: -.012em; text-wrap: balance; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); padding: 8px 12px; border: 1px solid var(--accent); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ the stage */
.sky {
  /* The stage is sized to the large viewport so it never resizes when a phone's address bar
     slides in and out; the ground sits on the small viewport's bottom so it is always in view. */
  position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: -3;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-glow) 84%, var(--sky-low) 100%);
}
.stars { position: fixed; left: 0; top: 0; z-index: -2; width: 100%; height: 100vh; height: 100lvh; opacity: var(--stars); pointer-events: none; }
.stars text { font-family: var(--f-hand); }
.stars .mono { font-family: var(--f-mono); letter-spacing: .04em; }

.ground { position: fixed; left: 0; right: 0; top: calc(100vh - var(--ground-h)); top: calc(100svh - var(--ground-h)); height: var(--ground-h); z-index: -1; pointer-events: none; }
.ground::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30vh; background: #030304; }  /* below the horizon when the address bar hides */
.ground img, .ground svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ground { overflow-x: clip; }
.ground svg { overflow: visible; }   /* the telescope may rise above the strip; never cut it off */
/* the horizon scales like the telescope layer above it (the larger of width/1600 and height/140), bottom- and
   centre-aligned; on very wide screens it grows taller than the strip and rises above it instead of losing
   its treetops, and on narrow ones it is cropped at the sides */
.ground img { inset: auto; left: 50%; bottom: 0; transform: translateX(-50%); width: max(100%, calc(var(--ground-h) * 1600 / 140)); height: auto; max-width: none; }
.ground .win { fill: var(--window); transition: fill 1.2s; }
/* the house's white walls, trim and metal roofs catch the light low in the sky (warm at dusk and dawn, dark at
   night); the image under them holds only its black outline (tools/horizon_gen.py) */
.ground .hw { fill: #121115; }
.ground .ht { fill: #1b1a1f; }
.ground .hm { fill: #151418; }
.ground .hp { fill: #060608; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .ground .hw { fill: color-mix(in srgb, var(--sky-low) 26%, #050507); }
  .ground .ht { fill: color-mix(in srgb, var(--sky-low) 40%, #08080b); }
  .ground .hm { fill: color-mix(in srgb, var(--sky-low) 32%, #060608); }
}
.ground .red { opacity: var(--redlight); }

/* ------------------------------------------------------------------ hand-ruled lines */
.ruled {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3.2 L140 2.6 L310 3.4 L470 2.9 L655 3.5 L812 2.7 L1000 3.1' fill='none' stroke='%23EDE6D9' stroke-opacity='.3' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 6px no-repeat;
}

/* crop marks instead of borders/shadows */
.frame {
  --c: var(--tick);
  position: relative; padding: 9px; margin: 0;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px 16px no-repeat;
}
.frame > img { width: 100%; background: #0b0a09; }

figcaption, .cap {
  font: 400 .72rem/1.55 var(--f-mono); font-stretch: 85%;
  color: var(--ink-2); letter-spacing: .01em; margin-top: .7rem; text-shadow: none;
}
figcaption b, .cap b { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ rail: readout + ruled time axis */
.rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail); z-index: 3;
  display: flex; flex-direction: column; padding: 26px 0 0 26px;
  text-shadow: none;
}
.wordmark {
  font: 900 1.32rem/1 var(--f-display); letter-spacing: -.02em; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 1px; width: max-content;
}
.wordmark i { font-style: normal; color: var(--accent); }

.readout { margin-top: 26px; width: 142px; font-family: var(--f-mono); font-stretch: 80%; }
.readout__cap .cap-short { display: none; }
.readout__cap { font-size: .52rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin: 0 0 .35rem; }
.readout__time { font: 200 2.15rem/1 var(--f-mono); font-stretch: 75%; letter-spacing: -.03em; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.readout__phase { font-size: .66rem; line-height: 1.35; margin: .45rem 0 0; color: var(--ink); min-height: 2.7em; }
.readout__phase b { font-weight: 500; display: block; }
.readout__phase span { color: var(--ink-2); display: block; }
.dial { display: block; width: 142px; height: 58px; margin-top: .3rem; overflow: visible; }
.dial text { font: 400 7px var(--f-mono); fill: var(--ink-3); }
.dial .ln { stroke: rgba(237, 230, 217, .3); stroke-width: .7; fill: none; }
.dial .hz { stroke: rgba(237, 230, 217, .7); stroke-width: .9; fill: none; }
.dial .curve { stroke: rgba(232, 116, 59, .55); stroke-width: 1; fill: none; stroke-dasharray: 2 1.6; }
.dial .sun { fill: var(--accent); stroke: var(--accent); stroke-width: 1.2; }
.dial .sun.down { fill: var(--paper); }

.axis { position: relative; flex: 1; margin: 22px 0 calc(var(--ground-h) + 22px); min-height: 220px; }
.axis__line { position: absolute; left: 44px; top: 0; height: 100%; width: 10px; overflow: visible; }
.axis__line path { stroke: rgba(237, 230, 217, .62); stroke-width: 1.1; fill: none; vector-effect: non-scaling-stroke; }
.axis__cyc { position: absolute; left: 53px; top: 0; height: 100%; width: 5px; border-radius: 1px; opacity: .95; box-shadow: 0 0 0 .5px rgba(237, 230, 217, .22); }
.axis ol { list-style: none; margin: 0; padding: 0; }
.axis__hours li {
  position: absolute; left: 0; width: 49px; height: 0; top: calc(var(--y) * 100%);
  font: 400 .58rem/1 var(--f-mono); font-stretch: 75%; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.axis__hours li span { position: absolute; right: 13px; top: -.32rem; }
.axis__hours li::after { content: ""; position: absolute; right: 0; top: 0; width: var(--len, 7px); height: 1px; background: rgba(237, 230, 217, .62); transform: rotate(var(--rot, 0deg)); transform-origin: 100% 50%; }
.axis__hours li.major span { color: var(--ink-2); }
.axis__break { position: absolute; left: 36px; width: 24px; height: 10px; top: calc(var(--y) * 100%); margin-top: -5px; background: var(--sky-mid); }   /* masks the line: the sky colour behind it, day or night */
.axis__break::before, .axis__break::after { content: ""; position: absolute; left: 2px; right: 2px; height: 1px; background: rgba(237, 230, 217, .62); transform: rotate(-14deg); }
.axis__break::before { top: 2px; } .axis__break::after { bottom: 2px; }
.axis__marks li { position: absolute; left: 66px; top: calc(var(--y) * 100%); transform: translateY(-50%); }
.axis__marks a {
  display: block; font: 500 .7rem/1.15 var(--f-body); font-stretch: 88%; color: var(--ink-2); text-decoration: none;
  padding: 2px 4px 2px 10px; position: relative; white-space: nowrap;
}
.axis__marks a::before { content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 1px; background: rgba(237, 230, 217, .45); }
.axis__marks a:hover, .axis__marks a[aria-current="true"] { color: var(--ink); }
.axis__marks a[aria-current="true"]::before { background: var(--accent); }
.axis__head { position: absolute; left: 30px; top: calc(var(--p, 0) * 100%); width: 36px; height: 0; pointer-events: none; }
.axis__head svg { position: absolute; left: 0; top: -7px; width: 36px; height: 14px; overflow: visible; }
.axis__head .arrow { stroke: var(--accent); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.axis__head .disc { fill: var(--accent); stroke: var(--accent); stroke-width: 1.4; }
.axis__head .disc.down { fill: var(--paper); }

/* ------------------------------------------------------------------ top bar */
/* past --maxw the column stops growing and sits in the middle of the space right of the rail */
main, .top, .foot { --maxw: 1640px; max-width: var(--maxw); margin-left: max(var(--rail), calc((100% + var(--rail) - var(--maxw)) / 2)); }
.top { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 26px var(--gutter) 0; position: relative; z-index: 4; }
.top .wordmark { display: none; margin-right: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { font: 500 .86rem/1 var(--f-body); font-stretch: 92%; text-decoration: none; color: var(--ink-2); padding: 6px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.menu-btn { display: none; }

main { padding: 0 var(--gutter); position: relative; }

/* ------------------------------------------------------------------ stamps and log notes */
.stamp { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .85rem; margin: 0; font-family: var(--f-mono); font-stretch: 82%; }
.stamp :is(time, .when) { font-size: .95rem; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.stamp span { font-size: .64rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-2); }
.stamp--big :is(time, .when) { font: 200 clamp(3.2rem, 6.4vw, 6rem)/.86 var(--f-mono); font-stretch: 75%; letter-spacing: -.045em; }
.stamp--big { gap: .6rem 1.1rem; }

.note {
  font: 400 1.62rem/1 var(--f-hand); color: #F1DDB8; margin: 0;
  transform: rotate(-2.2deg); transform-origin: 0 50%; text-shadow: none;
}
.note svg { display: inline-block; vertical-align: middle; overflow: visible; }
.note path { fill: none; stroke: #F1DDB8; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.kicker { font: 400 .66rem/1.5 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------------ hero (18:05) */
.hero { padding: clamp(40px, 9vh, 110px) 0 0; min-height: calc(100svh - 60px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); align-content: start; grid-auto-flow: row dense; }
.hero > * { grid-column: 1 / -1; }
.hero .stamp { margin-top: 1.3rem; }
.hero h1 { font-size: clamp(2.55rem, 5.7vw, 5.6rem); line-height: .94; font-weight: 800; margin: 1.1rem 0 0; grid-column: 1 / span 11; max-width: 15.5ch; }
.hero h1 em { font-style: normal; font-weight: 500; }
.hero .lede { grid-column: 1 / span 6; margin: clamp(1.4rem, 4vh, 2.6rem) 0 0; font-size: 1.08rem; color: var(--ink); max-width: 52ch; align-self: start; }
.hero .repo { grid-column: 7 / span 6; grid-row: 3 / span 3; margin-top: clamp(1.4rem, 4vh, 2.6rem); align-self: start; }
.hero .lede { grid-row: 3; }
.lede p { margin: 0 0 .8em; }
.lede .lede__sig { font: 400 2rem/1 var(--f-hand); color: #F1DDB8; text-shadow: none; transform: rotate(-2.5deg); transform-origin: 0 50%; margin: .35em 0 0; }
.hero .skip-night { grid-column: 1 / span 5; grid-row: 4; }
.hero .note--scroll { grid-row: 5; }

.skip-night {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding: .75rem .1rem .8rem 0;
  max-width: 25rem; min-height: 52px; text-decoration: none; color: var(--ink); align-self: start;
  font: 700 1.22rem/1.12 var(--f-display); letter-spacing: -.005em;
  border-top: 1px solid rgba(237, 230, 217, .5); border-bottom: 1px solid rgba(237, 230, 217, .5);
}
.skip-night small { display: block; font: 500 .6rem/1.4 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .14em; color: #F29A6A; margin-bottom: .25rem; }
.skip-night svg { width: 40px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.skip-night:hover { color: #fff; border-color: var(--accent); }
.skip-night:hover svg { transform: translateX(5px); }
.hero .note--scroll { grid-column: 1 / span 5; margin-top: 2.4rem; }

/* the repository slab: the main action, written like a log entry */
.repo { background: rgba(9, 9, 11, .9); padding: 1.15rem 1.25rem 1.1rem; position: relative; text-shadow: none; border-top: 2px solid var(--accent); }
.repo__label { font: 500 .62rem/1.4 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 .6rem; }
.repo__row { display: flex; align-items: stretch; gap: .6rem; flex-wrap: wrap; }
.repo__url {
  flex: 1 1 15rem; min-width: 0; font: 400 clamp(.84rem, 1.45vw, 1.12rem)/1.25 var(--f-mono); font-stretch: 80%;
  color: var(--ink); padding: .7rem .8rem; border: 1px solid rgba(237, 230, 217, .3); background: #050506;
  overflow-wrap: anywhere; user-select: all; display: flex; align-items: center;
}
.btn-copy {
  font: 600 .8rem/1 var(--f-body); font-stretch: 90%; letter-spacing: .02em; color: #120c08; background: var(--accent);
  border: 0; border-radius: 2px; padding: .7rem 1.05rem; cursor: pointer; min-width: 6.4rem; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
}
.btn-copy:hover { background: #F08A55; }
.btn-copy svg { width: 15px; height: 15px; flex: none; }
.btn-copy[data-done] { background: var(--ink); }
.repo__steps { list-style: none; margin: .9rem 0 0; padding: 0; counter-reset: s; font-size: .86rem; line-height: 1.45; color: var(--ink-2); display: grid; gap: .3rem; }
.repo__steps li { counter-increment: s; display: grid; grid-template-columns: 1.6rem 1fr; }
.repo__steps li::before { content: counter(s) "."; font: 400 .72rem/1.9 var(--f-mono); color: var(--accent); }
.repo__steps b { color: var(--ink); font-weight: 600; }
.repo__fine { font-size: .78rem; line-height: 1.5; color: var(--ink-3); margin: .85rem 0 0; }
.repo__fine a { color: var(--ink-2); }

/* ------------------------------------------------------------------ minor log rows */
.ev {
  display: grid; grid-template-columns: 11.5rem minmax(0, 31rem) minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 36px);
  align-items: baseline; padding-top: 1.1rem; margin: 30vh 0 0;
}
.ev .stamp { flex-direction: column; gap: .2rem; }
.ev__text { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.ev .note { align-self: center; justify-self: start; }
.ev--wide { margin-top: 22vh; }

/* ------------------------------------------------------------------ tool entries */
.tool {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); row-gap: 0;
  margin: 34vh 0 0; padding-top: 1.2rem; align-items: start;
}
.tool__head { grid-column: 1 / span 6; grid-row: 1; }
.tool__body { grid-column: 1 / span 5; grid-row: 2; padding-top: 1.6rem; }
.tool__fig { grid-column: 7 / span 6; grid-row: 1 / span 3; margin-top: 4.2rem; }
.tool--flip .tool__head { grid-column: 7 / span 6; }
.tool--flip .tool__body { grid-column: 8 / span 5; }
.tool--flip .tool__fig { grid-column: 1 / span 6; }
.tool__fig--tall { grid-column-end: span 4 !important; }
.tool--flip .tool__fig--tall { grid-column: 2 / span 4 !important; }

.tool h2, .pl h2 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: .95; margin: 1.3rem 0 0; display: flex; align-items: center; gap: .9rem; }
.ico { width: clamp(38px, 3.6vw, 52px); height: clamp(38px, 3.6vw, 52px); flex: none; display: inline-block; }
.ico svg { width: 100%; height: 100%; display: block; }
.meta { font: 400 .68rem/1.5 var(--f-mono); font-stretch: 82%; letter-spacing: .06em; color: var(--ink-2); margin: .9rem 0 0; text-transform: uppercase; }
.meta b { color: var(--ink); font-weight: 500; }
.ctx { font-size: 1.16rem; line-height: 1.52; color: var(--ink); }
.what { color: var(--ink-2); }
.links { font-size: .9rem; margin: 1.2rem 0 0; }
.links a { color: var(--ink); }
.links__page + a { display: table; margin-top: .45rem; }              /* docs on its own line, under the page link */
/* the underline sits below the descenders (p, g, y) instead of being broken by them */
.links__page { font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .34em; text-decoration-skip-ink: none; }
.links__page span { display: inline-block; transition: transform .2s; }
.links__page:hover span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .links__page span { transition: none; } }

/* ------------------------------------------------------------------ subs: Hα / OIII / SII */
.subs { margin-top: 26vh; position: relative; height: 230vh; }
.subs__in { position: sticky; top: max(40px, 9vh); padding-top: 1.2rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); }
.subs__in > * { grid-column: 1 / -1; }
.subs .stamp { grid-column: 1 / span 8; grid-row: 1; }
.stamp--mid :is(time, .when) { font-size: clamp(3rem, 5vw, 4.6rem); }
.subs h2 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: .95; margin: 1rem 0 0; grid-column: 1 / span 8; grid-row: 2; }
.subs h2 .h { color: var(--ha-ink); } .subs h2 .o { color: var(--oiii-ink); } .subs h2 .s { color: var(--sii-ink); }
.subs__text { grid-column: 1 / span 6; grid-row: 3; margin: 1rem 0 0; font-size: 1.05rem; }
.subs .result { grid-column: 8 / span 5; grid-row: 3; align-self: end; justify-self: end; }
.subs__now { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: start; justify-self: end; text-align: right; }
.wheel { width: 104px; height: 104px; display: block; margin-left: auto; overflow: visible; }
.wheel g { transition: transform 1.4s cubic-bezier(.45, 0, .2, 1); transform-origin: 52px 52px; }
.wheel .slot { stroke: rgba(237, 230, 217, .5); stroke-width: 1; }
.wheel .hub { fill: none; stroke: rgba(237, 230, 217, .55); stroke-width: 1.1; }
.wheel .pointer { fill: var(--accent); }
.subs__now p { font: 400 .62rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .13em; color: var(--ink-2); margin: .6rem 0 0; }
.subs__now .tonight { display: block; font: 400 .6rem/1.4 var(--f-mono); font-stretch: 82%; letter-spacing: .03em; text-transform: none; color: var(--ink-2); margin-top: .4rem; }
.subs__now strong { display: block; font: 800 1.6rem/1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: .2rem; }

.tally { margin-top: 1.5rem; display: grid; gap: .5rem; text-shadow: none; }
.tally__row { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) 8.5rem; column-gap: 1rem; align-items: center; padding-top: .65rem; }
.tally__label { margin: 0; font: 800 1.3rem/1 var(--f-display); }
.tally__label span { display: block; font: 400 .58rem/1.6 var(--f-mono); color: var(--ink-3); letter-spacing: .1em; margin-top: .2rem; }
.tally__marks { display: flex; flex-wrap: wrap; gap: 3px 6px; min-height: 22px; }
.tally__marks svg { width: 21px; height: 21px; overflow: visible; }
.tally__marks path { fill: none; stroke-width: 1.3; stroke-linecap: round; opacity: .27; transition: opacity .5s, stroke-width .5s; }
.tally__marks path.on { opacity: 1; stroke-width: 1.8; }
.tally__row[data-band="ha"] path { stroke: var(--ha-ink); }
.tally__row[data-band="oiii"] path { stroke: var(--oiii-ink); }
.tally__row[data-band="sii"] path { stroke: var(--sii-ink); }
.tally__sum { margin: 0; font: 400 .74rem/1.5 var(--f-mono); font-stretch: 82%; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tally__sum b { color: var(--ink); font-weight: 500; font-size: .9rem; }
.tally__foot { margin-top: .6rem; padding-top: .9rem; }
.tally__total { margin: 0; font: 400 .74rem/1.5 var(--f-mono); font-stretch: 82%; color: var(--ink-2); }
.tally__total b { font: 800 1.45rem/1 var(--f-display); color: var(--ink); margin-right: .4rem; }

.result { display: grid; grid-template-columns: 132px auto; gap: .9rem; align-items: center; text-decoration: none; max-width: 30rem; }
.result img { width: 132px; aspect-ratio: 3 / 2; object-fit: cover; }
.result span { font-size: .92rem; line-height: 1.35; }
.result span b { display: block; font: 800 1.1rem/1.1 var(--f-display); }
.result:hover span b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }


/* ------------------------------------------------------------------ the desk */
.desk { margin: 40vh 0 0; padding-top: 1.2rem; }
.desk h2 { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .92; font-weight: 500; margin-top: 1.1rem; }
.desk h2 b { font-weight: 900; }
.desk p { max-width: 34rem; margin: 1.2rem 0 0; color: var(--ink-2); font-size: 1.08rem; }
/* the desk monitor: off by night, switched on at 09:00 in four quiet steps (LED, backlight, workspace,
   and the Wizard stretching from dark linear data). Switching off is quick and has no steps. */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.desk > :not(.monitor) { grid-column: 1; }
.monitor { grid-column: 2; grid-row: 1 / span 3; justify-self: end; width: min(100%, 540px); display: flex; flex-direction: column; align-items: center; }
.monitor__bezel { position: relative; width: 100%; padding: 10px 10px 16px; background: #0b0a09; border: 1px solid var(--rule); border-radius: 5px; }
.monitor__screen { position: relative; aspect-ratio: 16 / 10; background: #040404; overflow: hidden; border-radius: 1px; }
.monitor__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(220, 225, 235, .09), rgba(220, 225, 235, 0) 70%); opacity: 0; transition: opacity .2s; }
.monitor__ws { position: absolute; inset: 0; background: #2b2b2d; opacity: 0; transition: opacity .2s; }
.monitor__win { position: absolute; background: #000; border: 1px solid #4a4a4e; box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  padding-top: 9px; opacity: 0; transform: scale(.985); transition: opacity .2s, transform .2s; }
.monitor__win--ha { left: 4%; top: 19.5%; width: 56%; aspect-ratio: 759 / 516; }   /* centred between the two on the right */
.monitor__win--oiii { right: 4%; top: 7%; width: 34%; aspect-ratio: 759 / 523; }
.monitor__win--sii { right: 4%; bottom: 7%; width: 34%; aspect-ratio: 759 / 523; }
.monitor__win b { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: #3c3c40; color: #c9c9cf;
  font: 600 6.5px/9px var(--f-mono); letter-spacing: .04em; padding-left: 4px; overflow: hidden; }
.monitor__win img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.1) contrast(1.6); transition: filter .2s; }
.monitor__led { position: absolute; right: 14px; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: #2a2622; transition: background .2s, box-shadow .2s; }
.monitor__neck { width: 13%; height: 30px; background: #0b0a09; border: 1px solid var(--rule); border-top: 0; }
.monitor__foot { width: 42%; height: 7px; background: #0b0a09; border: 1px solid var(--rule); border-radius: 3px 3px 1px 1px; }
.monitor.is-on .monitor__led { background: var(--accent); box-shadow: 0 0 6px rgba(232, 116, 59, .8); transition: background .15s, box-shadow .15s; }
.monitor.is-on .monitor__screen::after { opacity: 1; transition: opacity .45s ease .15s; }
.monitor.is-on .monitor__ws { opacity: 1; transition: opacity .5s ease .45s; }
.monitor.is-on .monitor__win { opacity: 1; transform: none; transition: opacity .45s ease calc(.85s + var(--d, 0s)), transform .6s cubic-bezier(.2, .7, .2, 1) calc(.85s + var(--d, 0s)); }
.monitor.is-on .monitor__win img { filter: none; transition: filter 1.4s cubic-bezier(.45, 0, .2, 1) calc(1.5s + var(--d, 0s)); }
@media (prefers-reduced-motion: reduce) { .monitor *, .monitor *::before, .monitor *::after { transition: none !important; } }

/* ------------------------------------------------------------------ Palette Lab + Try a palette */
.pl { margin-top: 30vh; padding-top: 1.2rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); }
.pl > * { grid-column: 1 / -1; }
.pl .tool__head { grid-column: 1 / span 7; }
.pl .pl__intro { grid-column: 8 / span 5; align-self: end; }
.pl .credit { font-size: .82rem; color: var(--ink-3); line-height: 1.5; }

.try { margin-top: 3.6rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.try__side { grid-column: 1 / span 3; }
.try__head { padding-top: .6rem; }
.try__head h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; font-weight: 800; }
.try__head p { margin-top: .9rem; color: var(--ink-2); font-size: .95rem; }
.try__stage { grid-column: 4 / span 9; }
.try__img { position: relative; aspect-ratio: 2400 / 1598; background: #0b0a09; overflow: hidden; }
/* the new picture fades in ON TOP of the old one, which stays fully visible underneath until it is covered:
   no moment where both are half transparent over the dark backing (that read as a dip in brightness) */
.try__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s cubic-bezier(.4, 0, .2, 1); z-index: 1; }
.try__img img.try__front { z-index: 2; }
.try__img img.out { opacity: 0; }
.picker { margin-top: 1.6rem; display: grid; gap: 2px; }
.picker button {
  display: grid; grid-template-columns: 3.4rem 1fr; align-items: center; gap: .7rem; text-align: left; cursor: pointer;
  background: transparent; color: var(--ink-2); border: 0; padding: .55rem .4rem .55rem 0; min-height: 44px;
  font: 600 .95rem/1.1 var(--f-body); font-stretch: 92%; position: relative;
}
.picker button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(237, 230, 217, .14); }
.picker button:hover { color: var(--ink); }
.picker button[aria-pressed="true"] { color: var(--ink); }
.picker button[aria-pressed="true"]::after { background: var(--accent); height: 2px; }
.chips { display: inline-flex; gap: 3px; font: 600 .62rem/1 var(--f-mono); }
.chips i { font-style: normal; width: 1rem; height: 1.15rem; display: inline-grid; place-items: center; color: #0d0c0b; border-radius: 1px; }
.chips .H { background: var(--ha); color: #fbe9e5; } .chips .O { background: var(--oiii); } .chips .S { background: var(--sii); }
.picker small { display: block; font: 400 .6rem/1.3 var(--f-mono); color: var(--ink-3); letter-spacing: .05em; margin-top: .2rem; }

.sheet { margin-top: 4.4rem; }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 2rem; padding-top: .9rem; }
.sheet__head h3 { font-size: 1.3rem; font-weight: 700; }
.sheet__head p { margin: 0; color: var(--ink-3); font-size: .86rem; }
.sheet ol { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
.sheet li { margin: 0; }
.sheet img { width: 100%; aspect-ratio: 640 / 428; object-fit: cover; background: #0b0a09; }
.sheet span { display: block; font: 400 .6rem/1.3 var(--f-mono); font-stretch: 82%; color: var(--ink-2); letter-spacing: .06em; margin-top: .35rem; }

/* ------------------------------------------------------------------ toolbox: tools without a place in the night */
.toolbox { margin: 30vh 0 0; padding-top: 1.2rem; }
.toolbox h2 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: .95; margin-top: 1.2rem; font-weight: 500; }
.toolbox h2 b { font-weight: 900; }
.toolbox__note { font: 400 1.75rem/1.1 var(--f-hand); color: #F1DDB8; transform: rotate(-1.4deg); transform-origin: 0 50%; margin: 1.1rem 0 0; text-shadow: none; }
.toolbox__count { font: 400 .64rem/1.5 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-2); margin: .9rem 0 0; }
.toolbox__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 18px; }
.card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.15rem 1rem; background: rgba(9, 9, 11, .55); border-top: 2px solid var(--accent); }
.card .ico { width: 44px; height: 44px; }
.card h3 { font: 800 1.45rem/1 var(--f-display); }
.card .meta { margin-top: .5rem; }
.card .what { font-size: .95rem; margin: .7rem 0 0; }
.card .links { margin-top: .7rem; }
.card--empty { display: grid; place-items: center; grid-template-columns: 1fr; min-height: 8.5rem; background: none; border: 1px dashed rgba(237, 230, 217, .32); }
.card--empty span { font: 400 1.5rem/1 var(--f-hand); color: var(--ink-3); transform: rotate(-2deg); }

/* ------------------------------------------------------------------ last entry */
.end { margin: 30vh 0 0; padding: 1.2rem 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); }
.end > .stamp, .end h2 { grid-column: 1 / span 6; }
.end h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .98; margin-top: 1.2rem; }
.end .repo { grid-column: 7 / span 6; grid-row: 1 / span 3; align-self: start; }
.end .links { grid-column: 1 / span 6; }
.end .repo__url { font-size: clamp(.8rem, 1.1vw, .95rem); }
.foot { padding: 3rem var(--gutter) calc(var(--ground-h) + 26px); display: flex; flex-wrap: wrap; gap: .6rem 2rem; font: 400 .64rem/1.5 var(--f-mono); letter-spacing: .06em;
  /* light orange with a soft shadow: it sits on the lowest band of sky, from the dusk glow to the day blue */
  color: #F2A274; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 6px rgba(0, 0, 0, .35); }
.foot a { color: #F6C08F; }

/* ================================================================== scripts page */
.page-scripts { --rail: 0px; --sky-top: #060a1d; --sky-mid: #0c1333; --sky-glow: #1d1a42; --sky-low: #3a2f5e; --stars: .55; --redlight: 1; }
.page-scripts .stars text { display: none; }
.page-scripts .top .wordmark { display: inline-flex; }
.sc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); padding: clamp(28px, 6vh, 64px) 0 0; align-items: end; }
.sc-head .crumbs { grid-column: 1 / -1; }
.sc-head h1 { grid-column: 1 / span 7; font-size: clamp(2.5rem, 4.8vw, 4.3rem); line-height: .94; margin-top: .9rem; }
.sc-head .sub { grid-column: 8 / span 5; margin: 0; color: var(--ink-2); }
.sc-head .sub a { color: var(--ink); }
.install { margin-top: 2.2rem; padding-top: 1.2rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); }
.install header { grid-column: 1 / span 4; }
.install h2, .cat h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-top: 1rem; }
.install .repo { grid-column: 5 / span 8; }
.cat { margin-top: 3rem; padding-top: 1.2rem; }
/* About PixInsight scripts: three short answers under the catalogue */
.faq { margin-top: 3.4rem; padding-top: 1.2rem; }
.faq h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-top: 1rem; }
.faq__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem clamp(20px, 3vw, 48px); margin-top: 1.6rem; }
.faq h3 { font-size: 1.15rem; line-height: 1.2; margin: 0 0 .55rem; }
.faq p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.faq p b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }
.faq__more { margin: 1.6rem 0 0; }
.faq__more a { font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .34em; text-decoration-skip-ink: none; }
/* the FAQ page: one block per question, each with its own # link */
.qa { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.qa:first-child { border-top: 0; padding-top: .2rem; }
.qa h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; margin: 0 0 .6rem; }
.qa p, .qa li { color: var(--ink-2); font-size: 1.02rem; }
.qa p { margin: 0; }
.qa b, .qa code { color: var(--ink); }
.qa b { font-weight: 600; }
.qa code { font: 500 .85em/1 var(--f-mono); }
.qa ul { margin: 0; padding-left: 1.1rem; }
.qa li + li { margin-top: .35rem; }
.qa a:not(.qa__link) { color: var(--ink); }
.qa__link { margin-left: .3rem; font: 400 .9em/1 var(--f-mono); color: var(--ink-3); text-decoration: none; opacity: .55; }
.qa:hover .qa__link, .qa__link:focus-visible { opacity: 1; color: var(--accent); }
.faq-head { padding-top: clamp(28px, 6vh, 64px); }
.faq-head .stamp { margin-top: .9rem; }
/* each group of questions is a time of the night: stamp, heading and a handwritten note in the left column */
.faq-sec > .faq-sec__head { grid-column: 1 / span 3; align-self: start; }
.faq-sec__head .stamp { margin-bottom: .2rem; }
.faq-sec .faq-sec__head h2 { margin-top: .5rem; }
.faq-sec__note { font-size: 1.45rem; margin-top: 1.1rem; max-width: 12ch; }
@media (max-width: 860px) { .faq-sec > .faq-sec__head { grid-column: 1 / -1; } .faq-sec__note { max-width: none; margin: .6rem 0 .4rem; } }
.cat__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.cat__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0; font: 400 .62rem/1.4 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); text-shadow: none; }
.cat__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.cat__legend .sw { width: 22px; }
.cat__list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.cat__row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 17rem) minmax(0, 1fr) 13rem; column-gap: clamp(16px, 2.4vw, 36px);
  align-items: start; padding: 1.25rem 0 1.35rem; scroll-margin-top: 20px;
  background: linear-gradient(rgba(237, 230, 217, .2), rgba(237, 230, 217, .2)) 0 0 / 100% 1px no-repeat;
}
.cat__row:hover { background-color: rgba(9, 9, 11, .35); }
/* the whole row opens the tool's page: the title link stretches over it; the row's other links sit on top */
.cat__row { position: relative; }
.cat__row .tl-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cat__row .cat__lic a { position: relative; z-index: 2; }
.cat__row:hover .tl-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .12em; }
.cat__row:has(.tl-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@supports selector(:has(a)) { .cat__row .tl-link:focus-visible { outline: none; } }   /* the row shows the ring instead */
.cat__when { margin: .2rem 0 0; display: grid; gap: .35rem; font-family: var(--f-mono); font-stretch: 82%; }
.cat__when b { font-size: .64rem; font-weight: 500; text-transform: uppercase; letter-spacing: .13em; color: var(--ink); }
.cat__when :is(time, .when) { font-size: .8rem; color: var(--accent); }
.sw { display: block; width: 34px; height: 9px; border-radius: 1px; font-style: normal; }
.sw--dusk { background: linear-gradient(90deg, #20325a, #6f5f7e 55%, #c98068); }
.sw--night { background: #040508; box-shadow: 0 0 0 1px rgba(237, 230, 217, .35); }
.sw--dawn { background: linear-gradient(90deg, #c4706a, #33508a 45%, #122046); }
.sw--desk { background: radial-gradient(circle at 70% 50%, #E9A15F 0 2px, transparent 2.5px), linear-gradient(90deg, #12305a, #3a6a9c); box-shadow: 0 0 0 1px rgba(237, 230, 217, .2); }
.sw--toolbox { background: none; outline: 1px dashed rgba(237, 230, 217, .55); outline-offset: -1px; }
.cat__name { display: flex; gap: .9rem; align-items: center; }
.cat__name .ico { width: 44px; height: 44px; }
.cat__name h2 { font-size: 1.55rem; line-height: 1; margin: 0; }
.cat__name .meta { margin-top: .45rem; }
.cat__sum { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.55; max-width: 40rem; }
.cat__lic { margin: 0; display: grid; gap: .4rem; font-size: .88rem; justify-items: start; }
.cat__lic span { font: 400 .62rem/1.45 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }

/* ================================================================== image page */
.page-image .top .wordmark { display: inline-flex; }
.page-image { --rail: 0px; --sky-top: #030304; --sky-mid: #050508; --sky-glow: #0a0b14; --sky-low: #151530; --stars: 1; --redlight: 1; }
.img-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); padding: clamp(28px, 6vh, 70px) 0 0; align-items: end; }
.img-head .crumbs { grid-column: 1 / -1; }
.crumbs a { color: var(--ink-2); }
.img-head h1 { grid-column: 1 / span 7; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .9; margin-top: 1rem; }
.img-head .sub { grid-column: 8 / span 5; margin: 0; color: var(--ink-2); font-size: 1rem; }
.img-head .sub b { color: var(--ink); font-weight: 600; display: block; font-family: var(--f-mono); font-size: .74rem; font-stretch: 82%; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }

.viewer-wrap { margin: 2.2rem auto 0; max-width: min(100%, calc((100svh - 150px) * 1.4968)); }
.viewer {
  position: relative; aspect-ratio: 6077 / 4060; overflow: hidden; background: #050505; touch-action: pan-y pinch-zoom;
  cursor: url("/images/cursor-telescope.svg") 5 6, zoom-in; user-select: none; -webkit-user-select: none;
}
.viewer.is-full { cursor: grab; touch-action: none; }
.viewer.is-dragging { cursor: grabbing; }
.viewer img.pic { position: absolute; left: 0; top: 0; width: 6077px; height: 4060px; max-width: none; transform-origin: 0 0; transition: transform .5s cubic-bezier(.3, 0, .15, 1); -webkit-user-drag: none; }
.viewer.is-dragging img.pic, .viewer.no-anim img.pic { transition: none; }
.finder {
  position: absolute; right: 12px; bottom: 12px; width: clamp(96px, 14%, 168px); aspect-ratio: 6077 / 4060; opacity: 0; transition: opacity .3s;
  pointer-events: none; outline: 1px solid rgba(237, 230, 217, .5); background: #000;
}
.finder img { width: 100%; height: 100%; opacity: .75; }
.finder i { position: absolute; border: 1.5px solid var(--accent); }
.viewer.is-full .finder { opacity: 1; }
.viewer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.3rem; margin-top: .9rem; font: 400 .7rem/1.4 var(--f-mono); font-stretch: 82%; color: var(--ink-2); text-shadow: none; }
.btn {
  font: 600 .84rem/1 var(--f-body); font-stretch: 90%; color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid rgba(237, 230, 217, .45); border-radius: 2px; padding: .65rem .95rem; min-height: 44px;
}
.btn:hover { border-color: var(--accent); }
.btn[aria-pressed="true"] { background: var(--accent); color: #120c08; border-color: var(--accent); }
.viewer__bar .wm { margin-left: auto; color: var(--ink-3); }
/* 100 %: the viewer fills the window, the bar stays along the bottom */
.viewer-wrap.is-open {
  position: fixed; inset: 0; z-index: 100; margin: 0; max-width: none; display: flex; flex-direction: column;
  background: #030304; transition: clip-path .52s cubic-bezier(.3, 0, .15, 1);
}
.viewer-wrap.is-open .viewer { flex: 1; aspect-ratio: auto; }
.viewer-wrap.is-open .viewer__bar { margin: 0; padding: 10px max(16px, var(--gutter)); }
.viewer-wrap.no-anim { transition: none; }
html.viewer-open { overflow: hidden; }

.log { margin-top: 18vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); padding-top: 1.2rem; }
.log > header { grid-column: 1 / span 4; }
.log h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: .96; margin-top: 1.1rem; }
.log header p { color: var(--ink-2); margin-top: 1rem; font-size: .98rem; }
.log__chart { grid-column: 5 / span 8; text-shadow: none; }
.log__pic { margin: 1.8rem 0 0; aspect-ratio: 1; overflow: hidden; outline: 1px solid rgba(237, 230, 217, .22); }
.log__pic img { width: 100%; height: 100%; object-fit: cover; }
.cal { position: relative; height: 96px; margin: .4rem 0 0 6.8rem; }
.cal svg { position: absolute; left: 0; top: 0; width: 100%; height: 96px; overflow: visible; display: block; }
.cal__days span { position: absolute; top: 0; transform: translateX(-50%); font: 400 .6rem/1 var(--f-mono); color: var(--ink-2); }
/* the nights with subs: one square per filter, stacked up from the ruler */
.cal__marks i { position: absolute; width: 8px; height: 8px; margin-left: -4px; }
.cal__label { position: absolute; left: 0; right: 0; top: 80px; text-align: center; font: 400 .66rem/1 var(--f-mono); font-stretch: 82%; color: var(--ink); letter-spacing: .04em; }
.log__note { margin: 2.2rem 0 0 6.8rem; font-size: 1.4rem; line-height: 1.15; max-width: 21em; }
.log__note svg { margin-right: .4rem; }
.log__note a { color: inherit; text-decoration-color: var(--accent); }
.cal .t { stroke: rgba(237, 230, 217, .62); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.cal .br { stroke: var(--accent); stroke-width: 1.2; fill: none; vector-effect: non-scaling-stroke; }
.bars { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.bar { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); column-gap: 1.2rem; align-items: center; }
.bar__label { margin: 0; font: 800 1.25rem/1 var(--f-display); }
.bar__label span { display: block; font: 400 .58rem/1.6 var(--f-mono); color: var(--ink-3); letter-spacing: .08em; margin-top: .25rem; }
.bar svg { width: 100%; height: 30px; display: block; }
.bar__sum { grid-column: 2; margin: .35rem 0 0; font: 400 .72rem/1.4 var(--f-mono); font-stretch: 82%; color: var(--ink-2); }
.bar__sum b { color: var(--ink); font-weight: 500; }
.scale { margin: .2rem 0 0 6.8rem; height: 22px; position: relative; }
.scale svg { width: 100%; height: 22px; overflow: visible; display: block; }
.scale svg { position: absolute; left: 0; top: 0; }
.scale span { position: absolute; top: 12px; transform: translateX(-50%); font: 400 .58rem/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.scale { height: 30px; }
.scale path { stroke: rgba(237, 230, 217, .5); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.log__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin: 1.6rem 0 0 6.8rem; padding-top: .9rem; font: 400 .74rem/1.5 var(--f-mono); font-stretch: 82%; color: var(--ink-2); }
.log__total b { font: 800 2rem/1 var(--f-display); color: var(--ink); }

.sheet-eq { margin-top: 14vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); padding-top: 1.2rem; }
.sheet-eq header { grid-column: 1 / span 4; }
.sheet-eq h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1; margin-top: 1.1rem; }
.sheet-eq dl { grid-column: 5 / span 8; margin: 0; display: grid; grid-template-columns: 9rem 1fr; }
.sheet-eq dt, .sheet-eq dd { margin: 0; padding: .8rem 0 .75rem; border-top: 1px solid var(--rule); }
.sheet-eq dt { font: 400 .66rem/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.sheet-eq dd { font-size: 1.04rem; }
.after { margin: 14vh 0 0; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; align-items: baseline; }
.after a { font: 700 clamp(1.3rem, 2.2vw, 1.8rem)/1.1 var(--f-display); text-decoration: none; }
.after a span { color: var(--accent); }
.after a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ================================================================== smaller screens */
@media (max-width: 1180px) {
  :root { --rail: 168px; }
  .hero .lede { grid-column: 1 / span 6; }
  .hero .repo { grid-column: 7 / span 6; }
  .try__side { grid-column: 1 / span 4; }
  .try__stage { grid-column: 5 / span 8; }
  /* no room for a third column: the handwritten note goes under the entry's text */
  .ev { grid-template-columns: 11.5rem minmax(0, 1fr); }
  .ev .note { grid-column: 2; margin-top: .4rem; }
}

@media (max-width: 1023px) {
  :root { --rail: 0px; }
  .rail { width: 0; padding: 0; }
  .rail > .wordmark { display: none; }
  .axis { position: fixed; left: 0; top: 0; bottom: var(--ground-h); width: 14px; margin: 0; min-height: 0; }
  .axis__line { left: 2px; }
  .axis__cyc { left: 9px; width: 3px; }
  .axis__hours, .axis__marks, .axis__break { display: none; }
  .axis__head { left: -10px; width: 26px; }
  .axis__head svg { width: 26px; }
  /* phones: the readout docks as one thin line at the top, so it never sits on reading text */
  .readout {
    position: fixed; left: 0; right: 0; top: 0; height: 30px; margin: 0; width: auto; z-index: 7;
    display: flex; align-items: center; gap: .6rem; padding: 0 16px 0 22px;
    background: var(--sky-top); border-bottom: 1px solid rgba(237, 230, 217, .24); /* solid: the sky colour of the moment */
  }
  .readout__time { order: 1; font-size: .95rem; font-weight: 400; letter-spacing: 0; }
  .readout__phase { order: 2; margin: 0; min-height: 0; font-size: .6rem; display: flex; gap: .45rem; white-space: nowrap; }
  .readout__phase b, .readout__phase span { display: inline; }
  .readout__phase span::before { content: "· "; }
  .readout__cap { order: 3; margin: 0 0 0 auto; font-size: .5rem; letter-spacing: .06em; white-space: nowrap; color: var(--ink-3); }
  .readout__cap .cap-long { display: none; }
  .readout__cap .cap-short { display: inline; }
  .dial { display: none; }
  body[data-page="night"] .top { padding-top: 46px; }
  body[data-page="night"] .nav { top: 94px; }
  body[data-page="night"] .axis { top: 30px; }
  body[data-page="night"] main [id] { scroll-margin-top: 44px; }

  main, .top, .foot { margin-left: 0; }
  main { padding: 0 16px 0 22px; }
  .top { padding: 16px 16px 0 22px; }
  .foot { padding-left: 22px; padding-right: 16px; }
  .top .wordmark { display: inline-flex; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: var(--ink); cursor: pointer;
    border: 1px solid rgba(237, 230, 217, .38); border-radius: 2px; padding: .55rem .75rem; min-height: 40px; font: 500 .8rem/1 var(--f-body);
  }
  .nav { position: absolute; right: 16px; top: 64px; background: #09090b; border: 1px solid rgba(237, 230, 217, .2); padding: .5rem 1.1rem; display: none; z-index: 6; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .7rem 0; font-size: 1rem; }

  .hero, .tool, .subs__in, .pl, .try, .end, .img-head, .log, .sheet-eq, .sc-head, .install { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .tool > *, .subs__in > *, .pl > *, .try > *, .end > *, .img-head > *, .log > *, .sheet-eq > *, .sc-head > *, .install > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .sc-head .sub { margin-top: 1rem; }
  .install .repo { margin-top: 1.2rem; }
  .cat__row { grid-template-columns: minmax(0, 1fr); row-gap: .8rem; }
  .cat__when { display: flex; align-items: center; gap: .7rem; margin: 0; }
  .cat__lic { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; }
  .cat__lic span { flex-basis: 100%; }
  .hero { padding-top: 22px; min-height: 0; }
  .hero .stamp { margin-top: .9rem; }
  .hero h1 { margin-top: .8rem; max-width: 13ch; }
  .hero .lede { margin-top: 1rem; font-size: 1rem; }
  .hero .repo { margin-top: 1.1rem; }
  .hero .skip-night { margin-top: .9rem; max-width: none; }
  .ev { grid-template-columns: minmax(0, 1fr); row-gap: .6rem; margin-top: 24vh; }
  .ev .note { grid-column: 1; margin-top: .3rem; }
  .tool { margin-top: 26vh; }
  .tool__fig { margin-top: 1.6rem; max-width: 100%; }
  .tool__fig--tall { max-width: 26rem; }
  .tool__body { padding-top: 1.1rem; }
  .subs { height: auto; margin-top: 22vh; }
  .subs__in { position: static; }
  .subs__now { justify-self: start; text-align: left; margin-top: 1.4rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
  .subs__now .wheel { width: 64px; height: 64px; margin: 0; }
  .tally__row { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; }
  .tally__label { display: flex; align-items: baseline; gap: .6rem; }
  .tally__label span { display: inline; }
  .tally__marks svg { width: 17px; height: 17px; }
  .tally__marks { gap: 2px 4px; }
  .desk { grid-template-columns: minmax(0, 1fr); }
  .desk p { grid-column: 1; }
  .monitor { grid-column: 1; grid-row: auto; justify-self: center; margin-top: 2rem; width: min(100%, 420px); }
  .pl { margin-top: 24vh; }
  .try { margin-top: 2.4rem; }
  .try__stage { margin-top: 1.2rem; }
  .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .picker button { grid-template-columns: 1fr; gap: .35rem; padding: .6rem 0; }
  .sheet ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
  .end { margin-top: 24vh; }
  .end .repo { margin-top: 1.4rem; }
  .img-head h1 { margin-top: .7rem; }
  .img-head .sub { margin-top: 1rem; }
  .viewer-wrap { max-width: 100%; }
  .viewer__bar .wm { margin-left: 0; }
  .log { margin-top: 12vh; }
  .log__chart { margin-top: 1.6rem; }
  .cal, .scale, .log__total, .log__note { margin-left: 0; }
  .log__pic { max-width: 26rem; }
  .bar { grid-template-columns: minmax(0, 1fr); }
  .bar__label { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .4rem; }
  .bar__label span { display: inline; }
  .bar__sum { grid-column: 1; }
  .sheet-eq dl { grid-template-columns: minmax(0, 1fr); margin-top: 1.2rem; }
  .sheet-eq dd { border-top: 0; padding-top: 0; }
}

@media (max-width: 700px) {
  .stars text { display: none; }
}

@media (max-width: 420px) {
  .readout__phase span { display: none; }
}

@media (max-width: 520px) {
  .stamp--big :is(time, .when) { font-size: 3rem; }
  .hero h1 { font-size: 2.35rem; }
  .hero .lede { font-size: .95rem; line-height: 1.5; margin-top: .8rem; }
  .hero .repo__steps { font-size: .8rem; margin-top: .65rem; }
  .hero .repo__fine { display: none; }
  .hero .skip-night { font-size: 1.08rem; padding: .6rem 0 .65rem; min-height: 48px; }
  .repo { padding: 1rem .85rem .95rem; }
  .repo__url { font-size: .76rem; letter-spacing: -.02em; padding: .65rem .6rem; flex-basis: 100%; }
  .btn-copy { flex: 1 1 auto; }
  .sheet ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result { grid-template-columns: 96px auto; }
  .result img { width: 96px; }
  .note { font-size: 1.45rem; }
}

@media (min-width: 1024px) and (max-height: 720px) {
  .subs { height: auto; }
  .subs__in { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ------------------------------------------------------------------ the intro (first visit) */
.intro { display: none; position: fixed; inset: 0; z-index: 100; background: #050505; overflow: hidden; }
html.intro-on .intro { display: block; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s cubic-bezier(.4, 0, .2, 1), filter 1.3s ease; }
.intro::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, .4) 0%, rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, 0) 52%, rgba(5, 5, 5, .78) 100%); }
.intro__text { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 13vh, 132px); }
.intro__hello { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.3rem, 6.4vw, 5.6rem); line-height: .95;
  letter-spacing: -.01em; color: #F4EEE3; opacity: 0; transform: translateY(10px); transition: opacity .9s ease .5s, transform .9s ease .5s; }
.intro__hello b { font-weight: 900; }
.intro__load { margin: 1.1rem 0 0; font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #D6CDBD;
  opacity: 0; transition: opacity .7s ease 1.7s; }
.intro__dots i { font-style: normal; animation: intro-dot 1.4s infinite; opacity: .2; }
.intro__dots i:nth-child(2) { animation-delay: .2s; }
.intro__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes intro-dot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.intro.is-playing .intro__hello { opacity: 1; transform: none; }
.intro.is-playing .intro__load { opacity: .9; }
.intro__skip { position: absolute; z-index: 1; right: var(--gutter); top: 22px; background: none; color: #F4EEE3; cursor: pointer;
  border: 1px solid rgba(244, 238, 227, .35); padding: .6em .95em; font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.intro__skip:hover { border-color: rgba(244, 238, 227, .8); }
/* the handover: the picture eases away and dissolves into the dusk sky underneath */
.intro.is-out { opacity: 0; transition: opacity 1.15s ease .1s; pointer-events: none; }
.intro.is-out video { transform: scale(1.06); filter: blur(3px) brightness(.8); }
.intro.is-out .intro__text, .intro.is-out .intro__skip { opacity: 0; transition: opacity .35s ease; }

/* ================================================================== script pages (/scripts/<slug>/) */
.page-tool { --rail: 0px; }
.page-tool .top .wordmark { display: inline-flex; }
.tl-head { padding: clamp(28px, 6vh, 64px) 0 0; max-width: 64rem; }
.tl-stamp { margin-top: 1.3rem; }
.tl-stamp span b { font-weight: 500; color: var(--ink); }
.tl-head h1 { font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: .92; margin-top: 1.1rem; display: flex; align-items: center; gap: .14em; }
.tl-head h1 .ico { width: .82em; height: .82em; margin-right: .1em; }
.tl-sum { font-size: 1.2rem; line-height: 1.5; max-width: 40rem; margin: 1.3rem 0 0; }
.tl-actions { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; align-items: center; margin: 1.5rem 0 0; font-size: .95rem; }
.tl-actions a { color: var(--ink); }
.tl-actions .tl-primary {
  background: var(--accent); color: #120c08; text-decoration: none; font: 600 .86rem/1 var(--f-body); font-stretch: 90%;
  padding: .8rem 1.1rem; border-radius: 2px; min-height: 44px; display: inline-flex; align-items: center; text-shadow: none;
}
.tl-actions .tl-primary:hover { background: #F08A55; color: #120c08; }
.tl-toc { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin-top: 2.6rem; padding: .75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font: 400 .64rem/1.6 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .12em; }
.tl-toc a { color: var(--ink-2); text-decoration: none; padding: .3rem 0; }
.tl-toc a:hover { color: var(--ink); }
.tl-sec { margin-top: 4.5rem; padding-top: 1.2rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); scroll-margin-top: 16px; }
.tl-sec h2 { grid-column: 1 / span 3; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1; margin-top: .35rem; }
.tl-sec__body { grid-column: 4 / span 9; max-width: 52rem; min-width: 0; }
.tl-sec__body > p { font-size: 1.04rem; }
.tl-note { font-size: .9rem; color: var(--ink-2); margin-top: 1rem; }
.tl-view { margin: 2rem 0 0; }
.tl-view__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tl-view__open img { width: 100%; height: auto; display: block; background: #0b0a09; }
.tl-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .9rem; }
.tl-thumbs button { width: 96px; padding: 0; border: 1px solid rgba(237, 230, 217, .2); background: rgba(9, 9, 11, .5); color: var(--ink-2); cursor: pointer; text-align: left; font: 400 .58rem/1.3 var(--f-mono); font-stretch: 82%; }
.tl-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.tl-thumbs span { display: block; padding: .35rem .4rem; }
.tl-thumbs button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.tl-dialog { padding: 0; border: 0; background: #050506; max-width: 96vw; max-height: 94vh; overflow: auto; color: var(--ink); }
.tl-dialog::backdrop { background: rgba(0, 0, 0, .84); }
.tl-dialog form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: .5rem; background: rgba(5, 5, 6, .92); }
.tl-dialog img { display: block; max-width: none; }
.tl-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2.4rem; }
.tl-feat h3 { font: 700 1.15rem/1.15 var(--f-display); margin: 0 0 .55rem; }
.tl-feat ul, .tl-rel ul { margin: 0; padding-left: 1.05rem; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.tl-feat li, .tl-rel li { margin: .32rem 0; }
.tl-feat li::marker, .tl-rel li::marker { color: var(--accent); }
.tl-req { display: grid; grid-template-columns: 9rem minmax(0, 1fr); margin: 0; }
.tl-req dt, .tl-req dd { margin: 0; padding: .75rem 0 .7rem; border-top: 1px solid var(--rule); }
.tl-req dt { font: 400 .64rem/1.9 var(--f-mono); font-stretch: 82%; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.tl-rel { border-top: 1px solid var(--rule); padding: .65rem 0; }
.tl-rel summary { cursor: pointer; display: flex; gap: .8rem; align-items: baseline; list-style: none; font: 500 .84rem/1.6 var(--f-mono); font-stretch: 82%; min-height: 32px; }
.tl-rel summary::-webkit-details-marker { display: none; }
.tl-rel summary::before { content: "▸"; color: var(--accent); display: inline-block; transition: transform .2s; }
.tl-rel[open] summary::before { transform: rotate(90deg); }
.tl-rel summary span { font-size: .58rem; text-transform: uppercase; letter-spacing: .13em; color: var(--accent); }
.tl-rel ul { margin: .5rem 0 .4rem; }
.tl-next { margin-top: 5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.tl-next a { text-decoration: none; font: 700 clamp(1.2rem, 2vw, 1.6rem)/1.1 var(--f-display); color: var(--ink); display: grid; gap: .35rem; }
.tl-next a span { font: 400 .72rem/1 var(--f-mono); color: var(--accent); }
.tl-next a:last-child { text-align: right; margin-left: auto; }
.tl-next a:hover { color: #fff; }
.tl-link { color: inherit; text-decoration: none; }
.tl-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .12em; }

/* ------------------------------------------------------------------ scripts page: the night bar */
.nightbar { position: relative; height: 58px; margin: 1.4rem 0 .2rem; text-shadow: none; }
.nightbar__cyc { position: absolute; left: 0; right: 0; top: 26px; height: 4px; border-radius: 1px; box-shadow: 0 0 0 .5px rgba(237, 230, 217, .22); }
.nightbar__line { position: absolute; left: 0; top: 30px; width: 100%; height: 10px; overflow: visible; }
.nightbar__line path { stroke: rgba(237, 230, 217, .55); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.nightbar__hour { position: absolute; top: 44px; transform: translateX(-50%); font: 400 .56rem/1 var(--f-mono); font-stretch: 80%; color: var(--ink-3); }
.nightbar__hour:nth-of-type(1) { transform: none; }
.nightbar__break { position: absolute; top: 28px; width: 12px; height: 12px; margin-left: -6px; }
.nightbar__break::before, .nightbar__break::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(237, 230, 217, .6); transform: rotate(18deg); }
.nightbar__break::before { left: 3px; } .nightbar__break::after { left: 8px; }
.nightbar__tick { position: absolute; top: 31px; width: 1.5px; height: 8px; margin-left: -.75px; background: rgba(237, 230, 217, .7); transition: height .3s, top .3s, background-color .3s; }
.nightbar__tick.on { top: 23px; height: 16px; background: var(--accent); }
.nightbar__sun { position: absolute; top: 23px; left: var(--x, 0%); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--accent); opacity: 0; transition: left .75s cubic-bezier(.45, 0, .2, 1), opacity .35s, background-color .35s; }
.nightbar.is-on .nightbar__sun { opacity: 1; }
.nightbar__sun.down { background: var(--paper); }
.nightbar__label { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 .66rem/1 var(--f-mono); font-stretch: 82%; color: var(--ink); }
.nightbar__label.left { left: auto; right: -6px; transform: none; }
.nightbar__label.right { left: -6px; transform: none; }
.cat__row .sw { transition: transform .35s, box-shadow .35s; transform-origin: 0 50%; }
.cat__row.is-lit .sw { transform: scaleX(1.3); box-shadow: 0 0 0 1px var(--accent); }

@media (max-width: 1023px) {
  .tl-sec { grid-template-columns: minmax(0, 1fr); margin-top: 3.4rem; }
  .tl-sec h2, .tl-sec__body { grid-column: 1 / -1; }
  .tl-sec__body { margin-top: 1rem; }
  .tl-feat { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .tl-req { grid-template-columns: minmax(0, 1fr); }
  .tl-req dd { border-top: 0; padding-top: 0; }
  .tl-sum { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nightbar__sun, .nightbar__tick, .cat__row .sw { transition: none; }
}
