:root {
  color-scheme: light;
  --spruce: #0b2b26;
  --spruce-soft: #18443b;
  --signal: #d8ff49;
  --sunrise: #ff6b43;
  --sky: #56c9ff;
  --mist: #dcebe7;
  --paper: #f8fff7;
  --display:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  --shift-x: 0px;
  --shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--mist);
}

body {
  color: var(--spruce);
  font-family:
    "Avenir Next",
    Avenir,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  overflow: hidden;
  background: var(--mist);
}

.landscape {
  z-index: -3;
  position: absolute;
  inset: -2.5%;
  width: 105%;
  height: 105%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.015);
  animation: landscape-arrival 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  will-change: transform;
}

.atmosphere {
  z-index: -2;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 8% 17%,
      rgb(248 255 247 / 62%) 0,
      rgb(248 255 247 / 34%) 22%,
      transparent 46%
    ),
    linear-gradient(
      90deg,
      rgb(248 255 247 / 58%) 0,
      rgb(248 255 247 / 18%) 42%,
      transparent 64%
    );
  pointer-events: none;
}

.site-header,
.hero {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 5vw, 5.5rem);
}

.site-header {
  padding-top: clamp(1.35rem, 4vw, 4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.65rem, 1vw, 1rem);
  color: inherit;
  text-decoration: none;
  transform-origin: left center;
  animation: brand-arrival 0.85s 0.05s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand:focus-visible {
  outline: 3px solid var(--sunrise);
  outline-offset: 0.5rem;
  border-radius: 0.65rem;
}

.brand-mark-frame {
  position: relative;
  display: grid;
  width: clamp(3.1rem, 5.8vw, 5.8rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 0.65rem 1.5rem rgb(11 43 38 / 16%));
}

.brand-mark-frame::after {
  content: "";
  position: absolute;
  inset: 7% 18% 52% 18%;
  border-radius: 50%;
  background: linear-gradient(125deg, rgb(255 255 255 / 55%), transparent 68%);
  opacity: 0;
  transform: translateX(-30%);
  transition:
    opacity 260ms ease,
    transform 420ms ease;
  pointer-events: none;
}

.brand:hover .brand-mark-frame::after {
  opacity: 0.7;
  transform: translateX(24%);
}

.brand-mark {
  display: block;
  width: 100%;
  height: 100%;
}

.wordmark {
  font-size: clamp(1.8rem, 3.4vw, 3.55rem);
  font-weight: 420;
  letter-spacing: -0.065em;
  line-height: 1;
}

.wordmark strong {
  font-weight: 760;
}

.hero {
  align-self: center;
  padding-top: clamp(2.5rem, 8vh, 6.5rem);
  padding-bottom: clamp(7rem, 16vh, 11rem);
}

.hero h1 {
  max-width: 12.5ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 7.4vw, 7.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgb(255 255 255 / 18%);
  animation: copy-arrival 1s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 span {
  display: block;
}

.hero h1 .period {
  display: inline;
  color: #b8df16;
  text-shadow: 0 0 1.5rem rgb(216 255 73 / 56%);
}

.hero p {
  margin: clamp(1.5rem, 2.4vw, 2.3rem) 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.7vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
  animation: copy-arrival 1s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes landscape-arrival {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(1.055);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.015);
  }
}

@keyframes brand-arrival {
  from {
    opacity: 0;
    transform: translateY(-0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copy-arrival {
  from {
    opacity: 0;
    transform: translateY(1.3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .page {
    min-height: 100svh;
  }

  .landscape {
    inset: -1.5%;
    width: 103%;
    height: 103%;
    object-position: 58% center;
  }

  .atmosphere {
    background:
      linear-gradient(
        180deg,
        rgb(248 255 247 / 28%) 0,
        rgb(248 255 247 / 10%) 55%,
        transparent 72%
      ),
      linear-gradient(
        90deg,
        rgb(248 255 247 / 68%) 0,
        rgb(248 255 247 / 34%) 70%,
        transparent 100%
      );
  }

  .site-header {
    padding-top: 1.35rem;
  }

  .hero {
    align-self: start;
    padding-top: clamp(4.5rem, 12vh, 7rem);
    padding-bottom: 8rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 12.6vw, 5.2rem);
    letter-spacing: -0.055em;
    line-height: 0.96;
  }

  .hero p {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero {
    padding-inline: 1.15rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark-frame {
    width: 3rem;
  }

  .wordmark {
    font-size: 1.9rem;
  }

  .hero {
    padding-top: clamp(4rem, 11vh, 6rem);
  }

  .hero h1 {
    font-size: clamp(3rem, 12.6vw, 3.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .landscape {
    transform: none;
  }
}
