/* Stacreus design tokens + shared components.
   Signature pink from the original Stacreus brain logo, with a complementary teal accent.
   Type: Outfit (headings) + DM Sans (body). */
:root {
  --porcelain: #f7f6fa;
  --paper: #ffffff;
  --ink: #1b1a2e;
  --ink-2: #4c4a63;
  --ink-3: #6f6c87;
  --line: #e6e3ee;
  --line-2: #d3cfdf;
  --pink: #e5487f;          /* logo / brand mark */
  --brand: #d6336c;         /* buttons and links (AA contrast with white) */
  --brand-2: #c2255c;
  --brand-soft: #fdeaf1;
  --accent: #13a39b;        /* teal: highlights, progress, graphs */
  --accent-ink: #0b7b75;    /* teal text on light backgrounds */
  --accent-soft: #e0f5f3;
  --stage: #16142b;         /* lesson / video background */
  --stage-2: #221e40;
  --good: #0b7b75;
  --good-soft: #e0f5f3;
  --bad: #c0362c;
  --bad-soft: #fbe9e7;
  --display: "Outfit", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; max-width: 100%; }
mjx-container svg { display: inline; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: var(--paper); color: var(--ink); font-weight: 550; font-size: 15px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--brand); color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: var(--brand-soft); }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 550; color: var(--ink-2); }
.input, input[type=email], input[type=password], input[type=text], textarea, select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-s);
  background: var(--paper); font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-msg { font-size: 14px; min-height: 20px; margin-top: 8px; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--good); }

.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.tag.free { background: var(--accent-soft); color: var(--accent-ink); }
.tag.muted { background: #eef1f6; color: var(--ink-3); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark:hover { color: var(--ink); }
.wordmark img { width: 34px; height: 34px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
