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

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

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

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

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

ul, ol {
  list-style: none;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Section spacing */
.section {
  padding: var(--space-24) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--e2l-light);
  display: block;
  margin-bottom: var(--space-4);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(var(--size-4xl), 6vw, var(--size-7xl)); }
h2 { font-size: clamp(var(--size-3xl), 4vw, var(--size-5xl)); }
h3 { font-size: clamp(var(--size-xl), 2.5vw, var(--size-3xl)); }
h4 { font-size: var(--size-xl); }

p {
  line-height: 1.75;
  color: inherit;
}

/* Dark section text */
.bg-dark {
  background: var(--e2l-dark);
  color: var(--e2l-white);
}

.bg-surface {
  background: var(--e2l-surface);
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Divider */
.divider {
  width: 48px;
  height: 2px;
  background: var(--e2l-light);
  margin: var(--space-6) 0;
}

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

/* Section heading */
.section-heading {
  max-width: 680px;
  margin-bottom: var(--space-16);
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
