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

html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--color-ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--color-white);
  background: var(--color-ink);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

html.is-loading,
html.is-loading body {
  height: 100%;
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-section-title);
  font-weight: 400;
  line-height: 1.1;
}

.script-phrase {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(270px, 80vw);
  padding: 16px 24px;
  border: 0;
  border-radius: 30px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--font-size-button);
  font-style: italic;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--mauve {
  background: var(--color-mauve);
}

.button--burgundy {
  background: var(--color-burgundy);
}

.button--wine {
  background: var(--color-wine);
}

.preloader,
.page-transition {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-wine);
}

.preloader {
  z-index: 100;
}

.page-transition {
  z-index: 90;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}

.preloader__mark,
.page-transition__mark {
  width: 76px;
  height: auto;
}

.preloader__mark {
  opacity: 0;
}

.preloader__mark--visible,
.preloader__mark.is-visible {
  opacity: 1;
}

.preloader.is-hidden {
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.page-transition__mark {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
