/* =========================================================
   BASE
   ========================================================= */

@font-face {
  font-family: "Pinyon Script";
  src: url("../fonts/PinyonScript-Regular.woff2.ttf") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Regular.woff2.otf") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Italic.woff2.otf") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Light.woff2.otf") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Perandory";
  src: url("../fonts/Perandory.woff2.otf") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

.display {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 10rem);
  line-height: 0.82;
  font-weight: 400;
}

.heading {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}

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

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 400;
}

.eyebrow--light {
  color: rgba(255,255,255,0.8);
}

.section-script {
  margin: 0 0 var(--space-2);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.9;
}

.section-number {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-detail);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-8) var(--space-3);
}

.section--cream {
  background: #fffcef;
}

.section--wine {
  background: var(--color-primary);
  color: var(--color-white);
}

.section__inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  text-align: center;
}

.section__inner--narrow {
  max-width: var(--reading-width);
}

.divider {
  margin: var(--space-5) 0;
  color: var(--color-primary);
  font-family: var(--font-detail);
  font-size: 1.1rem;
}
