/* ============ THE HOUSE BRAND ============
 *
 * ari3izseries, in one stylesheet, shared by every tool in the suite. A tool's own
 * app.css is appended to this at build time, so a brand change lands everywhere in one
 * commit rather than being re-typed per app and drifting.
 *
 * The colour decisions here were computed, not chosen by eye: the accent is separated
 * from the categorical chart palette by lightness in light mode and by chroma in dark,
 * and every ink passes WCAG AA on both grounds. test/brand.test.mjs re-checks the maths
 * on every run, so a retune that breaks contrast fails the build rather than shipping.
 */
:root{
  color-scheme: light;
  --surface-1:#fcfcfb; --page:#f9f9f7;
  --ink-1:#0b0b0b; --ink-2:#52514e; --ink-3:#74726b;
  --grid:#e1e0d9; --baseline:#c3c2b7; --border:rgba(11,11,11,0.10);
  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100;
  --s5:#e87ba4; --s6:#008300; --s7:#4a3aa7; --s8:#e34948;
  --other:#c3c2b7;
  --good:#087a08; --warning:#fab219; --serious:#ec835a; --critical:#d03b3b;
  --delta-up:#006300; --delta-down:#d03b3b;
  --neutral-mid:#f0efec;
  --accent:#8F3620; --accent-ink:#ffffff; --sun:#F2A93B; --live:#006300;
}
@media (prefers-color-scheme: dark){
  :root:where(:not([data-theme="light"])){
    color-scheme: dark;
    --surface-1:#1a1a19; --page:#0d0d0d;
    --ink-1:#ffffff; --ink-2:#c3c2b7; --ink-3:#898781;
    --grid:#2c2c2a; --baseline:#383835; --border:rgba(255,255,255,0.10);
    --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500;
    --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
    --other:#52514e;
    --good:#0ca30c; --delta-up:#0ca30c; --delta-down:#e35d5d; --critical:#e35d5d;
    --neutral-mid:#383835;
    --accent:#E3BCA8; --accent-ink:#14110F; --sun:#F2A93B; --live:#3fbf5f;
  }
}
:root[data-theme="dark"]{
  color-scheme: dark;
  --surface-1:#1a1a19; --page:#0d0d0d;
  --ink-1:#ffffff; --ink-2:#c3c2b7; --ink-3:#898781;
  --grid:#2c2c2a; --baseline:#383835; --border:rgba(255,255,255,0.10);
  --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500;
  --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
  --other:#52514e;
  --good:#0ca30c; --delta-up:#0ca30c; --delta-down:#e35d5d; --critical:#e35d5d;
  --neutral-mid:#383835;
  --accent:#E3BCA8; --accent-ink:#14110F; --sun:#F2A93B; --live:#3fbf5f;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--page); color:var(--ink-1);
  font-size:14px; line-height:1.45;
}

/* ---- links and controls ---- */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button, select, input[type="text"], input[type="number"]{
  font:inherit;color:var(--ink-1);background:var(--surface-1);
  border:1px solid var(--border);border-radius:8px;padding:6px 11px;
}
button{cursor:pointer}
button:hover{border-color:var(--baseline)}
button.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-weight:550}
button.ghost{background:transparent}
button:disabled{opacity:.5;cursor:default}

/* ---- house brand: ari3izseries ----
   The sun is a flat disc, no rays: it belongs to Flat Sun and is an identity mark only.
   It is never a data colour, and nothing is ever set in text on top of it. */
.sun{display:inline-block;width:.62em;height:.62em;border-radius:50%;background:var(--sun);
  margin-right:.42em;vertical-align:baseline;flex:none}
h1 .sun{width:.5em;height:.5em;margin-right:.34em}
.house-line{font-size:11px;letter-spacing:.14em;color:var(--ink-3);margin-bottom:10px;
  display:flex;align-items:center}
a.house{color:var(--ink-2);border-bottom:1px solid var(--grid)}
a.house:hover{color:var(--accent);border-bottom-color:var(--accent)}
.house-foot{display:grid;grid-template-columns:1.3fr 1.1fr .8fr .9fr;gap:26px;
  margin:44px 0 24px;padding-top:22px;border-top:1px solid var(--grid)}
@media(max-width:980px){.house-foot{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.house-foot{grid-template-columns:1fr;gap:20px}}
.hf-mark{font-size:12px;letter-spacing:.14em;font-weight:600;color:var(--ink-1);
  display:flex;align-items:center;margin-bottom:6px}
.hf-tag{font-size:12.5px;color:var(--ink-2);font-style:italic;margin-bottom:8px;max-width:34ch}
.hf-home{font-size:12px;color:var(--ink-2)}
.hf-home:hover{color:var(--accent)}
.hf-h{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-3);margin-bottom:9px}
.hf-col a,.hf-here{display:block;font-size:13px;color:var(--ink-2);margin-bottom:9px}
.hf-chain{display:block;font-size:11px;color:var(--ink-2);margin-top:2px}
.hf-col a:hover{color:var(--accent)}
.hf-tagchip{font-size:10px;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;
  border-radius:99px;border:1px solid var(--grid);color:var(--ink-2);margin-left:5px}
.hf-tagchip.live{border-color:var(--live);color:var(--live)}
.hf-tagchip.here{border-color:var(--accent);color:var(--accent)}
.hf-tagchip.done{border-color:var(--baseline)}
.hf-home{display:block;margin-bottom:3px}
.hf-note{font-size:11.5px;color:var(--ink-3);line-height:1.5;margin-top:4px;max-width:30ch}

/* ---- shared components ----
   Small pieces every tool in the suite needs, so a card in the mine is the same card as
   a card in Profitboox. */
.card{background:var(--surface-1);border:1px solid var(--border);border-radius:12px;padding:18px 20px;margin-bottom:16px}
.card h3{font-size:13px;font-weight:600;color:var(--ink-2);margin-bottom:12px}
.tbl-scroll{overflow-x:auto}
.warn-inline{font-size:12px;color:var(--ink-2);background:color-mix(in srgb, var(--warning) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--warning) 40%, transparent);border-radius:8px;padding:8px 12px;margin-bottom:14px}
.is-hidden{display:none !important}
.msg{border-radius:8px;padding:9px 13px;font-size:13px;margin-top:12px}
.msg:empty{display:none}
.msg.ok{color:var(--ink-1);background:color-mix(in srgb, var(--live) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--live) 45%, transparent)}
.msg.err{color:var(--ink-1);background:color-mix(in srgb, var(--critical) 10%, transparent);
  border:1px solid color-mix(in srgb, var(--critical) 45%, transparent)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.note{color:var(--ink-2);font-size:13px}
.nobody{color:var(--ink-3);font-size:13px;font-style:italic}


/* The house front page. Tokens, base elements, components and the footer come from
   shared/brand.css; this file is only what the front page adds.
 *
 * The previous page carried its own palette and two Google Fonts. It was also the
 * source the shared brand was drawn from, so most of what it had is already in the
 * tokens: the paper ground, the ink, the sun. The fonts go for the same reason they went
 * from the mine, so the front page can run under a policy that loads nothing from
 * anywhere but itself. */

body.house{font-size:15px;line-height:1.55}
.wrap{max-width:1040px;margin:0 auto;padding:0 24px 40px}

/* ---- beta notice ---- */
.beta{background:var(--ink-1);color:var(--page);font-size:12px;letter-spacing:.04em;text-align:center;
  padding:7px 20px;line-height:1.6}
.beta a{color:var(--sun);text-decoration:none;border-bottom:1px solid color-mix(in srgb, var(--sun) 50%, transparent)}

/* ---- masthead ---- */
.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:22px 0 8px}
.wordmark{display:flex;align-items:center;font-size:13px;font-weight:650;letter-spacing:.16em;color:var(--ink-1);text-decoration:none}
.wordmark:hover{text-decoration:none;color:var(--accent)}
.topnav{display:flex;gap:4px;flex-wrap:wrap}
.topnav a{font-size:13px;color:var(--ink-2);padding:7px 11px;border-radius:8px;text-decoration:none}
.topnav a:hover,.topnav a:focus-visible{background:var(--surface-1);color:var(--ink-1);text-decoration:none;outline:none;box-shadow:inset 0 0 0 1px var(--border)}

/* ---- hero ---- */
.hero{padding:64px 0 40px;max-width:760px}
.eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);margin-bottom:14px}
.hero h1{font-size:clamp(2.2rem,6vw,3.6rem);font-weight:750;letter-spacing:-0.025em;line-height:1.04;color:var(--ink-1)}
.lede{color:var(--ink-2);font-size:16px;max-width:60ch;margin-top:18px}

/* ---- sections ---- */
.block{padding:34px 0 8px;border-top:1px solid var(--grid)}
.block-head{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin-bottom:16px}
.block h2{font-size:1.25rem;font-weight:700;letter-spacing:-0.01em}
.block-head .note{max-width:60ch}

.cards{display:grid;gap:14px}
.cards.three{grid-template-columns:repeat(3,1fr)}
.cards.two{grid-template-columns:repeat(2,1fr)}
@media(max-width:860px){.cards.three{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.cards.three,.cards.two{grid-template-columns:1fr}}

/* ---- cards ----
   The card is the same card as everywhere else in the suite. The only addition is the
   collection's identity colour as a thin band along the top: a mark, never text. */
.hcard{position:relative;display:flex;flex-direction:column;gap:6px;padding:20px 20px 18px;
  background:var(--surface-1);border:1px solid var(--border);border-radius:12px;
  color:var(--ink-1);text-decoration:none;overflow:hidden;min-height:190px;
  transition:border-color .15s, transform .15s}
.hcard:hover,.hcard:focus-visible{border-color:var(--baseline);text-decoration:none;transform:translateY(-2px);outline:none}
.hcard:focus-visible{box-shadow:0 0 0 2px var(--accent)}
.card-tone{position:absolute;left:0;right:0;top:0;height:5px;background:var(--grid)}
.hc-kicker{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.hc-name{font-size:1.15rem;font-weight:700;letter-spacing:-0.01em;margin-top:2px}
.hc-name .hf-tagchip{vertical-align:middle;position:relative;top:-2px}
.hc-blurb{color:var(--ink-2);font-size:13.5px;line-height:1.5;flex:1}
.hc-go{font-size:12.5px;font-weight:600;color:var(--accent);margin-top:8px}
.hcard.tool{border-color:color-mix(in srgb, var(--accent) 35%, var(--border))}
.hcard.tool .card-tone{display:none}
@media(prefers-reduced-motion:reduce){.hcard{transition:none}.hcard:hover{transform:none}}

/* ---- the safety notice ---- */
.safety{margin:34px 0 8px;border:1px dashed color-mix(in srgb, var(--critical) 55%, transparent);
  border-radius:12px;padding:16px 20px}
.safety h3{color:var(--critical);font-size:14px;font-weight:700;margin-bottom:6px}
.safety p{color:var(--ink-2);font-size:13.5px;max-width:78ch}

.card-tone[data-tone="#365033"]{background:#365033}
.card-tone[data-tone="#F5F1E6"]{background:#F5F1E6}
.card-tone[data-tone="#FFD84F"]{background:#FFD84F}