/*
 * Base — reset, root styles, typography scale.
 */

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-orange);
}

ul {
  list-style: none;
}

/* ── Typography scale ─────────────────────────────────── */

.display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1,
.h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.0;
  text-transform: uppercase;
}

h2,
.h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.1;
  text-transform: uppercase;
}

h3,
.h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-teal);
}

/* ── Layout helpers ───────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Grid overlay utility ─────────────────────────────── */
/*
 * Apply to any section that has a solid background-color.
 * The ::before sits above the bg colour but below content (z-index: 0 / 1).
 * Section must be position: relative.
 */

.has-grid {
  position: relative;
}

.has-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient( var(--grid-line) 1px, transparent 1px ),
    linear-gradient( 90deg, var(--grid-line) 1px, transparent 1px );
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
}

/* Ensure direct children of .has-grid sections stack above the grid */
.has-grid > * {
  position: relative;
  z-index: 1;
}
