@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-VariableItalic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plexmono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plexmono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink-0: #05070f;
  --ink-1: #0a0f1f;
  --ink-2: #121a30;
  --ink-3: #1d2742;
  --line: #26314f;
  --text: #e9e4da;
  --muted: #a9b0c6;
  --faint: #959db8;
  --red: #e2483a;
  --red-soft: rgba(226, 72, 58, 0.16);
  --amber: #f2a65a;
  --sans: "Satoshi", "Helvetica Neue", sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { background: var(--ink-0); }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
    background:
    radial-gradient(1200px 700px at 85% -10%, rgba(226, 72, 58, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(60, 80, 160, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-1), var(--ink-0) 70%);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) 96px; }

.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
a { color: var(--amber); }
::selection { background: rgba(226, 72, 58, 0.45); color: var(--text); }
html { caret-color: var(--red); scrollbar-color: var(--ink-3) var(--ink-0); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
a { text-underline-offset: 3px; }

/* Entrance */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .wm { font-family: var(--sans); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.brand .wm2 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-left: 2px; padding-top: 3px; }
.brand .words { display: flex; flex-direction: column; line-height: 1; }
.brand .row { display: flex; align-items: center; gap: 10px; }
.brand .tag { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0; color: var(--faint); margin-top: 1px; white-space: nowrap; }  /* dictionaries set their entries in text type, not mono */
.brand .tag b { font-weight: 500; color: var(--muted); }
.brand .tag i { font-style: italic; }
@media (max-width: 480px) { .brand .tag { display: none; } }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.crumbs-row { padding: 14px 0 0; }
.crumbs-row:empty { display: none; }
/* The header stays at the top while scrolling; its background runs edge to edge. */
/* Tables and ranked lists sit on a dark panel so the starfield doesn't run behind the numbers. */
.panel-box, table.sources, .ranks ol, .tablewrap, .plist { background: rgba(9, 13, 27, 0.6); border: 1px solid var(--line); border-radius: 6px; }
.top { position: sticky; top: 0; z-index: 40; }
.top::before, .pfilter::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: #080c19; }
:root { --nav-h: 75px; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); }
.site-nav { position: relative; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-menu a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-menu a:hover, .site-nav a[aria-current="page"] { color: var(--amber); }
.nav-menu { display: none; }
.nav-menu > summary { list-style: none; cursor: pointer; color: var(--text); border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary { border-color: var(--red); background: var(--red-soft); }
.nav-menu > ul { position: absolute; right: 0; top: calc(100% + 8px); max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; z-index: 50; list-style: none; margin: 0; padding: 8px 0; min-width: 210px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.nav-menu li a { display: block; padding: 10px 16px; }
/* Dropdowns: open on hover, keyboard focus or the chevron button */
.nav-links > li { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-links .sub-label { color: var(--muted); cursor: default; }
.nav-links .has-sub:hover .sub-label, .nav-links .sub-label[aria-current] { color: var(--amber); }
.nav-links .sub-toggle { background: none; border: 0; padding: 4px; margin: -4px 0; color: var(--muted); cursor: pointer; display: flex; }
.nav-links .sub-toggle svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-links .has-sub:hover .sub-toggle, .nav-links .has-sub.open .sub-toggle, .nav-links .has-sub:focus-within .sub-toggle { color: var(--amber); }
.nav-links .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.nav-links .sub { display: none; position: absolute; left: -16px; top: calc(100% + 14px); z-index: 50; list-style: none; margin: 0; padding: 8px 0; min-width: 230px; max-width: none; font-family: var(--sans); font-size: 15px; line-height: 1.3; letter-spacing: 0; text-transform: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.nav-links .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }  /* keeps the menu open on the way down to it */
.nav-links .has-sub:hover .sub, .nav-links .has-sub.open .sub, .nav-links .has-sub:focus-within .sub { display: block; }
.nav-links .sub li { display: block; }
.nav-links .sub a { display: block; padding: 10px 16px; white-space: nowrap; }
.nav-links .sub a[aria-current="page"] { color: var(--amber); }
.nav-links .has-sub:hover .sub.cols, .nav-links .has-sub.open .sub.cols, .nav-links .has-sub:focus-within .sub.cols { display: grid; grid-auto-flow: column; grid-auto-columns: auto; padding: 10px 0; }
.nav-links { position: relative; }
.nav-links .has-sub + .has-sub:has(.sub.cols) { position: static; }  /* the parks columns hang from the right end of the menu, or they run off the page */
.nav-links .has-sub + .has-sub .sub.cols { left: auto; right: 0; }
.nav-links .sub .col ul { list-style: none; margin: 0; padding: 0; }
.nav-links .sub .colh { display: block; font-family: var(--mono); text-transform: uppercase; white-space: nowrap; padding: 6px 16px 4px; font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); }
.nav-menu .fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: var(--muted); cursor: pointer; }
.nav-menu .fold > summary svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-menu .fold[open] > summary svg { transform: rotate(180deg); }
.nav-menu .fold[open] > summary, .nav-menu .fold:has(a[aria-current]) > summary { color: var(--amber); }
.nav-menu .group ul { list-style: none; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; position: static; min-width: 0; margin: 0; padding: 0 0 4px; background: none; border: 0; box-shadow: none; }
.nav-menu .group li a { padding-left: 28px; }
.nav-menu .sub-fold > summary { padding: 10px 16px 10px 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-menu .sub-fold li a { padding-left: 40px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 56px 0 40px; align-items: end; }
.hero h1 { font-size: clamp(40px, 6.2vw, 84px); line-height: 0.98; font-weight: 500; letter-spacing: -0.035em; margin: 14px 0 18px; }
.hero h1 em { font-style: italic; color: var(--amber); font-weight: 500; }
.meta { font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.9; }
.meta span { color: var(--text); }
.acts-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.act { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.act:hover, .act:focus-visible { color: var(--text); border-color: var(--faint); }
button.act svg { width: 14px; height: 14px; flex: none; margin: 0; stroke: var(--amber); fill: none; stroke-width: 1.6; }
.act-note { font-family: var(--mono); font-size: 12px; color: var(--amber); align-self: center; min-height: 1em; }

.readout { background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); border: 1px solid var(--line); border-radius: 4px; padding: 26px 26px 22px; position: relative; }
.readout::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 18px var(--red); }
.big { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 4px; }
.big .num { font-family: var(--mono); font-size: clamp(54px, 7vw, 76px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.big .unit { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.bortle-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.bortle-row .cls { font-family: var(--mono); font-size: 28px; color: var(--red); }
.info { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: none; color: var(--amber); background: none; border: 1px solid rgba(242,166,90,0.45); border-radius: 10px; padding: 2px 8px; margin-left: 8px; cursor: pointer; vertical-align: 1px; }
.info:hover, .info[aria-expanded="true"] { background: rgba(242,166,90,0.12); }
.pop { margin-top: 14px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--ink-0); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.pop p { margin: 10px 0; color: var(--text); }
.pop a { font-family: var(--mono); font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.steps span { font-family: var(--mono); font-size: 11px; text-align: center; padding: 5px 0; border-radius: 2px; color: var(--ink-0); }
.steps span.on { outline: 2px solid var(--text); outline-offset: 1px; font-weight: 500; }
.scale { position: relative; height: 10px; margin: 14px 0 8px; border-radius: 2px;
  background: linear-gradient(90deg, #04060d 0%, #0d1530 22%, #2a1840 40%, #6b1d2a 58%, #c0452c 74%, #f2a65a 88%, #fff1dc 100%); }
.scale .pin { position: absolute; top: -6px; width: 2px; height: 22px; background: var(--text); box-shadow: 0 0 10px #fff; }
.scale-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.ratio { margin-top: 18px; font-size: 17px; line-height: 1.45; color: var(--text); }
.ratio b { font-weight: 600; color: var(--amber); white-space: nowrap; }
.snow { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.snow b { color: var(--text); font-weight: 600; }

/* Sections */
section { padding: 64px 0 8px; border-top: 1px solid var(--line); margin-top: 40px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.02em; margin: 10px 0 10px; line-height: 1.08; }
.mw-verdict { font-size: 19px; line-height: 1.5; max-width: 60ch; margin: 6px 0 14px; }
.mw-verdict b { color: var(--amber); font-weight: 600; }
.sub { color: var(--muted); font-size: 16px; max-width: 58ch; line-height: 1.55; margin: 0 0 28px; }

/* Map: about two thirds wide, breaks the grid by bleeding past the right edge */
.map-wrap { display: grid; grid-template-columns: minmax(260px, 1fr) 1.9fr; gap: 44px; align-items: start; }
.map-frame { position: relative; margin-right: calc(-1 * var(--gutter)); border: 1px solid var(--line); border-right: 0; border-radius: 4px 0 0 4px; overflow: hidden; background: var(--ink-1); }
.map-frame img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: fill; }
.map-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-under { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.8; }
.map-under .legend { width: 260px; }
.zoom { display: flex; gap: 6px; }
.zoom button { font-family: var(--mono); font-size: 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 6px 10px; cursor: pointer; }
.zoom button:hover { color: var(--text); border-color: var(--faint); }
.zoom button[aria-pressed="true"] { color: var(--text); border-color: var(--red); background: var(--red-soft); }
h3 { font-size: 24px; font-weight: 500; line-height: 1.15; margin: 0 0 8px; }
.side-sub { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; }
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places li { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px; padding: 12px 6px 12px 0; border-bottom: 1px solid rgba(38,49,79,0.6); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.places li:hover, .places li.on { background: var(--red-soft); }
.nearest { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.near-card { background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px; }
.near-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.near-card h3 { font-size: 26px; margin: 8px 0 4px; }
.near-card .where { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.near-card .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; margin-bottom: 14px; }
.near-card .facts b { color: var(--amber); font-weight: 600; }
.near-card .acts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--mono); font-size: 12.5px; }
.near-card .acts button { text-align: left; font: inherit; color: var(--amber); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.places .nm { color: var(--text); }
.map-dark { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.map-dark b { color: var(--text); font-weight: 600; }
.no-dome { font-size: 18px; line-height: 1.55; color: var(--text); max-width: 62ch; margin: 18px 0 8px; }
.domes[hidden], .horizon[hidden] { display: none; }
.side-sub:empty { display: none; }
.no-road p { margin: 0 0 8px; }
.no-road ul { margin: 0; padding-left: 18px; }
.no-road { font-size: 14.5px; line-height: 1.5; color: var(--text); border-left: 2px solid var(--amber); padding: 2px 0 2px 12px; margin: 4px 0 12px; }
.open-note { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.places .area { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; }
.places .meta2 { grid-column: 2 / 4; color: var(--faint); font-size: 11.5px; }
.places .sky { text-align: right; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.places .sky small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.places a { color: var(--amber); text-decoration: none; }
.badge-d { width: 18px; height: 18px; margin: 1px 0 0 2px; background: var(--amber); transform: rotate(45deg); display: grid; place-items: center; }
.badge-d span { transform: rotate(-45deg); color: var(--ink-0); font-size: 10.5px; font-weight: 500; }
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.layers button { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); background: transparent; border: 0; padding: 12px 10px; cursor: pointer; }
.layers button + button { border-left: 1px solid var(--line); }
.layers button:hover { color: var(--text); }
.layers button[aria-selected="true"] { color: var(--text); background: var(--red-soft); box-shadow: inset 0 -2px 0 var(--red); }
.badge-d.mini { width: 10px; height: 10px; margin: 0; }
.badge-c.mini { width: 12px; height: 12px; border-width: 2px; }
.badge-c { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text); display: grid; place-items: center; font-size: 10.5px; color: var(--text); }
.legend-bar { height: 8px; border-radius: 2px; margin: 8px 0 4px; background: linear-gradient(90deg, rgb(8,12,26), rgb(40,14,30), rgb(150,30,24), rgb(230,110,40), rgb(255,200,120), rgb(255,244,225)); }

/* Light domes */
.domes { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: start; }
.compass svg { width: 100%; height: auto; display: block; }
.horizon { margin-top: 28px; }
.horizon .strip { height: 46px; border-radius: 3px; border: 1px solid var(--line); }
.horizon .ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 6px; }
table.sources { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--mono); font-size: 14px; table-layout: fixed; font-variant-numeric: tabular-nums; }
table.sources th:nth-child(1) { width: 40%; } table.sources th:nth-child(2) { width: 22%; } table.sources th:nth-child(3) { width: 12%; }
table.sources td { vertical-align: top; padding-right: 10px; overflow-wrap: anywhere; }
table.sources th { text-align: left; font-weight: 400; color: var(--faint); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
table.sources td { padding: 11px 0; border-bottom: 1px solid rgba(38,49,79,0.6); }
table.sources th:first-child, table.sources td:first-child { padding-left: 16px; }
table.sources td.bar { padding-right: 16px; }
table.sources th { padding-top: 12px; }
table.sources tr:last-child td { border-bottom: 0; }
table.sources tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
table.sources td.bar { padding-top: 15px; }
.hbar { height: 6px; background: var(--red); border-radius: 1px; box-shadow: 0 0 8px rgba(226,72,58,0.5); }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; line-height: 1.55; }

/* Charts */
.two { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); column-gap: 44px; row-gap: 0; }
/* Each chart column shares the same four rows (label, heading, subtitle, chart), so the charts line up. */
.two > .chart { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--faint); }
.chart .val { fill: var(--text); font-size: 11px; }
.chart .hl { fill: var(--amber); }

.nights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nights span { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--text); background: var(--red-soft); }

footer { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; line-height: 1.9; color: var(--faint); }
footer b { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .hero, .map-wrap, .domes, .two { grid-template-columns: 1fr; }
  .two > .chart + .chart { margin-top: 48px; }
  .map-wrap > div:first-child { display: contents; }
  .map-wrap .layers { order: -2; margin-bottom: 0; }
  .map-wrap > .map-col { order: -1; }
  .hero { padding-top: 36px; gap: 28px; }
  .map-frame { margin-right: calc(-1 * var(--gutter)); }
  .crumbs { font-size: 11.5px; }
}
@media (max-width: 940px) {  /* six menu items stop fitting beside the logo below this */
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 700px) {
  .chart text { font-size: 14px; }
  .chart .val { font-size: 14px; }
}
