@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color: #0b0d0d;
  background: #d6e3e9;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

.scene,
.scene__image,
.scene__veil,
.scene__grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: -1;
  overflow: hidden;
  background: #afc9d6;
}

.scene__image {
  inset: -5.5%;
  background-image: url("./assets/bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.05);
  will-change: transform;
}

.scene__veil {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.12) 0%, rgba(255, 248, 236, 0) 32%, rgba(13, 30, 41, 0.08) 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 248, 236, 0.14), rgba(255, 248, 236, 0) 58%);
}

.scene__grain {
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100% - 56px, 1320px);
  margin: 0 auto;
}

.site-header {
  padding-top: 28px;
}

.wordmark {
  padding: 9px 21px 8px;
  color: inherit;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  border: 1px solid rgba(255, 250, 241, 0.42);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(11, 13, 13, 0.08),
    0 8px 28px rgba(44, 68, 83, 0.12);
  backdrop-filter: blur(18px) saturate(0.9);
}

.wordmark span {
  color: #d76834;
}

.hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 123px);
  padding: 58px 28px 80px;
}

.message {
  width: min(100%, 680px);
  padding: clamp(42px, 7vw, 76px) clamp(28px, 7vw, 76px) clamp(44px, 7vw, 78px);
  border: 1px solid rgba(255, 250, 241, 0.42);
  border-radius: 36px;
  background: rgba(255, 249, 238, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(11, 13, 13, 0.08),
    0 24px 90px rgba(44, 68, 83, 0.15);
  text-align: center;
  backdrop-filter: blur(18px) saturate(0.86);
}

.eyebrow {
  margin: 0 0 25px;
  color: #31484e;
  font-size: 0.73rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 560px;
  margin: 0 auto;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4rem, 9vw, 7.35rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.intro {
  margin: 31px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 36px, 1320px);
  }

  .site-header {
    padding-top: 20px;
  }

  .hero {
    min-height: calc(100svh - 98px);
    padding: 36px 18px 72px;
  }

  .message {
    padding-right: 24px;
    padding-left: 24px;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 5.25rem);
  }

  .intro {
    font-size: 1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .scene__image {
    transform: scale(1.05);
    transition: none;
  }
}
