/* Hallmark · checked: 2026-11-18 · genre: atlas (custom) · redesign: atlas v1 */
[hidden] { display: none !important; }
:root {
  --ink-0: #0b0c0e;
  --ink-1: #121418;
  --ink-2: #1b1e24;
  --line: rgba(239, 230, 210, 0.14);
  --paper: #efe6d2;
  --paper-dim: #b4ad9d;
  --mint: #b9ffe0;
  --amber: #ffbf5e;
  --cobalt: #7aa2ff;
  --coral: #ff8a6b;
  --magenta: #ff7ad9;
  --paper-hi: #f7f1e2;
  --diagram-bg: #f4f1e8;
  --glass-92: rgba(11, 12, 14, 0.92);
  --glass-96: rgba(11, 12, 14, 0.96);
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

html, body { overflow-x: clip; }

/* ---------- HOME: the atlas ---------- */
body.atlas-home {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--font-serif);
  overflow: hidden;
  overscroll-behavior: none;
}
body.atlas-home:not(.atlas-live) { overflow: auto; }
body.atlas-live { touch-action: none; cursor: grab; }
body.atlas-live.dragging { cursor: grabbing; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: none; }
.atlas-live #world { display: block; }

.atlas-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 14px clamp(14px, 3vw, 32px);
  background: linear-gradient(var(--ink-0), rgba(11, 12, 14, 0));
}
.atlas-bar nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); align-items: center; flex-wrap: wrap; }
.atlas-bar a, .atlas-bar button {
  color: var(--paper); font: 600 15px/1 var(--font-serif);
  text-decoration: none; background: none; border: 1px solid transparent;
  padding: 12px 6px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center;
}
.atlas-bar a:hover, .atlas-bar button:hover { color: var(--mint); }
.atlas-bar button { border-color: var(--line); padding: 10px 16px; border-radius: 999px; }
.atlas-mark .hawk { width: 30px; height: 14px; color: var(--mint); margin-right: 8px; }
.atlas-mark { font-size: 20px !important; letter-spacing: 0.01em; }

.atlas-index {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto; padding: 120px 20px 80px;
}
.atlas-live .atlas-index { display: none; }
.atlas-live.index-open .atlas-index {
  display: block; position: fixed; inset: 0; z-index: 4; overflow-y: auto;
  max-width: none; padding-inline: max(20px, calc((100vw - 880px) / 2));
  background: var(--glass-96); touch-action: pan-y;
}
.atlas-live.index-open { cursor: auto; }
.atlas-title { font: 600 clamp(32px, 6vw, 60px)/1.05 var(--font-serif); margin: 0 0 12px; }
.atlas-lede { color: var(--paper-dim); font-size: 18px; margin: 0 0 40px; max-width: 52ch; }
.district { margin: 0 0 40px; }
.district h2, .atlas-title, .article-headline { text-wrap: balance; }
.district h2 { font: 600 24px/1.2 var(--font-serif); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.district[data-district="research"] h2 { color: var(--mint); }
.district[data-district="agents"] h2 { color: var(--amber); }
.district[data-district="code"] h2 { color: var(--cobalt); }
.district[data-district="dev"] h2 { color: var(--coral); }
.district[data-district="journal"] h2 { color: var(--magenta); }
.district ul { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 32px; }
.district li { break-inside: avoid; }
.district a { color: var(--paper); text-decoration: none; display: block; padding: 8px 0; line-height: 1.35; }
.district a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

.world-layer { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; }
.world-layer > * { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; }
.district-label {
  pointer-events: none !important; color: var(--ink); font: italic 600 clamp(18px, 2.4vw, 28px)/1 var(--font-serif);
  white-space: nowrap; margin: -14px 0 0 0; transform-origin: 0 0; translate: -50% 0; background: var(--ink-0); padding: 6px 12px; border: 1px solid var(--ink);
}
.world-pin {
  width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--paper);
  border: 3px solid var(--ink-0); box-shadow: 0 0 0 1px var(--ink); display: block; transition: background-color 120ms, border-color 120ms;
}
.world-pin::after { content: ""; position: absolute; inset: -8px; }
.world-pin:hover, .world-pin:focus-visible { background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.world-pin:focus-visible, .landmark:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--paper); outline-offset: 3px;
}
.landmark {
  margin: -24px 0 0 -70px; width: 140px; padding: 10px 12px; text-align: center;
  background: var(--ink-0); color: var(--paper); text-decoration: none;
  border: 2px solid var(--paper); font: 600 16px/1.2 var(--font-serif);
}
.landmark small { display: block; color: var(--paper-dim); font: 400 12px/1.4 var(--font-mono); margin-top: 2px; }
.landmark:hover { background: var(--paper); color: var(--ink-0); }
.landmark:hover small { color: var(--ink-1); }

.atlas-hint, .atlas-readout {
  position: fixed; z-index: 5; margin: 0; font: 400 13px/1.4 var(--font-mono);
  background: var(--ink-0); padding: 8px 12px; border: 1px solid var(--line); color: var(--paper);
}
.atlas-hint { left: 50%; bottom: 20px; transform: translateX(-50%); }
.atlas-readout { left: clamp(14px, 3vw, 32px); bottom: 20px; max-width: min(520px, 70vw); }
.index-open .atlas-hint, .index-open .atlas-readout, .index-open .world-layer { display: none; }

body:not(.atlas-home) .article-post blockquote::before, body:not(.atlas-home) .article-post blockquote::after { content: none !important; }
body:not(.atlas-home) .article-post blockquote { display: block; }

body:not(.atlas-home) .navbar .nav-link { white-space: nowrap; }

@media screen {
/* ---------- INTERIOR: the reader ---------- */
body:not(.atlas-home) {
  background: var(--ink-0); color: var(--paper);
  font-family: var(--font-serif);
}
body:not(.atlas-home) .topnav,
body:not(.atlas-home) .bg-white,
body:not(.atlas-home) footer.bg-white {
  background: var(--glass-92) !important;
  border-color: var(--line) !important;
}
body:not(.atlas-home) .navbar-light .navbar-brand,
body:not(.atlas-home) .navbar-light .nav-link,
body:not(.atlas-home) .text-dark,
body:not(.atlas-home) h1, body:not(.atlas-home) h2,
body:not(.atlas-home) h3, body:not(.atlas-home) h4,
body:not(.atlas-home) h5, body:not(.atlas-home) h6 { color: var(--paper) !important; }
body:not(.atlas-home) .navbar-light .nav-link:hover { color: var(--mint) !important; }
body:not(.atlas-home) .navbar-light .navbar-toggler { border-color: var(--line); }
body:not(.atlas-home) .navbar-light .navbar-toggler-icon { filter: invert(1); }
body:not(.atlas-home) .text-muted,
body:not(.atlas-home) footer { color: var(--paper-dim) !important; }
body:not(.atlas-home) a { color: var(--mint); }
body:not(.atlas-home) a:hover { color: var(--paper-hi); }
body:not(.atlas-home) p, body:not(.atlas-home) .card-text, body:not(.atlas-home) .excerpt { color: var(--paper-dim); }
body:not(.atlas-home) .article-post { color: var(--paper); font-size: 19px; line-height: 1.75; }
body:not(.atlas-home) .article-post p, body:not(.atlas-home) .article-post li { color: var(--paper); }
body:not(.atlas-home) .article-post a { text-decoration: underline; text-underline-offset: 3px; }
body:not(.atlas-home) .article-post blockquote {
  border: 1px solid var(--mint); background: var(--ink-1); color: var(--paper); padding: 12px 20px; margin: 24px 0;
}
body:not(.atlas-home) .article-post img, body:not(.atlas-home) .article-post object { background: var(--diagram-bg); border-radius: 4px; max-width: 100%; }
body:not(.atlas-home) pre, body:not(.atlas-home) code { font-family: var(--font-mono); }
body:not(.atlas-home) pre, body:not(.atlas-home) .highlight { background: var(--ink-1) !important; color: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
body:not(.atlas-home) :not(pre) > code { background: var(--ink-2); color: var(--amber); padding: 2px 6px; border-radius: 3px; }
body:not(.atlas-home) table { color: var(--paper); border-color: var(--line); }
body:not(.atlas-home) th, body:not(.atlas-home) td { border-color: var(--line) !important; }
body:not(.atlas-home) .jumbotron, body:not(.atlas-home) .alertbar, body:not(.atlas-home) .card,
body:not(.atlas-home) .border, body:not(.atlas-home) .bg-lightblue, body:not(.atlas-home) .bg-light,
body:not(.atlas-home) .btn-light { background: var(--ink-1) !important; border-color: var(--line) !important; color: var(--paper) !important; }
body:not(.atlas-home) .article-headline { font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
body:not(.atlas-home) .catlist a { color: var(--amber) !important; }
body:not(.atlas-home) input, body:not(.atlas-home) textarea, body:not(.atlas-home) select {
  background: var(--ink-1); color: var(--paper); border: 1px solid var(--line);
}
body:not(.atlas-home) #lunrsearchresults { background: var(--ink-0); }

@media (prefers-reduced-motion: reduce) {
  .world-pin { transition: none; }
}
@media (max-width: 640px) {
  .atlas-bar { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .atlas-bar nav { gap: 0; width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .atlas-bar nav a, .atlas-bar nav button { font-size: 13px; padding: 10px 2px; white-space: nowrap; }
  .atlas-bar nav button { padding: 8px 10px; }
  .atlas-hint { width: max-content; max-width: 86vw; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .world-pin { animation: pin-in 400ms ease-out both; }
}
@keyframes pin-in { from { opacity: 0; } to { opacity: 1; } }
body:not(.atlas-home) .navbar-collapse { background: transparent; }
body:not(.atlas-home) .site-content { color: var(--paper); }
body:not(.atlas-home) .badge, body:not(.atlas-home) .btn-outline-success { color: var(--mint); border-color: var(--mint); }
body:not(.atlas-home) .page-item .page-link { background: var(--ink-1); border-color: var(--line); color: var(--paper); }
body:not(.atlas-home) hr { border-color: var(--line); }

body:not(.atlas-home) .search-page-form,
body:not(.atlas-home) .search-help,
body:not(.atlas-home) .search-results-container,
body:not(.atlas-home) .search-result-item,
body:not(.atlas-home) .search-input-wrapper-page {
  background: var(--ink-1) !important; border: 1px solid var(--line) !important; color: var(--paper) !important; box-shadow: none !important;
}
body:not(.atlas-home) .search-help h5, body:not(.atlas-home) .search-help h6 { color: var(--paper) !important; }
body:not(.atlas-home) .search-btn-page, body:not(.atlas-home) .btn-primary {
  background: var(--mint) !important; border-color: var(--mint) !important; color: var(--ink-0) !important;
}
body:not(.atlas-home) .badge-secondary, body:not(.atlas-home) .search-topic {
  background: var(--ink-2) !important; color: var(--paper) !important; border: 1px solid var(--line);
}
body:not(.atlas-home) .search-input-page { background: var(--ink-0) !important; color: var(--paper) !important; }

.atlas-bar a:active, .atlas-bar button:active, .landmark:active, .world-pin:active { transform-origin: center; opacity: 0.8; }
.landmark small { font-family: var(--font-serif); font-style: italic; }

.lost { max-width: 640px; margin: 0 auto; padding: 160px 20px 120px; text-align: center; }
.lost-hawk .hawk { width: 120px; height: 56px; color: var(--mint); animation: soar 6s ease-in-out infinite alternate; }
.lost h1 { font-size: clamp(36px, 7vw, 64px); margin: 24px 0 12px; text-wrap: balance; }
.lost p { color: var(--paper-dim); font-size: 18px; }
.lost-link { display: inline-block; margin: 12px 8px 0; padding: 12px 20px; min-height: 44px; border: 1px solid var(--mint); text-decoration: none !important; }
.lost-link:hover { background: var(--mint); color: var(--ink-0) !important; }
@keyframes soar { from { transform: translate(-24px, 6px); } to { transform: translate(24px, -6px); } }
@media (prefers-reduced-motion: reduce) { .lost-hawk .hawk { animation: none; } }

/* Dithered strip under every post header */
.post-strip {
  height: 24px; margin: 0 0 8px;
  background-image: radial-gradient(var(--mint) 1.2px, transparent 1.6px);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
}
