/* Futures & Pastures — the page is a character grid, generated by build.swift.
   This sheet only colors cells; it never changes the layout of the grid. */
:root {
  color-scheme: light dark;
  --bg:     #f4f1ea;
  --fg:     #1a1916;
  --dim:    #77736a;
  --line:   #b9b4a8;
  --accent: var(--fp-brown);
  --barbg:  #1a1916;
  --barfg:  #f4f1ea;
  --keybg:  #d9d4c7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #0d0d0b;
    --fg:     #e6e2d8;
    --dim:    #8b877d;
    --line:   #4a4740;
    --accent: var(--fp-brown-dark);
    --barbg:  #e6e2d8;
    --barfg:  #0d0d0b;
    --keybg:  #2c2a26;
  }
}

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body { display: flex; justify-content: center; padding: 16px; }
main { max-width: 100%; }

.screen {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", Consolas, monospace;
  font-variant-ligatures: none;
  line-height: 1.17;
  white-space: pre;
  -webkit-text-size-adjust: 100%;
}
/* Size the font so the grid exactly fits: 80 or 44 cells at ~0.602em each. */
.w80 { font-size: min(15px, calc((100vw - 32px) / 48.2)); }
.w44 { font-size: min(15px, calc((100vw - 32px) / 26.5)); display: none; }
@media (max-width: 700px) {
  .w80 { display: none; }
  .w44 { display: block; }
}

.b    { color: var(--line); }
.ba   { color: var(--accent); }
.t    { color: var(--accent); font-weight: 700; }
.dim  { color: var(--dim); }
.acc  { color: var(--accent); }
.bold { font-weight: 700; }
.logo { color: var(--accent); font-weight: 700; }
/* neofetch swatches: original logo ink, both browns, the greys, paper */
.sw0 { color: #1b1b1b; }
.sw1 { color: var(--fp-brown); }
.sw2 { color: var(--fp-brown-dark); }
.sw3 { color: var(--dim); }
.sw4 { color: var(--line); }
.sw5 { color: #f4f1ea; }
.bar  { background: var(--barbg); color: var(--barfg); }
.key  { color: var(--fg); }
.kl   { background: var(--keybg); color: var(--fg); }

a { color: inherit; text-decoration: none; }
a:not(.kl) { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
a.kl:hover { background: var(--accent); color: var(--bg); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
