:root {
  color-scheme: light;
  --paper: #e9e6df;
  --ink: #1b281b;
  --accent: #98134e;
}

* { box-sizing: border-box; }

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

body {
  background:
    radial-gradient(ellipse at 50% 44%, rgba(255, 255, 255, .8), transparent 57%),
    linear-gradient(135deg, #efeee9 0%, #dfded8 100%);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page {
  min-height: 100svh;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 88px);
  padding: clamp(24px, 6vw, 88px);
  overflow: hidden;
}

.artwork {
  display: block;
  justify-self: center;
  width: auto;
  height: min(78svh, 820px);
  max-width: 100%;
  object-fit: contain;
  animation: artwork-in 1s cubic-bezier(.2, .7, .2, 1) both;
}

h1 {
  position: relative;
  display: inline-block;
  margin: 0 0 .13em 0;
  color: var(--ink);
  font-size: clamp(96px, 17vw, 250px);
  line-height: .78;
  font-weight: 600;
  letter-spacing: -.105em;
  animation: title-in .8s cubic-bezier(.2, .7, .2, 1) .18s both;
}

h1::after {
  content: "";
  position: absolute;
  left: .02em;
  width: 2.08em;
  bottom: -.2em;
  height: .045em;
  min-height: 5px;
  border-radius: 99px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: underline-in .65s cubic-bezier(.16, 1, .3, 1) .72s forwards;
}

@keyframes artwork-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes underline-in {
  to { transform: scaleX(1); }
}

@media (max-width: 700px) {
  .page {
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: clamp(28px, 6vh, 48px);
    padding: 24px;
  }

  .artwork {
    height: min(67svh, 680px);
    max-width: 100%;
  }

  h1 {
    justify-self: center;
    font-size: clamp(88px, 24vw, 150px);
  }
}

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