@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --glaze: #F5F2EA;
  --ink: #000;
  --muted: #3E4A6B;
  /* a soft glaze halo keeps black type legible over the pattern */
  --halo: 0 0 0.06em var(--glaze), 0 0 0.14em var(--glaze), 0 0 0.3em var(--glaze);
}

html,
body {
  margin: 0;
}

body {
  background: var(--glaze);
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* Hero: four layers that drift at different speeds as the page scrolls (parallax.js).
   The visuals run 20% past the hero and fade into the contact section below. */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__visuals {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120%;
  overflow: hidden;
}

.hero__layers {
  position: absolute;
  inset: 0;
}

.hero__layer {
  position: absolute;
  top: -17.5%;
  left: 0;
  width: 100%;
  height: 117.5%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}

.hero__layer--front {
  filter: drop-shadow(0 -0.5rem 1rem rgba(19, 34, 74, 0.3));
}

.hero__title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.hero__title h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(4.5rem, 18vw, 18rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: var(--halo);
}

@media (max-width: 640px) {
  .hero__title h1 {
    font-size: 26vw;
  }
}

.hero__fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(rgba(245, 242, 234, 0), var(--glaze));
}

/* Contact */
.contact {
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 26vh 1.5rem 4rem;
  text-align: center;
}

.contact__mail {
  color: var(--ink);
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 1.1;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.contact__mail:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0.2em;
}

.contact__line {
  margin: 0;
  color: var(--muted);
  font-size: 1.25rem;
}
