:root {
  --mp-pale-sage: #eaf2ee;
  --mp-dusty-blue: #edf2f7;
  --mp-soft-peach: #f8eee9;
  --mp-gentle-lilac: #f1eef7;
  --mp-warm-sand: #f4f0e8;
  --mp-background: #f8f3ef;
  --mp-background-secondary: #f6f0eb;
  --mp-peach-glow: #f6e5db;
  --mp-text-primary: #2b2a2b;
  --mp-text-secondary: #726a66;
  --mp-warm-accent: #b5a494;
}

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

html,
body {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--mp-background);
}

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

.splash {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 38%, rgb(255 255 255 / 72%), transparent 38%),
    linear-gradient(135deg, var(--mp-background) 0%, var(--mp-background-secondary) 100%);
}

.artwork {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  overflow: hidden;
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
}

.message {
  position: absolute;
  z-index: 1;
  top: 43.75%;
  left: clamp(2.5rem, 6.55vw, 7.5rem);
  width: min(49vw, 41rem);
  transform: translateY(-50%);
}

.message h1,
.message p {
  margin: 0;
  font-weight: 400;
}

.message h1 {
  max-width: 41rem;
  font-size: clamp(3.45rem, 5.05vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
}

@media (min-width: 901px) and (min-height: 521px) {
  .artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .message h1 {
    white-space: nowrap;
  }
}

.message p {
  margin-top: clamp(2rem, 3vw, 2.75rem);
  color: var(--mp-text-secondary);
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.018em;
}

@media (min-width: 1600px) {
  .message {
    left: 6.7vw;
  }

  .message h1 {
    font-size: clamp(4.5rem, 4.6vw, 5.2rem);
  }
}

@media (max-width: 900px) and (min-height: 521px) {
  .splash {
    min-height: 100svh;
  }

  .artwork {
    inset: auto 0 0;
    height: 72svh;
  }

  .artwork::before {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 22%;
    content: "";
    pointer-events: none;
    background: linear-gradient(to bottom, var(--mp-background) 0%, rgb(248 243 239 / 78%) 42%, transparent 100%);
  }

  .artwork img {
    position: absolute;
    bottom: -1.5svh;
    left: 50%;
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
    transform: translateX(-69.5%);
  }

  .message {
    top: clamp(3.75rem, 10svh, 6.5rem);
    left: clamp(1.5rem, 7vw, 3.75rem);
    width: calc(100% - clamp(3rem, 14vw, 7.5rem));
    transform: none;
  }

  .message h1 {
    max-width: 31rem;
    font-size: clamp(2.85rem, 7.8vw, 4rem);
    line-height: 1.07;
    letter-spacing: -0.04em;
  }

  .message p {
    margin-top: clamp(1.3rem, 3.5svh, 2rem);
    font-size: clamp(1.08rem, 3.1vw, 1.35rem);
  }
}

@media (max-width: 480px) and (min-height: 521px) {
  .artwork {
    height: 67svh;
  }

  .message {
    top: clamp(3.5rem, 9svh, 5rem);
    left: clamp(1.35rem, 6vw, 1.8rem);
    width: calc(100% - clamp(2.7rem, 12vw, 3.6rem));
  }

  .message h1 {
    font-size: clamp(2.5rem, 10.5vw, 2.85rem);
  }

  .message p {
    margin-top: 1.3rem;
    font-size: clamp(1.05rem, 4.6vw, 1.2rem);
  }
}

@media (max-height: 520px) and (min-width: 600px) {
  .message {
    top: 46%;
    left: 6vw;
    width: 48vw;
  }

  .message h1 {
    font-size: clamp(2.25rem, 5vw, 3.4rem);
  }

  .message p {
    margin-top: 1.25rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  .artwork img {
    object-position: 58% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
