:root {
  --paper: #f5e5bd;
  --paper-light: #fff0c9;
  --paper-deep: #dfbd76;
  --espresso: #2a160c;
  --espresso-soft: rgba(42, 22, 12, 0.72);
  --red: #c9472e;
  --green: #71833e;
  --mustard: #d7a335;
  --card: rgba(246, 224, 174, 0.78);
  --line: rgba(42, 22, 12, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--espresso);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 247, 219, 0.9), transparent 31%),
    radial-gradient(circle at 80% 16%, rgba(198, 71, 46, 0.1), transparent 28%),
    radial-gradient(circle at 70% 82%, rgba(113, 131, 62, 0.12), transparent 30%),
    linear-gradient(118deg, var(--paper-light), var(--paper) 48%, var(--paper-deep));
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 8;
  opacity: 0.58;
  background:
    radial-gradient(circle at 10% 12%, rgba(89, 52, 22, 0.16) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 38%, rgba(89, 52, 22, 0.13) 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 84%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.8px);
  background-size: 9px 9px, 13px 13px, 17px 17px;
  mix-blend-mode: multiply;
}

body::after {
  z-index: 9;
  opacity: 0.25;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(42, 22, 12, 0.12) 4px),
    linear-gradient(90deg, rgba(85, 54, 24, 0.18), transparent 16%, transparent 82%, rgba(85, 54, 24, 0.14));
  mix-blend-mode: multiply;
}

.ad {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(38px, 5vw, 78px);
}

.artwork {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -1vw;
  width: min(88vw, 1210px);
  height: 100%;
  min-height: 720px;
  overflow: hidden;
  clip-path: inset(0 0 0 55%);
  filter: saturate(1.04) contrast(1.08) sepia(0.04);
}

.artwork::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(245, 229, 189, 1) 0%, rgba(245, 229, 189, 1) 53%, rgba(245, 229, 189, 0.42) 61%, rgba(245, 229, 189, 0.02) 72%),
    linear-gradient(180deg, rgba(245, 229, 189, 0.1), transparent 34%, rgba(86, 51, 22, 0.08));
  content: "";
}

.artwork::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(42, 22, 12, 0.34) 0 0.8px, transparent 1px);
  background-size: 5px 5px;
  content: "";
  mix-blend-mode: multiply;
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 98% 52%;
  user-select: none;
}

.message {
  position: relative;
  z-index: 2;
  width: min(70vw, 1180px);
  min-height: calc(100vh - clamp(60px, 10vw, 152px));
  display: grid;
  align-items: center;
  justify-items: center;
}

.message-inner {
  width: 100%;
  max-width: 620px;
}

.pretitle {
  width: max-content;
  margin: 0 auto clamp(20px, 2.6vw, 34px);
  color: var(--espresso-soft);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: lowercase;
}

.pretitle::before,
.pretitle::after {
  display: inline-block;
  width: 10px;
  height: 10px;
  color: var(--mustard);
  background: currentColor;
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
  content: "";
}

.pretitle::before {
  margin-right: 18px;
}

.pretitle::after {
  margin-left: 18px;
}

h1 {
  margin: 0;
  max-width: 7ch;
  color: var(--espresso);
  font-size: 11.8rem;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 18px rgba(42, 22, 12, 0.12);
}

h1::after {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: -0.32em;
  border-radius: 54% 46% 58% 42%;
  background:
    radial-gradient(circle at 34% 28%, #f08a60 0 12%, transparent 13%),
    var(--red);
  box-shadow: 0 -0.16em 0 -0.08em var(--green);
  content: "";
  transform: translateY(-1.22em) rotate(-8deg);
}

.rule {
  display: flex;
  align-items: center;
  width: min(420px, 78%);
  margin: clamp(24px, 3vw, 40px) auto clamp(28px, 3.7vw, 50px);
  color: var(--green);
}

.rule::before,
.rule::after {
  flex: 1;
  border-top: 5px dotted currentColor;
  content: "";
}

.rule span {
  width: 14px;
  height: 14px;
  margin: 0 16px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
}

.tagline {
  margin: 0;
  max-width: 520px;
  color: var(--red);
  font-size: 3.12rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
}

.body-copy {
  max-width: 430px;
  margin: clamp(28px, 3.6vw, 48px) 0 0;
  color: rgba(42, 22, 12, 0.86);
  font-size: 1.16rem;
  line-height: 1.62;
}

.curation-cards {
  position: absolute;
  z-index: 3;
  top: clamp(42px, 6vw, 78px);
  right: min(18vw, 240px);
  width: 310px;
  height: 345px;
  pointer-events: none;
}

.curation-cards::before,
.curation-cards::after {
  display: none;
}

.note-card {
  position: absolute;
  display: grid;
  --angle: 0deg;
  --drift-x: 0px;
  --drift-y: 0px;
  gap: 9px;
  width: 124px;
  padding: 11px;
  border: 1px solid rgba(42, 22, 12, 0.36);
  border-radius: 8px;
  color: var(--red);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 700;
  background:
    linear-gradient(145deg, rgba(255, 246, 218, 0.82), rgba(226, 195, 132, 0.55)),
    var(--card);
  box-shadow: 0 12px 24px rgba(42, 22, 12, 0.1), inset 0 0 22px rgba(94, 55, 22, 0.12);
  transform: translate(var(--drift-x), var(--drift-y)) rotate(var(--angle));
  transform-origin: 50% 70%;
  animation: floatCard 7s ease-in-out infinite;
  transition: transform 400ms ease;
}

.note-card::after {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(42, 22, 12, 0.16);
  border-radius: 5px;
  content: "";
}

.card-fresh {
  top: 0;
  right: 104px;
  --angle: -6deg;
}

.card-selected {
  top: 112px;
  right: 0;
  width: 142px;
  --angle: 7deg;
  animation-delay: -2.5s;
}

.card-perfect {
  top: 224px;
  right: 90px;
  --angle: -8deg;
  animation-delay: -4.2s;
}

.thumb {
  position: relative;
  height: 68px;
  border: 1px solid rgba(42, 22, 12, 0.28);
  border-radius: 5px;
  overflow: hidden;
  background-image: url("assets/pickr-reference.png");
  background-size: 370px auto;
  filter: saturate(0.96) contrast(0.96);
}

.thumb::after {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(42, 22, 12, 0.5) 0 0.7px, transparent 1px);
  background-size: 4px 4px;
  content: "";
  mix-blend-mode: multiply;
}

.thumb-apple {
  background-position: 93% 10%;
}

.thumb-orchard {
  background-size: 330px auto;
  background-position: 77% 62%;
}

.thumb-perfect {
  background-size: 420px auto;
  background-position: 82% 30%;
}

@keyframes floatCard {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 1200px) {
  h1 {
    font-size: 10.4rem;
  }

  .tagline {
    font-size: 2.88rem;
  }

  .body-copy {
    max-width: 390px;
  }

  .curation-cards {
    right: 72px;
  }
}

@media (max-width: 980px) {
  .ad {
    min-height: auto;
    padding: 32px 24px 460px;
  }

  .artwork {
    top: auto;
    right: -24%;
    bottom: 0;
    width: 148%;
    height: 560px;
    min-height: 0;
    clip-path: inset(0 0 0 55%);
  }

  .artwork::before {
    background:
      linear-gradient(180deg, var(--paper) 0%, rgba(245, 229, 189, 0.58) 18%, rgba(245, 229, 189, 0.08) 44%, rgba(245, 229, 189, 0) 100%),
      linear-gradient(90deg, rgba(245, 229, 189, 1) 0%, rgba(245, 229, 189, 0.88) 50%, rgba(245, 229, 189, 0.08) 66%);
  }

  .artwork-image {
    object-position: 98% 34%;
  }

  .message {
    width: min(680px, 100%);
    min-height: 58vh;
  }

  h1 {
    font-size: 8rem;
  }

  .tagline {
    font-size: 2.68rem;
  }

  .curation-cards {
    top: 300px;
    right: 24px;
    left: auto;
    width: 310px;
    min-width: 0;
    height: 340px;
  }
}

@media (max-width: 640px) {
  .ad {
    padding: 28px 18px 410px;
  }

  .pretitle {
    margin-bottom: 22px;
    font-size: 0.9rem;
    letter-spacing: 0;
  }

  .pretitle::before {
    margin-right: 10px;
  }

  .pretitle::after {
    margin-left: 10px;
  }

  h1 {
    font-size: 5.8rem;
  }

  .tagline {
    font-size: 2.5rem;
  }

  .body-copy {
    max-width: 24rem;
  }

  .artwork {
    right: -34%;
    width: 165%;
    height: 470px;
    clip-path: inset(0 0 0 57%);
  }

  .artwork-image {
    object-position: 98% 32%;
  }

  .curation-cards {
    top: auto;
    right: 10px;
    bottom: 236px;
    width: 280px;
    height: 250px;
    transform: scale(0.78);
    transform-origin: right bottom;
  }
}
