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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--color-text);
  background: var(--color-white);
  line-height: var(--leading-relaxed);
  padding-top: var(--nav-h);
}

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

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

ul, ol {
  list-style: none;
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-x);
}

.section {
  padding: var(--section-y) var(--section-x);
}

.section--light  { background: var(--color-offwhite); }
.section--white  { background: var(--color-white); }
.section--dark   { background: var(--color-black); }

/* Section labels & titles */
.section-label {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-2);
  display: block;
}

.section-label--light {
  color: rgba(176, 28, 28, 0.75);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

.section-title--light {
  color: var(--color-white);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 520px;
  margin-bottom: var(--space-12);
}

.section-sub--light {
  color: rgba(255,255,255,0.65);
}

/* Placeholder images */
.placeholder-img {
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  min-height: 200px;
}

/* Focus accessible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
  .section {
    padding: 3rem var(--space-4);
  }
  .section-title {
    font-size: var(--text-3xl);
  }
}
