*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bone: #e8dcc8;
  --bone-dim: #9e9080;
  --red: #c0392b;
  --red-glow: rgba(192, 57, 43, 0.4);
  --dark: #06030f;
  --dark-mid: rgba(8, 4, 20, 0.85);
  --dark-card: rgba(12, 6, 28, 0.78);
  --border: rgba(180, 140, 255, 0.18);
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #06030f;
  background-image: url('/space-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dark overlay so text stays readable over the space background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(4, 0, 14, 0.65);
  pointer-events: none;
  z-index: 0;
}

#__next {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--red);
  color: var(--bone);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #06030f; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
