/* Words of Bluesky. Dark only for now (docs/account-map-plan.md, Phase 7). */

/* Geist and Geist Mono, served from here rather than Google (SIL Open Font
   License, fonts/OFL.txt). Variable fonts: one file has every weight. Latin,
   then Latin Extended (for names like Kākāpō or Erdős); other scripts fall back
   to the system font. From Google Fonts' woff2 files, 2026-10-12. */
@font-face { font-family: "Geist"; font-weight: 400 700; font-display: swap; src: url(fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 400 700; font-display: swap; src: url(fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-display: swap; src: url(fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0f1012;
  --panel: #16171a;
  --panel2: #1c1d21;
  --ink: #eae7df;
  --muted: #8a8c91;
  --faint: #64666b;
  --line: #25272b;
  --bar: #303237;
  --accent: #f0a457;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
h1, h2, .brand { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }
.sub { color: var(--muted); }
a.ul { border-bottom: 1px solid var(--accent); }
a.ul:hover { color: var(--accent); }
/* The keyboard's place; clicks don't show it. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1:focus { outline: none; }  /* focused after a page change, for screen readers */

nav { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { font-size: 19px; white-space: nowrap; }
.brand span { color: var(--accent); }

/* The search box: accounts and words. */
.omni { position: relative; margin-left: auto; width: min(380px, 100%); }
.omni input { width: 100%; font: 14px var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.omni input:focus { outline: none; border-color: var(--accent); }
.drop { position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 340px); max-width: calc(100vw - 24px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 16px 40px #000c; z-index: 20; padding: 6px; }
.drop .sec { font: 11px var(--mono); color: var(--faint); padding: 8px 8px 3px; }
.drop .it { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 6px; cursor: pointer; min-width: 0; }
.drop .it.act { background: var(--panel2); }
.drop .it .av { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--line); }
.drop .it .ic { width: 24px; text-align: center; color: var(--accent); flex: none; }
.drop .it .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .it .h { color: var(--muted); font-size: 13px; margin-left: 6px; }
.drop .it .k { margin-left: auto; font: 11px var(--mono); color: var(--faint); white-space: nowrap; padding-left: 8px; }
.drop .hint { font-size: 12px; color: var(--faint); padding: 6px 8px 4px; border-top: 1px solid var(--line); margin-top: 6px; }

main { min-height: 50vh; }

/* A page that takes a moment to load (body.busy, app.js): the old one fades
   and a line runs along the top. */
body.busy main { opacity: .4; transition: opacity .2s; }
body.busy::before { content: ""; position: fixed; z-index: 30; top: 0; left: 0; width: 30vw; height: 2px; background: var(--accent);
  animation: busy 1.2s ease-in-out infinite; }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }
@media (prefers-reduced-motion: reduce) { body.busy::before { width: 100vw; animation: none; } }

/* The top of a page. */
.hero { padding: 36px 0 8px; }
.hero.msg { max-width: 680px; }
.hero.msg .sub p + p { margin-top: 10px; }
.eyebrow { font: 12px var(--mono); color: var(--muted); }
.eyebrow span { white-space: nowrap; }  /* lines break between the facts, not inside one */
.eyebrow a:hover { color: var(--accent); }
h1 { font-size: clamp(34px, 5.5vw, 52px); line-height: 1.05; margin: 10px 0 14px; overflow-wrap: anywhere; }
h1 span { color: var(--accent); }
.bio { color: var(--muted); max-width: 560px; border-left: 2px solid var(--line); padding: 1px 0 1px 12px; white-space: pre-line; overflow-wrap: anywhere; }
.bio .src { display: block; font: 11px var(--mono); color: var(--faint); margin-bottom: 1px; }
.note { background: var(--panel); border-radius: 8px; padding: 14px 16px; color: var(--muted); max-width: 680px; margin-top: 24px; }

/* Signature words as chips: the word, its use count and ratio. */
.sig { margin-top: 22px; }
.sig .lab { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px 5px; font-size: 14px; font-weight: 500; }
.chip small { font: 11px var(--mono); color: var(--muted); font-weight: 400; }
.chip:hover { border-color: var(--accent); }
.chip.more { background: none; color: var(--muted); font-weight: 400; }

/* The closest accounts: an orbit beside the ranked list. */
.near { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 32px 0 0; }
.orbit { position: relative; width: 100%; aspect-ratio: 1; }
.ring { position: absolute; border: 1px dashed var(--line); border-radius: 50%; }
.orbit .o { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; outline: 2px solid var(--bg); transition: transform .12s, outline-color .12s, opacity .12s; }
.orbit .o img, .orbit .o .ph { width: 100%; height: 100%; display: block; background: var(--line); }
.orbit .o.on { transform: translate(-50%, -50%) scale(1.18); outline-color: var(--accent); z-index: 2; }
.orbit.dim .o:not(.on):not(.me) { opacity: .35; }
.orbit .me { outline: 2px solid var(--accent); outline-offset: 4px; }

.list h2 { font-size: 22px; }
.list .sub { font-size: 13px; margin: 2px 0 10px; }
.row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; padding: 5px 8px; border-radius: 4px; }
.row.on { background: var(--panel); }
.row .r { font: 12px var(--mono); color: var(--muted); text-align: right; line-height: 1.9; }
.row .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm { font-weight: 500; }
.row .hd { color: var(--muted); font-size: 13px; margin-left: 6px; }
.row .ws { grid-column: 2; font: 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.on .nm { color: var(--accent); }
.badge { font: 10px var(--mono); color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; }
.btn { margin-top: 12px; font: 500 14px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.restn { columns: 3 220px; column-gap: 24px; margin-top: 16px; }
.restn a { display: block; padding: 3px 0; font-size: 14px; break-inside: avoid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.restn a span { font: 11px var(--mono); color: var(--muted); display: inline-block; width: 30px; }
.restn a:hover { color: var(--accent); }

section { padding: 56px 0 8px; }
h2 { font-size: 26px; line-height: 1.15; margin-bottom: 4px; }
section > .sub { margin-bottom: 18px; max-width: 720px; }

/* All signature words. */
.words { columns: 4 150px; column-gap: 24px; }
.wr { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.wr .w { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr .u { font: 11px var(--mono); color: var(--muted); margin-left: auto; white-space: nowrap; }
.wr:hover .w { color: var(--accent); }

/* Style statistics, each against every account. */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.st { padding: 14px 0; border-top: 1px solid var(--line); }
.st .hdr { display: flex; justify-content: space-between; align-items: baseline; }
.st .lab { color: var(--muted); font-size: 13px; }
.st .val { font: 500 20px var(--mono); }
.st .say { font-size: 14px; }
.hist { width: 100%; height: 34px; display: block; margin-top: 8px; }
.hist .bar { fill: var(--bar); }
.hist .bar.me { fill: var(--accent); }
.hist .marker { stroke: var(--accent); stroke-width: 1.5; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.clock { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.clock .w { fill: var(--accent); }
.clock .g { stroke: var(--line); fill: none; }
.clock text { fill: var(--muted); font: 10px var(--mono); text-anchor: middle; dominant-baseline: middle; }
.doms { list-style: none; }
.doms li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 13px var(--mono); overflow-wrap: anywhere; }
.doms span { color: var(--muted); }

/* Latest posts, from Bluesky. */
.posts { display: grid; gap: 10px; max-width: 680px; }
.post { background: var(--panel); border-radius: 6px; padding: 16px 18px; display: grid; gap: 10px; min-width: 0; }
.post .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.post .txt a { color: var(--accent); }
.post .txt a:hover { text-decoration: underline; }
.post .meta { font: 12px var(--mono); color: var(--muted); }
.post .meta:hover { color: var(--ink); }
.pics { display: grid; gap: 4px; border-radius: 6px; overflow: hidden; }
.pics.n2, .pics.n3, .pics.n4 { grid-template-columns: 1fr 1fr; }
.pics img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; background: var(--line); }
.pics.n1 img { width: auto; max-width: 100%; height: auto; }
.pics.n2 img, .pics.n3 img, .pics.n4 img { aspect-ratio: 1; }
.pics.n3 a:first-child { grid-row: span 2; }
.pics.n3 a:first-child img { aspect-ratio: auto; }
.vid { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--line); min-height: 48px; }
.vid img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.vid span { position: absolute; left: 10px; bottom: 10px; font: 12px var(--mono); background: #000b; padding: 3px 8px; border-radius: 4px; }
.ext { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 8px; min-width: 0; }
.ext img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; background: var(--line); }
.ext span { min-width: 0; }
.ext b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext small { font: 11px var(--mono); color: var(--muted); }
.ext:hover { border-color: var(--accent); }
.quote { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 14px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.quote .qa { display: block; color: var(--ink); font-weight: 500; white-space: normal; }
.quote small { font-weight: 400; color: var(--muted); }
.quote:hover { border-color: var(--accent); }
.quote.gone { font: 12px var(--mono); }
.gate { justify-self: start; font: 13px var(--sans); color: var(--muted); background: var(--panel2); border: 1px dashed var(--bar); border-radius: 6px; padding: 18px 16px; cursor: pointer; text-align: left; }
.gate:hover { border-color: var(--accent); color: var(--ink); }
.posts .more { font-size: 13px; color: var(--muted); padding: 4px 2px; }
.posts .more:hover { color: var(--accent); }

/* Word search results. */
.lead { max-width: 680px; }
.capnote { font-size: 13px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 12px; max-width: 680px; margin-top: 14px; }
.legend { font-size: 12px; color: var(--faint); margin: 18px 0 6px; }
.sr { display: grid; grid-template-columns: 30px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 8px; border-bottom: 1px solid var(--line); border-radius: 4px; }
.sr:hover { background: var(--panel); }
.sr .r { font: 12px var(--mono); color: var(--muted); text-align: right; }
.sr .av { width: 36px; height: 36px; border-radius: 50%; background: var(--line); display: block; }
.sr .who { min-width: 0; }
.sr .nm { font-weight: 500; }
.sr .hd { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr .rt { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sr .rt span { font: 12px var(--mono); color: var(--muted); background: var(--panel2); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.sr .rt b { color: var(--ink); font-weight: 500; }

/* The landing page: its own big search box instead of the nav bar's. */
body.landing nav .omni { display: none; }
.front { max-width: 840px; padding-top: 56px; }
.front .sub { max-width: 720px; }
.omni.big { margin: 26px 0 0; width: 100%; max-width: 720px; }
.omni.big input { font-size: 17px; padding: 13px 16px; border-radius: 8px; }
.omni.big .drop { left: 0; right: auto; width: 100%; }
.try { margin-top: 14px; color: var(--muted); font-size: 14px; }
.try a { color: var(--ink); white-space: nowrap; }
.facts { margin-top: 28px; font: 12px var(--mono); color: var(--muted); min-height: 1.6em; }
.how dl { display: grid; grid-template-columns: 210px minmax(0, 1fr); max-width: 820px; margin-top: 14px; }
.how dt, .how dd { padding: 12px 0; border-top: 1px solid var(--line); }
.how dt { font-weight: 500; padding-right: 24px; }
.how dd { color: var(--muted); }

/* The privacy policy (assets/privacy.html): running text, so the full ink. */
.prose { max-width: 680px; padding-top: 36px; }
.prose h1 { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font: 12px var(--mono); margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.prose p, .prose ul, .prose ol { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 4px; }
.prose a { border-bottom: 1px solid var(--accent); }
.prose a:hover { color: var(--accent); }

footer { margin-top: 64px; padding: 20px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer a { color: var(--ink); }

@media (max-width: 760px) {
  .near, .pair { grid-template-columns: 1fr; }
  .near { gap: 16px; }
  .orbit { max-width: 420px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .sr { grid-template-columns: 24px 32px minmax(0, 1fr); }
  .sr .av { width: 32px; height: 32px; }
  .sr .rt { grid-column: 3; justify-content: flex-start; }
}
@media (max-width: 560px) {
  nav { flex-wrap: wrap; }
  .front { padding-top: 32px; }
  .how dl { grid-template-columns: 1fr; }
  .how dd { border-top: 0; padding-top: 0; }
  .omni { width: 100%; }
  .drop { width: 100%; }
  .chip:nth-child(n+9):not(.more) { display: none; }  /* 8 on a phone; the rest are a tap away */
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .stats { grid-template-columns: 1fr; }
}
