* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft starfield backdrop, fixed behind all content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(243, 236, 223, 0.5), transparent),
    radial-gradient(1px 1px at 78% 8%, rgba(243, 236, 223, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 32% 62%, rgba(203, 163, 92, 0.4), transparent),
    radial-gradient(1px 1px at 88% 44%, rgba(243, 236, 223, 0.3), transparent),
    radial-gradient(1px 1px at 55% 82%, rgba(216, 154, 160, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 6% 90%, rgba(243, 236, 223, 0.3), transparent),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--color-cream);
}

p {
  margin: 0;
  color: var(--color-muted);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* Visible keyboard focus, always */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
