/* ============================================================
   BASE.CSS — Reset, Variables, Animation, Typography
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
  --primary: #8479d9;
  --primary-medium: #aaa4e6;
  --primary-light: #f0f0fb;
  --black: #0f0f12;
  --grey: #85858c;
  --medium-grey: #d2d2d5;
  --light-grey: #f1f1f1;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.12);
}

/* --- Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Typography & Body Defaults --- */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}
