/* LintasPay design tokens, shared by every page (homepage, docs, swagger, portal, ops, cashier).
   Source of truth: the "LintasPay Website / Docs / Merchant Login" designs (Claude Design project "Lintaspay logo
   design"). Light by default; dark follows prefers-color-scheme unless <html data-theme="light|dark"> forces one
   (the theme switch stores the choice in localStorage). Fonts are self-hosted (SIL OFL 1.1, see /ui/fonts/).
   Colours are the designs' oklch() values converted to sRGB hex, so older Android WebViews (no oklch) render them too. */

@font-face {
  font-family: "Sora";
  src: url("/ui/fonts/sora-v5.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/ui/fonts/jetbrains-mono-v5.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --lp-paper: #f6f5f2;
  --lp-surface: #ffffff;
  --lp-ink: #15171c;
  --lp-ink2: #45474d;
  --lp-ink3: #55575d;
  --lp-body: #33353a;
  --lp-faint: #696b70; /* 4.89:1 on paper, 5.33:1 on surface (AA for small text) */
  --lp-line: #e2e0db;
  --lp-line2: #d6d4cf;
  --lp-code: #f1efeb;
  --lp-sel: #e9e7e2;
  --lp-deep: #15171c;
  --lp-btn: #15171c;
  --lp-btn-fg: #ffffff;
  --lp-hdr: rgba(246, 245, 242, .92);
  --lp-acc: #ed4c3a;
  --lp-acc-text: #be2517;
  --lp-cb: #23588a;
  --lp-ok-bg: #d1f2d7;
  --lp-ok-fg: #115629;
  --lp-warn-bg: #fee9be;
  --lp-warn-fg: #784900;
  --lp-callout: #ffece8;
  --lp-callout-fg: #4a2a22;
  --lp-font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --lp-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --lp-paper: #0f1013;
    --lp-surface: #16181c;
    --lp-ink: #eceae5;
    --lp-ink2: #b4b6bb;
    --lp-ink3: #a0a2a8;
    --lp-body: #c6c8cd;
    --lp-faint: #8a8c91;
    --lp-line: #25282e;
    --lp-line2: #34373e;
    --lp-code: #23262c;
    --lp-sel: #23262c;
    --lp-deep: #1c1f24;
    --lp-btn: #eceae5;
    --lp-btn-fg: #15171c;
    --lp-hdr: rgba(15, 16, 19, .88);
    --lp-acc-text: #fb8371;
    --lp-cb: #79b0e8;
    --lp-ok-bg: #14361d;
    --lp-ok-fg: #89da9b;
    --lp-warn-bg: #432f07;
    --lp-warn-fg: #efcc83;
    --lp-callout: #321a16;
    --lp-callout-fg: #f1d7d2;
  }
}

/* Forced dark: keep in sync with the block above. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --lp-paper: #0f1013;
  --lp-surface: #16181c;
  --lp-ink: #eceae5;
  --lp-ink2: #b4b6bb;
  --lp-ink3: #a0a2a8;
  --lp-body: #c6c8cd;
  --lp-faint: #8a8c91;
  --lp-line: #25282e;
  --lp-line2: #34373e;
  --lp-code: #23262c;
  --lp-sel: #23262c;
  --lp-deep: #1c1f24;
  --lp-btn: #eceae5;
  --lp-btn-fg: #15171c;
  --lp-hdr: rgba(15, 16, 19, .88);
  --lp-acc-text: #fb8371;
  --lp-cb: #79b0e8;
  --lp-ok-bg: #14361d;
  --lp-ok-fg: #89da9b;
  --lp-warn-bg: #432f07;
  --lp-warn-fg: #efcc83;
  --lp-callout: #321a16;
  --lp-callout-fg: #f1d7d2;
}

/* The lintas/pay wordmark: <span class="lp-wm">lintas<span class="lp-sl">/</span>pay</span> */
.lp-wm { font-family: var(--lp-font); font-weight: 700; letter-spacing: -0.04em; color: inherit; white-space: nowrap; }
.lp-sl { font-family: var(--lp-mono); font-weight: 600; color: var(--lp-acc); margin: 0 1px; }
