/* iVishwa rebirth: shared foundation for every page.
   Palette "Ceylon Ember": umber night, bone day, one ember for action, tea green for calm bands.
   The logo keeps its own light (cyan, violet, magenta); the page never borrows it for text or glows. */

@font-face { font-family: "iVishwa Display"; src: url(/assets/fonts/ivishwa-display.woff2?v=9dd9e25931) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "iVishwa Accent"; src: url(/assets/fonts/ivishwa-accent.woff2?v=b077c742f5) format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url(/assets/fonts/atkinson-next-vf.woff2?v=9c867cf7af) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url(/assets/fonts/atkinson-mono.woff2?v=84c4b9ae9f) format("woff2"); font-weight: 500; font-display: swap; }
/* Fallbacks tuned to the brand fonts' size (tools/font-fallbacks.mjs), so nothing moves when the brand fonts arrive */
@font-face { font-family: "iVishwa Display Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600; font-style: normal; size-adjust: 103.6%; ascent-override: 105.21%; descent-override: 37.65%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Roboto"), local("Roboto-Regular"); font-weight: 400; font-style: normal; size-adjust: 98.09%; ascent-override: 99.91%; descent-override: 32.62%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 700; font-style: normal; size-adjust: 98.61%; ascent-override: 99.38%; descent-override: 32.45%; line-gap-override: 0%; }
@font-face { font-family: "iVishwa Accent Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"), local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Noto Serif Italic"); font-weight: 500; font-style: italic; size-adjust: 79.71%; ascent-override: 111.65%; descent-override: 38.89%; line-gap-override: 0%; }

@property --ctrs { syntax: "<number>"; inherits: true; initial-value: 85; }

:root {
  /* fixed brand colours, the same in both themes */
  --umber: #13110e; --bone: #f2ece2; --ember: #ff5b2e; --ember-2: #ff7a50; --ember-ink: #1a0802;
  --tea: #1e3a2f; --tea-2: #26473a; --gold: #ffb547;
  --cyan: #4fe6ee; --violet: #a35bf0; --magenta: #dd4fe0; /* logo only */
  /* night (default) */
  --bg: #13110e; --bg-2: #1b1814; --bg-3: #231f1a; --line: #2c2721; --line-2: #423a31;
  --text: #f2ece2; --text-2: #cfc6b8; --text-3: #9e9486;
  --sun: var(--ember); --sun-2: var(--ember-2); --sun-ink: var(--ember-ink); --sun-txt: var(--ember);
  --lines-opacity: .5;
  --shadow: 0 40px 80px -40px rgb(0 0 0 / .7);
  --font-display: "iVishwa Display", "iVishwa Display Fallback", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "iVishwa Accent", "iVishwa Accent Fallback", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Atkinson Next", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Atkinson Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(18px, 4.6vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #f2ece2; --bg-2: #fbf8f2; --bg-3: #e9e1d4; --line: #ded5c6; --line-2: #c9bdaa;
  --text: #17130f; --text-2: #4a4239; --text-3: #6b6155;
  --sun: #f04e22; --sun-2: #ff6a3d; --sun-txt: #b23a12;
  --lines-opacity: .62;
  --shadow: 0 40px 80px -46px rgb(60 40 20 / .45);
  color-scheme: light;
}
/* Bands that keep their own colours whatever the theme: local tokens, so every component inside adapts. */
.tea { --bg: var(--tea); --bg-2: var(--tea-2); --bg-3: #2d5243; --line: #335646; --line-2: #4a7060; --text: #f2ece2; --text-2: #d3dccf; --text-3: #a8bbad; --sun: var(--ember); --sun-2: var(--ember-2); --sun-txt: #ff8a5c; color-scheme: dark; background: var(--bg); color: var(--text); }
.inv { --bg: var(--bone); --bg-2: #fbf8f2; --bg-3: #e9e1d4; --line: #ded5c6; --line-2: #c9bdaa; --text: #17130f; --text-2: #4a4239; --text-3: #6b6155; --sun: #f04e22; --sun-2: #ff6a3d; --sun-txt: #b23a12; color-scheme: light; background: var(--bg); color: var(--text); }
:root[data-theme="day"] .inv { --bg: var(--umber); --bg-2: #1b1814; --bg-3: #231f1a; --line: #2c2721; --line-2: #423a31; --text: #f2ece2; --text-2: #cfc6b8; --text-3: #9e9486; --sun: var(--ember); --sun-2: var(--ember-2); --sun-txt: var(--ember); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.55 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .5s var(--ease), color .5s var(--ease); }
img, svg, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--ember); color: var(--ember-ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Page changes: the old page drifts out of focus, the new one comes into focus (Chrome, Edge, Safari 18.2+). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .42s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .62s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(10px); transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; filter: blur(12px); transform: scale(1.015); } }
.top { view-transition-name: hdr; }
::view-transition-group(hdr) { animation: none; }
html.vt-local::view-transition-old(root), html.vt-local::view-transition-new(root) { animation: none; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); border-bottom: 1px solid transparent; transition: transform .45s var(--ease), background-color .3s, border-color .3s, padding .3s; }
.top.scrolled { padding-top: 10px; padding-bottom: 10px; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-bottom-color: var(--line); }
.top.hide { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.18rem/1 var(--font-text); letter-spacing: -.01em; }
.brand img { width: 54px; height: 38px; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: .98rem; padding: 10px 2px; position: relative; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { color: var(--text); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current]::after { background: var(--sun); height: 2px; }
.tools { display: flex; align-items: center; gap: 8px; }
.icon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font: 500 .8rem/1 var(--font-mono); letter-spacing: .04em; cursor: pointer; transition: border-color .25s, color .25s, background-color .25s; }
.icon:hover { border-color: var(--line-2); color: var(--text); }
.icon[aria-pressed="true"] { color: var(--text); border-color: var(--text-3); }
.icon[aria-pressed="true"] .bars { animation: bars 1.1s ease-in-out infinite alternate; }
.icon.waiting .bars { animation: bars .5s ease-in-out infinite alternate; color: var(--sun-txt); }
@keyframes bars { from { stroke-dasharray: 3 30; } to { stroke-dasharray: 30 30; } }
.menu-btn { display: none; }

/* Buttons */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 1.02rem/1 var(--font-text); text-decoration: none; border: 1px solid transparent; cursor: pointer; translate: var(--mx) var(--my); transition: transform .35s var(--ease), translate .35s var(--ease), background-color .25s, border-color .25s, box-shadow .35s, color .25s; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .94rem; }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: var(--sun-2); transform: translateY(-2px); box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--sun) 80%, transparent); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-3); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-underline-offset .25s; }
.link:hover { text-underline-offset: 7px; }

/* Type */
.display { font-family: var(--font-display); font-weight: 600; font-variation-settings: "CTRS" var(--ctrs); letter-spacing: calc(-.012em + (85 - var(--ctrs)) * .000242em); line-height: .96; margin: 0; text-wrap: balance; }
.display em, .accent, h3 em { font-family: var(--font-accent); font-style: italic; font-weight: 500; letter-spacing: -.01em; font-variation-settings: normal; }
.display em { font-size: 1.06em; line-height: .9; color: var(--text); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; white-space: nowrap; margin: 0 0 22px; font: 500 .78rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 18%, transparent); }
.eyebrow .rule { width: 44px; height: 1px; background: var(--line-2); }
.k { font: 500 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lede { margin: 0 0 30px; max-width: 34em; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Headlines come into focus: the contrast axis opens while a slight blur clears. */
.js .focus { filter: blur(7px); opacity: .001; }
.js .focus.in { animation: focus 1.25s var(--ease) both; }
@keyframes focus { 0% { filter: blur(7px); opacity: 0; } 35% { opacity: 1; } 100% { filter: blur(0); opacity: 1; } }

/* Phone menu */
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); }
.sheet::backdrop { background: transparent; }
.sheet[open] { display: flex; }
.sheet-in { flex: 1; display: flex; flex-direction: column; padding: 18px var(--gutter) calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.sheet nav { display: grid; margin: auto 0; padding: 28px 0; }
.sheet nav a { font: 600 clamp(2.5rem, 12vw, 4.4rem)/1.06 var(--font-display); font-variation-settings: "CTRS" var(--ctrs); letter-spacing: calc(-.01em + (85 - var(--ctrs)) * .000242em); text-decoration: none; padding: 4px 0; }
.sheet nav a[aria-current] { color: var(--sun-txt); }
.sheet[open] nav a { animation: rise .7s var(--ease) both; }
.sheet[open] nav a:nth-child(2) { animation-delay: .05s; } .sheet[open] nav a:nth-child(3) { animation-delay: .1s; }
.sheet[open] nav a:nth-child(4) { animation-delay: .15s; } .sheet[open] nav a:nth-child(5) { animation-delay: .2s; }
.sheet[open] nav a:nth-child(6) { animation-delay: .25s; } .sheet[open] nav a:nth-child(7) { animation-delay: .3s; } .sheet[open] nav a:nth-child(8) { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.sheet-foot { display: grid; gap: 10px; }
.sheet-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.sheet-tools .icon { font-family: var(--font-text); font-size: .9rem; letter-spacing: 0; padding: 0 16px; }

/* Footer */
.foot { padding: clamp(48px, 7vw, 90px) var(--gutter) 44px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .92rem; }
.foot p { margin: 0 0 8px; max-width: 60em; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 36px; }
.foot-brand img { width: 64px; height: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 24em; }
.foot-grid nav { display: grid; gap: 9px; align-content: start; }
.foot-grid nav .k { margin: 0 0 6px; }
.foot-grid nav a { text-decoration: none; color: var(--text-2); width: max-content; max-width: 100%; transition: color .25s; }
.foot-grid nav a:hover { color: var(--text); }
.foot-note { font-size: .82rem; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .icon-label { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .brand span { display: none; }
  .btn-small { padding: 0 14px; }
  .eyebrow { font-size: .68rem; margin-bottom: 16px; }
  .tools > .snd, .tools > #theme { display: none; }
  .tools { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .focus, .js .focus.in { animation: none; --ctrs: 85; filter: none; opacity: 1; }
  .icon[aria-pressed="true"] .bars, .icon.waiting .bars { animation: none; }
  .btn, .btn .arr, .nav a::after, .top { transition: none; }
  .sheet[open] nav a { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Search menu (Ctrl K) ---------- */
.cmd-btn kbd { font: 500 .72rem/1 var(--font-mono); letter-spacing: .04em; color: var(--text-3); }
.cmdk { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 620px); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-2); color: var(--text); box-shadow: 0 40px 120px -30px rgb(0 0 0 / .7); overflow: hidden; }
.cmdk[open] { display: flex; flex-direction: column; animation: cmd-in .35s var(--ease); }
@keyframes cmd-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.cmdk::backdrop { background: color-mix(in srgb, var(--umber) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmdk input { width: 100%; padding: 20px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: 500 1.15rem/1.3 var(--font-text); }
.cmdk input:focus { outline: none; }
.cmdk input::-webkit-search-cancel-button { display: none; }
.cmdk ul { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; }
.cmdk li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px; border-radius: 12px; cursor: pointer; color: var(--text-2); }
.cmdk li[aria-selected="true"], .cmdk li:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.cmdk li[aria-selected="true"] .cmdk-t::before { content: "→ "; color: var(--sun-txt); }
.cmdk-k { flex: none; font: 500 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cmdk-empty { cursor: default; color: var(--text-3); }
.cmdk-foot { display: flex; gap: 18px; margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font: 500 .7rem/1.4 var(--font-mono); color: var(--text-3); }
@media (max-width: 760px) { .cmdk { margin-top: 8vh; } .cmdk-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .cmdk[open] { animation: none; } }

/* ---------- Night and day switch ---------- */
.theme-toggle { position: relative; display: inline-grid; place-items: center; min-width: 64px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tt-track { position: relative; display: block; width: 62px; height: 34px; border-radius: 999px; overflow: hidden; background: linear-gradient(160deg, #221d33, #120f18 70%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 6px 14px rgb(0 0 0 / .45); transition: background .6s var(--ease), box-shadow .6s var(--ease); }
.tt-sky { position: absolute; inset: 0; background: linear-gradient(160deg, #ffd99a, #ffb06a 55%, #ff8a55); opacity: 0; transition: opacity .6s var(--ease); }
.tt-sky::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 15px; height: 6px; border-radius: 999px; background: #fff8ec; box-shadow: -5px -3px 0 1px #fff8ec; opacity: .95; animation: tt-cloud 6s ease-in-out infinite alternate; }
@keyframes tt-cloud { to { transform: translateX(-4px); } }
.tt-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #f2ece2; box-shadow: 0 0 6px rgb(242 236 226 / .9); animation: tt-twinkle 2.4s ease-in-out infinite; transition: opacity .4s, transform .6s var(--ease); }
.tt-stars i:nth-child(1) { left: 12px; top: 9px; } .tt-stars i:nth-child(2) { left: 22px; top: 21px; width: 1.5px; height: 1.5px; animation-delay: -.8s; }
.tt-stars i:nth-child(3) { left: 8px; top: 23px; width: 1.5px; height: 1.5px; animation-delay: -1.6s; } .tt-stars i:nth-child(4) { left: 26px; top: 8px; animation-delay: -.4s; }
@keyframes tt-twinkle { 50% { opacity: .25; transform: scale(.6); } }
.tt-knob { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; transform: translateX(28px); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), filter .4s; filter: drop-shadow(0 0 6px rgb(242 236 226 / .35)); }
.tt-knob svg { width: 26px; height: 26px; overflow: visible; }
.tt-core { fill: #f2ece2; transition: fill .6s var(--ease); }
.tt-bite { transform: translate(0, 0); transition: transform .7s var(--ease); }
.tt-rays { stroke: #fff4d8; stroke-width: 1.8; stroke-linecap: round; fill: none; transform-origin: 12px 12px; transform: rotate(-90deg) scale(.4); opacity: 0; transition: transform .7s var(--ease), opacity .4s; }
.theme-toggle:hover .tt-knob { filter: drop-shadow(0 0 10px rgb(242 236 226 / .6)); }
.theme-toggle:hover .tt-bite { transform: translate(-1px, 1px); }
.theme-toggle:active .tt-knob { transition-duration: .2s; }
.theme-toggle:focus-visible { outline: none; }
.theme-toggle:focus-visible .tt-track { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sun); }
:root[data-theme="day"] .tt-sky { opacity: 1; }
:root[data-theme="day"] .tt-track { box-shadow: inset 0 0 0 1px rgb(120 70 20 / .15), inset 0 6px 14px rgb(160 80 20 / .2); }
:root[data-theme="day"] .tt-stars i { opacity: 0; transform: translateY(8px) scale(.2); animation: none; }
:root[data-theme="day"] .tt-knob { transform: translateX(0); filter: drop-shadow(0 0 8px rgb(255 190 90 / .9)); }
:root[data-theme="day"] .tt-core { fill: #fff3cf; }
:root[data-theme="day"] .tt-bite { transform: translate(9px, -9px); }
:root[data-theme="day"] .tt-rays { transform: rotate(0deg) scale(1); opacity: 1; }
:root[data-theme="day"] .theme-toggle:hover .tt-rays { transform: rotate(30deg) scale(1.08); }

/* the new theme opens from the switch, across the whole page */
html.vt-theme * { view-transition-name: none !important; }
html.vt-theme::view-transition-old(root) { animation: none; }
html.vt-theme::view-transition-new(root) { animation: theme-open .8s var(--ease-io) both; }
@keyframes theme-open { from { clip-path: circle(0 at var(--tt-x, 100%) var(--tt-y, 0)); } to { clip-path: circle(var(--tt-r, 150vmax) at var(--tt-x, 100%) var(--tt-y, 0)); } }
@media (prefers-reduced-motion: reduce) {
  .tt-track, .tt-sky, .tt-sky::after, .tt-knob, .tt-core, .tt-bite, .tt-rays, .tt-stars i { transition: none; animation: none; }
  html.vt-theme::view-transition-new(root) { animation: none; }
}

/* ---------- The cookie banner and Vish, the website chat, in this site's colours ----------
   Both bring their own styles (src/consent.js, src/vish-chat.js) and also serve the current site; these rules apply
   only on the redesigned pages, which carry data-mode on <html>. */
html[data-mode] .ivc { border-color: var(--line-2); background: color-mix(in srgb, var(--bg-2) 96%, transparent); color: var(--text); font-family: var(--font-text); box-shadow: 0 30px 90px -30px rgb(0 0 0 / .6); }
html[data-mode] .ivc h2 { font: 700 1.12rem/1.25 var(--font-text); letter-spacing: -.01em; color: var(--text); }
html[data-mode] .ivc h2 svg, html[data-mode] .ivc h2 svg [stroke] { stroke: var(--sun); }
html[data-mode] .ivc p, html[data-mode] .ivc-row small { color: var(--text-2); }
html[data-mode] .ivc a { color: var(--text); text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
html[data-mode] .ivc-row { border-color: var(--line); background: var(--bg); }
html[data-mode] .ivc-row b { color: var(--text); }
html[data-mode] .ivc-row input { background: var(--line-2); }
html[data-mode] .ivc-row input::after { background: var(--bone); }
html[data-mode] .ivc-row input:checked { background: var(--sun); }
html[data-mode] .ivc-row input:focus-visible, html[data-mode] .ivc-btns button:focus-visible { outline-color: var(--sun); }
html[data-mode] .ivc-btns button { font-family: var(--font-text); border-color: var(--line-2); }
html[data-mode] .ivc-main { background: var(--text); border-color: var(--text); color: var(--bg); }
html[data-mode] .ivc-alt { background: transparent; color: var(--text); }
html[data-mode] .vx { --vx-bg: var(--bg-2); --vx-bg2: var(--bg-3); --vx-line: var(--line-2); --vx-ink: var(--text); --vx-dim: var(--text-2); --vx-faint: var(--text-3);
  --vx-uv: var(--ember); --vx-uv2: var(--ember-2); --vx-cy: var(--gold); --vx-cy2: var(--gold); --vx-warm: var(--gold); font-family: var(--font-text); }
html[data-mode] .vx-m.me .vx-b, html[data-mode] .vx-send { background: var(--ember); color: var(--ember-ink); box-shadow: 0 10px 24px -14px var(--ember); }
html[data-mode] .vx-think i { background: var(--ember); }
html[data-mode] .vx-form .vx-check input { accent-color: var(--ember); }
html[data-mode] .vx-btn { background: var(--ember); color: var(--ember-ink); }
html[data-mode] .vx-tag, html[data-mode] .vx-card .ic { color: var(--ember-ink); }
html[data-mode] .vx-panel { background: var(--bg-2); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .55), 0 0 70px -34px color-mix(in srgb, var(--ember) 60%, transparent); }
html[data-mode] .vx-top { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ember) 14%, transparent), transparent 60%), var(--bg-2); }
html[data-mode] .vx-menu { background: var(--bg-3); box-shadow: 0 20px 50px -16px rgb(0 0 0 / .5); }
html[data-mode] .vx-ib:hover, html[data-mode] .vx-menu button:hover, html[data-mode] .vx-menu a:hover, html[data-mode] .vx-note { background: color-mix(in srgb, var(--text) 7%, transparent); }
html[data-mode] .vx-tag, html[data-mode] .vx-tag.human, html[data-mode] .vx-btn.warm { background: var(--gold); }
html[data-mode] .vx-card .ic { background: var(--ember); }

/* The page headline is the largest paint: visible from the first frame, out of focus, sharpening at once. */
.js h1.focus, .js h1.focus.in { opacity: 1; filter: none; animation: focus-in 1.1s var(--ease) both; }
@keyframes focus-in { from { filter: blur(6px); } to { filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .js h1.focus, .js h1.focus.in { animation: none; filter: none; } }

/* ---------- Volume: slides out of the sound button while sound is on; a row in the phone menu ---------- */
.snd { display: inline-flex; align-items: center; }
.vol { display: inline-flex; align-items: center; width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: width .45s var(--ease), opacity .25s, visibility 0s .45s; }
.snd:has(#sound[aria-pressed="true"]) .vol { width: 108px; opacity: 1; visibility: visible; transition: width .45s var(--ease), opacity .3s .1s, visibility 0s; }
input[data-vol] { --v: 70%; -webkit-appearance: none; appearance: none; width: 92px; height: 32px; margin: 0 6px 0 10px; padding: 0; background: transparent; cursor: pointer; }
input[data-vol]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--sun) var(--v), var(--line-2) var(--v)); }
input[data-vol]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--line-2); }
input[data-vol]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--sun); }
input[data-vol]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 2px solid var(--sun); box-shadow: 0 2px 8px rgb(0 0 0 / .3); transition: transform .2s var(--ease); }
input[data-vol]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 2px solid var(--sun); }
input[data-vol]:hover::-webkit-slider-thumb, input[data-vol]:focus-visible::-webkit-slider-thumb { transform: scale(1.18); }
input[data-vol]:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.vol-row { display: none; align-items: center; gap: 14px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--text-2); }
.vol-row input[data-vol] { flex: 1; width: auto; margin: 0; }
.sheet-tools:has([data-proxy="sound"][aria-pressed="true"]) .vol-row { display: flex; }
@media (prefers-reduced-motion: reduce) { .vol, .snd:has(#sound[aria-pressed="true"]) .vol { transition: none; } input[data-vol]::-webkit-slider-thumb { transition: none; } }
