/* =============================================
   BASE STYLES — Typography, Body, Scrollbar
   ============================================= */

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  overflow-x: hidden;
  /* Subtle red ambient glow on the whole page */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(229, 37, 53, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(229, 37, 53, 0.03) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(229, 37, 53, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--c-red-dark);
  border-radius: 3px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-red);
  box-shadow: 0 0 10px rgba(229, 37, 53, 0.6);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--c-red-dark) var(--c-bg);
}

/* Selection */
::selection {
  background: var(--c-red);
  color: #fff;
}

::-moz-selection {
  background: var(--c-red);
  color: #fff;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--c-text);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed);
}

strong {
  font-weight: var(--fw-bold);
  color: var(--c-text);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Hide elements but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
