/* MAQPNA design tokens v3.0.0.
   GENERATED by brand/src/build_tokens.py from brand/tokens.json. Do not edit:
   change tokens.json and run `python3 brand/src/build_tokens.py`.
   Copies: brand/tokens.css, site/tokens.css, console/css/tokens.css.
   Dark mode follows prefers-color-scheme; <html data-theme="light|dark">
   overrides it. Fonts: IBM Plex Sans and Mono, SIL OFL 1.1 (fonts/OFL-*.txt). */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: clamp(2rem, 4.2vw, 3.25rem);
  --text-display: clamp(2.6rem, 6vw, 4.6rem);
  --text-hero: clamp(3rem, 8.4vw, 6.75rem);
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --tracking-display: -0.03em;
  --tracking-heading: -0.015em;
  --tracking-brand: 0.08em;
  --tracking-eyebrow: 0.12em;
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --radius-xl: 24px;
  --duration-instant: 80ms;
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --duration-mark: 1200ms;
  --duration-loader: 1600ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-settle: cubic-bezier(0.34, 1.4, 0.64, 1);
  --max-width: 1200px;
  --prose-width: 760px;
  --topbar-height: 56px;
  --brand: #383838;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f5f5f5;
  --surface-sunk: #f4f4f4;
  --text: #0a0a0a;
  --text-2: #3f3f3f;
  --text-3: #5e5e5e;
  --line: #ebebeb;
  --line-strong: #d6d6d6;
  --line-input: #8a8a8a;
  --accent: #0d7a71;
  --accent-hover: #095e57;
  --accent-soft: #e7f5f3;
  --on-accent: #ffffff;
  --focus: #0d7a71;
  --status-allow: #18794e;
  --status-allow-soft: #e6f4ec;
  --status-deny: #b42339;
  --status-deny-soft: #fbe9ec;
  --on-status-deny: #ffffff;
  --status-pending: #6d28d9;
  --status-pending-soft: #f1ebfd;
  --status-warn: #8a5a00;
  --status-warn-soft: #fdf3dc;
  --status-info: #1d4ed8;
  --status-info-soft: #e8effd;
  --status-neutral: #5c5c5c;
  --status-neutral-soft: #efefef;
  --data-1: #2563eb;
  --data-2: #7c3aed;
  --data-3: #0d7a71;
  --code-bg: #0a0a0a;
  --code-line: #262626;
  --code-text: #e6e6e6;
  --code-dim: #a3a3a3;
  --code-key: #7dd3fc;
  --code-str: #86efac;
  --code-err: #ff9aa9;
  --backdrop: rgba(0, 0, 0, 0.45);
  --bg-alt: #fafafa;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --grad-1: #0d7a71;
  --grad-2: #1d4ed8;
  --grad-3: #6d28d9;
  --glow-accent: rgba(13, 122, 113, 0.12);
  --glow-blue: rgba(37, 99, 235, 0.08);
  --glow-violet: rgba(109, 40, 217, 0.08);
  --grid-line: rgba(10, 10, 10, 0.06);
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.06), 0 1px 3px rgba(20, 20, 20, 0.08);
  --shadow-md: 0 1px 2px rgba(20, 20, 20, 0.06), 0 8px 24px rgba(20, 20, 20, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 20, 20, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #ededed;
    --bg: #000000;
    --surface: #0a0a0a;
    --surface-subtle: #111111;
    --surface-sunk: #050505;
    --text: #f5f5f5;
    --text-2: #b8b8b8;
    --text-3: #8f8f8f;
    --line: #1c1c1c;
    --line-strong: #2e2e2e;
    --line-input: #6b6b6b;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-soft: #062420;
    --on-accent: #00201c;
    --focus: #2dd4bf;
    --status-allow: #4cc38a;
    --status-allow-soft: #0b2117;
    --status-deny: #ff7085;
    --status-deny-soft: #2a0e14;
    --on-status-deny: #1a0a0e;
    --status-pending: #b9a3ff;
    --status-pending-soft: #1c1433;
    --status-warn: #f0b84a;
    --status-warn-soft: #241c0b;
    --status-info: #8ab4ff;
    --status-info-soft: #0e1a30;
    --status-neutral: #a8a8a8;
    --status-neutral-soft: #1a1a1a;
    --data-1: #60a5fa;
    --data-2: #a78bfa;
    --data-3: #2dd4bf;
    --code-bg: #0a0a0a;
    --code-line: #1f1f1f;
    --code-text: #e6e6e6;
    --code-dim: #a3a3a3;
    --code-key: #7dd3fc;
    --code-str: #86efac;
    --code-err: #ff9aa9;
    --backdrop: rgba(0, 0, 0, 0.7);
    --bg-alt: #050505;
    --surface-glass: rgba(0, 0, 0, 0.72);
    --grad-1: #2dd4bf;
    --grad-2: #8ab4ff;
    --grad-3: #b9a3ff;
    --glow-accent: rgba(45, 212, 191, 0.14);
    --glow-blue: rgba(96, 165, 250, 0.10);
    --glow-violet: rgba(167, 139, 250, 0.10);
    --grid-line: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #ededed;
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-subtle: #111111;
  --surface-sunk: #050505;
  --text: #f5f5f5;
  --text-2: #b8b8b8;
  --text-3: #8f8f8f;
  --line: #1c1c1c;
  --line-strong: #2e2e2e;
  --line-input: #6b6b6b;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-soft: #062420;
  --on-accent: #00201c;
  --focus: #2dd4bf;
  --status-allow: #4cc38a;
  --status-allow-soft: #0b2117;
  --status-deny: #ff7085;
  --status-deny-soft: #2a0e14;
  --on-status-deny: #1a0a0e;
  --status-pending: #b9a3ff;
  --status-pending-soft: #1c1433;
  --status-warn: #f0b84a;
  --status-warn-soft: #241c0b;
  --status-info: #8ab4ff;
  --status-info-soft: #0e1a30;
  --status-neutral: #a8a8a8;
  --status-neutral-soft: #1a1a1a;
  --data-1: #60a5fa;
  --data-2: #a78bfa;
  --data-3: #2dd4bf;
  --code-bg: #0a0a0a;
  --code-line: #1f1f1f;
  --code-text: #e6e6e6;
  --code-dim: #a3a3a3;
  --code-key: #7dd3fc;
  --code-str: #86efac;
  --code-err: #ff9aa9;
  --backdrop: rgba(0, 0, 0, 0.7);
  --bg-alt: #050505;
  --surface-glass: rgba(0, 0, 0, 0.72);
  --grad-1: #2dd4bf;
  --grad-2: #8ab4ff;
  --grad-3: #b9a3ff;
  --glow-accent: rgba(45, 212, 191, 0.14);
  --glow-blue: rgba(96, 165, 250, 0.10);
  --glow-violet: rgba(167, 139, 250, 0.10);
  --grid-line: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* Motion: honour the reader's setting everywhere tokens.css is used. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}

/* Brand motion: the animated mark. Markup in brand/maqpna-mark-motion.html.
   .mq-intro draws the mark once (1.2 s); .mq-loader loops it as a loading
   indicator. Under prefers-reduced-motion both show the static mark. */
.mq-mark { display: block; overflow: visible; fill: currentColor; color: var(--brand); }
.mq-pen {
  fill: none; stroke: #fff; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 0;
}
.mq-seal { transform-box: view-box; transform-origin: 95px 100px; }
.mq-intro .mq-pen { stroke-dashoffset: 1; animation: mq-draw 620ms var(--ease-draw) both; }
.mq-intro .mq-pen-r { animation-duration: 770ms; animation-delay: 180ms; }
.mq-intro .mq-seal { animation: mq-seal 300ms var(--ease-settle) 900ms both; }
.mq-loader .mq-pen { stroke-dashoffset: 1; animation: mq-loop var(--duration-loader) var(--ease-draw) infinite; }
.mq-loader .mq-pen-r { animation-delay: 120ms; }
@keyframes mq-draw { to { stroke-dashoffset: 0; } }
@keyframes mq-seal { from { transform: scale(0.94); } to { transform: none; } }
@keyframes mq-loop { 0% { stroke-dashoffset: 1; } 45%, 62% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@media (prefers-reduced-motion: reduce) {
  .mq-intro .mq-pen, .mq-loader .mq-pen, .mq-intro .mq-seal { animation: none; stroke-dashoffset: 0; }
  .mq-loader { opacity: 0.6; }
}
