/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    oklch(0 0 0 / 0.015) 2px,
    oklch(0 0 0 / 0.015) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

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

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

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

/* =============================================
   ACCESSIBILITY
   ============================================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #000;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

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

@media (hover: none) {
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* =============================================
   SECTION COMMON
   ============================================= */
section {
  padding: var(--space-24) 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  display: block;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: var(--space-12);
}

/* Section background alternation */
#about      { background: var(--color-bg); }
#projects   { background: var(--color-surface); }
#skills     { background: var(--color-surface); }
#experience { background: var(--color-bg); }
#contact    { background: var(--color-surface); }

/* Reveal utility (initial state — JS animates in) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
