/* ============================================================
   BASE STYLES — base.css
   CSS reset, root typography, global utilities
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  font-size: var(--type-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--clr-dark);
  background-color: var(--clr-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--t-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--ff-sans);
  color: var(--clr-dark);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.25rem, 4vw, var(--type-h1)); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3vw, var(--type-h2)); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 2.4vw, var(--type-h3)); font-weight: 700; }
h4 { font-size: clamp(1.25rem, 2vw, var(--type-h4)); font-weight: 700; }

p { line-height: 1.75; color: var(--clr-gray-700); }

/* ---- Selection ---- */
::selection {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--clr-cream); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: var(--r-full); }

/* ---- Typography Utilities ---- */
.section-label {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--ff-sans);
  font-size: clamp(1.875rem, 3vw, var(--type-h2));
  font-weight: var(--fw-bold);
  color: var(--clr-dark);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section-title--white { color: var(--clr-white); }
.section-title--center { text-align: center; }

.text-muted {
  color: var(--clr-gray-500);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
}

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--clr-primary);
  border-radius: var(--r-full);
  margin: var(--sp-5) 0;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ---- Visually Hidden ---- */
.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;
}
