.gift-view {
  --gift-ink:#42262b; --gift-muted:#67585a; --gift-line:#dfd0bd; --gift-gold:#ab804f;
  --gift-wine:#57172b; --gift-paper:#fffaf2;
  margin-inline:auto; max-width:1370px; padding:clamp(10px,2.1vw,32px);
  font-family:"DM Sans",Arial,sans-serif; color:var(--gift-ink); overflow-wrap:break-word;
}
.gift-view * {box-sizing:border-box}
.gift-view :is(h1,h2,h3,p,figure) {margin:0}
.gift-view :is(h1,h2,h3),.gift-card-content>b {font-family:"Cormorant Garamond",Georgia,serif;color:var(--gift-ink);letter-spacing:-.035em;font-weight:600;line-height:1.02}
.gift-view h1 {font-size:clamp(2.6rem,5.1vw,5.7rem)}
.gift-view h2 {font-size:clamp(1.95rem,3vw,3rem)}
.gift-view h3 {font-size:clamp(1.5rem,2vw,2rem)}
.gift-view .overline {color:#836448;letter-spacing:.15em;font:700 .69rem/1.4 "DM Sans",Arial,sans-serif;text-transform:uppercase}
.gift-view small {font-family:"DM Sans",Arial,sans-serif;color:var(--gift-muted);line-height:1.48}
.gift-view label {display:grid;gap:.42rem;color:var(--gift-ink);font-size:.85rem;font-weight:650}
.gift-view :is(input,select) {width:100%;min-width:0;min-height:46px;padding:.65rem .9rem;border:1px solid #c8b8a6;background:#fffefa;color:var(--gift-ink);border-radius:13px;font:inherit}
.gift-view button,.gift-view summary {cursor:pointer}
.gift-view :is(button,a,input,select,summary):focus-visible {outline:3px solid #81364b;outline-offset:3px}
.gift-view .btn {display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:44px;padding:.7rem 1.1rem;border:1px solid #57172b;border-radius:999px;background:#57172b;color:#fffefa;line-height:1.2;white-space:normal;text-align:center}
.gift-view .btn.secondary {background:#fff6e9;border-color:#ccb6a2;color:#57172b}
.gift-view .btn:disabled {opacity:.62;cursor:wait}

.gift-hero {overflow:hidden;border:1px solid var(--gift-line);border-radius:clamp(18px,2.6vw,32px);background:var(--gift-paper)}
.gift-hero-banner {
  position:relative;display:grid;grid-template-columns:44% 56%;align-items:center;
  min-height:clamp(215px,21vw,285px);padding-block:0;overflow:hidden;
  background:radial-gradient(ellipse at 42% 40%,#fffaf2,#f6ecdf);
  isolation:isolate;
  container-type:inline-size;
}
.gift-hero-copy {display:grid;grid-template-columns:minmax(0,1fr);min-width:0;padding:clamp(18px,3vw,42px)}
.gift-view .gift-hero h1 {font-weight:500;color:var(--gift-wine);font-size:clamp(36px,4.5vw,64px);line-height:.99;text-wrap:balance}
.gift-hero h1 em {font-weight:inherit}
.gift-year-art {
  display:grid;justify-items:center;justify-self:center;width:88%;align-self:stretch;align-items:center;container-type:size;pointer-events:none;
  color:#60192d;
}
.gift-hero-banner::before {
  content:"";position:absolute;inset:0 0 0 auto;width:59%;z-index:-1;pointer-events:none;
  background:url("assets/gift-pencil-fir.webp") right bottom / 100% 100% no-repeat;
}
.gift-year-digits {
  align-self:start;height:70%;display:flex;align-items:flex-end;justify-content:center;gap:.09em;
  font-size:clamp(58px,26cqw,158px);
}
.gift-number-ornament {
  --digit:url("assets/gift-ornament-2.svg");
  position:relative;align-self:stretch;display:flex;align-items:flex-end;justify-content:center;
  transform-origin:50% 0;filter:drop-shadow(0 2px 1px #52293328);
}
.gift-number-ornament:nth-child(2) {--digit:url("assets/gift-ornament-0.svg")}
.gift-number-ornament:nth-child(4) {--digit:url("assets/gift-ornament-7.svg")}
.gift-number-ornament::before {
  content:"";position:absolute;top:0;bottom:.82em;left:50%;width:1px;
  background:linear-gradient(#99835e,#b9a17a);
}
.gift-number-ornament i {
  position:absolute;bottom:.76em;width:.11em;height:.066em;z-index:1;
  border-radius:35% 35% 16% 16%;background:repeating-linear-gradient(90deg,#886335,#f9deb0 31%,#aa844e 51%);
}
.gift-number-ornament i::before {
  content:"";position:absolute;left:25%;bottom:85%;width:50%;height:100%;
  border:1px solid #aa864e;border-radius:50%;
}
.gift-number-ornament b {
  display:block;width:.60em;height:.82em;color:transparent;
  mask:var(--digit) center / contain no-repeat;
  background:radial-gradient(ellipse at 22% 17%,#ffead4a6,transparent 18%),
    url("assets/gift-engraved-bauble.webp") center bottom / 125% 125% no-repeat,#681d32;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .gift-number-ornament {transform:rotate(var(--swing-angle,0deg))}
}
.gift-main {display:grid;grid-template-columns:minmax(0,1fr);gap:1.4rem;margin:clamp(1.5rem,3vw,3rem) 0}
.gift-main>section,.gift-main>aside,.gift-detail>* {min-width:0}
.gift-main>aside:empty {display:none}
.gift-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.4vw,22px);margin:1.05rem 0 0}
.gift-choice {
  --angle:0deg;--lean:0deg;
  --surface-rise:0px;
  position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:left;overflow:hidden;
  padding:0;border:0;border-radius:clamp(17px,2vw,27px);background:var(--gift-paper);color:var(--gift-ink);
  box-shadow:none;
  transform:perspective(850px) translateY(var(--surface-rise)) rotateX(var(--lean)) rotateY(var(--angle));
  transition:transform .23s ease-out,background-color .2s,border-color .2s,box-shadow .25s;
}
.gift-view .gift-choice:focus-visible {outline:none}
.gift-choice:focus-visible .gift-card-content>b {text-decoration:underline;text-underline-offset:.14em}
@media(hover:hover) and (pointer:fine) {
  .gift-choice:hover {--surface-rise:-10px}
}
.gift-card-scene {position:absolute;inset:0;pointer-events:none;background:var(--paper)}
.gift-card-scene::before {content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 83% 110%,var(--light),transparent 62%);opacity:1}
.gift-shader {display:block;position:absolute;inset:0;width:100%;height:100%;mix-blend-mode:screen;opacity:.76;mask-image:linear-gradient(100deg,transparent 8%,#000 87%);filter:hue-rotate(var(--shift))}
.gift-choice-start {--paper:#523a24;--light:#946c3a;--shift:12deg}
.gift-choice-confidence {--paper:#193a32;--light:#487361;--shift:93deg}
.gift-choice-success {--paper:#471b2a;--light:#834255;--shift:-22deg}
.gift-card-scene::after {
  content:"";position:absolute;right:-10%;bottom:-18%;width:75%;height:122%;opacity:.21;
  background:var(--holiday-art) right bottom / contain no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 38%);
}
.gift-choice-start {--holiday-art:url("assets/gift-pencil-bells.webp")}
.gift-choice-confidence {--holiday-art:url("assets/gift-pencil-chalet.webp")}
.gift-choice-success {--holiday-art:url("assets/gift-pencil-bauble.webp")}
.gift-choice .gift-shader {opacity:.23}
.gift-card-content {position:relative;z-index:1;display:grid;grid-template-rows:auto auto 1fr auto;align-content:start;align-items:start;gap:.5rem;
  width:100%;min-height:clamp(157px,14vw,205px);padding:clamp(16px,1.8vw,27px);background:transparent;color:#4b252b}
.gift-card-content>b {padding-right:13px;color:#4b252b;font-size:clamp(1.55rem,2.6vw,2.75rem);line-height:1.04}
.gift-card-price {color:#653c28;font:650 clamp(1.05rem,1.5vw,1.45rem)/1.25 "DM Sans",Arial,sans-serif;font-variant-numeric:tabular-nums}
.gift-fee-note {display:flex;align-items:baseline;justify-content:flex-end;gap:8px;margin:12px 0 26px!important;color:var(--gift-muted);font-size:13px}.gift-fee-note b {color:var(--gift-wine);white-space:nowrap}
.gift-card-foot {max-width:64%;color:#56443e;font:400 clamp(.73rem,.94vw,.9rem)/1.45 "DM Sans",Arial,sans-serif}
.gift-card-terms {display:flex;align-items:baseline;gap:.27rem;flex-wrap:wrap;width:100%;margin-top:auto;padding-top:.72rem;color:#584840;font:500 clamp(.7rem,.85vw,.86rem)/1.45 "DM Sans",Arial,sans-serif}
.gift-count {color:#482c2c;font-weight:800;font-size:1.05em}.gift-count i {font-style:normal}
.gift-choice .gift-card-content>b,.gift-choice .gift-card-price,.gift-choice .gift-count {color:#fff8e8}
.gift-choice .gift-card-foot,.gift-choice .gift-card-terms {color:#fff0dc}
.gift-status {color:#57172b;font-weight:650;font-size:.85rem;margin-top:.85rem}.gift-status:empty {display:none}
.gift-sender {display:flex;align-items:center;gap:.65rem}
.gift-sender>span:last-child {display:grid;gap:.13rem}
.gift-sender small {font-size:.72rem}.gift-sender b {font-size:.86rem}
.gift-avatar {display:grid;place-items:center;width:37px;aspect-ratio:1;border-radius:50%;background:#f1e4d4;border:1px solid #d7c3ac;color:#57172b;font:600 1rem/1 "Cormorant Garamond",Georgia,serif}
.gift-history,.gift-code,.gift-delivery,.gift-letter {padding:clamp(1rem,1.7vw,1.6rem);border:1px solid var(--gift-line);border-radius:20px;background:var(--gift-paper)}
.gift-history+.gift-history {margin-top:1rem}
.gift-history-row {display:flex;width:100%;gap:.8rem;align-items:center;justify-content:space-between;border:0;border-top:1px solid var(--gift-line);background:none;color:var(--gift-ink);padding:.75rem .1rem;text-align:left}
.gift-history-row:first-of-type {margin-top:.75rem}
.gift-history-row span:first-child {display:grid;gap:.25rem}.gift-history-row span:last-child {font-size:.75rem}
.gift-detail-header {display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.7rem .1rem 1.25rem}
.gift-detail-header h1 {margin-top:.45rem}.gift-detail {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,.8fr);align-items:start;gap:clamp(1rem,2vw,2.15rem)}
.gift-art canvas {display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:clamp(15px,2vw,28px);border:1px solid #dedbc9;background:#faf8f0;box-shadow:0 12px 32px -21px #4e503e70}
.gift-art figcaption {color:var(--gift-muted);font-size:.78rem;margin:.64rem .2rem}
.gift-actions {display:flex;gap:.55rem;flex-wrap:wrap;margin:1rem 0}
.gift-code {display:grid;gap:.5rem;background:#f9efe2}
.gift-code strong,.gift-letter strong {font-family:ui-monospace,monospace;overflow-wrap:anywhere;font-size:clamp(.87rem,1.13vw,1.05rem)}
.gift-code small,.gift-code>span,.gift-delivery small {font-size:.78rem}
.gift-delivery {margin-top:1rem}.gift-delivery h2 {font-size:clamp(1.65rem,2.3vw,2.3rem)}
.gift-delivery form {display:grid;gap:.9rem;padding-top:1rem}
.gift-delivery dl {margin:.85rem 0}.gift-delivery dl div {display:flex;justify-content:space-between;gap:.6rem;border-bottom:1px solid var(--gift-line);padding:.45rem 0;font-size:.83rem}.gift-delivery dd {margin:0;overflow-wrap:anywhere}
.gift-letter {background:#faf9f1;font-size:.87rem;line-height:1.5}.gift-letter p {margin:.55rem 0}.gift-letter a {color:#641b32;text-decoration:underline}
@media(min-width:761px) {
  .gift-year-digits {transform:translateX(-.25em)}
  .gift-view :is(.gift-hero,.gift-main) {width:90%;max-width:1040px;margin-inline:auto}
}
@media(max-width:760px) {
  .gift-view {padding:8px 2px 18px}
  .gift-detail {grid-template-columns:1fr}.gift-detail-header {align-items:flex-start}.gift-detail-header h1 {font-size:2.4rem}
}
@media(max-width:575px) {
  .gift-hero-banner {grid-template-columns:62% 38%;min-height:174px;padding:0}
  .gift-hero-copy {padding:12px 0 12px 12px}
  .gift-view .gift-hero h1 {font-size:clamp(22px,6.15vw,33px);overflow-wrap:normal}
  .gift-year-digits {font-size:28cqw}
  .gift-year-art {width:91%}
  .gift-choices {grid-template-columns:1fr;gap:9px;margin:.9rem 0 1.15rem}
  .gift-choice {display:block;border-radius:16px}
  .gift-card-content {width:100%;min-height:105px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;
    gap:5px 10px;padding:15px 18px}
  .gift-card-content>b {font-size:1.65rem;padding-right:0}.gift-card-price {align-self:center;padding:3px 7px;border-radius:6px;background:var(--paper);font-size:1.02rem}
  .gift-card-foot,.gift-card-terms {grid-column:1/-1}.gift-card-terms {padding-top:1px}
  .gift-card-scene::after {right:-6%;height:143%;bottom:-30%;width:58%;opacity:.18}
  .gift-card-foot {max-width:72%}
  .gift-detail-header {flex-wrap:wrap;gap:.65rem}.gift-actions {gap:.45rem}.gift-actions .btn {font-size:.83rem}
}
@media(max-width:380px) {
  .gift-view .gift-hero h1 {font-size:clamp(21px,6.65vw,25px);overflow-wrap:normal;word-break:normal}
}
@media(prefers-reduced-motion:reduce) {
  .gift-choice {transition:none;transform:none}
}

.gift-email-preview {margin:1.5rem auto 0;padding:clamp(15px,3vw,34px);max-width:760px;background:#fff}
.gift-email-preview h2 {margin:0 auto 1rem;max-width:600px}
.gift-email-preview .gift-actions {max-width:600px;margin:1.1rem auto 0}
.gift-inbox-shell {max-width:600px;margin:auto}
.gift-inbox-shell .gift-letter {padding:0}

.gift-view .gift-hero-banner h1 {font-size:clamp(15px,3.32cqw,38px);white-space:nowrap;line-height:1.08}
.gift-hero-wish {font:italic 500 clamp(12px,1.8cqw,20px)/1.32 "Cormorant Garamond",Georgia,serif;color:#704a45;max-width:32ch}
.gift-hero .gift-redeem-panel {row-gap:clamp(8px,1.25vw,16px)}

@media(max-width:620px) {
  .gift-hero-banner {--branch-width:clamp(60px,18%,100px);grid-template-columns:minmax(0,1fr);padding:0}
  .gift-hero-banner .gift-year-art {display:none}
  .gift-hero-banner::before {
    inset:auto 0 0 auto;width:var(--branch-width);aspect-ratio:2/3;
    /* The lower sprig fills the rightmost 42% of the original transparent engraving. */
    background:url("assets/gift-spruce-border.webp") right bottom / 235% auto no-repeat;
  }
  .gift-hero-copy {padding:clamp(18px,5vw,28px) calc(var(--branch-width) + 6px) clamp(18px,5vw,28px) clamp(16px,5%,28px)}
  .gift-view .gift-hero-banner h1 {font-size:clamp(20px,5.5cqw,33px);white-space:normal}
}

@media(prefers-reduced-motion:reduce){.gift-view .gift-choice {transform:none}}

.gift-view.gift-letter-gallery {max-width:650px;margin-inline:auto;padding:clamp(16px,3vw,32px)}
.gift-letter-gallery h1 {font-size:clamp(28px,4vw,44px);margin:0 0 .6em}
.gift-letter-gallery nav {display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.2rem}
.gift-letter-gallery nav a {color:#57172b;border:1px solid #d9c9b5;border-radius:2rem;padding:.55rem .8rem;text-decoration:none;font-weight:600}
.gift-letter-gallery nav a[aria-current] {background:#57172b;color:#fffaf2;border-color:#57172b}
.gift-letter-gallery .gift-inbox-shell {padding:clamp(12px,2.5vw,22px);border-radius:16px;background:#fff}
