:root {
  --paper: #f7f2e8;
  --card: #fffdf8;
  --ink: #1d2420;
  --muted: #6f6d62;
  --line: #e6dcc8;
  --pine: #15291f;
  --pine-2: #1f3b2c;
  --gold: #c8a35b;
  --gold-soft: #efe3c6;
  --cream: #f6efe3;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  padding: clamp(80px, 12vw, 150px) 24px clamp(96px, 14vw, 170px);
  background:
    radial-gradient(900px 500px at 50% -20%, #2f5a43 0%, transparent 60%),
    radial-gradient(700px 420px at 95% 115%, #3a2a1f 0%, transparent 60%),
    var(--pine);
}

.snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flake {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
  animation: fall var(--d) linear var(--delay) infinite;
  will-change: transform;
}

@keyframes fall {
  from { transform: translate3d(0, -10px, 0); }
  to   { transform: translate3d(var(--dx), 110vh, 0); }
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.ornament {
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 20px;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h1 em {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.lede {
  max-width: 540px;
  margin: 0 auto;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(246, 239, 227, .78);
}

/* ---------- List ---------- */

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
}

.count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.gifts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .gifts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1080px) {
  .gifts { grid-template-columns: repeat(3, 1fr); }
}

.gift { display: flex; }

.gift-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.gift-card:hover {
  transform: translateY(-3px);
  border-color: #d8c9a6;
  box-shadow: 0 18px 40px -20px rgba(28, 35, 31, .35);
}

.gift-card a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Photo tile */
.gift-media {
  display: block;
  margin: -24px -24px 20px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background: #fff;
}

.gift-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}

.gift-card:hover .gift-img { transform: scale(1.04); }

.gift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gold);
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pine-2);
  background: var(--gold-soft);
}

.name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
}

.note {
  flex: 1;
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.price { font-weight: 600; }

.store { color: var(--muted); }

.store::before {
  content: "·";
  margin-right: 10px;
}

.name a {
  color: inherit;
  text-decoration: none;
}

.name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Store buttons */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--pine-2);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.btn:hover { background: var(--pine); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--pine-2);
}

.btn-ghost:hover {
  background: var(--gold-soft);
  border-color: #d8c9a6;
}

.btn .arrow { transition: transform .2s ease; }

.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Fallback: gift cards ---------- */

.fallback {
  margin-top: 64px;
  padding: clamp(32px, 6vw, 56px) 24px clamp(28px, 5vw, 44px);
  border-radius: 24px;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(700px 360px at 50% -10%, #2f5a43 0%, transparent 60%),
    var(--pine);
}

.fallback[hidden] { display: none; }

.fallback .eyebrow { margin-bottom: 14px; }

.fallback h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.1;
  color: var(--cream);
}

.fallback-text {
  max-width: 480px;
  margin: 0 auto 36px;
  color: rgba(246, 239, 227, .78);
}

.fallback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .fallback-grid { grid-template-columns: 1fr 1fr; }
}

.voucher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.voucher {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 8 / 5;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffdf8 0%, #efe6d3 100%);
  color: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6);
  transition: transform .3s ease;
}

.voucher-card:hover .voucher { transform: translateY(-4px) rotate(-1.5deg); }

.voucher-dark {
  background: linear-gradient(145deg, #2e3d50 0%, #141c25 100%);
  color: #fff;
}

.voucher-brand {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
}

.voucher-wide {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .32em;
  margin-right: -.32em;
}

.smile {
  width: 96px;
  height: 20px;
  margin: -2px 0 2px;
}

.smile path {
  fill: none;
  stroke: #ff9900;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voucher-label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .55;
}

.voucher-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--cream);
}

.voucher-note {
  max-width: 280px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(246, 239, 227, .72);
}

.voucher-card .links {
  justify-content: center;
  margin-top: 0;
}

.fallback .btn {
  background: var(--gold);
  color: var(--pine);
}

.fallback .btn:hover { background: #dcb975; }

/* ---------- Footer ---------- */

footer {
  max-width: 1040px;
  margin: 48px auto 0;
  padding: 48px 24px 72px;
  text-align: center;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0 0 6px;
  color: var(--muted);
}

.thanks {
  margin-bottom: 10px !important;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink) !important;
}

.sign {
  margin-top: 22px !important;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink) !important;
}

.sign-name { color: var(--ink) !important; }

/* ---------- Draft banner ---------- */

.draft {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 10;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  .flake, .ornament { display: none; }
  .gift-card, .gift-img, .btn, .btn .arrow, .voucher { transition: none; }
}

@media print {
  .hero { padding: 48px 24px; color: var(--ink); background: none; }
  .lede { color: var(--muted); }
  h1 em { color: var(--pine-2); }
  .gift-card { break-inside: avoid; box-shadow: none; }
  .gift-media { background: none; }
  .fallback { background: none; color: var(--ink); }
  .fallback h2, .voucher-name { color: var(--ink); }
  .fallback-text, .voucher-note { color: var(--muted); }
  .voucher { box-shadow: none; border: 1px solid var(--line); }
}
