/* godyor: shared tokens. One dark look (navy room, one blue light, dark glass with a white rim), colours set explicitly. */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-wide.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url(/assets/fonts/commissioner.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url(/assets/fonts/commissioner-sym.woff2) format("woff2"); font-weight: 100 900; unicode-range: U+2264-2265; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url(/assets/fonts/redhatmono.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0e1520;
  --ground-2: #111a28;
  --ground-3: #16212f;
  --glass: rgba(19, 28, 43, .82);
  --glass-solid: #131c2b;
  --glass-2: rgba(26, 37, 56, .96);
  --rim: rgba(255, 255, 255, .16);
  --rim-hi: rgba(255, 255, 255, .34);
  --line: rgba(196, 210, 235, .12);
  --line-2: rgba(196, 210, 235, .22);
  --grid: rgba(150, 172, 214, .055);
  --ink: #f2f5fa;
  --ink-2: #b3bdcc;
  --ink-3: #8f9ab0;
  --blue: #315ce8;
  --blue-hi: #7f9bff;
  --blue-ink: #dfe6ff;
  --blue-wash: rgba(49, 92, 232, .16);
  --f-title: "Archivo", "Arial Black", sans-serif;
  --f-body: "Commissioner", "Segoe UI", sans-serif;
  --f-num: "Red Hat Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-long: cubic-bezier(.16, 1, .3, 1);
  --ease-state: cubic-bezier(.65, 0, .35, 1);
  --ease-press: cubic-bezier(.4, 0, .2, 1);
  --r-ctl: 10px;
  --r-card: 16px;
  --r-slab: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #0e1520; }
body {
  margin: 0; background: #0e1520; color: #f2f5fa;
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "calt" 0;
}
a { color: inherit; }
img { max-width: 100%; }
.num, .mono { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "calt" 0; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* buttons: outline-only rectangles, rim light */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 18px; border-radius: 8px;
  font: 600 15px/1 var(--f-body); letter-spacing: .005em; color: var(--ink); text-decoration: none;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  transition: background-color 160ms var(--ease-press), border-color 160ms var(--ease-press), transform 150ms var(--ease-press), color 160ms var(--ease-press);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .05); border-color: var(--rim-hi); }
.btn:active { transform: scale(.97); background: rgba(255, 255, 255, .09); }
.btn:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; background: rgba(255, 255, 255, .05); border-color: var(--rim-hi); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.is-busy { cursor: progress; }
.btn.blue { border-color: rgba(127, 155, 255, .55); color: var(--blue-ink); }
.btn.blue:hover { background: var(--blue-wash); border-color: var(--blue-hi); }
.btn.is-ok { border-color: var(--rim-hi); background: rgba(255, 255, 255, .06); }
.btn.is-err { border-color: #e7eaf0; }
.btn .lbl { display: inline-block; }
.btn.is-busy .lbl::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn svg { width: 14px; height: 14px; flex: none; }

.stamp {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 6px;
  font: 700 13px/1 var(--f-title); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--rim-hi);
}
.stamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); display: block; }

/* inline links in running text */
a.u { color: var(--blue-ink); text-decoration: underline; text-decoration-color: rgba(127, 155, 255, .5); text-underline-offset: 3px; }
a.u:hover { text-decoration-color: currentColor; }
a.u:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; border-radius: 2px; }

/* status glyphs: shape and word, never colour alone */
.g { width: 22px; height: 22px; display: block; color: var(--ink); flex: none; }

/* toasts */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); animation: tin 400ms var(--ease-out); }
@keyframes tin { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) { .toasts { left: 16px; right: 16px; bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
