/* Google Fonts — Cormorant Garamond + Inter, weights 400 and 600 only */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Inter:wght@400;600&display=swap');

/* Modern CSS 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(--font-body);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-carbon);
  background-color: var(--color-warm-white);
  overflow-x: hidden;
}

/* Heading typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
}

h1 {
  font-size: var(--text-display);
  line-height: var(--lh-display);
}

h2 {
  font-size: var(--text-heading);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;  /* 20px — presentational override for cards/pillars */
  font-weight: var(--fw-regular);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

/* Smooth scroll margin offset for sticky header */
section[id] {
  scroll-margin-top: var(--header-height);
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
