/* tagcheck — a standings board.
 *
 * The other apps in this portfolio are a column of cards, a table of
 * attributes, an appraisal note, or a dark monitor. This one has exactly ONE
 * number per row and the design's only job is to make that number readable
 * across the room and say, without a legend, whether it is any good. Hence the
 * oversized numeral, and a coloured edge per row rather than a status word.
 *
 * script-src 'none' and style-src 'self': no client JavaScript, no inline style
 * attribute anywhere.
 */

:root {
  /* A board hung on a wall: a tinted canvas with white rows sitting on top of
     it. The other apps in the portfolio are uniform surfaces -- cream paper,
     plain white, a dark monitor -- so the two-tone split is this one's. */
  --page: #eef1ea;
  --panel: #ffffff;
  --ink: #1b1c19;
  --soft: #5d6058;
  --faint: #82877c;
  --line: #d6dbd0;

  --top: #0d7a3e;      /* first screen */
  --top-bg: #eaf6ee;
  --page1: #9a6b0c;    /* first page */
  --page1-bg: #fbf3e2;
  --deep: #a34418;     /* found, far down */
  --deep-bg: #fbeee7;
  --unfound: #7a2230;  /* not in the first N */
  --unfound-bg: #fbeaec;

  --link: #245ea8;
  --num: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
}

h1 { font-size: 26px; font-weight: 640; line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 20ch; }
h2 { font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 26px 0 7px; }
p { margin: 0 0 12px; }
a { color: var(--link); }

main { max-width: 720px; margin: 0 auto; padding: 22px 18px 60px; }

/* --------------------------------------------------------------- chrome */

.head { display: flex; align-items: baseline; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.logo { font-family: var(--num); font-size: 16px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; margin-right: auto; }
.head nav a { font-size: 12px; color: var(--faint); text-decoration: none; margin-left: 14px; }
.head nav a:hover { color: var(--ink); }

.said { margin: 0; padding: 9px 18px; font-size: 13px; background: #e3e8dd; color: var(--soft); border-bottom: 1px solid var(--line); }
.said.ok { background: var(--top-bg); color: var(--top); }
.said.no { background: var(--unfound-bg); color: var(--unfound); }

/* ---------------------------------------------------------------- board */

.board { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left-width: 5px;
  padding: 13px 15px; margin-bottom: 8px;
}
/* The edge is the legend. */
.b-top     { border-left-color: var(--top); }
.b-page1   { border-left-color: var(--page1); }
.b-deep    { border-left-color: var(--deep); }
.b-unfound { border-left-color: var(--unfound); }

.pos { display: flex; flex-direction: column; gap: 2px; }
.n { font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.b-top .n     { color: var(--top); }
.b-page1 .n   { color: var(--page1); }
.b-deep .n    { color: var(--deep); }
.b-unfound .n { color: var(--unfound); }

.move { font-size: 11px; line-height: 1.35; }
.move.up::before   { content: "\25B2 "; }
.move.down::before { content: "\25BC "; }
.move.up { color: var(--top); }
.move.down { color: var(--deep); }
.move.flat { color: var(--faint); }

.what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phrase { font-size: 15px; font-weight: 600; }
.listing { font-size: 13px; color: var(--soft); text-decoration: none; }
a.listing:hover { text-decoration: underline; }
.sub { font-size: 11px; color: var(--faint); }

.sample { margin: 20px 0; }
.sample .row { margin-bottom: 8px; }

/* ----------------------------------------------------------------- form */

.add { background: var(--panel); border: 1px solid var(--line); padding: 15px; margin-bottom: 20px; }
.cap { display: block; font-family: var(--num); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
label { display: block; font-size: 12px; color: var(--soft); margin-bottom: 10px; }
input[type="text"] { display: block; width: 100%; margin-top: 3px; padding: 8px 10px; font: inherit; font-size: 14px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
input:focus-visible { outline: none; border-color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.go { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; cursor: pointer;
  color: var(--page); background: var(--ink); border: 0; border-radius: 3px; text-decoration: none; display: inline-block; }
.go:hover { background: #34362f; }
.link { font: inherit; font-family: var(--num); font-size: 11px; background: none; border: 0; padding: 0;
  color: var(--link); cursor: pointer; text-decoration: underline; }
.link.quiet { color: var(--faint); }
.inline { display: inline; margin: 0; }

.count { font-family: var(--num); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.lede { font-size: 16px; color: var(--soft); max-width: 56ch; }
.aside { font-size: 12px; color: var(--faint); max-width: 62ch; }
.crumb { font-family: var(--num); font-size: 11px; }
.enter { margin: 22px 0 8px; }
.blank { padding: 20px; border: 1px dashed var(--line); color: var(--soft); }

/* ------------------------------------------------------------ documents */

/* Documents read as sheets pinned to the board, not as more board. */
main.doc { background: var(--panel); border: 1px solid var(--line);
  padding: 26px 28px 34px; margin: 22px auto 60px; }
.doc h1 { max-width: none; }
.doc h2 { font-size: 15px; font-weight: 640; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 26px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 19px; }
.doc code { font-family: var(--num); font-size: 0.88em; background: #e3e8dd; padding: 1px 5px; }
.doc .when { font-family: var(--num); font-size: 12px; color: var(--faint); margin-top: -8px; }

/* --------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); background: var(--panel); padding: 17px 18px; }
.foot a { font-size: 12px; color: var(--faint); text-decoration: none; margin-right: 16px; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 9px 0 0; font-size: 11px; color: var(--faint); max-width: 66ch; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
  .n { font-size: 30px; }
  h1 { font-size: 22px; }
}
