/* Base */
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background-color: var(--color-offwhite);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  line-height: 1.7;
  max-width: 65ch;
}

/* Links */
a {
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Overline / Label text */
.overline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Section number */
.section-number {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-3xl);
  color: var(--color-taupe);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn--outline {
  border: 1px solid var(--color-offwhite);
  color: var(--color-offwhite);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-offwhite);
  color: var(--color-charcoal);
}

.btn--outline-dark {
  border: 1px solid var(--color-charcoal);
  color: var(--color-charcoal);
  background: transparent;
}

.btn--outline-dark:hover {
  background: var(--color-charcoal);
  color: var(--color-offwhite);
}

/* Blockquote */
blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-2xl);
  line-height: 1.4;
  max-width: 48ch;
}

/* Horizontal rule / decorative */
.rule {
  width: 48px;
  height: 1px;
  background: var(--color-taupe);
  border: none;
}

/* Section backgrounds */
.bg-charcoal {
  background-color: var(--color-charcoal);
  color: var(--color-offwhite);
}

.bg-warmgray {
  background-color: var(--color-warmgray);
}

.bg-offwhite {
  background-color: var(--color-offwhite);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger .reveal:nth-child(7) { transition-delay: 600ms; }

/* Selection */
::selection {
  background: var(--color-navy);
  color: var(--color-offwhite);
}
