: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;
  --wish-shadow: rgba(31, 47, 78, .27);
}

body#wishes {
  color: var(--wish-ink);
  background:
    linear-gradient(rgba(255,255,255,.2), rgba(33,65,112,.06)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(35,75,126,.09) 24px),
    #c8d8eb;
}

.wishes-page {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  overflow: hidden;
  background: var(--wish-paper);
  border: 1px solid #364a6b;
  box-shadow: 0 22px 58px var(--wish-shadow), inset 0 1px #fff;
}

.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 {
  position: relative;
  z-index: 2;
  padding: 28px clamp(24px, 5vw, 62px);
  color: #fff;
  text-shadow: 1px 1px 2px #163061;
}

.wishes-hero .hierarchy-nav a { color: var(--wish-gold); }

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

.wishes-hero h1 {
  margin: 0;
  font-size: clamp(78px, 13vw, 146px);
  line-height: .76;
  letter-spacing: -7px;
  text-shadow: 0 4px 0 rgba(15,36,77,.45), 0 15px 34px rgba(12,35,73,.32);
}

.wishes-hero-copy p {
  max-width: 670px;
  margin: 35px 0 0;
  color: #fff8df;
  font: 21px/1.55 Georgia, 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;
  box-shadow: inset -12px 0 24px rgba(35,57,91,.09);
}

.wish:nth-child(even) .wish-image {
  border-right: 0;
  border-left: 1px solid #9aa8bd;
  box-shadow: inset 12px 0 24px rgba(35,57,91,.09);
}

.wish-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.22), inset 0 0 38px rgba(29,54,93,.18);
}

.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 25px;
  color: var(--wish-blue-deep);
  font-size: clamp(35px, 4.7vw, 58px);
  line-height: .98;
  letter-spacing: -2.2px;
}

.wish p {
  max-width: 660px;
  margin: 0 0 17px;
  font: 17px/1.67 Georgia, serif;
}

.wish-source {
  display: inline-block;
  margin-top: 9px;
  padding: 9px 12px;
  color: #fff;
  background: var(--wish-teal);
  border: 1px solid #214f4a;
  box-shadow: inset 0 1px rgba(255,255,255,.28), 3px 4px 0 rgba(35,52,79,.14);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .45px;
  text-decoration: none;
  text-transform: uppercase;
}

.wish-source:hover,
.wish-source:focus-visible,
.wishes-closing a:hover,
.wishes-closing a:focus-visible {
  color: var(--wish-ink);
  background: var(--wish-gold);
  outline: 3px solid var(--wish-coral);
  outline-offset: 2px;
}

.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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(28px, 6vw, 70px);
  color: #fff;
  background: var(--wish-blue-deep);
  border-top: 5px solid var(--wish-gold);
}

.wishes-closing p { margin: 0; font: 18px/1.45 Georgia, serif; }
.wishes-closing a { flex: 0 0 auto; padding: 10px 14px; color: var(--wish-blue-deep); background: var(--wish-gold); border: 1px solid #a2752c; font-weight: bold; text-decoration: none; }

@media (max-width: 800px) {
  .wishes-page { width: 100%; margin: 0; border-right: 0; border-left: 0; }
  .wishes-hero { min-height: 470px; }
  .wishes-hero-copy { padding: 72px 26px 50px; }
  .wishes-hero h1 { font-size: clamp(74px, 25vw, 112px); letter-spacing: -5px; }
  .wishes-hero-copy p { margin-top: 28px; 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; box-shadow: inset 0 -12px 24px rgba(35,57,91,.08); }
  .wish-image img { min-height: 310px; max-height: 470px; }
  .wish-copy { padding: 38px 25px 46px; }
  .wish h2 { font-size: clamp(35px, 11vw, 50px); }
  .wish p { font-size: 16px; }
  .wishes-closing { align-items: flex-start; flex-direction: column; }
}

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

@media (prefers-reduced-motion: reduce) {
  .wish-source, .wishes-closing a { scroll-behavior: auto; }
}
