:root {
  color-scheme: dark;
  --veil-top: #110c0830;
  --veil-bottom: #110c0866;
  --film-focus: center center;
  --paper: #fff3d8;
  --muted: #d2bc9b;
  --gold: #f0d4a0;
  --border: #755c3d;
  --surface: #19120d;
  --field: #140e0b;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #18110e; scroll-padding-top: 16px; }
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  font: 16px/1.5 system-ui, sans-serif;
}
#world-film,
.world-shade {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#world-film {
  z-index: -2;
  object-fit: cover;
  object-position: var(--film-focus);
}
.world-shade {
  z-index: -1;
  background: linear-gradient(180deg, var(--veil-top), var(--veil-bottom));
}
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button:enabled { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: #634620; color: var(--paper); }
[id] { scroll-margin-top: var(--jump-margin, 12px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
