/* Two vendored faces, both self-hosted on purpose: a CDN fetch that fails yields a
   silently unstyled page.

   Omarchy Font -- MIT, (c) 2026 Mark Cuda. The actual Omarchy wordmark as a typeface. It
   carries the wordmark and the group headings: short, all-caps, letter-spaced runs where
   the letterforms are the point. It is a block-built DISPLAY face and it is PROPORTIONAL,
   so it stays off everything else, and the boundary was found by rendering rather than
   assumed. At 11px the letterforms close up, lowercase suffers, and paths like
   ~/.config/hypr lose their shape. A record h1 was tried and reverted: a twelve-word
   sentence in a display face makes the line that tells a reader whether they are on the
   right page the hardest one to scan. And the instrument look depends on every number
   being monospaced with tabular figures, which a proportional face cannot give.

   Departure Mono -- SIL OFL 1.1, (c) 2022-2024 Helena Zhang. Keeps the micro-chrome: the
   recessive labels that are small on purpose, which is the one job its 11px grid suits.

   Both licences ship beside their font, and CI fails the build if either pair is broken. */
@font-face{
  font-family:'Omarchy';
  src:url('fonts/OmarchyFont.woff2') format('woff2');
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Departure Mono';
  src:url('fonts/DepartureMono-Regular.woff2') format('woff2');
  font-weight:400; font-style:normal; font-display:swap;
}
:root{
  --bg:#0a0e13; --panel:#10161f; --panel-2:#0c1119; --line:#1b2531; --line-2:#26374a;
  --ink:#d2dcea; --dim:#8996a6; --muted:#6b7c8e; --faint:#516072;
  --signal:#46e0c0; --signal-soft:rgba(70,224,192,.14);
  --alert:#ff5d73; --gaccent:var(--signal);
  /* CORRECTED was the source palette's amber (#f2b34b). Moved to an electric blue, and
     the swap improves both axes rather than trading one for the other: worst-case
     colour-vision-deficiency separation from the other two statuses goes 0.10 -> 0.28,
     and the closest normal-vision pair goes 96 -> 111 (amber sat too near --alert red).
     Contrast on --bg is 7.28:1. The palette's amber is retired rather than left declared
     and unused, which is the cruft the source handoff flagged in --raise and --mem. */
  --corrected:#00a6ff;
  /* ONE text face. This used to be three: --mono named 'IBM Plex Mono' and --disp named
     'Space Grotesk', neither of which is shipped, so both rendered only for a visitor who
     happened to have them installed and fell back to something else for everyone else.
     A site whose type changes machine to machine is not a design. Both names are gone and
     the system monospace stack, which is good on all three platforms and costs no third
     party, carries every readout, every label and all the prose. */
  --mono:ui-monospace,'SF Mono','Cascadia Mono','JetBrains Mono',
         'DejaVu Sans Mono','Liberation Mono',Menlo,Consolas,monospace;
  /* The brand face, on the two jobs where letterforms are the point: the wordmark, and
     the headings that structure a page. It is proportional and block-built, so it is kept
     off anything that must align in a column or be read at micro sizes. */
  --omarchy:'Omarchy',var(--mono);
  /* The CRT face is now micro-chrome only: the recessive labels that are deliberately
     small. It is designed on an 11px grid, which is exactly why it keeps the sizes that
     did not grow rather than being stretched off it. */
  --crt:'Departure Mono',var(--mono);
}
/* A pixel font must not be smoothed into mush, and Departure Mono is designed on an 11px
   grid -- its own README: "For pixel-perfect results, set the font size to increments of
   11px." Every rule below therefore sits at 11px. The transcribed spec's 8.5-10px labels
   were both OFF-GRID and genuinely too small to read; snapping to the grid fixes
   legibility and crispness with one change. Do not reintroduce 8/9/10px here -- it will
   look soft as well as tiny.

   This list is SHORTER than it was: the wordmark and the group headings moved to the
   Omarchy face, and both had to leave, because smoothing-disabled is a pixel-grid rule
   and applying it to a block-built face aliases its curves. What is left is the micro
   chrome, which is small ON PURPOSE and so is the one thing the 11px floor does not
   fight. Everything that grew is on --mono or --omarchy instead. */
.crt,.sub,.v-lab,.mast-status,.c-lab,.c-sev,.sev,.n-lab,.crumb,.detail h2,
footer,.tag,.slug,.qcount,.abbr,.legend{
  font-family:var(--crt);
  -webkit-font-smoothing:none; -moz-osx-font-smoothing:unset; font-smooth:never;
}
*{box-sizing:border-box}
body{margin:0;background:
  radial-gradient(1200px 600px at 80% -10%,#0e1620 0%,transparent 60%),
  radial-gradient(900px 500px at -10% 0%,#0d141d 0%,transparent 55%),
  var(--bg);
  color:var(--ink);font:16px/1.6 var(--mono);-webkit-font-smoothing:antialiased;
  min-height:100vh}
/* Motif 1: scanline + vignette. 1% white at one line in three reads as texture, not stripes. */
.scan{position:fixed;inset:0;pointer-events:none;z-index:1;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.010) 0 1px,transparent 1px 3px);
  mix-blend-mode:overlay;opacity:.5}
.scan::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 260px rgba(0,0,0,.55)}
a{color:inherit;text-decoration:none}

.mast{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:auto 1fr auto;
  gap:20px;align-items:center;padding:12px 22px;border-bottom:1px solid var(--line);
  background:rgba(10,14,19,.82);backdrop-filter:blur(8px)}
/* Not smoothing-disabled: that rule exists for Departure Mono's pixel grid, and applying
   it to block-built curves would alias them. 26px is chosen to sit with the rest of the
   masthead, not from a grid. */
.wordmark{font:26px/1 var(--omarchy);letter-spacing:.12em;color:var(--ink);
  -webkit-font-smoothing:antialiased}
.sub{font:11px/1.4 var(--crt);letter-spacing:.40em;color:var(--signal)}
.vitals{display:flex;gap:26px;justify-content:center}
.v-num{font:600 24px/1 var(--mono);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.v-num small{font:11px var(--mono);color:var(--dim);margin-left:2px}
.v-lab{font:11px var(--crt);letter-spacing:.22em;color:var(--muted);margin-top:4px}
.meter{display:flex;height:3px;border-radius:2px;overflow:hidden;flex:0 0 84px;
  background:var(--line)}
.meter span{display:block;height:100%}
.m-ok{background:var(--signal);box-shadow:0 0 6px rgba(70,224,192,.7)}
.m-corr{background:var(--corrected)}
.m-un{background:var(--alert)}
.mast-status{display:flex;align-items:center;gap:7px;font:11px var(--crt);
  letter-spacing:.24em;color:var(--signal)}
.mast-status i{width:8px;height:8px;border-radius:50%;background:var(--signal);
  box-shadow:0 0 7px rgba(70,224,192,.8);animation:pulse 2.4s infinite}
@keyframes pulse{50%{opacity:.35}}

.board{position:relative;z-index:2;max-width:1500px;margin:0 auto;padding:20px 22px 60px}
.intro{max-width:720px;margin:14px 0 22px}
.lede{font:20px/1.55 var(--mono);color:var(--ink);margin:0 0 16px}
.fine{font:14px/1.65 var(--mono);color:var(--dim);margin:14px 0 0}
.intro .body{font:15.5px/1.7 var(--mono);color:var(--dim);margin:0 0 14px}
.intro .body b{color:var(--ink);font-weight:600}
/* The link grid wants the full board width; the PROSE does not. A 1440px line is roughly
   200 characters, which is unreadable for the same reason 8px type was. Constrain the text
   blocks to a reading measure and let only the cards span. */
.intro{max-width:none}
.intro .lede,.intro .body,.intro .fine,.intro .legend{max-width:78ch}
/* The fine print ran straight into this heading. .g-head carries no top margin because in
   a .group the parent supplies it, and .intro is not a .group. */
.intro .intro-head{margin-top:36px}
.links{margin-bottom:6px}
.links .card{min-height:0}
.links .c-name{font-size:14px}
.links .c-meta{margin-top:8px}
.legend{display:flex;gap:18px;flex-wrap:wrap;font:11px var(--crt);letter-spacing:.14em;
  color:var(--muted);margin:10px 0}
.legend span{display:flex;align-items:center;gap:6px}

.searchbar{display:flex;align-items:center;gap:12px;margin:8px 0 18px}
#q{flex:1;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;
  padding:12px 14px;color:var(--ink);font:14px var(--mono);letter-spacing:.02em}
#q::placeholder{color:var(--faint)}
#q:focus{outline:none;border-color:var(--line-2);box-shadow:0 0 0 3px rgba(70,224,192,.10)}
.qcount{font:11px var(--crt);letter-spacing:.14em;color:var(--muted);white-space:nowrap}

.group{margin-top:26px}
.group:first-child{margin-top:8px}
.group>summary::-webkit-details-marker{display:none}
.group>summary{list-style:none;cursor:pointer;user-select:none}
/* The caret is the only affordance that a heading is a control, so it must not be subtle.
   It is its OWN element rather than ::after: .g-head::after is already the fading rule
   line, and the more specific selector was quietly replacing it. */
.caret{order:-1;flex:0 0 auto;width:11px;color:var(--muted);font:11px var(--crt)}
.caret::after{content:"+"}
.group[open] .caret::after{content:"\2212"}
.group>summary:hover{color:var(--ink)}
.group>summary:hover .caret{color:var(--signal)}
.group>summary:focus-visible{outline:2px solid var(--signal);outline-offset:3px;border-radius:3px}
.g-head{display:flex;align-items:center;gap:10px;margin:0 0 12px;
  font:16px var(--omarchy);letter-spacing:.16em;color:var(--dim);text-transform:uppercase}
.g-head i{width:9px;height:9px;transform:rotate(45deg);background:var(--gaccent)}
.g-head::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line),transparent)}
.g-head .meter{margin-left:2px}
.g-count{font:13px var(--mono);letter-spacing:.10em;color:var(--muted)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:11px}
.grid.hide{display:none}
.card{position:relative;display:block;border:1px solid var(--line);border-radius:8px;
  padding:11px 12px 10px;background:linear-gradient(var(--panel),var(--panel-2));
  transition:transform .15s,border-color .15s,box-shadow .15s}
.card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:var(--gaccent);opacity:.5;border-radius:8px 0 0 8px}
.card:hover{transform:translateY(-1px);border-color:var(--line-2);
  box-shadow:0 6px 20px rgba(0,0,0,.35)}
.c-name{font:15px/1.45 var(--mono);color:var(--ink)}
.c-meta{display:flex;justify-content:space-between;margin-top:9px;padding-top:8px;
  border-top:1px solid var(--line)}
.c-lab,.c-sev{font:11px var(--crt);letter-spacing:.14em;color:var(--muted)}
/* The status dot sits with the status WORD rather than the title, so the colour and the
   label it encodes are read together. Either child can host it: .c-lab carries the status
   on a board card, .c-sev carries it on a search result. The global .led margin-top exists
   to seat a dot against the first line of a wrapped title and is wrong here. */
.c-meta>span{display:inline-flex;align-items:center;gap:6px}
.c-meta .led{margin-top:0}

/* Motif 4: glowing LEDs. The colour IS the provenance. */
.led{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--muted);margin-top:4px}
.h-healthy .led,.h-healthy>.led{background:var(--signal);box-shadow:0 0 7px rgba(70,224,192,.8)}
.h-starting .led,.h-starting>.led{background:var(--corrected);box-shadow:0 0 7px rgba(0,166,255,.8)}
.h-down .led,.h-down>.led{background:var(--alert);box-shadow:0 0 7px rgba(255,93,115,.8)}
.h-down.card{opacity:.72}

.crumb{font:11px var(--crt);letter-spacing:.22em;color:var(--muted);margin:6px 0 16px}
.crumb a{color:var(--signal)}
.detail{max-width:860px;border:1px solid var(--line);border-radius:8px;padding:22px 24px 26px;
  background:linear-gradient(var(--panel),var(--panel-2));position:relative}
.detail::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:var(--gaccent);opacity:.5;border-radius:8px 0 0 8px}
.d-head{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
/* Pushed to the right of the header row so it sits with the record's own metadata rather
   than competing with the title. Muted until hover: a corpus that invites correction should
   not look like it is asking for complaints. */
.dispute{margin-left:auto;font:11px var(--crt);letter-spacing:.14em;color:var(--muted);
  border:1px solid var(--line);border-radius:4px;padding:4px 9px;
  transition:color .15s,border-color .15s}
.dispute:hover{color:var(--alert);border-color:var(--alert)}
.dispute::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;
  background:currentColor;margin-right:7px;vertical-align:middle}
.abbr{font:11px var(--crt);letter-spacing:.06em;color:var(--gaccent);padding:3px 7px;
  border-radius:4px;border:1px solid color-mix(in srgb,var(--gaccent) 40%,var(--line));
  background:color-mix(in srgb,var(--gaccent) 8%,transparent)}
.sev{font:11px var(--crt);letter-spacing:.14em;color:var(--muted);text-transform:uppercase}
/* NOT the Omarchy face, and this was tried rather than assumed. It carries the wordmark
   and the group headings well, because those are short, all-caps and letter-spaced. A
   record title is a twelve-word sentence, and a proportional block-built display face
   makes the one line that tells a reader whether they are on the right page the hardest
   line on it to scan. */
.detail h1{font:600 26px/1.3 var(--mono);letter-spacing:-.01em;margin:0 0 12px}
.detail h2{font:11px var(--crt);letter-spacing:.28em;color:var(--dim);
  text-transform:uppercase;margin:28px 0 10px}
/* md_lite emits <p>, <ul> and <ol> now. Without these the blocks it separates would still
   read as one wall: the browser's default 1em on a <p> is too loose here, and a <ul> with
   no padding loses its markers off the left edge. .src is the sources list and keeps its
   own rule, so it is excluded rather than restyled. */
.detail section>p,.note>p,.danger>p{margin:0 0 9px}
.detail section>p:last-child,.note>p:last-child,.danger>p:last-child{margin-bottom:0}
.detail section>ul:not(.src),.detail section>ol,
.note>ul,.note>ol,.danger>ul,.danger>ol{margin:0 0 9px;padding-left:20px}
.detail section>ul:not(.src)>li,.detail section>ol>li,
.note li,.danger li{margin:3px 0}
/* Rendered project docs. Wider than a record because these carry tables and code, and
   the reading measure is set by the container rather than by the prose. */
.doc{max-width:980px}
.doc blockquote{border-left:2px solid var(--corrected);background:rgba(0,166,255,.05);
  padding:10px 14px;margin:14px 0;border-radius:0 6px 6px 0;color:var(--dim)}
.doc blockquote p:last-child{margin-bottom:0}
.doc h2{font:600 20px/1.35 var(--mono);color:var(--ink);letter-spacing:-.01em;
  margin:34px 0 10px;padding-top:14px;border-top:1px solid var(--line);
  text-transform:none}
.doc h3{font:600 16px/1.4 var(--mono);color:var(--ink);margin:24px 0 8px;text-transform:none}
.doc h4,.doc h5,.doc h6{font:600 15px/1.4 var(--mono);color:var(--dim);margin:18px 0 6px;
  text-transform:none}
.doc p{margin:0 0 12px}
.doc ul,.doc ol{margin:0 0 12px;padding-left:22px}
.doc li{margin:4px 0}
.doc strong{color:var(--ink)}
.doc em{color:var(--dim)}
.doc a{color:var(--signal);text-decoration:underline;text-underline-offset:2px}
.doc hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.doc table{border-collapse:collapse;margin:14px 0;font-size:14px;display:block;
  overflow-x:auto;max-width:100%}
.doc th,.doc td{border:1px solid var(--line);padding:7px 11px;text-align:left;
  vertical-align:top}
.doc th{background:var(--panel-2);color:var(--dim);font-weight:600;white-space:nowrap}
.doc .slug a{color:var(--signal)}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tag{font:11px var(--crt);letter-spacing:.1em;color:var(--muted);border:1px solid var(--line);
  border-radius:3px;padding:2px 6px}
.prov{border:1px solid var(--line);border-radius:6px;padding:11px 13px;margin:14px 0;
  display:flex;align-items:flex-start;gap:9px;font:14px var(--mono);letter-spacing:.04em;
  color:var(--dim);flex-wrap:wrap}
.prov b{letter-spacing:.16em;color:var(--ink)}
.note,.danger{border-left:2px solid var(--corrected);background:rgba(0,166,255,.05);
  padding:12px 14px;margin:14px 0;border-radius:0 6px 6px 0;font:14.5px/1.65 var(--mono);color:var(--dim)}
.danger{border-left-color:var(--alert);background:rgba(255,93,115,.06)}
.n-lab{font:11px var(--crt);letter-spacing:.22em;color:var(--muted);margin-bottom:5px}
.n-tail{margin-top:8px;font-style:italic;color:var(--muted)}
pre{background:#070b10;border:1px solid var(--line);border-radius:6px;padding:12px 14px;
  overflow-x:auto;margin:10px 0}
code{font:14px/1.55 var(--mono);color:var(--ink);font-variant-numeric:tabular-nums}
:not(pre)>code{background:rgba(70,224,192,.08);border:1px solid var(--line);border-radius:3px;
  padding:1px 5px;color:var(--signal)}
.src{margin:8px 0;padding-left:18px}
.src a{color:var(--signal);font:13px var(--mono);word-break:break-all}
.slug{margin-top:24px;padding-top:12px;border-top:1px solid var(--line);
  font:11px var(--crt);letter-spacing:.14em;color:var(--faint)}
footer{position:relative;z-index:2;text-align:center;padding:26px 20px 34px;
  border-top:1px solid var(--line);font:11px var(--crt);letter-spacing:.14em;color:var(--muted)}
footer a{color:var(--signal)}

@media(max-width:760px){
  .mast{position:static;grid-template-columns:1fr;gap:12px}
  .vitals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
}
@media(max-width:420px){
  .vitals{grid-template-columns:repeat(2,1fr)}
  /* 26px x 19 characters overruns a phone. Tracking is spacing rather than glyph size, so
     tightening it keeps the wordmark at full size; shrinking it instead would make the
     masthead read as a caption. */
  .wordmark{letter-spacing:.02em}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
