/* ============================================================
   FLiiP Base — Reset + Typography
   ============================================================ */

*, *::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(--font);
  font-size: var(--sz-base);
  line-height: var(--lh-relaxed);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: var(--z-toast);
  background: var(--c-blue);
  color: var(--c-white);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: var(--sp-4);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  line-height: var(--lh-snug);
  color: inherit;
}

h1 {
  font-size: clamp(2.5rem, 6vw, var(--sz-h1));
  font-weight: 700;
  letter-spacing: var(--ls-snug);
}

h2 {
  font-size: clamp(1.75rem, 4vw, var(--sz-h2));
  font-weight: 700;
  letter-spacing: var(--ls-normal);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, var(--sz-h3));
  font-weight: 600;
  letter-spacing: -0.005em;
}

h4 {
  font-size: var(--sz-h4);
  font-weight: 600;
}

p {
  color: var(--c-gray-700);
  line-height: var(--lh-relaxed);
}

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color var(--dur-fast);
}
a:hover {
  color: var(--c-blue-dark);
}

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

ul, ol {
  list-style: none;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--sz-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-sky);
  flex-shrink: 0;
}
.eyebrow--light {
  color: var(--c-sky-soft);
}
.eyebrow--light::before {
  background: var(--c-sky);
}

/* Lead text */
.lead {
  font-size: var(--sz-lead);
  line-height: var(--lh-normal);
  color: var(--c-gray-700);
}
.lead--light {
  color: rgba(255,255,255,0.75);
}

/* Section spacing */
.section {
  padding: var(--sp-24) 0;
}
.section--sm {
  padding: var(--sp-16) 0;
}
.section--lg {
  padding: var(--sp-32) 0;
}

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