/*
 * Webfonts load from the theme's fonts.css (linked in index.html). The theme
 * registers Pangram Bold at weight 600, so this experience's 700 would fall
 * through to ExtraBold (800); map 700 back to the Bold file.
 */
@font-face {
  font-family: "Pangram";
  src: url("../../../../fonts/pangram-bold-webfont.woff2") format("woff2"),
       url("../../../../fonts/pangram-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #071211;
  --color-text: #f3ead4;
  --color-text-muted: #cbbfa6;
  --color-accent: #f0eadc;
  --color-cta: #d27455;
  --color-sea: #9ec4bc;
  --font-display: "Noe Display", Georgia, serif;
  --font-serif: "Merriweather", Georgia, serif;
  --font-sans: "Pangram", system-ui, sans-serif;
  --header-h: 46px;
  --nav-h: 46px;
}

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

html,
body {
  min-height: 100%;
}

html:not(.is-merge-playing):not(.is-blink) {
  scroll-behavior: smooth;
}

html.is-merge-playing {
  overscroll-behavior: none;
  touch-action: none;
}

html.is-blink canvas {
  translate: 0 0;
  backface-visibility: hidden;
}

body {
  margin: 0;
  background: #071211;
  color: var(--color-text);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
}

.bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  opacity: var(--water-fade, 1);
}

.bubble {
  position: absolute;
  bottom: -24px;
  border-radius: 50%;
  border: 0;
  background: rgba(198, 224, 218, 0.22);
  animation-name: boil;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.bubble.is-driven {
  animation: none;
}

@keyframes boil {
  0% {
    transform: translate3d(0, 0, 0) scale(0.65);
    opacity: 0;
  }
  10% {
    opacity: var(--peak, 0.16);
  }
  78% {
    opacity: calc(var(--peak, 0.16) * 0.55);
  }
  100% {
    transform: translate3d(var(--drift, 0px), -112vh, 0) scale(1.08);
    opacity: 0;
  }
}

button,
a {
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
