/* Proof of Trader · Launchpad Radar: the stylesheet every page starts from, served at /site.css.
   Tokens, type, the header row, footer, buttons, fields, cards and tables are the landing page's;
   each page keeps only the rules that are its own, inline, after this file. */

:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb; --surface-2: #f3f3f0;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
  --grid: #e1e0d9; --accent: #2a78d6; --accent-soft: #cde2fb;
  --good: #0ca30c; --good-text: #006300; --good-soft: #e3f6e3;
  --warn: #fab219; --warn-text: #7a5200; --warn-soft: #fff3d6;
  --bad: #d03b3b; --bad-text: #a32626; --bad-soft: #fbe3e3;
  --neutral-soft: #ececea;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222221;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --accent: #3987e5; --accent-soft: #184f95;
    --good-text: #4fd24f; --good-soft: #13331a;
    --warn-text: #ffd15c; --warn-soft: #3a2d0a;
    --bad-text: #ff8080; --bad-soft: #3d1414;
    --neutral-soft: #262625;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222221;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --accent: #3987e5; --accent-soft: #184f95;
  --good-text: #4fd24f; --good-soft: #13331a;
  --warn-text: #ffd15c; --warn-soft: #3a2d0a;
  --bad-text: #ff8080; --bad-soft: #3d1414;
  --neutral-soft: #262625;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header row: icon, "Proof of Trader · page", text links to the other pages */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; row-gap: 6px; }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand .who { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand a { color: inherit; text-decoration: none; }
.brand .topnav { margin-left: auto; text-align: right; line-height: 1.8; }
.brand .topnav a, .brand .topnav button { color: var(--accent); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.brand .topnav a:hover, .brand .topnav button:hover { text-decoration: underline; }

/* type */
main { max-width: 1140px; margin: 0 auto; padding: 18px 16px 64px; }
h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.1; letter-spacing: -.015em; margin: 22px 0 10px; }
h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 70ch; margin: 0 0 22px; }
.status, .note, .notes { color: var(--muted); font-size: 13.5px; }
code { font-family: var(--mono); font-size: 13.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }
pre { background: var(--surface-2); border: 1px solid var(--grid); border-radius: 12px; padding: 12px 14px; overflow-x: auto; font: 13.5px/1.5 var(--mono); }
pre code { background: none; padding: 0; font-size: inherit; }
.mono { font-family: var(--mono); font-size: 13.5px; }

/* buttons and fields */
.btn, button.primary, button.ghost { display: inline-block; font: inherit; font-weight: 600; line-height: 1.3; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--grid); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost, button.ghost { font-weight: 500; color: var(--ink-2); }
.btn.small, button.small { font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.btn:hover, button.primary:hover, button.ghost:hover { filter: brightness(1.05); }
input[type="text"], input[type="number"], input[type="search"], select { font: inherit; padding: 10px 12px; border: 2px solid var(--grid); border-radius: 12px; background: var(--surface); color: var(--ink); min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--accent); }

/* cards, tiles, tables */
.card { background: var(--surface); border: 1px solid var(--grid); border-radius: 16px; padding: 18px 18px 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--grid); border-radius: 14px; padding: 14px 16px; }
.tile b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 13px; }
.wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--good-text); }
.neg { color: var(--bad-text); }

/* footer */
footer, .site-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--grid); color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.site-foot { max-width: 1140px; margin: 24px auto 0; padding: 18px 16px 40px; }
