/* Base Element Styles & Typography */

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
}

h1 {
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
}

/* Labels */
.label {
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: var(--tracking-tight);
}

.label--white {
  color: var(--color-white);
}

/* Body text */
p {
  max-width: 60ch;
}

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

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

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

/* Image orientation fix for EXIF data */
img {
  image-orientation: from-image;
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Scroll reveal base */
.reveal {
  visibility: hidden;
}

.reveal.is-visible {
  visibility: visible;
}
