/* The Stocking Shortlist — a printed list: paper, ink, one red. */

:root {
  --paper: #f5f0e6;
  --sheet: #fffdf8;
  --ink: #181712;
  --soft: #6b665c;
  --hair: #d3cbba;
  --red: #c2261b;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --sans: 'Jost', Futura, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --thumb: 28px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* small caps label used throughout */
.caps,
.mast-date,
.row-label,
.eyebrow,
.gift-meta,
.gift-band,
.tally,
.btn,
.link-btn,
.cta,
.sponsored .label {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- masthead ---------- */

.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}

.mast::after {
  content: '';
  position: absolute;
}

.mast-name {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
}

.mast-date {
  font-size: 0.66rem;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: 12px;
  padding: 30px 0 34px;
  border-top: 3px double var(--ink);
}

.hang {
  position: absolute;
  top: -2px;
  right: 2px;
  width: clamp(62px, 19vw, 118px);
  height: auto;
  transform-origin: 46% 0;
  transform: rotate(2deg);
  touch-action: manipulation;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 13vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}

.lede {
  margin: 22px 0 0;
  max-width: 27em;
  font-size: 1.06rem;
  line-height: 1.5;
}

/* ---------- the order form ---------- */

.order { --frac: 0.22; border-top: 1.5px solid var(--ink); }

.row {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--ink);
}

.row-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.72rem;
}

.no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--red);
}

/* 01 — for */

.who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.radio input,
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio .mark {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 0, transparent 0);
  transition: background 0.15s;
}

.radio .text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--soft);
  transition: color 0.15s;
}

.radio .text {
  padding-bottom: 5px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: color 0.15s, background-size 0.35s cubic-bezier(0.3, 0.7, 0.1, 1);
}

.radio input:checked ~ .mark { background: radial-gradient(circle, var(--red) 0 5.5px, transparent 6px); animation: stamp 0.24s ease-out; }
.radio input:checked ~ .text { color: var(--ink); background-size: 100% 2px; }
.radio input:focus-visible ~ .mark,
.check input:focus-visible ~ .box { outline: 2px solid var(--red); outline-offset: 3px; }

/* 02 — budget */

/* The amount grows with the budget; the block keeps one height so nothing below jumps. */
.budget-read {
  display: flex;
  align-items: flex-end;
  height: 5.4rem;
}

#budget-amount .cur { margin-right: 0.07em; }

#budget-amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: calc(3.5rem + var(--frac) * 1.9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  transition: font-size 0.2s ease-out;
}

/* 03 — how many gifts */

.count {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.step:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.step:active:not(:disabled) { transform: scale(0.94); }
.step:disabled { opacity: 0.28; cursor: default; }

#count-amount {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.1rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.count-hint {
  margin: 0 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--soft);
}

#count-each { color: var(--ink); font-weight: 500; }

.count-hint button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.count-hint button:hover { color: var(--red); }

.flip { animation: flip 0.3s ease-out; }
#shop-text { display: inline-block; }

@keyframes flip {
  from { opacity: 0; transform: translateY(7px); }
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 6px 0 0;
  background: transparent;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--red) 0 calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--frac)),
    var(--ink) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--frac)) 100%
  );
}

input[type='range']::-moz-range-track { height: 2px; background: var(--ink); }
input[type='range']::-moz-range-progress { height: 2px; background: var(--red); }

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc(var(--thumb) / -2 + 1px);
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink);
  transition: transform 0.15s ease-out;
}

input[type='range']:active::-webkit-slider-thumb { transform: scale(1.16); }

input[type='range']::-moz-range-thumb {
  width: calc(var(--thumb) - 8px);
  height: calc(var(--thumb) - 8px);
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink);
}

input[type='range']:focus-visible { outline: none; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(194, 38, 27, 0.3); }

.ruler {
  position: relative;
  height: 52px;
  margin: -10px calc(var(--thumb) / 2) 0;
}

.ruler i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 5px;
  margin-left: -0.5px;
  background: var(--ink);
  opacity: 0.55;
  transform-origin: top;
  transition: transform 0.18s ease-out, background-color 0.18s, opacity 0.18s;
}

.ruler i.mid { height: 8px; opacity: 0.8; }
.ruler i.major { height: 12px; width: 1.5px; margin-left: -0.75px; opacity: 1; }
.ruler i.on { background: var(--red); opacity: 1; }

.ruler b {
  position: absolute;
  top: 34px;
  transform: translateX(-50%);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--soft);
}

/* 03 — likes */

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.check .box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
}

.check .box svg {
  position: absolute;
  left: -1px;
  top: -9px;
  width: 30px;
  height: 30px;
  overflow: visible;
}

.check .box path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.24s ease-out;
}

.check input:checked ~ .box path { stroke-dashoffset: 0; }
.check input:checked ~ .box { animation: stamp 0.24s ease-out; }

@keyframes stamp {
  40% { transform: scale(0.82); }
}

/* the big button */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: var(--red);
  color: #fff;
  font-size: clamp(0.68rem, 3.3vw, 0.84rem);
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.cta .arrow {
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 0.2s;
}

.cta:hover { background: var(--ink); }
.cta:hover .arrow { transform: translateX(6px); animation: none; }
.cta:active { transform: scale(0.985); }

/* the arrow gives a small nudge every few seconds */
.cta .arrow { animation: nudge 3.2s ease-in-out infinite; }

@keyframes nudge {
  0%, 78%, 100% { transform: none; }
  86% { transform: translateX(7px); }
  93% { transform: translateX(-1px); }
}

.fill { margin-top: 24px; }

/* ---------- the slip (results) ---------- */

.slip {
  margin: 52px -8px 0;
  padding: 28px 20px 34px;
  background: var(--sheet);
  scroll-margin-top: 12px;
  --tooth: 12px;
  --feed: 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--tooth) var(--feed) repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--tooth) var(--feed) repeat-x;
}

/* Printing: the paper feeds out from the top, torn edge first. */
@property --feed {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

.slip.feeding { animation: feed 1.5s cubic-bezier(0.35, 0.25, 0.2, 1) both; }

@keyframes feed {
  from { --feed: 0%; }
  to { --feed: 100%; }
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  color: var(--red);
}

.slip-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 10vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  outline: none;
}

.disclose {
  margin: 12px 0 20px;
  font-size: 0.86rem;
  color: var(--soft);
}

.gifts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}

.gift {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--hair);
}

/* the drawings (js/art.js): flat red printed off-register, ink line, paper shapes */
.art .f { fill: var(--red); }
.art .l { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .p { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .d { fill: var(--ink); }
.art svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* each gift has a picture beside it: a drawing, or its own photo if it has one */
.gift {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 14px;
  align-items: start;
}

.gift-art {
  grid-row: 1 / span 3;
  width: 64px;
  height: 64px;
  margin-top: 2px;
}

.gift-top,
.gift-name,
.gift-meta { grid-column: 2; }

.gift-blurb,
.gift-actions { grid-column: 1 / -1; }

.gift-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* a white photo background melts into the paper */
}

/* a replacement gift sliding in after a swap or shuffle */
.gift.enter { animation: enter 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }

@keyframes enter {
  from { opacity: 0; transform: translateX(22px); }
}

.gift:hover .gift-no { transform: translateX(4px); }
.gift-no { transition: transform 0.2s ease-out; }

.gift-top,
.tally {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.gift-no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--red);
  white-space: nowrap;
}

/* once a gift has been opened on Amazon it gets a red tick and a quieter button */
.gift-done {
  flex: none;
  align-self: center;
  width: 17px;
  height: 17px;
  margin-left: -3px;
}

.gift-done svg { display: block; width: 100%; height: 100%; overflow: visible; }

.gift-done path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.3s ease-out;
}

.gift.opened .gift-done path { stroke-dashoffset: 0; }
.gift.opened .btn.buy { background: transparent; color: var(--ink); }
.gift.opened .btn.buy:hover { background: var(--ink); color: var(--sheet); border-color: var(--ink); }

.leader {
  flex: 1;
  min-width: 20px;
  border-bottom: 1.5px dotted #b3ab99;
  transform: translateY(-4px);
}

.gift-band {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.gift-name {
  margin: 10px 0 7px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.gift-meta {
  margin: 0 0 9px;
  font-size: 0.66rem;
  color: var(--soft);
}

.gift-blurb {
  margin: 0 0 16px;
  max-width: 34em;
  color: #36332b;
}

.gift-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  font-size: 0.72rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn.buy { flex: 1; background: var(--ink); color: var(--sheet); }
.btn.buy:hover { background: var(--red); border-color: var(--red); }
.btn.swap { background: transparent; color: var(--ink); }
.btn.swap:hover { background: var(--ink); color: var(--sheet); }

.empty {
  margin: 0;
  padding: 22px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--hair);
}

.tally {
  padding: 18px 0;
  font-size: 0.72rem;
}

.gifts > .gift:last-child { border-bottom: 0; }

.actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0 -20px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--sheet);
  border-top: 1.5px solid var(--ink);
}

.cart-note {
  margin: 9px 0 0;
  font-size: 0.84rem;
  color: var(--soft);
}

.cart-note:empty { display: none; }

.more {
  display: flex;
  gap: 30px;
  margin-top: 14px;
}

.link-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  -webkit-tap-highlight-color: transparent;
}

.link-btn:hover { color: var(--red); }

/* sponsored + ads (only appear when set in config.js) */

.sponsored {
  margin-top: 28px;
  padding: 18px;
  border: 1.5px solid var(--ink);
}

.sponsored .label { display: block; margin-bottom: 8px; font-size: 0.64rem; color: var(--soft); }
.sponsored h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.sponsored p { margin: 0 0 14px; }

.ad-slot { margin-top: 28px; min-height: 100px; }

/* ---------- how we pick + footer ---------- */

.how { padding: 64px 0 20px; }

.how h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.how ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}

.how li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.how li p { margin: 0; }
.how b { font-weight: 600; }

.foot {
  margin-top: 36px;
  padding-top: 18px;
  padding-bottom: 44px;
  font-size: 0.84rem;
  color: var(--soft);
}

.foot::before {
  content: '';
  display: block;
  margin-bottom: 18px;
  border-top: 3px double var(--ink);
}

.foot p { margin: 0 0 8px; }
.foot a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  z-index: 20;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 40px);
  padding: 11px 18px;
  background: var(--ink);
  color: var(--sheet);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- plain pages (privacy) ---------- */

.page { padding: 30px 0 10px; border-top: 3px double var(--ink); margin-top: 12px; }
.page h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); margin-bottom: 8px; }
.page h2 { margin: 30px 0 8px; padding-top: 14px; border-top: 1px solid var(--ink); font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.page p { margin: 0 0 12px; max-width: 36em; }
.page a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- motion ----------
   Only for visitors who haven't asked for reduced motion, and only once the page
   script has started (the .js class), so nothing can end up stuck invisible. */

@media (prefers-reduced-motion: no-preference) {
  /* things rise into place as they scroll into view */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.85s cubic-bezier(0.2, 0.7, 0.1, 1);
    transition-delay: calc(var(--i, 0) * 45ms);
  }

  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* rules draw themselves from the left */
  .js [data-rule] { position: relative; }
  .js .order[data-rule],
  .js .how ol[data-rule] { border-top-color: transparent; }
  .js .row[data-rule] { border-bottom-color: transparent; }

  .js .order[data-rule]::before,
  .js .how ol[data-rule]::before,
  .js .row[data-rule]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s cubic-bezier(0.3, 0.7, 0.1, 1);
  }

  .js .order[data-rule]::before,
  .js .how ol[data-rule]::before { top: -1.5px; height: 1.5px; }
  .js .row[data-rule]::after { bottom: -1px; }
  .js [data-rule].is-in::before,
  .js [data-rule].is-in::after { transform: scaleX(1); }

  /* the opening: rule draws, headline settles word by word, stocking drops in */
  .js .hero { border-top-color: transparent; }

  .js .hero::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    border-top: 3px double var(--ink);
    transform-origin: left;
    animation: draw 1.1s cubic-bezier(0.3, 0.7, 0.1, 1) both;
  }

  .js .mast-name,
  .js .mast-date { animation: fade 0.8s ease-out both; }

  .js h1 .w {
    display: inline-block;
    transform-origin: left bottom;
    animation: word 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(180ms + var(--i) * 95ms);
  }

  .js .lede { animation: fade 1s ease-out 0.85s both; }
  .js .hang { animation: fade 0.45s ease-out 0.5s both; }

  @keyframes draw { from { transform: scaleX(0); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes word { from { opacity: 0; transform: translateY(0.42em) rotate(2.5deg); } }

  /* the headline drifts back as the page scrolls away from it */
  @supports (animation-timeline: scroll()) {
    .js h1 {
      animation: drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 560px;
    }

    @keyframes drift { to { transform: translateY(54px); opacity: 0.15; } }
  }

  /* a gift's picture settles into place as its row arrives */
  .js .gift[data-reveal] .gift-art {
    transform: scale(0.72) rotate(-8deg);
    transition: transform 0.7s cubic-bezier(0.2, 1.3, 0.3, 1);
    transition-delay: inherit;
  }

  .js .gift[data-reveal].is-in .gift-art { transform: none; }

  /* gifts appear in order as the slip prints */
  .js .slip.feeding .gift[data-reveal] { transition-delay: calc(280ms + var(--i, 0) * 150ms); }
}

/* ---------- wider screens ---------- */

.sm { display: inline; }

@media (min-width: 640px) {
  body { font-size: 18px; }
  .mast { padding-top: 30px; }
  .hero { padding: 44px 0 48px; }
  .sm { display: none; }
  .row { display: grid; grid-template-columns: 150px 1fr; padding: 26px 0 28px; }
  .row-label { margin: 6px 0 0; align-self: start; }
  .checks { grid-template-columns: 1fr 1fr 1fr; }
  .slip { margin: 64px -28px 0; padding: 40px 48px 46px; }
  .actions { margin: 0 -48px; padding-left: 48px; padding-right: 48px; }
  .gift-actions .btn.buy { flex: none; }
  .gift { grid-template-columns: 84px 1fr; column-gap: 22px; }
  .gift-art { grid-row: 1 / span 5; width: 84px; height: 84px; }
  .gift-blurb,
  .gift-actions { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
