:root {
  color-scheme: light;
  --paper: #f4ecd9;
  --ink: #382636;
  --teal: #0699a7;
  --mustard: #efa91d;
  --coral: #ef6845;
  --leaf: #35432b;
}

* {
  box-sizing: border-box;
}

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

body {
  background-color: var(--paper);
  background-image: url("/assets/paper-texture.jpg");
  background-repeat: repeat;
  background-size: 360px 260px;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.11;
  background-image: radial-gradient(circle at 40% 20%, rgba(53, 67, 43, 0.5) 0 0.7px, transparent 0.9px);
  background-size: 9px 9px;
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.intro {
  position: relative;
  z-index: 4;
  width: min(47rem, 49vw);
  margin-left: 47vw;
  padding: clamp(3.2rem, 8vh, 7rem) clamp(2rem, 6vw, 7rem) 8rem 0;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--teal);
  font-size: clamp(0.68rem, 0.85vw, 0.85rem);
  font-weight: 750;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.8rem, 9.2vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.76;
}

h1::first-line {
  color: var(--ink);
}

blockquote {
  max-width: 35rem;
  margin: clamp(2.6rem, 7vh, 5.6rem) 0 0 clamp(0rem, 3vw, 3.5rem);
  padding-left: clamp(1rem, 2vw, 1.8rem);
  border-left: 2px solid rgba(6, 153, 167, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
}

blockquote p {
  margin: 0;
}

blockquote p + p {
  margin-top: 1.15em;
}

.portrait {
  position: absolute;
  z-index: 3;
  bottom: -9vw;
  left: -5vw;
  width: min(58vw, 52rem);
  margin: 0;
  transform: rotate(-1.7deg);
}

.portrait picture,
.portrait img {
  display: block;
  width: 100%;
}

.portrait img {
  height: auto;
}

.sun,
.coral {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
}

.sun {
  top: -26vw;
  left: 17vw;
  width: 58vw;
  height: 58vw;
  background-color: var(--mustard);
  background-image: url("/assets/mustard-texture.jpg");
  background-repeat: repeat;
  background-size: 92px 92px;
  opacity: 0.75;
}

.coral {
  right: -18vw;
  bottom: -31vw;
  width: 59vw;
  height: 59vw;
  background-color: var(--coral);
  background-image: url("/assets/coral-texture.jpg");
  background-repeat: repeat;
  background-size: 150px 200px;
  opacity: 0.88;
}

.seed {
  position: absolute;
  z-index: 1;
  width: clamp(0.8rem, 1.4vw, 1.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
}

.seed-one {
  top: 12vh;
  right: 7vw;
}

.seed-two {
  right: 13vw;
  bottom: 12vh;
  background: var(--mustard);
}

.note {
  position: absolute;
  z-index: 4;
  right: 3.5vw;
  bottom: 2.2rem;
  margin: 0;
  color: rgba(56, 38, 54, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page {
    width: 100%;
    height: 100svh;
    min-height: 0;
  }

  .intro {
    width: auto;
    margin: 0;
    padding: clamp(1.35rem, 4.5vh, 2.25rem) 1.25rem 0;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
    line-height: 0.78;
  }

  blockquote {
    display: none;
  }

  .portrait {
    bottom: -7vw;
    left: -12vw;
    width: min(112vw, 39rem);
  }

  .sun {
    top: -25vw;
    left: 34vw;
    width: 105vw;
    height: 105vw;
  }

  .coral {
    right: -43vw;
    bottom: -8vw;
    width: 100vw;
    height: 100vw;
  }

  .seed-two {
    display: none;
  }

  .note {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: 1.1rem 1.25rem 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: none;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  .eyebrow {
    margin-bottom: 0.7rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  .portrait {
    bottom: -10vw;
    width: min(100vw, 34rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro {
    animation: arrive 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .portrait {
    animation: portrait-arrive 900ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes portrait-arrive {
    from { opacity: 0; transform: translate(-18px, 20px) rotate(-1.7deg); }
    to { opacity: 1; transform: translate(0, 0) rotate(-1.7deg); }
  }
}
