/* ==========================================================================
   Fidus v2 — base
   Paper, ink and amber. Instrument Serif for the voice, Geist for the work.
   Every colour that sits on the sky is derived from --k (0 day .. 1 night),
   which the sky engine writes as the day passes.
   ========================================================================== */

@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-var.woff2?v=157ac29d') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-var.woff2?v=157ac29d') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif.woff2?v=157ac29d') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-italic.woff2?v=157ac29d') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
/* extended Latin (Polish, Romanian, Turkish…) and Cyrillic: downloaded only by the pages that use those letters */
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-ext.woff2?v=157ac29d') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; 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: 'Geist'; src: url('/assets/fonts/geist-cyrillic.woff2?v=157ac29d') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-ext.woff2?v=157ac29d') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; 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: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-italic-ext.woff2?v=157ac29d') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; 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; }

:root {
  --ink: #0E1116;
  --paper: #FAF7F1;
  --paper-deep: #F0E9DD;
  --amber: #C8782A;
  --amber-deep: #9A4E0A;
  --amber-bright: #E9A562;

  --k: 0;
  --fg: color-mix(in oklab, var(--paper) calc(var(--k) * 100%), var(--ink));
  --bg-flat: color-mix(in oklab, var(--ink) calc(var(--k) * 100%), var(--paper));
  --fg-soft: color-mix(in srgb, var(--fg) 74%, transparent);
  --fg-faint: color-mix(in srgb, var(--fg) 48%, transparent);
  --hair: color-mix(in srgb, var(--fg) 15%, transparent);
  --hair-strong: color-mix(in srgb, var(--fg) 32%, transparent);
  --accent: color-mix(in oklab, var(--amber-bright) calc(var(--k) * 100%), var(--amber-deep));
  --glass: color-mix(in srgb, var(--bg-flat) 58%, transparent);
  --glass-strong: color-mix(in srgb, var(--bg-flat) 84%, transparent);
  --veil: color-mix(in srgb, var(--fg) 5%, transparent);

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
/* no opening on this load: the page starts on the colour of the morning sky, so its words can be read at the first
   paint, before the sky is drawn (sky.js then keeps this colour in step with the sky, see applyTheme) */
html.first-css { background: #F5DABA; }
html.no-sky { background: var(--bg-flat); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; color: var(--fg);
  font: 400 1.0625rem/1.55 var(--sans); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; text-decoration: none; transition: top .25s; }
.skip:focus { top: 12px; }

/* ---- the sky ------------------------------------------------------------ */
#sky, #flock {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: -1; pointer-events: none;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
#flock { z-index: -1; }
html.no-sky #sky { display: none; }

/* ---- type ---------------------------------------------------------------- */
.d-xl, .d-l, .d-m { font-family: var(--serif); font-weight: 400; letter-spacing: -0.022em; text-wrap: balance; }
.d-xl { font-size: clamp(3.1rem, 9.4vw, 9.6rem); line-height: .93; }
.d-l { font-size: clamp(2.35rem, 5.9vw, 6rem); line-height: 1; }
.d-m { font-size: clamp(2rem, 3.9vw, 3.9rem); line-height: 1.02; }
.d-xl em, .d-l em, .d-m em { font-style: italic; color: var(--accent); letter-spacing: -0.03em; }
.eyebrow {
  font: 500 .72rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .9em;
}
.sep { display: inline-block; width: 4px; height: 4px; background: currentColor; opacity: .7; vertical-align: middle; margin: 0 .55em; }
.eyebrow .sep { margin: 0; }
.lede { font-size: clamp(1.06rem, 1.42vw, 1.3rem); line-height: 1.5; color: var(--fg-soft); max-width: 36em; text-wrap: pretty; }
.ul { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--hair-strong); transition: text-decoration-color .3s; }
@media (hover: hover) { .ul:hover { text-decoration-color: var(--accent); } }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.sec-head { display: grid; gap: clamp(16px, 2vw, 26px); margin-bottom: clamp(40px, 6vw, 84px); }
.sec-head.center { justify-items: center; }

/* ---- halftone words: text is born as dots, then fills ---------------------- */
.w {
  display: inline-block; white-space: pre;
  padding: .16em .1em .22em; margin: -.16em -.1em -.22em;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 calc(var(--h, 1) * 150%), transparent calc(var(--h, 1) * 150% + 14%));
          mask-image: radial-gradient(circle closest-side, #000 calc(var(--h, 1) * 150%), transparent calc(var(--h, 1) * 150% + 14%));
  -webkit-mask-size: 4px 4px; mask-size: 4px 4px;
}
.w.is-zero { visibility: hidden; }
.w.is-full { -webkit-mask-image: none; mask-image: none; }
html:not(.js) .w { -webkit-mask-image: none; mask-image: none; }

/* ---- staged reveals ---------------------------------------------------------- */
.js .rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font: 500 1rem/1 var(--sans); letter-spacing: -0.012em; text-decoration: none; white-space: nowrap;
  transition: transform .6s var(--ease-out), color .35s, box-shadow .5s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn > * { position: relative; z-index: 1; }
.btn .arr { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
[dir="rtl"] .btn .arr { scale: -1 1; }
.btn-solid { background: var(--fg); color: var(--bg-flat); box-shadow: 0 16px 34px -18px rgb(14 17 22 / .6); }
.btn-solid::before {
  content: ''; position: absolute; inset: -1px; z-index: 0; border-radius: inherit;
  background: var(--amber);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 calc(var(--f, 0) * 150%), transparent calc(var(--f, 0) * 150% + 14%));
          mask-image: radial-gradient(circle closest-side, #000 calc(var(--f, 0) * 150%), transparent calc(var(--f, 0) * 150% + 14%));
  -webkit-mask-size: 4px 4px; mask-size: 4px 4px;
  opacity: 0; transition: opacity .25s;
}
.btn-glass { background: var(--glass); color: var(--fg); border: 1px solid var(--hair-strong); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .92rem; }
@media (hover: hover) {
  .btn-solid:hover { color: var(--ink); }
  .btn-solid:hover::before { opacity: 1; }
  .btn:hover .arr { transform: translateX(4px); }
  [dir="rtl"] .btn:hover .arr { transform: translateX(-4px); }
  .btn-glass:hover { border-color: var(--fg); }
}
.btn:active { transform: scale(.975); }

/* ---- navigation ------------------------------------------------------------ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 16px var(--gut) 0; pointer-events: none; }
.nav-in {
  pointer-events: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px);
  max-width: var(--max); margin: 0 auto; padding: 7px 7px 7px 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: max-width .8s var(--ease-out), background-color .5s, border-color .5s, box-shadow .5s, transform .6s var(--ease-out), opacity .5s;
}
.scrolled .nav-in {
  max-width: 960px; background: var(--glass); border-color: var(--hair);
  -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: 0 18px 46px -26px rgb(14 17 22 / .5);
}
.nav-hidden .nav-in { transform: translateY(-140%); }
/* the logo: the Signal-F mark, a hairline, the wordmark. Everything is in em, so the intro can fly it to the bar. */
.logo { display: inline-flex; align-items: center; gap: .34em; text-decoration: none; color: var(--fg); font-size: 1.62rem; line-height: 1; direction: ltr; flex: none; }
.mark { height: 1.04em; width: auto; flex: none; }
.mark-dot { fill: color-mix(in oklab, #E09552 calc(var(--k) * 100%), var(--amber)); }
.logo .bar { width: 1px; height: 1em; background: currentColor; opacity: .26; flex: none; }
.wm { display: inline-flex; align-items: baseline; white-space: nowrap; }
.wm i { font: italic 400 1em/1 'Instrument Serif', Georgia, serif; letter-spacing: -0.02em; }
.nav-links { margin-inline-start: auto; display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-links a { position: relative; font-size: .93rem; white-space: nowrap; text-decoration: none; color: var(--fg-soft); padding: 8px 2px; transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease-out); }
.nav-links a.is-here { color: var(--fg); }
.nav-links a.is-here::after { transform: translateX(-50%) scale(1); }
@media (hover: hover) { .nav-links a:hover { color: var(--fg); } }
.nav-cta { margin-inline-start: 0; }
.nav-in { position: relative; }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav .lang { margin-inline-start: auto; }
  /* on a phone the bar sits right over the text: it has to stay readable even where the blur is not drawn */
  .scrolled .nav-in { background: color-mix(in srgb, var(--bg-flat) 92%, transparent); }
}
@media (max-width: 460px) {
  .nav-in { padding-inline-start: 14px; gap: 8px; }
  .nav .btn-sm { padding: 0 15px; }
}
@media (max-width: 400px) {
  .logo { font-size: 1.46rem; }
  .nav-in { gap: 6px; }
  .nav .btn-sm { padding: 0 13px; font-size: .86rem; }
}
/* the smallest phones: the mark alone, so the button keeps its full sentence */
@media (max-width: 350px) {
  .nav .logo .bar, .nav .logo .wm { display: none; }
}

/* ---- language picker ---------------------------------------------------------- */
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 11px; border-radius: 999px; cursor: pointer;
  font: 500 .72rem/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; color: var(--fg-soft);
  transition: color .3s, background-color .3s; -webkit-tap-highlight-color: transparent; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lang summary .chev { width: 11px; height: 11px; transition: transform .4s var(--ease-out); }
.lang[open] summary { color: var(--fg); background: var(--veil); }
.lang[open] summary .chev { transform: rotate(180deg); }
@media (hover: hover) { .lang summary:hover { color: var(--fg); } }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 12px); z-index: 70; width: min(92vw, 440px); padding: 16px 12px 12px; border-radius: 22px;
  background: color-mix(in srgb, var(--bg-flat) 94%, transparent); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 70px -30px rgb(14 17 22 / .6); animation: langIn .35s var(--ease-out);
}
.lang-menu p { font: 500 .64rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint); margin: 2px 10px 10px; }
.lang-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.lang-list a { display: block; padding: 9px 10px; border-radius: 10px; font: 400 .93rem/1.25 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: 0; text-decoration: none; text-align: start; color: var(--fg-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .25s, color .25s; }
.lang-list a[aria-current] { color: var(--fg); background: var(--veil); box-shadow: inset 0 0 0 1px var(--hair-strong); }
@media (hover: hover) { .lang-list a:hover { color: var(--fg); background: var(--veil); } }
@keyframes langIn { from { opacity: 0; transform: translate3d(0, -8px, 0); } }
@media (max-width: 560px) {
  /* on a phone the list opens as wide as the bar it belongs to */
  .nav .lang { position: static; }
  .nav .lang-menu { inset-inline: 0; width: auto; top: calc(100% + 8px); }
  .lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-list a { padding: 11px 10px; }
  .lang summary { padding: 0 8px; gap: 5px; }
  .lang summary .chev { display: none; }
}

/* ---- the Roman clock -------------------------------------------------------- */
.chip-clock {
  position: fixed; inset-inline-start: var(--gut); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft);
  transition: opacity .6s, transform .6s var(--ease-out);
}
.chip-clock .orb { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); transition: background .6s, box-shadow .6s; }
.sky-dark .chip-clock .orb { background: transparent; box-shadow: inset -3px -1px 0 0 var(--paper); }
.chip-clock .time { color: var(--fg); letter-spacing: .08em; font-variant-numeric: tabular-nums; min-width: 4.2em; }
@media (max-width: 700px) { .chip-clock { height: 30px; font-size: .64rem; background: var(--glass-strong); } }

/* ---- intro ------------------------------------------------------------------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; color: var(--ink); }
.intro-skip .intro, .intro-done .intro { display: none; }
.intro-mark { font-size: clamp(2.9rem, 10vw, 8.6rem); color: var(--ink); transform-origin: 0 0; will-change: transform; opacity: 0; }
.intro-skip-btn {
  position: fixed; inset-inline-end: var(--gut); bottom: max(22px, env(safe-area-inset-bottom)); pointer-events: auto;
  font: 500 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgb(250 247 241 / .55);
  padding: 12px 6px; transition: color .3s, opacity .4s;
}
.intro-skip-btn:hover { color: var(--paper); }
.intro-open .intro-skip-btn { opacity: 0; pointer-events: none; }
.intro-run:not(.intro-done) .nav-in,
.intro-run:not(.intro-done) .chip-clock { opacity: 0; transform: translateY(-8px); }
.intro-run:not(.intro-done) .chip-clock { transform: translateY(8px); }
.intro-run:not(.intro-open) body { overflow: hidden; }

/* ---- from one of our pages to another: the page waits behind the sky until it opens (site.js, arrive) ----
   The safety animation shows the page anyway if the script never runs. */
.pt-in:not(.pt-open) body > :not(canvas) { opacity: 0; animation: pt-safe .01s linear 2.4s forwards; }
@keyframes pt-safe { to { opacity: 1; } }
.pt-out body { pointer-events: none; }
/* a string wrapped by the build, so a change of language finds it: it must not change the layout */
t-x { display: contents; }

/* ---- the first screen ---------------------------------------------------------------
   On a page that no opening hides (`first-css`, set in the head) the first screen comes in with this animation,
   from the first paint: it does not wait for the script, and site.js leaves it alone. */
.first-css [data-first] .rv { animation: rv-in 1s var(--ease-out) both; animation-delay: calc(var(--rv-i, 0) * 100ms + 40ms); }
.first-css [data-first] .rv[data-rv="1"] { --rv-i: 1; }
.first-css [data-first] .rv[data-rv="2"] { --rv-i: 2; }
.first-css [data-first] .rv[data-rv="3"] { --rv-i: 3; }
.first-css [data-first] .rv[data-rv="4"] { --rv-i: 4; }
.first-css [data-first] .rv[data-rv="5"] { --rv-i: 5; }
@keyframes rv-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
/* a slow line or a slow phone (site.js, start): no opening, the first screen is simply there */
.late-open .hero .rv { opacity: 1; transform: none; transition: none; }
/* the long opening: nothing of the hero shows before the sky has opened */
.intro-run:not(.intro-open) .hero-in { visibility: hidden; }
/* our scripts never arrived (head script, after 7 s): everything shows itself */
.late .rv { opacity: 1; transform: none; }

/* ---- small shared pieces ------------------------------------------------------ */
.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--ink) center / cover no-repeat; color: var(--paper);
  font: italic 400 1.05rem/1 var(--serif); box-shadow: 0 0 0 2px var(--bg-flat), 0 0 0 3px var(--amber);
}
.avatar::before { content: 'R'; }
.avatar.has-photo::before { content: none; }
.avatar.lg { width: 60px; height: 60px; font-size: 1.9rem; }

/* reduced motion: `rm` is set on <html> by the inline head script (system setting, or ?motion=0) */
.rm *, .rm *::before, .rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
.rm.js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- other alphabets ------------------------------------------------------------
   Our two faces draw Latin (and Geist also Cyrillic). Where they stop, the reader's
   own system fonts take over, without italics and without tight tracking, which
   those scripts do not have. Latin words inside (Fidus, Iterum, numbers) keep the brand faces. */
html:is([lang="pl"], [lang="ro"], [lang="tr"], [lang="ru"], [lang="uk"]) { --mono: 'Geist', system-ui, sans-serif; }
html:is([lang="ru"], [lang="uk"]) { --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif; }
/* Vietnamese: Georgia has no glyphs for the letters with two accents (the accent lands beside the letter); Times New Roman and Noto Serif do */
html[lang="vi"] { --serif: 'Times New Roman', 'Noto Serif', Times, serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --mono: var(--sans); }
html[lang="ar"] { --serif: 'Instrument Serif', 'Geeza Pro', 'Segoe UI', 'Noto Naskh Arabic', Tahoma, serif; --sans: 'Geist', 'Segoe UI', 'Geeza Pro', 'Noto Sans Arabic', Tahoma, system-ui, sans-serif; --mono: var(--sans); }
html[lang="hi"] { --serif: 'Instrument Serif', 'Kohinoor Devanagari', 'Nirmala UI', 'Noto Sans Devanagari', sans-serif; --sans: 'Geist', 'Kohinoor Devanagari', 'Nirmala UI', 'Noto Sans Devanagari', system-ui, sans-serif; --mono: var(--sans); }
html[lang="th"] { --serif: 'Instrument Serif', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', sans-serif; --sans: 'Geist', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', system-ui, sans-serif; --mono: var(--sans); }
html[lang="zh"] { --serif: 'Instrument Serif', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', serif; --sans: 'Geist', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; --mono: var(--sans); }
html[lang="ja"] { --serif: 'Instrument Serif', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK JP', serif; --sans: 'Geist', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'Noto Sans CJK JP', system-ui, sans-serif; --mono: var(--sans); }
html[lang="ko"] { --serif: 'Instrument Serif', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', sans-serif; --sans: 'Geist', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', system-ui, sans-serif; --mono: var(--sans); }
html:is([lang="ar"], [lang="hi"], [lang="th"], [lang="zh"], [lang="ja"], [lang="ko"], [lang="vi"]) :is(.d-xl, .d-l, .d-m) { letter-spacing: 0; line-height: 1.16; }
html:is([lang="ar"], [lang="hi"], [lang="th"], [lang="zh"], [lang="ja"], [lang="ko"]) :is(.d-xl, .d-l, .d-m) em { font-style: normal; letter-spacing: 0; }
html:is([lang="ar"], [lang="hi"], [lang="th"], [lang="zh"], [lang="ja"], [lang="ko"]) body { letter-spacing: 0; }
html:is([lang="ar"], [lang="hi"], [lang="th"]) :is(.eyebrow, .chip-clock, .art-cap, .lang-menu p) { letter-spacing: 0; }
html:is([lang="zh"], [lang="ja"], [lang="ko"]) :is(.d-xl, .d-l) { font-size-adjust: none; word-break: keep-all; }
html:is([lang="ru"], [lang="uk"], [lang="vi"]) :is(.d-xl, .d-l, .d-m) { letter-spacing: -0.012em; line-height: 1.04; }
