/* Base styles: minimal, calm, no harsh contrast */

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

html {
  /* Instant scroll for snappier feel; smooth scroll via JS on anchor clicks */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light grain: static PNG tile (performant) – optional; removed for smooth scroll */

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

a {
  color: var(--color-cta);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Section spacing */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 3rem);
}

.section--dark {
  background: var(--color-midnight);
  color: var(--color-text-on-dark);
}

.section--light {
  background: var(--color-off-white);
  color: var(--color-text-primary);
}

.section--gradient {
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  color: var(--color-text-on-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-text-on-dark);
}

.section--dark p {
  color: var(--color-text-muted-on-dark);
}

.section--light .muted {
  color: var(--color-text-secondary);
}
