/* seed.css: the shared look of the seed pages. dark by default (maxi's theme), light on request.
   colours by digit: 0 green, 1 yellow, 2 peach. white is the highlight and nothing else. */
:root {
  color-scheme: dark light;
  --bg: #1a1917; --ink: #e8e6e0; --grey: #9a988f; --faint: #3a3935; --off: #232220; --dark: #121110;
  --c0: #4f8a47; --c1: #5c5023; --c2: #6b4128;          /* fills: green, yellow, peach */
  --g0: #6fae63; --g1: #d6b043; --g2: #e0814c;          /* the same, bright, for lines and points */
  --hi: #ffffff;                                         /* the highlight */
  --purple: #8e6fd1; --yg: #9ccf5a; --seat: #e0a24c;     /* 0L purple, 0R yellow green, the seat orange */
  --past: #5b93e0; --future: #e08a52;                    /* past cool, future warm */
  --red: #d9534f; --yellow: #e6c84a; --green: #5cb85c; --cyan: #4fc1d9; --blue: #4a6fe3; --magenta: #c45bd6;
  --mono: ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
  --sans: system-ui, "DejaVu Sans", sans-serif;
}
:root[data-theme="light"] {
  --bg: #ffffff; --ink: #222222; --grey: #8a877f; --faint: #d8d4ca; --off: #f3f1ec; --dark: #cfcbc1;
  --c0: #79b06f; --c1: #f1df9f; --c2: #f2c4a3;
  --g0: #3f8a35; --g1: #c9a02a; --g2: #cf6f3a;
  --hi: #111111;
}
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
a { color: var(--g1); }
.mono, code, .digits { font-family: var(--mono); }

/* the bar every page opens with: back to the index, the page's name, its tabs */
#bar { display: flex; gap: 18px; align-items: baseline; padding: 10px 18px; border-bottom: 1px solid var(--faint); flex-wrap: wrap; }
#bar .home { color: var(--grey); text-decoration: none; font-family: var(--mono); }
#bar h1 { font-size: 17px; font-weight: 600; margin: 0; }
#bar .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
#bar .tab { font: 13px var(--mono); color: var(--grey); background: none; border: 1px solid var(--faint); border-radius: 4px; padding: 3px 9px; cursor: pointer; }
#bar .tab.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
#bar .keys { margin-left: auto; font: 12px var(--mono); color: var(--grey); }

main { padding: 18px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.panel { display: flex; flex-direction: column; gap: 8px; }
.note { color: var(--grey); font-size: 13px; max-width: 46ch; line-height: 1.45; }
.big { font: 32px var(--mono); letter-spacing: 0.08em; }
.small { font: 12px var(--mono); color: var(--grey); }

/* a trit written large over its two rails, small */
.trit { display: inline-flex; flex-direction: column; align-items: center; margin: 0 3px; }
.trit .t { font: 26px var(--mono); }
.trit .b { font: 11px var(--mono); color: var(--grey); }

/* digit colours for svg and html */
.d0 { fill: var(--c0); background: var(--c0); } .d1 { fill: var(--c1); background: var(--c1); } .d2 { fill: var(--c2); background: var(--c2); }
.p0 { fill: var(--g0); stroke: var(--g0); color: var(--g0); } .p1 { fill: var(--g1); stroke: var(--g1); color: var(--g1); } .p2 { fill: var(--g2); stroke: var(--g2); color: var(--g2); }
.cur { fill: none; stroke: var(--hi); stroke-width: 3; pointer-events: none; }
svg text { font-family: var(--mono); fill: var(--ink); }
svg .lab { font-size: 14px; fill: var(--grey); }
table.grid { border-collapse: collapse; font: 13px var(--mono); }
table.grid td, table.grid th { padding: 3px 8px; text-align: center; }
table.grid th { color: var(--grey); font-weight: normal; }
table.grid tr.on td { outline: 2px solid var(--hi); outline-offset: -2px; }

/* the self-test line every page prints when opened with ?selftest */
#test { font: 12px var(--mono); color: var(--grey); padding: 6px 18px; white-space: pre-wrap; }
