:root {
  --wish-ink: #24304d;
  --wish-paper: #fffdf4;
  --wish-paper-blue: #edf5ff;
  --wish-pearl: #e8eef7;
  --wish-blue: #2859a8;
  --wish-blue-deep: #173b78;
  --wish-coral: #dd6f72;
  --wish-gold: #ffd77f;
  --wish-teal: #37746e;
  --wish-line: #62728d;
}

body#wishes {
  color: var(--wish-ink);
}

.wishes-page {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  overflow: hidden;
  background: var(--wish-paper);
  border: 1px solid #36455f;
  outline: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .35),
    inset 0 -2px rgba(12, 20, 34, .42),
    0 22px 60px rgba(22, 31, 52, .38);
}

.wishes-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #fffdf3;
  background:
    radial-gradient(circle at 84% 25%, rgba(255,215,127,.95) 0 4%, transparent 4.3%),
    radial-gradient(circle at 75% 44%, rgba(221,111,114,.8) 0 8%, transparent 8.3%),
    radial-gradient(circle at 91% 66%, rgba(107,205,192,.7) 0 11%, transparent 11.3%),
    linear-gradient(125deg, var(--wish-blue-deep), var(--wish-blue) 64%, #497fd1);
  border-bottom: 5px solid var(--wish-coral);
}

.wishes-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background: repeating-linear-gradient(116deg, transparent 0 29px, #fff 30px, transparent 31px 61px);
}

.wishes-hero .hierarchy-nav.hierarchy-nav {
  position: absolute;
  top: 22px;
  left: clamp(18px, 3vw, 28px);
  margin: 0;
}

.wishes-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: 100px clamp(28px, 7vw, 82px) 66px;
}

.wishes-hero h1 {
  margin: 0;
  font-family: var(--house-serif);
  font-size: clamp(48px, 9vw, 120px);
  line-height: .9;
  letter-spacing: -.02em;
  text-shadow: 0 4px 0 rgba(15,36,77,.45), 0 15px 34px rgba(12,35,73,.32);
}

.wishes-hero-copy p {
  max-width: 62ch;
  margin: 28px 0 0;
  color: #fff8df;
  font: 19px/1.55 var(--house-serif);
  text-shadow: 1px 2px 3px #173467;
}

.wishes-hero-orbit {
  position: absolute;
  z-index: 1;
  top: 84px;
  right: 42px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.wishes-hero-orbit span {
  position: absolute;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
}

.wishes-hero-orbit span:nth-child(1) { inset: 35px; }
.wishes-hero-orbit span:nth-child(2) { inset: 78px; }
.wishes-hero-orbit span:nth-child(3) { inset: 122px; background: var(--wish-gold); box-shadow: 0 0 0 8px rgba(255,215,127,.15); }

.wish-list {
  background:
    linear-gradient(90deg, rgba(40,89,168,.055), transparent 24%, transparent 76%, rgba(221,111,114,.06)),
    var(--wish-paper);
}

.wish {
  display: grid;
  grid-template-columns: minmax(320px, 45%) 1fr;
  min-height: 480px;
  border-bottom: 1px solid #aab5c5;
}

.wish:nth-child(even) { grid-template-columns: 1fr minmax(320px, 45%); }
.wish:nth-child(even) .wish-image { grid-column: 2; }
.wish:nth-child(even) .wish-copy { grid-column: 1; grid-row: 1; }

.wish-image {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  background: var(--wish-pearl);
  border-right: 1px solid #9aa8bd;
}

.wish:nth-child(even) .wish-image {
  border-right: 0;
  border-left: 1px solid #9aa8bd;
}

.wish-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  filter: saturate(.94) contrast(.98);
}

.wish:first-child .wish-image img { object-fit: contain; background: #f2f2ef; }
.wish-image--portrait img { object-position: center 18%; }

.wish-copy {
  align-self: center;
  padding: 58px clamp(34px, 6vw, 76px);
}

.wish h2 {
  max-width: 650px;
  margin: 0 0 22px;
  color: var(--wish-blue-deep);
  font-family: var(--house-serif);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.wish p {
  max-width: 62ch;
  margin: 0 0 17px;
  font: 18px/1.65 var(--house-serif);
}

.wish-source {
  margin-top: 9px;
}

.wish-links { display: flex; flex-wrap: wrap; gap: 8px; }
.wish-links .wish-source { margin-top: 0; }

.wish--freezer {
  background: linear-gradient(110deg, var(--wish-paper-blue), #fffdf4 72%);
}

.wishes-closing {
  padding: 30px clamp(28px, 6vw, 70px);
  background: var(--wish-paper-blue);
}

.wishes-closing p { margin: 0; color: var(--wish-blue-deep); font: italic 19px/1.45 var(--house-serif); }

@media (max-width: 800px) {
  .wishes-page { width: calc(100% - 24px); margin: 12px auto; }
  .wishes-hero { min-height: 470px; }
  .wishes-hero-copy { padding: 84px 22px 50px; }
  .wishes-hero-copy p { margin-top: 24px; font-size: 18px; }
  .wishes-hero-orbit { right: -120px; opacity: .62; }

  .wish,
  .wish:nth-child(even) { display: flex; flex-direction: column; min-height: 0; }
  .wish:nth-child(even) .wish-image,
  .wish:nth-child(even) .wish-copy { grid-column: auto; grid-row: auto; }
  .wish-image,
  .wish:nth-child(even) .wish-image { min-height: 310px; border: 0; border-bottom: 1px solid #9aa8bd; }
  .wish-image img { min-height: 310px; max-height: 470px; }
  .wish-copy { padding: 38px 22px 46px; }
  .wish h2 { font-size: clamp(30px, 9vw, 42px); }
  .wish p { font-size: 17px; }
}

@media (prefers-contrast: more) {
  .wish { background: #fff; border-bottom: 2px solid var(--wish-ink); }
  .wish-image { border-color: var(--wish-ink); }
}
