/* ==========================================================
   BASE — Reset, Typography, Global Styles
   ========================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Selection ── */
::selection {
  background-color: var(--ocean-300);
  color: var(--navy-900);
}

/* ── Images & Media ── */
img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Links ── */
a {
  color: var(--ocean-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--ocean-400);
}

/* ── Focus Visible (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--ocean-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: var(--white);
}

p {
  margin-bottom: var(--space-4);
  max-width: 72ch;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: var(--weight-semibold);
}

small {
  font-size: var(--text-sm);
}

/* ── Lists ── */
ul, ol {
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

/* ── Blockquote ── */
blockquote {
  border-left: 4px solid var(--ocean-500);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--gray-600);
  background: var(--gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ── Horizontal Rule ── */
hr {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: var(--space-8) 0;
}

/* ── Utility Classes ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gradient {
  background: linear-gradient(135deg, var(--ocean-400), var(--ocean-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--coral-500), var(--warm-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline / subtitle style */
.tagline {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ocean-400);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 60ch;
  line-height: var(--leading-relaxed);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-600);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ocean-500);
}
