*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg-0); color-scheme: dark; }
body {
  min-height: 100dvh; font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; color: var(--text-1);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 55% at 115% -5%, rgba(90, 14, 18, .7), transparent 55%),
    radial-gradient(90% 45% at -20% 105%, rgba(58, 7, 9, .55), transparent 55%),
    var(--bg-0);
  background-attachment: fixed;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.num { font-variant-numeric: tabular-nums; font-weight: 900; direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; border-radius: var(--r-btn); }

/* view transitions between screens */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-3); animation-timing-function: var(--ease-out); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* An element marked hidden stays hidden, whatever display its class gives it. */
[hidden] { display: none !important; }
