/* MAQPNA design tokens v2.1.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(1.8rem, 3.4vw, 2.6rem);
  --text-display: clamp(2.4rem, 5.6vw, 4.1rem);
  --text-hero: clamp(2.7rem, 7.4vw, 5.9rem);
  --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: 14px;
  --radius-pill: 999px;
  --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: 1160px;
  --prose-width: 760px;
  --topbar-height: 56px;
  --brand: #383838;
  --bg: #f7f7f6;
  --surface: #ffffff;
  --surface-subtle: #efefed;
  --surface-sunk: #efefed;
  --text: #262626;
  --text-2: #4a4a4a;
  --text-3: #636363;
  --line: #e2e2df;
  --line-strong: #c9c9c5;
  --line-input: #8a8a85;
  --accent: #0f766e;
  --accent-hover: #0b5e58;
  --accent-soft: #e6f2f0;
  --on-accent: #ffffff;
  --focus: #0f766e;
  --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: #ececea;
  --data-1: #2563eb;
  --data-2: #7c3aed;
  --data-3: #0f766e;
  --code-bg: #1f1f1f;
  --code-line: #333333;
  --code-text: #e6e6e6;
  --code-dim: #a3a3a3;
  --code-key: #7dd3fc;
  --code-str: #86efac;
  --code-err: #ff9aa9;
  --backdrop: rgba(10, 10, 10, 0.5);
  --bg-alt: #f0f0ee;
  --surface-glass: rgba(247, 247, 246, 0.8);
  --grad-1: #0f766e;
  --grad-2: #1d4ed8;
  --grad-3: #6d28d9;
  --glow-accent: rgba(15, 118, 110, 0.16);
  --glow-blue: rgba(37, 99, 235, 0.10);
  --glow-violet: rgba(109, 40, 217, 0.10);
  --grid-line: rgba(38, 38, 38, 0.07);
  --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: #121212;
    --surface: #1b1b1b;
    --surface-subtle: #242424;
    --surface-sunk: #0d0d0d;
    --text: #ededed;
    --text-2: #c2c2c2;
    --text-3: #9b9b9b;
    --line: #2a2a2a;
    --line-strong: #3a3a3a;
    --line-input: #6e6e6e;
    --accent: #5eead4;
    --accent-hover: #99f6e4;
    --accent-soft: #15302c;
    --on-accent: #04201c;
    --focus: #5eead4;
    --status-allow: #4cc38a;
    --status-allow-soft: #12291f;
    --status-deny: #ff7085;
    --status-deny-soft: #34161d;
    --on-status-deny: #1a0a0e;
    --status-pending: #b9a3ff;
    --status-pending-soft: #251c3d;
    --status-warn: #f0b84a;
    --status-warn-soft: #2d2412;
    --status-info: #8ab4ff;
    --status-info-soft: #14213a;
    --status-neutral: #a8a8a8;
    --status-neutral-soft: #262626;
    --data-1: #60a5fa;
    --data-2: #a78bfa;
    --data-3: #5eead4;
    --code-bg: #0b0b0b;
    --code-line: #262626;
    --code-text: #e6e6e6;
    --code-dim: #a3a3a3;
    --code-key: #7dd3fc;
    --code-str: #86efac;
    --code-err: #ff9aa9;
    --backdrop: rgba(0, 0, 0, 0.6);
    --bg-alt: #0e0e0e;
    --surface-glass: rgba(18, 18, 18, 0.72);
    --grad-1: #5eead4;
    --grad-2: #8ab4ff;
    --grad-3: #b9a3ff;
    --glow-accent: rgba(94, 234, 212, 0.15);
    --glow-blue: rgba(96, 165, 250, 0.11);
    --glow-violet: rgba(167, 139, 250, 0.12);
    --grid-line: rgba(237, 237, 237, 0.045);
    --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: #121212;
  --surface: #1b1b1b;
  --surface-subtle: #242424;
  --surface-sunk: #0d0d0d;
  --text: #ededed;
  --text-2: #c2c2c2;
  --text-3: #9b9b9b;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --line-input: #6e6e6e;
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-soft: #15302c;
  --on-accent: #04201c;
  --focus: #5eead4;
  --status-allow: #4cc38a;
  --status-allow-soft: #12291f;
  --status-deny: #ff7085;
  --status-deny-soft: #34161d;
  --on-status-deny: #1a0a0e;
  --status-pending: #b9a3ff;
  --status-pending-soft: #251c3d;
  --status-warn: #f0b84a;
  --status-warn-soft: #2d2412;
  --status-info: #8ab4ff;
  --status-info-soft: #14213a;
  --status-neutral: #a8a8a8;
  --status-neutral-soft: #262626;
  --data-1: #60a5fa;
  --data-2: #a78bfa;
  --data-3: #5eead4;
  --code-bg: #0b0b0b;
  --code-line: #262626;
  --code-text: #e6e6e6;
  --code-dim: #a3a3a3;
  --code-key: #7dd3fc;
  --code-str: #86efac;
  --code-err: #ff9aa9;
  --backdrop: rgba(0, 0, 0, 0.6);
  --bg-alt: #0e0e0e;
  --surface-glass: rgba(18, 18, 18, 0.72);
  --grad-1: #5eead4;
  --grad-2: #8ab4ff;
  --grad-3: #b9a3ff;
  --glow-accent: rgba(94, 234, 212, 0.15);
  --glow-blue: rgba(96, 165, 250, 0.11);
  --glow-violet: rgba(167, 139, 250, 0.12);
  --grid-line: rgba(237, 237, 237, 0.045);
  --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; }
}
