/* NYX // ECLIPSE public site. Colours come from themes.css, generated from the dashboard's own five themes.
   System fonts only: the brand fonts need a download that was not authorised, and the layout is built to look right
   without them. No remote fonts, images or code: the content policy allows only this origin. Secondary text uses
   --text2 everywhere (the tertiary tone does not reach 4.5:1 on a panel lit by the sun). */
:root {
  --warn: #FFB547; --danger: #FF4D5E;
  --ui: system-ui, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --light: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--sky-bottom); scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--text); font: 400 16px/1.55 var(--ui); background: var(--sky-bottom); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(var(--a-rgb), .4); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--sky-bottom); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }
.dim { color: var(--text2); }

/* the sky: the canvas, and the CSS eclipse that stands in when there is no WebGL2, no JavaScript, or on a plain page */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.sky-fallback { display: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(900px 600px at 72% 46%, rgba(var(--a-rgb), .28), transparent 65%), radial-gradient(560px 380px at 72% 46%, rgba(var(--b-rgb), .22), transparent 60%), linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }
.sky-fallback .eclipse { position: absolute; right: 10vw; top: 22vh; font-size: min(52vh, 40vw); }
.no-js .sky-fallback, .no-gl .sky-fallback, .static .sky-fallback { display: block; }
.no-gl #sky { display: none; }
html.reduced #sky { opacity: .35; }

/* the eclipse mark, as the dashboard draws it */
.eclipse { position: relative; font-size: 34px; width: 1em; height: 1em; flex: none; }
.eclipse i { position: absolute; border-radius: 50%; display: block; }
.eclipse .e-glow { inset: -.3em; background: radial-gradient(circle closest-side at 53% 47%, transparent 50%, rgba(var(--b-rgb), .7) 55.5%, rgba(var(--a-rgb), .42) 62%, rgba(var(--a-rgb), .14) 76%, transparent 100%); animation: breathe 5.5s ease-in-out infinite; }
.eclipse .e-rays { inset: -.4em; background: repeating-conic-gradient(from 0deg, rgba(var(--corona-rgb), .6) 0 .9deg, transparent .9deg 7.5deg); -webkit-mask: radial-gradient(circle, transparent 40%, #000 46%, transparent 63%); mask: radial-gradient(circle, transparent 40%, #000 46%, transparent 63%); animation: spin 70s linear infinite; opacity: .5; }
.eclipse .e-sun { inset: .06em; background: conic-gradient(from -36deg, var(--a) 0deg, var(--b) 40deg, var(--corona) 86deg, var(--b) 132deg, var(--a) 174deg, var(--a) 360deg); box-shadow: 0 0 .06em rgba(var(--corona-rgb), .6), 0 0 .26em .01em rgba(var(--b-rgb), .55); }
.eclipse .e-moon { inset: .052em; transform: translate(-.05em, .042em); background: radial-gradient(circle at 34% 70%, rgba(var(--a-rgb), .3), transparent 58%), radial-gradient(circle at 40% 35%, #0b0a18, var(--moon) 70%); box-shadow: 0 0 0 .012em rgba(var(--a-rgb), .6); }
.eclipse .e-ring { width: .16em; height: .16em; left: calc(50% + .26em); top: calc(50% - .36em); background: #fff; box-shadow: 0 0 .2em .06em rgba(var(--corona-rgb), .95), 0 0 .5em .16em rgba(var(--b-rgb), .55); animation: pulse 3.2s ease-in-out infinite; }
.eclipse .e-ring::before, .eclipse .e-ring::after { content: ''; position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.eclipse .e-ring::before { width: .95em; height: .05em; transform: translate(-50%, -50%) rotate(-9deg); background: linear-gradient(90deg, transparent, rgba(var(--corona-rgb), .95) 50%, transparent); }
.eclipse .e-ring::after { width: .05em; height: .66em; transform: translate(-50%, -50%) rotate(-9deg); background: linear-gradient(180deg, transparent, rgba(var(--corona-rgb), .95) 50%, transparent); }
@keyframes breathe { 50% { transform: scale(1.07); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .75; } }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 3vw, 32px); pointer-events: none; }
.top > * { pointer-events: auto; }
/* an eased, taller scrim than one linear fade, so a bright sun behind the header never shows a band */
.top::before { content: ""; position: absolute; inset: 0 0 -36px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(var(--sky-bottom-rgb), .78), rgba(var(--sky-bottom-rgb), .42) 40%, rgba(var(--sky-bottom-rgb), .14) 75%, transparent); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-text b { display: block; font: 700 13px var(--display); letter-spacing: .24em; }
.brand-text span { font: 600 10px var(--ui); letter-spacing: .5em; text-transform: uppercase; color: var(--a); }
.top-r { display: flex; align-items: center; gap: 14px; }
.themes { display: flex; padding: 2px 6px; border: 1px solid rgba(var(--line-rgb), .9); border-radius: 99px; background: rgba(var(--surface-rgb), .6); backdrop-filter: blur(10px); }
.sw-t { width: 28px; height: 28px; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; }
.sw-t::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--ta), var(--tb)); opacity: .55; transition: transform .2s, opacity .2s, box-shadow .2s; }
.sw-t:hover::before { opacity: 1; transform: scale(1.18); }
.sw-t[aria-pressed="true"]::before { opacity: 1; box-shadow: 0 0 0 2px var(--sky-bottom), 0 0 0 3.5px var(--ta), 0 0 14px var(--ta); }
.sw-t[data-theme="eclipse"] { --ta: #FF4F8B; --tb: #FFB86B; }
.sw-t[data-theme="aurora"] { --ta: #3DF5B0; --tb: #4DA8FF; }
.sw-t[data-theme="lunar"] { --ta: #DCE6FF; --tb: #8FB2FF; }
.sw-t[data-theme="bloodmoon"] { --ta: #FF2E3B; --tb: #FF8A3D; }
.sw-t[data-theme="nebula"] { --ta: #B45CFF; --tb: #FF5CCB; }

/* buttons: the primary one carries a bead of light round its edge */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --ang: 360deg; } }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 99px; border: 1px solid rgba(var(--line-rgb), 1); background: rgba(var(--surface-rgb), .55); color: var(--text); font: 600 13px var(--ui); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(10px); transition: transform .25s, box-shadow .25s, border-color .25s; }
.btn:hover { transform: translateY(-1px); border-color: rgba(var(--a-rgb), .7); box-shadow: 0 0 0 4px rgba(var(--a-rgb), .12); }
.btn.small { height: 36px; padding: 0 16px; font-size: 11.5px; }
.btn.primary { border-color: transparent; background: linear-gradient(135deg, rgba(var(--a-rgb), .30), rgba(var(--b-rgb), .18)); }
.btn.primary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang), rgba(var(--line-rgb), .95) 0 62%, var(--b) 84%, #fff 92%, rgba(var(--line-rgb), .95) 97%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: orbit 4.5s linear infinite; pointer-events: none; }

/* the eclipse timeline on the right edge */
.rail { position: fixed; right: clamp(8px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); z-index: 20; }
.rail ol { list-style: none; padding: 0; display: grid; gap: 24px; position: relative; }
.rail ol::before { content: ""; position: absolute; right: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, transparent, rgba(var(--corona-rgb), .4), transparent); }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-right: 22px; min-height: 24px; font: 600 11px var(--mono); letter-spacing: .14em; color: var(--text2); }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; font-family: var(--ui); letter-spacing: .06em; pointer-events: none; }
.rail a::after { content: ""; position: absolute; right: 0; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--text2); background: var(--sky-bottom); transition: all .25s; }
.rail a:hover span, .rail a:focus-visible span, .rail a.on span { opacity: 1; transform: none; }
.rail a.on { color: var(--text); }
.rail a.on::after { border-color: var(--b); background: var(--b); box-shadow: 0 0 14px var(--b); }
.obs { margin-bottom: 20px; text-align: right; font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text2); }
.obs b { margin-left: 6px; color: var(--text); font-weight: 600; }
.no-js .obs { display: none; }

/* chapters */
.chapter { position: relative; z-index: 5; min-height: 100svh; display: grid; align-items: center; padding: clamp(96px, 14vh, 160px) clamp(20px, 6vw, 96px); }
.chapter.tall { min-height: 170svh; }
.chapter.end { min-height: 140svh; align-content: end; gap: 48px; padding-bottom: 28px; }
.hero { grid-template-rows: 1fr auto; }
.hero-copy { max-width: 760px; }
.col-right, .col-left, .center { display: grid; gap: 14px; }
.col-right { margin-left: auto; width: min(640px, 100%); }
.col-left { margin-right: auto; width: min(640px, 100%); }
.center { margin: 0 auto; width: min(900px, 100%); justify-items: center; text-align: center; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text2); }
h2 { font: 700 clamp(30px, 4.2vw, 56px)/1.04 var(--display); letter-spacing: -.012em; text-wrap: balance; }
#h-max { max-width: 9em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--text2); max-width: 32em; text-wrap: pretty; }
.note { max-width: 44em; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(var(--line-rgb), .8); background: rgba(var(--sky-bottom-rgb), .6); backdrop-filter: blur(8px); font-size: 14px; color: var(--text2); text-wrap: balance; }
.chapter h1, .chapter h2, .lead, .eyebrow { text-shadow: 0 0 28px rgba(var(--sky-bottom-rgb), .85), 0 2px 12px rgba(var(--sky-bottom-rgb), .7); }

.wordmark { margin: 18px 0 24px; font-size: 0; line-height: 0; }
.wm { display: block; width: clamp(250px, 40vw, 540px); height: auto; overflow: visible; }
.wm-glow path { fill: none; stroke: var(--a); stroke-width: 14; opacity: .5; }
.wm-line path { fill: none; stroke: url(#wm-g); stroke-width: 9; stroke-linecap: square; stroke-linejoin: miter; }
.wm-flare { fill: #fff; filter: drop-shadow(0 0 6px var(--corona)); animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.stop-c { stop-color: var(--corona); } .stop-b { stop-color: var(--b); } .stop-a { stop-color: var(--a); }
.wm-sub { display: block; margin-top: 18px; padding-left: 4px; font: 600 clamp(13px, 1.5vw, 20px)/1 var(--ui); letter-spacing: 1.12em; color: var(--text2); }
.hero .lead { margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.mid { justify-content: center; margin-top: 8px; }
.cue { display: flex; align-items: center; gap: 12px; font: 500 11px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--text2); }
.cue i { width: 1px; height: 38px; background: linear-gradient(var(--text2), transparent); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* glass panels, lit from where the sun actually is (main.js writes --lx and --ly on each panel, --light on the root) */
.panel { position: relative; overflow: hidden; border: 1px solid rgba(var(--line-rgb), .9); border-radius: 18px; padding: clamp(18px, 2.2vw, 28px); background: linear-gradient(180deg, rgba(var(--surface-rgb), .74), rgba(var(--surface-rgb), .5)); backdrop-filter: blur(16px) saturate(1.25); box-shadow: inset 0 1px 0 rgba(var(--corona-rgb), .06), 0 30px 80px -30px rgba(0, 0, 0, .8); text-align: left; }
.panel::before, .meters li::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(560px circle at var(--lx, 50%) var(--ly, -30%), rgba(var(--b-rgb), calc(var(--light, 1) * .20)), rgba(var(--a-rgb), calc(var(--light, 1) * .09)) 42%, transparent 72%); }
.lab-nojs { display: none; color: var(--text2); }
.no-js .lab-nojs { display: block; }
.no-js .lab-ui { display: none; }
.lab-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.lab-h b { font: 700 14px var(--ui); letter-spacing: .16em; text-transform: uppercase; }
.lab-h .mono { font-size: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; width: max-content; max-width: 100%; padding: 4px; border-radius: 12px; border: 1px solid rgba(var(--line-rgb), .9); background: rgba(var(--sky-bottom-rgb), .5); }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--text2); font: 600 12.5px var(--ui); letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--text); background: linear-gradient(135deg, rgba(var(--a-rgb), .3), rgba(var(--b-rgb), .18)); box-shadow: inset 0 0 0 1px rgba(var(--a-rgb), .35); }
#lab { display: block; width: 100%; aspect-ratio: 16 / 5; margin: 12px 0 6px; border-radius: 12px; background: rgba(var(--sky-bottom-rgb), .4); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 2px; border-top: 1px solid rgba(var(--line-rgb), .6); color: var(--text2); font-size: 14px; }
.row input[type="range"] { width: 58%; accent-color: var(--a); }
.row input[type="range"]:disabled { opacity: .5; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 99px; border: 1px solid rgba(var(--line-rgb), 1); background: rgba(var(--sky-bottom-rgb), .8); padding: 0; cursor: pointer; transition: background .25s, border-color .25s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text2); transition: transform .28s cubic-bezier(.3, 1.4, .5, 1), background .25s; }
.switch[aria-checked="true"] { border-color: rgba(var(--a-rgb), .7); background: rgba(var(--a-rgb), .22); }
.switch[aria-checked="true"] i { transform: translateX(20px); background: var(--b); box-shadow: 0 0 12px var(--b); }

/* the server-exposure ratings: a number, "N of 3" and the product's own sentence, never colour alone */
.meters { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: min(1180px, 100%); text-align: left; }
.meters li { position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 18px 18px 20px; border-radius: 14px; border: 1px solid rgba(var(--line-rgb), .8); background: rgba(var(--sky-bottom-rgb), .62); backdrop-filter: blur(10px); }
.who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.who b { font: 700 15px var(--ui); }
.who em { font-style: normal; font-size: 12px; color: var(--text2); }
.what { color: var(--text2); font-size: 15px; }
.pips { display: inline-flex; gap: 5px; }
.pips i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--text2); }
.pips[data-n="1"] i:nth-child(-n+1) { background: var(--text2); border-color: var(--text2); }
.pips[data-n="2"] i:nth-child(-n+2) { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 10px rgba(255, 181, 71, .5); }
.pips[data-n="3"] i { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 10px rgba(255, 77, 94, .55); }

.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.lanes article { padding: 16px; border-radius: 12px; border: 1px solid rgba(var(--line-rgb), .8); background: rgba(var(--sky-bottom-rgb), .35); }
.lanes h3 { font: 700 14px var(--ui); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.lanes p { color: var(--text2); font-size: 14.5px; }
.lanes a, .foot a { text-decoration: underline; text-underline-offset: 3px; }
.chip { font: 600 10px var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; border: 1px solid rgba(var(--b-rgb), .6); color: var(--b); }
.code { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; border: 1px solid rgba(var(--line-rgb), .9); background: rgba(var(--sky-bottom-rgb), .7); }
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 13px var(--mono); color: var(--corona); }

.table { width: min(720px, 100%); padding: 8px clamp(14px, 2vw, 24px); }
.table table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 8px; text-align: left; border-bottom: 1px solid rgba(var(--line-rgb), .6); font-size: 15px; }
.table thead th { font: 600 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 700; }
.table td { color: var(--text2); }
.table td.mono { white-space: nowrap; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid rgba(var(--line-rgb), .6); font-size: 13px; color: var(--text2); }

/* the plain pages: privacy and 404 */
.page { position: relative; z-index: 5; min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px; max-width: 760px; margin: 0 auto; padding: 96px clamp(20px, 6vw, 48px); }
.page h1 { font: 700 clamp(32px, 5vw, 56px)/1.04 var(--display); letter-spacing: -.012em; text-wrap: balance; text-shadow: 0 0 28px rgba(var(--sky-bottom-rgb), .85); }
.page p { color: var(--text2); max-width: 36em; }

/* things come up into the light as you reach them */
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
}

/* the theme swap: a circle of the new sky opens from the swatch you pressed */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal .75s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

@media (min-width: 901px) { .chapter { padding-right: max(clamp(20px, 6vw, 96px), 88px); } }
@media (max-width: 900px) {
  .rail { display: none; }
  .col-right, .col-left { margin: 0 auto; }
  .lanes { grid-template-columns: 1fr; }
  .hero { align-items: end; }
}
@media (max-width: 1000px) { .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .meters { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .brand-text span { display: none; } .themes { padding: 0 2px; } .sw-t { width: 26px; } }
@media (max-width: 560px) { .code code { white-space: normal; overflow-wrap: anywhere; font-size: 12px; } } /* the whole line must be readable on a phone */

/* reduced motion (and Save-Data, which main.js folds into the same class): one still frame, nothing loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eclipse i, .btn.primary::before, .wm-flare, .cue i, .rise { animation: none !important; }
  .panel, .meters li, .note { background: rgba(var(--surface-rgb), .93); backdrop-filter: none; }
}
html.reduced { scroll-behavior: auto; }
html.reduced .eclipse i, html.reduced .btn.primary::before, html.reduced .wm-flare, html.reduced .cue i, html.reduced .rise { animation: none !important; }
html.reduced .panel, html.reduced .meters li, html.reduced .note { background: rgba(var(--surface-rgb), .93); backdrop-filter: none; }

/* Windows high contrast and other forced colours: system colours, visible borders, no sky behind the text */
@media (forced-colors: active) {
  #sky, .sky-fallback { display: none; }
  .panel, .btn, .meters li, .note, .code, .seg, .switch, .themes, .lanes article { border: 1px solid CanvasText; background: Canvas; }
  .pips i { forced-color-adjust: none; border-color: CanvasText; }
  .pips[data-n="1"] i:nth-child(-n+1), .pips[data-n="2"] i:nth-child(-n+2), .pips[data-n="3"] i { background: CanvasText; }
}
