/* gift-vouchers.html (6 Nov 2026). The page is the site's own parts (paper
   section, fields, buttons); the one thing it adds is the voucher itself,
   drawn live beside the form: forest green, the gold honeycomb of the crest,
   and a torn-off stub like a scorecard. */

.gift-hero { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.gift-hero__title { margin: 14px 0 18px; color: var(--white); }

.gift-test {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(200, 184, 96, .16);
  color: var(--text-on-light);
  font-size: .88rem;
}

.gift-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.gift-step { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.gift-step__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 116, "wght" 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--text-on-light);
  margin-bottom: 14px;
  padding: 0;
}
.gift-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.gift-opt { font-weight: 400; color: var(--muted-on-light); letter-spacing: 0; text-transform: none; }
.gift-me { margin: 2px 0 18px; }
.gift-agree { margin: 4px 0 6px; }
.gift-agree a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.gift-other { margin-top: 14px; max-width: 280px; }

/* The amounts: four tiles, the number set large. */
.gift-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gift-amt { position: relative; cursor: pointer; display: block; }
.gift-amt input { position: absolute; opacity: 0; width: 0; height: 0; }
.gift-amt__face {
  display: flex; flex-direction: column; gap: 6px;
  height: 100%;
  padding: 18px 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(22, 40, 27, .15);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.gift-amt__num {
  font-family: var(--display);
  font-variation-settings: "wdth" 120, "wght" 800;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1;
  color: var(--text-on-light);
  font-variant-numeric: tabular-nums;
}
.gift-amt__num--other { font-size: clamp(1.1rem, 1.8vw, 1.35rem); text-transform: uppercase; }
.gift-amt__meta { font-size: .76rem; color: var(--muted-on-light); line-height: 1.35; }
.gift-amt:hover .gift-amt__face { border-color: var(--green-2); }
.gift-amt input:checked + .gift-amt__face {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(32, 80, 48, .14);
}
.gift-amt input:checked + .gift-amt__face .gift-amt__num { color: var(--white); }
.gift-amt input:checked + .gift-amt__face .gift-amt__meta { color: var(--gold); }
.gift-amt input:focus-visible + .gift-amt__face { outline: 2px solid var(--gold); outline-offset: 2px; }

.gift-pay { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.gift-pay__note { font-size: .88rem; color: #9B2C2C; margin: 0; max-width: 46ch; }
.gift-form [data-err].is-bad { color: #9B2C2C; }

/* The voucher. */
.gift-preview { position: sticky; top: 110px; }
.gift-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  border-radius: 18px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(200, 184, 96, .16), transparent 55%),
    linear-gradient(155deg, #21472C, #0F2A18 70%);
  box-shadow: 0 30px 60px -28px rgba(8, 23, 13, .7);
  min-height: 300px;
}
/* The honeycomb, drawn once in SVG and laid over the card at low strength. */
.gift-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16zM28 49 54 64v30' fill='none' stroke='%23C8B860' stroke-opacity='.14' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(120deg, transparent 20%, #000 75%);
  pointer-events: none;
}
.gift-card__main { position: relative; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gift-card__brand { display: flex; align-items: center; gap: 12px; }
.gift-card__brand img { width: 44px; height: 44px; }
.gift-card__brand span {
  font-family: var(--display);
  font-variation-settings: "wdth" 116, "wght" 800;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: 1rem;
}
.gift-card__brand small { font-family: var(--body); font-variation-settings: "wght" 500; text-transform: none; font-size: .74rem; color: var(--gold-lt); }
.gift-card__for { margin: 18px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.gift-card__amount {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 125, "wght" 900;
  font-size: clamp(3rem, 6.4vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.gift-card__msg {
  margin: 4px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--gold-lt);
  overflow-wrap: anywhere;
}
/* The stub: a dashed tear line with a notch top and bottom. */
.gift-card__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-left: 2px dashed rgba(200, 184, 96, .45);
  background: rgba(200, 184, 96, .08);
}
.gift-card__stub::before,
.gift-card__stub::after {
  content: "";
  position: absolute;
  left: -11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
}
.gift-card__stub::before { top: -10px; }
.gift-card__stub::after { bottom: -10px; }
.gift-card__stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.gift-facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gift-facts li {
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  color: var(--muted-on-light);
  line-height: 1.5;
}
.gift-facts li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 10px; height: 11px;
  background: var(--gold-dim);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

@media (max-width: 1020px) {
  .gift-grid { grid-template-columns: 1fr; }
  .gift-preview { position: static; order: -1; }
}
@media (max-width: 620px) {
  .gift-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-fields { grid-template-columns: 1fr; }
  .gift-card { min-height: 0; grid-template-columns: minmax(0, 1fr) 42px; }
  .gift-card__main { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gift-amt__face { transition: none; }
}
