/* Live-site additions on top of xetrn.css (the shared design system).
   Fonts served from xetrn.com, theme switching on <html data-theme>,
   live widget wrappers, and the legal-document layout. */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/instrument-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/instrument-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/instrument-sans-700.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format('woff2'); }

html, body { margin: 0; background: #EBEBE7; }
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.menu-open { overflow: hidden; }

/* Dark theme: chosen on <html data-theme="dark">, or the system when nothing is chosen. */
html[data-theme="dark"] .xt { --page: #060607; --panel: #0F0F11; --card: #17171A; --sunk: #131316;
  --hair: rgba(255,255,255,.08); --hair2: rgba(255,255,255,.14);
  --ink: #F3F3F0; --ink2: #A6A6A1; --dim: #6C6C68;
  --black: #131315; --black-hair: #26262A; --glass: rgba(15,15,17,.66);
  --peri: #7D8AE0; --peri-ink: #070C26; --peri-dim: #1A1F3D;
  --share-bg: #2A1411; --share-fg: #FFE4DE; --share-acc: #FF8B76; --share-on: #2A0B05;
  --boot-bg: #171B7A; --boot-fg: #E9EBFF; --boot-acc: #9AA8FF; --boot-on: #0A0F45;
  --split-bg: #0C1630; --split-fg: #E4F3FF; --split-acc: #4ED3F5; --split-on: #04131D;
  --still-bg: #0F1B3E; --still-fg: #E2EAFF; --still-acc: #6E93FF; --still-on: #071029;
  --icon-ring: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.18);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 2px rgba(0,0,0,.5), 0 12px 28px -8px rgba(0,0,0,.6);
  color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]), html:not([data-theme="light"]) body { background: #060607; }
  html:not([data-theme="light"]) .xt { --page: #060607; --panel: #0F0F11; --card: #17171A; --sunk: #131316;
  --hair: rgba(255,255,255,.08); --hair2: rgba(255,255,255,.14);
  --ink: #F3F3F0; --ink2: #A6A6A1; --dim: #6C6C68;
  --black: #131315; --black-hair: #26262A; --glass: rgba(15,15,17,.66);
  --peri: #7D8AE0; --peri-ink: #070C26; --peri-dim: #1A1F3D;
  --share-bg: #2A1411; --share-fg: #FFE4DE; --share-acc: #FF8B76; --share-on: #2A0B05;
  --boot-bg: #171B7A; --boot-fg: #E9EBFF; --boot-acc: #9AA8FF; --boot-on: #0A0F45;
  --split-bg: #0C1630; --split-fg: #E4F3FF; --split-acc: #4ED3F5; --split-on: #04131D;
  --still-bg: #0F1B3E; --still-fg: #E2EAFF; --still-acc: #6E93FF; --still-on: #071029;
  --icon-ring: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.18);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 2px rgba(0,0,0,.5), 0 12px 28px -8px rgba(0,0,0,.6);
  color-scheme: dark; }
}
html[data-theme="dark"], html[data-theme="dark"] body { background: #060607; }

/* Live widget parts: conditional pieces stay in the page and are shown by site.js */
.when { display: contents; }
.when[hidden] { display: none !important; }
template { display: none; }

/* Legal documents (privacy, terms, refund, delete-account) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 18px; }
.crumbs a { color: var(--ink2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--hair2); transition: background-color .2s, color .2s; }
.subnav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--panel); box-shadow: none; }
.doc { max-width: 760px; margin-top: 28px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink2); overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; color: var(--ink); margin: 0 0 18px; text-wrap: balance; }
.doc h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--ink); margin: 44px 0 10px; }
.doc h3 { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 26px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.doc code { font-family: var(--mono); font-size: .92em; background: var(--sunk); padding: 1px 6px; border-radius: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; font-size: .95rem; }
.doc th { color: var(--ink); font-weight: 600; }
.doc .meta { color: var(--ink2); }
.doc .box { border-radius: 16px; padding: 16px 18px; margin: 18px 0; box-shadow: inset 0 0 0 1px var(--hair2); }
