:root {
  --cream: #fffaf5;
  --paper: #fffdf9;
  --ink: #342736;
  --muted: #847680;
  --rose: #ec6f78;
  --rose-dark: #c94e5a;
  --plum: #6c426b;
  --lavender: #eee5f2;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 111, 120, .11), transparent 28rem),
    radial-gradient(circle at 92% 40%, rgba(108, 66, 107, .1), transparent 26rem),
    var(--cream);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
}

.archive-shell {
  width: min(100% - 36px, 940px);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0 40px;
}

.archive-header { max-width: 650px; margin-bottom: 54px; }

.eyebrow,
.gift-year {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(68px, 12vw, 116px); line-height: .88; }
h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1; }

.intro {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  line-height: 1.55;
}

.gift-list { display: grid; gap: 22px; }

.gift-card {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(240px, .85fr) 1.15fr;
  overflow: hidden;
  border: 1px solid rgba(108, 66, 107, .12);
  border-radius: 28px;
  color: inherit;
  background: rgba(255, 253, 249, .88);
  box-shadow: 0 18px 50px rgba(75, 48, 69, .08);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 65px rgba(75, 48, 69, .14);
}

.gift-card:focus-visible { outline: 4px solid rgba(108, 66, 107, .25); outline-offset: 4px; }

.gift-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 6vw, 62px);
}

.gift-copy > p:not(.gift-year) {
  max-width: 420px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.gift-action { color: var(--rose-dark); font-weight: 900; }

.word-grid {
  display: grid;
  grid-template-columns: repeat(3, 66px);
  place-content: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--lavender), #f7e5e4);
}

.word-grid span {
  width: 66px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--plum);
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 -3px 0 rgba(108, 66, 107, .08);
  font-size: 25px;
  font-weight: 900;
}

.gift-card--photo img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

footer {
  padding-top: 42px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

footer span { color: var(--rose); }

@media (max-width: 680px) {
  .archive-shell { width: min(100% - 24px, 940px); padding-top: 58px; }
  .archive-header { margin-inline: 10px; margin-bottom: 38px; }
  .gift-card { grid-template-columns: 1fr; }
  .gift-card--words { grid-template-rows: 245px auto; }
  .gift-card--photo { grid-template-rows: 300px auto; }
  .gift-card--photo img { min-height: 300px; }
  .word-grid { grid-template-columns: repeat(4, 52px); }
  .word-grid span { width: 52px; border-radius: 14px; font-size: 21px; }
  .gift-copy { padding: 32px 28px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .gift-card { transition: none; }
}
