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

html {
  font-size: 100%; /* Base 16px for user scaling */
  scroll-behavior: smooth;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  /* Minimum font size floor with fluid scaling */
  font-size: max(var(--font-size-base), var(--font-size-min));
  overflow-x: hidden;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-bright);
  text-transform: uppercase;
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Tappable minimum touch target size */
a,
button,
.clickable {
  min-width: 44px;
  min-height: 44px;
}

/* Accessibility: Visible focus rings for keyboard navigation */
a:focus-visible,
button:focus-visible,
.clickable:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Mono font utility class */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}

/* Base utility for accent2 / redline */
.text-redline {
  color: var(--accent2);
}

.text-accent {
  color: var(--accent);
}

.text-bright {
  color: var(--text-bright);
}

/* Custom Selection */
::selection {
  background-color: var(--accent);
  color: var(--bg);
}

/* Accessibility: Remove smooth scrolling on reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}