/* zennia design system, blue light: the one source of the site's tokens.
   Role names and scales follow zennia/zennia-design-system/tokens.css. The
   colours are a blue scheme made for this site: a darker blue as brand (the
   primary action, active state, the symbol's rings), a brighter blue as accent
   (links, focus), sky as the single glow, blue-tinted grounds and navy ink.
   Light only. Onest carries everything, headings included.
   Every text pair below holds 4.5:1; control edges and the focus ring 3:1. */
@font-face {
  font-family: 'Onest';
  src: url(/v1/fonts/Onest-Variable.woff2) format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #f4f7fc;
  --surface-raised: #ffffff;
  --surface-sunken: #e8eef8;
  --line: #d6e0ee;
  --line-strong: #6b7f9e;
  --ink: #0c1a33;
  --ink-muted: #4a5b78;
  --brand: #1e40af;
  --brand-strong: #1e3a8a;
  --brand-soft: #e1e9fb;
  --on-brand: #ffffff;
  --accent: #2158dd;
  --accent-soft: #dde8fd;
  --glow: #38bdf8;
  --on-glow: #082f49;
  --deep: #0b1f4d;
  --on-deep: #eef4ff;
  --positive: #137237;
  --positive-soft: #e5f7eb;
  --caution: #95560a;
  --caution-soft: #fbefd5;
  --critical: #b91c1c;
  --critical-soft: #fde2e2;
  --link: var(--accent);
  --focus: var(--accent);
  --shadow-sm: 0 1px 2px #0c1a330f, 0 1px 3px #0c1a330d;
  --shadow-md: 0 6px 16px -4px #0c1a331f, 0 2px 4px #0c1a3314;
  --shadow-lg: 0 24px 48px -12px #0c1a3333, 0 4px 12px #0c1a3314;
  --focus-ring: 0 0 0 2px #f4f7fc, 0 0 0 4px #2158dd;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-xl: 36px; --radius-full: 9999px;
  --duration-quick: 140ms; --duration-calm: 240ms; --duration-breath: 420ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------ the brand mark in page headers */
.zn-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.zn-brand img { display: block; width: 104px; height: auto; } /* the lockup's minimum is 96px wide */
.zn-brand span { padding-left: 10px; border-left: 1px solid var(--line); font: 600 14px/1 var(--font-sans); color: var(--ink-muted); white-space: nowrap; }

/* ------------------------------------------------------------ 404 page (body.zn over app.css) */
body.light.zn {
  --bg: var(--surface); --card: var(--surface-raised); --soft: var(--ink-muted);
  --ok: var(--positive); --warn: var(--caution);
  font-family: var(--font-sans);
}
body.zn .shell { gap: var(--space-5); padding-top: var(--space-5); }
body.zn .topbar { justify-content: center; }
body.zn .card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6) var(--space-5); }
body.zn .big-title { font-weight: 650; letter-spacing: -.015em; }
body.zn .primary { border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); font-family: var(--font-sans);
  transition: background var(--duration-quick) var(--ease), box-shadow var(--duration-quick) var(--ease); }
body.zn .primary:hover { background: var(--brand-strong); }
body.zn .primary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
body.zn .foot a { color: var(--link); }
body.zn a.primary { display: inline-block; padding: 14px 28px; text-decoration: none; }
body.zn .foot a { white-space: nowrap; }

/* The 404, after zennia.sg: a white bar with the lockup, the brand band
   with its curved edge behind the top, and the card floating over it. */
body.zn { position: relative; background: var(--surface); }
body.zn::before { content: ""; position: absolute; inset: 0 0 auto; height: min(56vh, 420px); z-index: 0; pointer-events: none;
  background-color: var(--brand);
  background-image: radial-gradient(60% 90% at 85% 30%, color-mix(in srgb, var(--glow) 32%, transparent), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--brand-strong) 75%, transparent), transparent 70%);
  border-bottom-left-radius: 50% var(--space-7); border-bottom-right-radius: 50% var(--space-7); }
body.zn .zn-bar { position: relative; z-index: 2; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
body.zn .zn-bar-inner { max-width: 1200px; margin: 0 auto; min-height: 64px; padding: 0 var(--space-4); display: flex; align-items: center; }
body.zn .zn-bar .zn-brand { align-items: flex-end; }
body.zn .zn-bar .zn-brand img { width: 118px; height: auto; }
body.zn .zn-bar .zn-brand span { font-size: 14px; line-height: 14px; margin-bottom: -1px; }
body.zn .shell { position: relative; z-index: 1; min-height: calc(100dvh - 64px); padding-top: var(--space-7); }
body.zn .stage { justify-content: flex-start; }
body.zn .center { margin: 0; }
body.zn .card { border: 0; box-shadow: var(--shadow-lg); padding: var(--space-7) var(--space-5) var(--space-6); }
body.zn .big-title { font-size: clamp(26px, 6vw, 32px); font-weight: 700; letter-spacing: -.025em; }
body.zn .foot { margin-top: auto; }

body.zn { display: flex; flex-direction: column; min-height: 100dvh; }
body.zn .shell { flex: 1; min-height: 0; }
  padding: var(--space-5); text-align: left; }
  display: flex; align-items: center; gap: var(--space-2); }

/* Fits one screen: a tighter bar and card, and the slim footer. */
body.zn .zn-bar-inner { min-height: 60px; }
body.zn .zn-bar .zn-brand.stacked { width: auto; align-items: flex-start; }
body.zn .zn-bar .zn-brand.stacked img { width: 112px; }
body.zn .zn-bar .zn-brand.stacked span { margin-left: calc(112px * 82 / 272); font-size: 12px; }
body.zn .shell { padding-top: clamp(16px, 4vh, 40px); padding-bottom: var(--space-4); gap: var(--space-3); }
body.zn .stage { gap: var(--space-3); }
body.zn .card { padding: clamp(20px, 3.5vh, 32px) var(--space-5) clamp(18px, 3vh, 28px); }
body.zn .big-title { font-size: clamp(22px, 5.6vw, 28px); margin: 0 0 4px; }
body.zn .card > .muted { margin: 0 0 var(--space-3); }
body.zn .primary { padding: 14px; }
body.zn .site-footer.slim { margin-top: 0; padding-block: var(--space-4); border-top-left-radius: 50% var(--space-4); border-top-right-radius: 50% var(--space-4); }
@media (min-width: 640px) {
  body.zn .shell { max-width: 640px; }
}
@media (max-width: 559px) { body.zn .footer-slim { justify-content: space-between; text-align: left; } }
/* Phones: real browsers lose 120–180px to their own bars, so the page is sized to fit
   what is left: the title and example on one line each, slimmer gaps and footer. */
@media (max-width: 639px) {
  body.zn .zn-bar-inner { min-height: 54px; }
  body.zn .zn-bar .zn-brand.stacked img { width: 100px; }
  body.zn .zn-bar .zn-brand.stacked span { margin-left: calc(100px * 82 / 272); font-size: 11.5px; }
  body.zn .shell { padding-top: 12px; padding-bottom: 12px; padding-inline: 14px; gap: 10px; }
  body.zn .stage { gap: 10px; }
  body.zn .card { padding: 18px 18px 16px; }
  body.zn .big-title { font-size: 21px; line-height: 1.2; }
  body.zn .card > .muted { font-size: 14px; margin-bottom: 10px; }
  body.zn .primary { padding: 12px; font-size: 17px; }
  body.zn .site-footer.slim { padding-block: 10px; }
  body.zn .footer-slim-brand .symbol-disc { width: 30px; height: 30px; }
  body.zn .footer-slim-brand .symbol-disc img { width: 20px; height: 20px; }
  body.zn .footer-slim-cta { height: 36px; padding: 0 var(--space-4); }
}
