/* axi0 status: the public front page of axi0.online. No framework; one font, self-hosted. Colors: true black,
   white ink, the pulse green for "up", the axi0 orange as the one accent, red only for a site that is down. */
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --ink: #f5f5f7; --text: #d0d0d7; --mute: #9a9aa5; --line: #1d1d23; --panel: #0b0b0e; --hover: #131318;
  --up: #3fd68f; --core: #f6a04d; --down: #ff6b6b; --pending: #f6c84d;
}
* { box-sizing: border-box; }
html { background: #000; color: var(--text); font: 16px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
a { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--core); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.mark { display: inline-flex; align-items: baseline; gap: .12em; font-size: 24px; font-weight: 600; letter-spacing: -.045em; text-decoration: none; }
.mark .a { color: #fff; } .mark .s { color: var(--mute); font-weight: 500; }
.mark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); transform: translateY(-2px); }
.top ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: inline-block; padding: 10px 12px; border-radius: 999px; color: var(--mute); text-decoration: none; font-size: 14.5px; }
.top nav a:hover { color: #fff; background: var(--hover); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--mute); font-size: 14px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(63, 214, 143, .6); animation: pulse 2.4s ease-out infinite; }
.pulse.is-down { background: var(--down); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 214, 143, .55); } 70% { box-shadow: 0 0 0 12px rgba(63, 214, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 214, 143, 0); } }
h1 { margin: 0; color: #fff; font-size: clamp(34px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; max-width: 16ch; }
.lede { max-width: 62ch; margin: 18px 0 0; color: var(--text); font-size: 17px; }
/* How old the figures in this HTML are. Written at deploy (tools/prerender.mjs) so a reader without scripts -
   every crawler - gets a dated figure instead of one that looks current; app.js rewrites it from the live data
   and turns it red when the published HTML has fallen behind the published numbers. */
.data-age { max-width: 68ch; margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--line); color: var(--mute); font-size: 14px; }
.data-age.is-stale { border-left-color: var(--down); background: rgba(255, 107, 107, .08); color: var(--text); }
.caveat { max-width: 62ch; margin: 10px 0 0; color: var(--mute); font-size: 13.5px; text-wrap: pretty; }
/* An inline link inside a sentence is exempt from SC 2.5.8 ("constrained by the line-height of non-target
   text"), but padding-block costs nothing here: the hit area reaches 24 px without moving the line. */
.caveat a, .block-head p a { padding-block: 3px; color: var(--mute); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; }
.hero-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-height: 96px; }
.hero-stats dt { color: var(--mute); font-size: 13.5px; }
.hero-stats dd { margin: 6px 0 0; color: #fff; font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* blocks */
.block { padding: 56px 0 8px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
h2 { margin: 0; color: #fff; font-size: 28px; letter-spacing: -.025em; font-weight: 600; }
.block-head p { margin: 0; color: var(--mute); font-size: 14.5px; max-width: 52ch; text-wrap: pretty; }

/* site tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile a { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "icon name state" "icon role state" "bar bar bar" "meta meta meta"; gap: 2px 14px; align-items: center; padding: 18px; min-height: 168px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.tile a:hover { border-color: #2c2c35; background: var(--hover); transform: translateY(-1px); }
/* tile icons: drawn inline (the drawings of the launcher on search.axi0.io) so they take the tile's colors: a dark tile
   with light ink and a fine edge on the dark card, a paper tile with dark ink on the light one. The fill and stroke
   attributes in the page are the dark look, for a browser without this file. */
.ic { grid-area: icon; display: block; --t: #000; --e: #3a3a43; --k: #f5f5f7; --c: #f6a04d; }
.ic .it { fill: var(--t); stroke: var(--e); }
.ic .ik { fill: none; stroke: var(--k); }
.ic .if { fill: var(--k); }
.ic .ia { fill: var(--c); }
.ic-tech { --t: #0e1012; --k: #eef0f3; --c: #fb9344; }
.ic-art { --t: #16201c; --k: #f7f5ef; }
.ic-site { --t: #f7f3eb; --e: #f7f3eb; --k: #261d16; }
.t-name { grid-area: name; color: #fff; font-weight: 600; font-size: 16.5px; }
.t-role { grid-area: role; color: var(--mute); font-size: 13.5px; }
.t-state { grid-area: state; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; border: 1px solid #2a2a31; color: var(--mute); }
.t-state.up { color: var(--up); border-color: rgba(63, 214, 143, .45); }
.t-state.down { color: var(--down); border-color: rgba(255, 107, 107, .5); }
.t-state.pending { color: var(--pending); border-color: rgba(246, 200, 77, .45); }
.t-bar { grid-area: bar; display: flex; gap: 2px; height: 26px; margin-top: 16px; align-items: stretch; }
.t-bar i { flex: 1; border-radius: 2px; background: #22222a; }
.t-bar i.u { background: var(--up); } .t-bar i.d { background: var(--down); } .t-bar i.p { background: var(--pending); } .t-bar i.m { background: #5b7cfa; }
.t-meta { grid-area: meta; display: flex; justify-content: space-between; margin-top: 8px; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }

/* The tiles follow the device's light or dark setting (the rest of the page is dark only): paper cards with dark ink in
   light, every text at 4.5:1 or more on the card and on its hover color. */
@media (prefers-color-scheme: light) {
  .tile a { background: #fffdf9; border-color: #fffdf9; }
  .tile a:hover { background: #f6f2ea; border-color: #f6f2ea; }
  .t-name { color: #17140f; }
  .t-role, .t-meta { color: #675f54; }
  .t-state { color: #675f54; border-color: #d3cabb; }
  .t-state.up { color: #17733f; border-color: rgba(23, 115, 63, .4); }
  .t-state.down { color: #b3261e; border-color: rgba(179, 38, 30, .45); }
  .t-state.pending { color: #8a5a00; border-color: rgba(138, 90, 0, .45); }
  .t-bar i { background: #e6dfd3; }
  .t-bar i.u { background: #1f9d5c; } .t-bar i.d { background: #d64545; } .t-bar i.p { background: #d9a520; }
  .ic { --t: #f6f2ea; --e: #cfc5b5; --k: #17140f; }
  .ic-site { --t: #f7f3eb; --k: #261d16; }
  .ic-art { --k: #16201c; }
}

/* scoreboard */
.legend { display: flex; gap: 16px; margin: -6px 0 16px; font-size: 13px; color: var(--mute); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.b-good::before { background: var(--up); } .b-mid::before { background: var(--core); } .b-bad::before { background: var(--down); }
.scoreboard { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.scoreboard .empty { color: var(--mute); padding: 18px 0; }
.row { display: grid; grid-template-columns: minmax(150px, 1.1fr) repeat(4, minmax(0, 1fr)) minmax(96px, .8fr); align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
/* 24 px minimum: WCAG 2.2 SC 2.5.8 (Target Size, Minimum). inline-flex so the box grows, not the line box,
   and the rows keep their height. Lighthouse has no audit for this; tools/test-site.mjs does. */
.row-name a { display: inline-flex; align-items: center; min-height: 24px; color: #fff; font-weight: 600; text-decoration: none; }
.row-name a:hover { text-decoration: underline; text-decoration-color: var(--core); text-underline-offset: 4px; }
.row-name small { display: block; color: var(--mute); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.ring { display: flex; align-items: center; gap: 10px; }
.ring svg { width: 54px; height: 54px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: #1f1f26; }
.ring .val { stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring b { display: block; color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; }
.ring span { display: block; color: var(--mute); font-size: 12px; line-height: 1.3; }
.ring .lbl { display: none; }                      /* the column header names it on wide screens */
.scoreboard.no-trend .row { grid-template-columns: minmax(150px, 1.1fr) repeat(4, minmax(0, 1fr)); }
.g { stroke: var(--up); } .o { stroke: var(--core); } .r { stroke: var(--down); }
.spark { width: 100%; height: 30px; }
.spark polyline { fill: none; stroke: var(--core); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark-cap { color: var(--mute); font-size: 12px; }
.row-head { color: var(--mute); font-size: 12.5px; padding: 10px 0; }

/* found by AI answers: one card per axi0 site, the number inside the ring; the partners only as one average */
.geo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.geo .empty { grid-column: 1 / -1; color: var(--mute); padding: 18px 0; border-top: 1px solid var(--line); }
.geo li:not(.empty) { display: flex; align-items: flex-start; gap: 14px; padding: 18px; min-height: 118px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.geo .geo-partners { border-style: dashed; border-color: #2c2c35; }
.geo-ring { position: relative; flex: none; width: 54px; height: 54px; }
.geo-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; }
.geo-body { min-width: 0; }
.geo-body a, .geo-pname { display: inline-flex; align-items: center; min-height: 24px; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.geo-body a:hover { text-decoration: underline; text-decoration-color: var(--core); text-underline-offset: 4px; }
.geo-body small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.geo-next { margin: 8px 0 0; color: var(--text); font-size: 12.5px; line-height: 1.45; }

/* figures (partners, impact) */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.figures div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-height: 132px; }
.figures dt { color: var(--mute); font-size: 13.5px; }
.figures dd { margin: 8px 0 4px; color: #fff; font-size: 34px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.figures dd.note { display: block; margin: 0; color: var(--mute); font-size: 12.5px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-wrap: pretty; }
.figures.big dd.note { color: var(--mute); }
.figures.big dd { color: var(--core); }

.statement { margin: 56px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.statement p { margin: 0; max-width: 52ch; font-size: 17px; color: var(--text); text-wrap: pretty; }
.statement b { color: #fff; }

.foot { max-width: 1180px; margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--mute); font-size: 14px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--ink); text-decoration: underline; text-decoration-color: #3a3a44; text-underline-offset: 4px; display: inline-block; padding: 6px 0; }
.foot a:hover { text-decoration-color: var(--core); }
.foot p { margin: 6px 0 0; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 1fr 1fr; }
  .row-name { grid-column: 1 / -1; }
  .row-spark { grid-column: 1 / -1; }
  .row-head { display: none; }
  .ring .lbl { display: block; color: var(--text); }
  .scoreboard.no-trend .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; padding: 18px 18px 6px; }
  .top ul { flex-wrap: wrap; }
  .top nav a { padding: 10px 7px; }
  main { padding: 0 18px; }
  .tiles { grid-template-columns: 1fr; }
  .geo { grid-template-columns: 1fr; }
  .geo li:not(.empty) { min-height: 0; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures dd { font-size: 28px; }
  .hero { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .ring .val { transition: none; } html { scroll-behavior: auto; } }
