@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;700;800&family=Literata:opsz,wght@7..72,400;7..72,600&family=Red+Hat+Mono:wght@500&display=swap");

/* Weirdly Cited tokens. Every colour, font and spacing value lives here. */
:root {
  color-scheme: light dark;
  /* paper: the source's world */
  --paper: #f7f6f2;
  --sheet: #ffffff;
  --ink: #16171b;
  --muted: #565863;
  --rule: #d9d6cc;
  --chip: #ecebe5;
  /* screen: the Short's world (dark in both schemes) */
  --screen: #111216;
  --screen-2: #1c1d23;
  --screen-ink: #f3f2ee;
  --screen-muted: #b4b5bf;
  --screen-rule: #2d2f37;
  --caption: #ffffff;
  --caption-edge: #000000;
  /* the highlight: where a claim lands in its source */
  --hl: #e2d1ff;
  --hl-ink: #16171b;
  --hl-strong: #c7a6ff;
  --thread: #7c45e6;
  --accent: #5b23c4;
  --accent-ink: #ffffff;
  --accent-hover: #4a1aa6;
  --focus: #5b23c4;
  --shade: rgba(17, 18, 22, 0.62);
  --clear: rgba(0, 0, 0, 0);
  --shadow: 0 1px 0 rgba(22, 23, 27, 0.06), 0 18px 40px -22px rgba(22, 23, 27, 0.35);

  --f-ui: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --f-src: "Literata", Georgia, "Times New Roman", serif;
  --f-mono: "Red Hat Mono", ui-monospace, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: 16px;
  --radius: 10px;
  --radius-lg: 18px;
  --wrap: 1240px;
  --rail: 380px;
  --bar-h: 64px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15161a;
    --sheet: #1d1f24;
    --ink: #ecebe6;
    --muted: #a7a8b2;
    --rule: #30323a;
    --chip: #24262c;
    --screen: #0a0b0d;
    --screen-2: #17181d;
    --screen-rule: #26282f;
    --hl: #4a2c86;
    --hl-ink: #ffffff;
    --hl-strong: #c4a8ff;
    --thread: #a582ff;
    --accent: #b99bff;
    --accent-ink: #15161a;
    --accent-hover: #cdb6ff;
    --focus: #b99bff;
    --shade: rgba(0, 0, 0, 0.7);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  --paper: #15161a;
  --sheet: #1d1f24;
  --ink: #ecebe6;
  --muted: #a7a8b2;
  --rule: #30323a;
  --chip: #24262c;
  --screen: #0a0b0d;
  --screen-2: #17181d;
  --screen-rule: #26282f;
  --hl: #4a2c86;
  --hl-ink: #ffffff;
  --hl-strong: #c4a8ff;
  --thread: #a582ff;
  --accent: #b99bff;
  --accent-ink: #15161a;
  --accent-hover: #cdb6ff;
  --focus: #b99bff;
  --shade: rgba(0, 0, 0, 0.7);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}
