html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: clamp(1.5rem, 3vw, var(--font-size-2xl)); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p + p {
  margin-top: var(--space-sm);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--content-width);
}

/* Section spacing */
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Links with underline animation */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.link-underline:hover::after {
  transform: scaleX(1);
}

/* Utility */
.text-gray {
  color: var(--color-gray-400);
}

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

.text-xs {
  font-size: var(--font-size-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
