:root {
  --paper: #f3f0eb;
  --ink: #171717;
  --muted: #706b65;
  --accent: #df735d;
  --purple: #7437d1;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; }

.site-header {
  left: 0;
  padding: 28px 4vw;
  position: absolute;
  top: 0;
  z-index: 5;
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-style: italic;
  letter-spacing: -.04em;
}
.wordmark-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .17em;
  margin-top: 5px;
  text-transform: uppercase;
}

.voucher-page { min-height: 100svh; }
.voucher-layout {
  align-items: center;
  display: grid;
  gap: clamp(50px, 8vw, 120px);
  grid-template-columns: minmax(280px, .72fr) minmax(440px, 1.28fr);
  margin: 0 auto;
  max-width: 1280px;
  min-height: 100svh;
  padding: 112px 6vw 72px;
}
.voucher-copy { animation: copy-in .55s ease-out both; }
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 20px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(58px, 7.5vw, 108px);
  letter-spacing: -.07em;
  line-height: .88;
  margin: 0;
}
.voucher-copy > p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 30px 0 0;
  max-width: 300px;
}

.voucher-card {
  aspect-ratio: 1.55 / 1;
  background:
    radial-gradient(circle at 83% 20%, rgba(255, 221, 76, .9) 0 8%, transparent 8.5%),
    linear-gradient(135deg, #a72fc8 0%, #ea4d64 38%, #ff5e37 69%, #ff9a33 100%);
  border-radius: 34px;
  box-shadow: 0 30px 72px rgba(86, 36, 26, .24);
  color: #fff;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: space-between;
  max-width: 720px;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 48px);
  position: relative;
  width: 100%;
  animation: voucher-in .7s .05s ease-out both;
}
.voucher-card::after {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 26px;
  content: '';
  inset: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}
.ribbon {
  background: rgba(255, 190, 48, .72);
  height: 16px;
  left: -12%;
  position: absolute;
  top: 42%;
  transform: rotate(-24deg);
  width: 130%;
  z-index: -1;
}
.ribbon-two { top: 64%; transform: rotate(18deg); }
.gift-bow {
  height: 80px;
  opacity: .95;
  position: absolute;
  right: 8%;
  top: 12%;
  width: 118px;
  z-index: -1;
}
.gift-bow::before,
.gift-bow::after {
  background: linear-gradient(135deg, #ffd85d, #ffad22);
  border-radius: 70% 35% 65% 35%;
  content: '';
  height: 64px;
  position: absolute;
  top: 0;
  width: 66px;
}
.gift-bow::before { left: 0; transform: rotate(20deg); }
.gift-bow::after { right: 0; transform: rotate(70deg); }
.gift-bow span {
  background: #ffc134;
  border-radius: 50%;
  height: 34px;
  left: 42px;
  position: absolute;
  top: 24px;
  width: 34px;
  z-index: 2;
}
.voucher-topline {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.ahead-mark {
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -.08em;
}
.voucher-value {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 800;
  padding: 8px 14px;
}
.voucher-name {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.voucher-name span,
.voucher-code-block > span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.voucher-name strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4.2vw, 60px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  margin-top: 5px;
}
.voucher-code-block {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(83, 24, 104, .25);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 18px;
  display: grid;
  gap: 7px 16px;
  grid-template-columns: 1fr auto;
  padding: 14px 16px;
  position: relative;
  z-index: 3;
}
.voucher-code-block > span { grid-column: 1 / -1; opacity: .76; }
.voucher-code-block code {
  font-family: 'Courier New', monospace;
  font-size: clamp(14px, 1.75vw, 23px);
  font-weight: 700;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
  user-select: all;
}
.voucher-code-block button {
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #542164;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 13px;
  transition: transform .18s ease, background .18s ease;
}
.voucher-code-block button:hover { background: #fff4dc; transform: translateY(-1px); }
.voucher-code-block button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@keyframes copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes voucher-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .site-header { padding: 20px 6vw; }
  .voucher-layout {
    align-items: start;
    display: flex;
    flex-direction: column;
    gap: 42px;
    padding: 112px 6vw 54px;
  }
  h1 { font-size: clamp(58px, 18vw, 84px); }
  .voucher-copy > p:last-child { margin-top: 22px; }
  .voucher-card { border-radius: 24px; min-height: 330px; padding: 24px; }
  .voucher-card::after { border-radius: 18px; inset: 8px; }
  .gift-bow { transform: scale(.74); transform-origin: top right; }
  .voucher-code-block { display: flex; flex-direction: column; align-items: stretch; }
  .voucher-code-block button { align-self: flex-start; }
}

@media (max-width: 460px) {
  .voucher-card { aspect-ratio: auto; min-height: 360px; }
  .voucher-name strong { font-size: 38px; }
  .voucher-value { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; }
}
