/* zennia design system, ember light: the one source of this site's tokens.
   Role names and scales follow the blue scheme on the team instance; the colours
   here run yellow → orange → red. Burnt orange is brand (the primary action, the
   symbol's rings), deep red is accent (links, focus), amber is
   the single glow, and a red ember pools in the band behind the card. Grounds are
   warm paper, ink is a near-black brown. Light only. Onest carries everything.
   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: #fdf8f3;
  --surface-raised: #ffffff;
  --surface-sunken: #f9ece1;
  --line: #efdcc9;
  --line-strong: #9a6f55;
  --ink: #2a1206;
  --ink-muted: #6d4a35;
  --brand: #c2410c;
  --brand-strong: #9a3412;
  --brand-soft: #fde6d3;
  --on-brand: #ffffff;
  --accent: #b91c1c;
  --accent-soft: #fde3e0;
  --glow: #fbbf24;
  --on-glow: #40260a;
  --deep: #46130a;
  --on-deep: #fff3ea;
  --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 #2a12060f, 0 1px 3px #2a12060d;
  --shadow-md: 0 6px 16px -4px #2a12061f, 0 2px 4px #2a120614;
  --shadow-lg: 0 24px 48px -12px #2a120633, 0 4px 12px #2a120614;
  --focus-ring: 0 0 0 2px #fdf8f3, 0 0 0 4px #b91c1c;
  /* The red the band pools in, bottom left. Its own token: the button's hover
     stays a deeper orange, while the gradient needs to reach red. */
  --ember: #a21010;

  --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; }

/* The stacked mark: "Live session" under the wordmark rather than beside it,
   starting where the wordmark's letters do (82 of the lockup's 272 units).
   Lifted from the team site's site.css, which this instance doesn't ship. */
.zn-brand.stacked { flex-direction: column; align-items: flex-start; gap: 3px; flex: none; width: var(--brand-col, 156px); }
.zn-brand.stacked img { width: 124px; height: auto; }
.zn-brand.stacked span { margin-left: calc(124px * 82 / 272); padding: 0; border: 0; font: 600 12.5px/1 var(--font-sans);
  letter-spacing: .01em; color: var(--ink-muted); }
@media (max-width: 380px) { .zn-brand.stacked img { width: 108px; } .zn-brand.stacked span { margin-left: calc(108px * 82 / 272); } }

/* ------------------------------------------------------------ 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) 55%, transparent), transparent 70%),
    radial-gradient(55% 75% at 0% 100%, color-mix(in srgb, var(--ember) 85%, 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; }
}
/* 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); }
}

/* ------------------------------------------------- the slim footer, for a page that is one thing
   Lifted from the team instance's site.css: this instance has only the 404, so the three rules they use live here rather than in a whole sheet. */
.site-footer { position: relative; overflow: clip; isolation: isolate; margin-top: var(--space-7); padding-block: var(--space-7) var(--space-5);
  background: var(--deep); color: var(--on-deep); border-top-left-radius: 50% var(--space-7); border-top-right-radius: 50% var(--space-7); }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px var(--on-deep); }
.site-footer.slim { margin-top: var(--space-6); padding-block: var(--space-5); border-top-left-radius: 50% var(--space-5); border-top-right-radius: 50% var(--space-5); }
.footer-slim { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) var(--space-5); }
.footer-slim-brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--on-deep); text-decoration: none; font-weight: 650; font-size: 15px; }
.symbol-disc { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--surface-raised); }
.symbol-disc img { width: 24px; height: 24px; display: block; }
.footer-slim-note { margin: 0; font-size: 13.5px; line-height: 20px; color: color-mix(in srgb, var(--on-deep) 82%, transparent); }
