:root {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  line-height: 1.55;
  font-size: 17px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  /* Layered: frost glow at the peaks, cold depth gradient, grain */
  background-color: var(--bg);
  background-image:
    radial-gradient(130% 80% at 50% -15%, rgba(79, 159, 184, 0.22), transparent 55%),
    radial-gradient(150% 130% at 50% 120%, rgba(0, 0, 0, 0.7), transparent 60%),
    linear-gradient(180deg, #0e1820 0%, #0b1116 50%, #080d11 100%),
    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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-repeat: repeat;
}

body::before {
  /* Edge vignette, RDR2-style */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 240px rgba(0, 0, 0, 0.7);
}

.app-shell {
  position: relative;
  z-index: 2;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: #06222b;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}
