/* Classic Craft Corner — the page opens like one of Bansi's explosion boxes.
   Materials, not effects: box teal with a black ribbon, patterned papers,
   white paper mats with washi tape, and white "gel pen" on black cardstock. */

:root {
  --teal: #1FA6B0;         /* the gift box */
  --teal-deep: #178A93;
  --card: #221C24;         /* black cardstock, also the ink */
  --red: #D6334B;          /* paper hearts */
  --marigold: #F5B83D;
  --blush: #F8D3CF;        /* pink patterned paper */
  --paper: #FFFEFC;
  --ink-soft: #5B5260;     /* secondary text on light papers */
  --stitch: rgba(34, 28, 36, .28);
  --gutter: clamp(16px, 5vw, 72px);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --hand: "Kalam", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html:has(.lightbox[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--card);
  font: 400 1.0625rem/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
h1, h2 {
  font-weight: 800;
  font-stretch: 75%;
  line-height: .9;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(3.4rem, 8.2vw, 7.4rem); }
h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--card); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 100;
  padding: .5em 1em; background: var(--paper);
}
.skip-link:focus { left: .5rem; }

/* Gift-tag button: a punched tag whose hole shows the paper behind it */
.tag-button {
  --hole: var(--teal);
  position: relative;
  display: inline-flex; align-items: center;
  padding: .8em 1.35em .8em 2.15em;
  border: 0;
  background: var(--card); color: var(--paper);
  font: 600 1rem/1.1 var(--display);
  text-decoration: none; cursor: pointer;
  clip-path: polygon(1em 0, 100% 0, 100% 100%, 1em 100%, 0 50%);
  transform-origin: 1.15em 50%;
  transition: transform .25s ease;
}
.tag-button::before {
  content: "";
  position: absolute; left: .95em; top: 50%;
  width: .45em; height: .45em; margin-top: -.225em;
  border-radius: 50%;
  background: var(--hole);
}
.tag-button:hover { transform: rotate(-4deg); }
.tag-button:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--marigold); }

.text-link {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.text-link:hover { text-decoration-style: wavy; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem var(--gutter);
  background: var(--marigold);
}
.site-header .tag-button { --hole: var(--marigold); }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a:not(.tag-button) { font-weight: 500; text-decoration: none; text-underline-offset: .35em; }
.site-nav a:not(.tag-button):hover { text-decoration: underline wavy; }
.nav-toggle { display: none; padding: 8px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; margin: 5px 0; background: var(--card); transition: transform .25s; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 2rem;
  min-height: calc(100svh - 62px);
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  background: var(--marigold);
  overflow: clip;
}
.hero-copy { max-width: 38rem; }
.hero h1 { margin-bottom: 1.6rem; }
.hero-lede { max-width: 30em; margin-bottom: 2.2rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; }
.hero .tag-button { --hole: var(--marigold); font-size: 1.1rem; }

/* The explosion box. Closed: teal walls stand up around the floor with the
   ribboned lid on top. Open: lid lifts away, walls fall flat, hearts pop out. */
.box-stage {
  --s: clamp(84px, 10.5vw, 150px);
  position: relative;
  display: grid; place-items: center;
  min-height: calc(var(--s) * 3.7);
}
.box-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.box-button:focus-visible { outline: 3px dashed var(--card); outline-offset: 10px; }
.xbox {
  position: relative; display: block;
  width: calc(var(--s) * 3); height: calc(var(--s) * 3);
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(34deg) rotateZ(-14deg);
}
.xbox-part { position: absolute; display: block; width: var(--s); height: var(--s); transform-style: preserve-3d; }
.xbox-floor { left: var(--s); top: var(--s); padding: 7%; background: var(--card); }
.xbox-floor img, .flap-face img { width: 100%; height: 100%; object-fit: cover; }

.xbox-flap {
  background:
    linear-gradient(var(--band-dir, 90deg), transparent 42%, var(--card) 42% 58%, transparent 58%),
    var(--teal);
  transition: transform .75s cubic-bezier(.3, 1.25, .5, 1);
  transition-delay: calc(.3s - var(--i) * .06s);
}
.flap-face {
  position: absolute; inset: 0; display: block; padding: 9%;
  transform: translateZ(.5px);
  backface-visibility: hidden;
}
/* Walls are shaded darker than the lid (light from the top left) so the closed box reads as 3D */
.flap-n { --i: 0; left: var(--s); top: 0; transform-origin: 50% 100%; transform: rotateX(-90deg); background-color: var(--teal-deep); }
.flap-e { --i: 1; --band-dir: 0deg; left: calc(var(--s) * 2); top: var(--s); transform-origin: 0 50%; transform: rotateY(-90deg); background-color: #147A83; }
.flap-s { --i: 2; left: var(--s); top: calc(var(--s) * 2); transform-origin: 50% 0; transform: rotateX(90deg); background-color: #1B96A0; }
.flap-w { --i: 3; --band-dir: 0deg; left: 0; top: var(--s); transform-origin: 100% 50%; transform: rotateY(90deg); background-color: var(--teal-deep); }
.flap-n .flap-face { background: radial-gradient(circle, var(--red) 24%, transparent 26%) 0 0 / 11px 11px, var(--blush); }
.flap-e .flap-face {
  background:
    repeating-linear-gradient(90deg, rgba(34, 28, 36, .2) 0 3px, transparent 3px 13px),
    repeating-linear-gradient(0deg, rgba(31, 166, 176, .35) 0 3px, transparent 3px 13px),
    var(--paper);
}
.flap-s .flap-face { background: repeating-linear-gradient(45deg, var(--red) 0 5px, var(--paper) 5px 11px); }
.flap-note {
  display: grid; place-items: center; text-align: center;
  background: var(--card); color: var(--paper);
  font: 700 calc(var(--s) * .15)/1.15 var(--hand);
}
.box-button.is-open .xbox-flap { transform: none; transition-delay: calc(.4s + var(--i) * .09s); }

.xbox-lid {
  left: calc(var(--s) * .97); top: calc(var(--s) * .97);
  width: calc(var(--s) * 1.06); height: calc(var(--s) * 1.06);
  background:
    linear-gradient(90deg, transparent 42%, var(--card) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, var(--card) 42% 58%, transparent 58%),
    var(--teal);
  box-shadow: inset 0 0 0 2px rgba(20, 122, 131, .6);
  transform: translateZ(var(--s));
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .45s ease;
  transition-delay: .55s;
}
.bow {
  position: absolute; left: 50%; top: 50%; width: 72%;
  fill: var(--card);
  transform: translate(-50%, -60%);
}
.box-button.is-open .xbox-lid {
  opacity: 0;
  transform: translate3d(calc(var(--s) * .5), calc(var(--s) * -1.2), calc(var(--s) * 2.6)) rotateX(-30deg) rotateZ(20deg);
  transition-delay: 0s;
}

.xbox-heart {
  width: calc(var(--s) * .64); height: calc(var(--s) * .64);
  color: var(--red);
  transform: scale(0) rotate(var(--r));
  transition: transform .3s ease-in;
}
.xbox-heart svg { width: 100%; height: 100%; fill: currentColor; }
.heart-nw { --r: -45deg; --i: 0; left: calc(var(--s) * .2); top: calc(var(--s) * .2); }
.heart-ne { --r: 45deg; --i: 1; left: calc(var(--s) * 2.16); top: calc(var(--s) * .2); color: var(--card); }
.heart-se { --r: 135deg; --i: 2; left: calc(var(--s) * 2.16); top: calc(var(--s) * 2.16); }
.heart-sw { --r: -135deg; --i: 3; left: calc(var(--s) * .2); top: calc(var(--s) * 2.16); color: var(--blush); }
.box-button.is-open .xbox-heart {
  transform: scale(1) rotate(var(--r));
  transition: transform .5s cubic-bezier(.3, 1.8, .55, 1);
  transition-delay: calc(1.05s + var(--i) * .08s);
}
.box-button.no-motion .xbox-part { transition: none; }

.box-hint {
  position: absolute; right: 2%; bottom: 0;
  font: 700 1.2rem var(--hand);
  transform: rotate(-5deg);
  pointer-events: none;
}
.box-hint::before {
  content: "";
  position: absolute; right: 100%; bottom: 60%;
  width: 46px; height: 40px; margin-right: 4px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 40' fill='none' stroke='%23221C24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M44 36C30 36 14 30 6 8'/%3E%3Cpath d='M3 17 6 7l9 5'/%3E%3C/svg%3E");
}

/* Shared section intro: big heading left, one plain sentence right */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end; gap: 1rem 3rem;
  max-width: 1200px; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.intro p { max-width: 32em; font-size: 1.125rem; color: var(--ink-soft); }

/* What I make: one big list; a photo follows the pointer on hover */
.work { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.make-list { max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; border-top: 2px dashed var(--stitch); }
.make-list li { border-bottom: 2px dashed var(--stitch); }
.make-list a {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: .35rem 1.2rem;
  padding: 1.1rem 0;
  text-decoration: none;
}
.make-name {
  font-weight: 700; font-stretch: 80%;
  font-size: clamp(1.75rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.01em;
  transition: color .2s, transform .3s;
}
.make-note { grid-column: 1; max-width: 32em; color: var(--ink-soft); }
.make-peek {
  grid-column: 2; grid-row: 1 / span 2;
  width: 68px; height: 68px; object-fit: cover;
  border: 4px solid var(--paper);
  outline: 1px solid rgba(34, 28, 36, .15);
  transform: rotate(4deg);
}
.make-custom .make-name { color: var(--red); }
.make-list a:hover .make-name, .make-list a:focus-visible .make-name { color: var(--red); transform: translateX(.35rem); }

/* Watch them open */
.watch { padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--teal); }
.watch .intro p { color: var(--card); }
.strip-nav { display: flex; justify-content: flex-end; gap: .6rem; max-width: 1200px; margin: 0 auto; }
.strip-nav button {
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--paper); cursor: pointer;
}
.strip-nav svg, .lb-btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.strip-nav button:focus-visible { outline-color: var(--paper); }
.reel-strip {
  display: flex; gap: clamp(1.4rem, 3vw, 2.6rem);
  margin: 0 calc(var(--gutter) * -1);
  padding: 2rem var(--gutter) 2.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--card) transparent;
}
.reel {
  position: relative; flex: 0 0 clamp(230px, 24vw, 300px);
  margin: 0; padding: 10px 10px 0;
  background: var(--paper);
  scroll-snap-align: start;
  transform: rotate(var(--tilt, 0deg));
}
.reel::before {
  content: "";
  position: absolute; left: 50%; top: -12px; z-index: 2;
  width: 86px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(90deg, rgba(214, 51, 75, .85) 0 6px, rgba(248, 211, 207, .9) 6px 12px);
  clip-path: polygon(0 10%, 4% 0, 96% 8%, 100% 0, 98% 90%, 100% 100%, 3% 94%, 0 100%);
}
.reel video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--card); }
.reel figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .55rem .2rem .85rem; }
.reel-title { font: 700 1.2rem/1.2 var(--hand); }
.reel figcaption a { font-size: .85rem; text-underline-offset: .2em; }
.reel.manual video { cursor: pointer; }
.reel.manual:not(.playing)::after {
  content: "▶";
  position: absolute; left: 50%; top: 42%; z-index: 1;
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: rgba(34, 28, 36, .7); color: var(--paper);
  pointer-events: none;
}
.more-link { max-width: 1200px; margin: 1.2rem auto 0; }

/* Gallery: a scrapbook page of matted photos with handwritten captions */
.collage { padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--blush); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem .6rem; max-width: 1200px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.filters button {
  padding: .45em 1em;
  border: 2px solid var(--card); border-radius: 999px;
  background: transparent; color: var(--card);
  font: 500 .95rem var(--display); cursor: pointer;
}
.filters button span { margin-left: .35em; font-size: .85em; opacity: .65; }
.filters button:hover { background: rgba(34, 28, 36, .08); }
.filters button[aria-pressed="true"] { background: var(--card); color: var(--paper); }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.3rem, 2.5vw, 2.2rem);
  max-width: 1200px; margin: 0 auto;
}
.tile {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none;
  color: var(--card); font: inherit; text-align: left; cursor: zoom-in;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s ease;
}
.tile::before {
  content: "";
  position: absolute; inset: 4px;
  background: var(--layer, var(--teal));
  transform: rotate(var(--layer-tilt, 3deg));
}
.tile-mat { position: relative; z-index: 1; display: block; padding: 9px 9px 0; background: var(--paper); }
.tile:nth-child(4n+1) .tile-mat::before {
  content: "";
  position: absolute; left: 50%; top: -11px; z-index: 2;
  width: 70px; height: 22px;
  transform: translateX(-50%) rotate(4deg);
  background: rgba(245, 184, 61, .85);
  clip-path: polygon(0 12%, 5% 0, 95% 10%, 100% 0, 97% 88%, 100% 100%, 4% 92%, 0 100%);
}
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile-cap { display: block; padding: .5rem .15rem .75rem; font: 700 1.05rem/1.25 var(--hand); }
.tile:hover { transform: rotate(0deg) translateY(-4px); }
.tile:focus-visible { outline-offset: 6px; }
.tile.empty img { display: none; }
.tile.empty .tile-mat::after {
  content: ""; display: block; aspect-ratio: 1;
  background: radial-gradient(circle, var(--blush) 24%, transparent 26%) 0 0 / 14px 14px, var(--teal);
}
.gallery-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.collage .tag-button { --hole: var(--blush); }

/* How to order: a real sequence, so it's numbered */
.how { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem;
  max-width: 1200px; margin: 0 auto; padding: 0;
  list-style: none; counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute; left: 2.2rem; right: calc(25% - 4rem); top: 2.2rem;
  border-top: 2px dashed var(--stitch);
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 4.4rem; height: 4.4rem; margin-bottom: 1.3rem;
  border: 2.5px solid var(--card);
  border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%;
  background: var(--step-bg, var(--paper));
  font: 700 2rem/1 var(--hand);
  transform: rotate(-6deg);
}
.steps li:nth-child(1) { --step-bg: var(--marigold); }
.steps li:nth-child(2) { --step-bg: var(--blush); }
.steps li:nth-child(3) { --step-bg: var(--teal); }
.steps li:nth-child(4) { --step-bg: var(--paper); }
.steps li:nth-child(even)::before { transform: rotate(5deg); }
.steps p { margin-top: .45rem; color: var(--ink-soft); }

/* About: Bansi's note in white pen on black cardstock */
.about { padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4.5rem, 9vw, 8rem); }
.about-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-photo {
  position: relative; z-index: 2;
  margin: 0; padding: 12px 12px 44px;
  background: var(--paper);
  outline: 1px solid rgba(34, 28, 36, .12);
  transform: rotate(-4deg) translateX(2.5rem);
}
.about-photo::before {
  content: "";
  position: absolute; left: 50%; top: -14px;
  width: 96px; height: 28px;
  transform: translateX(-50%) rotate(-5deg);
  background: rgba(31, 166, 176, .8);
  clip-path: polygon(0 10%, 4% 0, 96% 8%, 100% 0, 98% 90%, 100% 100%, 3% 94%, 0 100%);
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.note-card {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.6rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6.5rem);
  background: var(--card); color: var(--paper);
  font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.6 var(--hand);
  transform: rotate(1.2deg);
}
.note-card h2 {
  margin-bottom: 1rem;
  font: 700 clamp(2.3rem, 4.6vw, 3.5rem)/1.1 var(--hand);
  letter-spacing: 0;
  color: var(--marigold);
}
.note-card p + p { margin-top: 1rem; }
.signature { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1.6rem !important; color: var(--blush); }
.signature span { color: var(--marigold); font-weight: 700; }

/* Order: the form is a big gift tag */
.order { padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem); background: var(--teal); }
.order .intro p { color: var(--card); }
.gift-tag {
  position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem;
  max-width: 880px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.5rem, 5vw, 3.2rem) clamp(2rem, 5vw, 3.2rem) clamp(4.2rem, 9vw, 6.4rem);
  background: var(--paper);
  clip-path: polygon(3.4rem 0, 100% 0, 100% 100%, 3.4rem 100%, 0 calc(100% - 3.4rem), 0 3.4rem);
}
.gift-tag::before {
  content: "";
  position: absolute; left: 1.35rem; top: 50%;
  width: 1.3rem; height: 1.3rem; margin-top: -.65rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--marigold);
}
.field { display: flex; flex-direction: column; gap: .3rem; }
.full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  padding: .5em .1em;
  border: 0; border-bottom: 2px dashed var(--stitch); border-radius: 0;
  background: transparent; color: var(--card);
  font: 400 1.05rem var(--display);
}
.field select {
  appearance: none;
  padding-right: 1.6em;
  background: no-repeat right .2em center / .9em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23221C24' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
}
.field textarea { padding: .6em .7em; border: 2px dashed var(--stitch); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-deep); border-style: solid;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }
.gift-tag .tag-button { --hole: var(--paper); }
.form-note { min-height: 1.5em; font-weight: 500; }
.form-note.ok { color: #1c7a44; }
.form-note.error { color: var(--red); }

/* Footer: the base of the box */
.site-footer {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 2px dashed rgba(34, 28, 36, .35);
  background: var(--teal);
  text-align: center;
}
.footer-logo { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; }
.footer-line { max-width: 22em; margin: 0 auto; font: 700 1.3rem/1.35 var(--hand); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin: .8rem 0; font-weight: 600; }
.footer-small { font-size: .85rem; }

/* Floating WhatsApp (shown once a number is set) */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1f9d55; color: #fff;
}

/* Lightbox */
.lightbox {
  inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(34, 28, 36, .96); color: var(--paper);
}
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lightbox::backdrop { background: rgba(34, 28, 36, .6); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 0; padding: 3.5rem 0 1.5rem; }
.lightbox img { max-height: calc(100dvh - 10rem); object-fit: contain; border: 10px solid var(--paper); }
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.5rem; text-align: center; }
.lightbox figcaption strong { display: block; font: 700 1.5rem var(--hand); }
.lightbox figcaption small { font-size: .9rem; color: var(--blush); }
.lightbox figcaption a { color: var(--marigold); font-weight: 600; }
.lb-btn {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem; margin: 0 .5rem;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--paper); font: 300 2rem/1 var(--display);
}
.lb-btn svg { width: 30px; height: 30px; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 254, 252, .12); outline: none; }
.lb-close { position: absolute; top: .75rem; right: .75rem; font-size: 2rem; }

/* 404 page */
.not-found {
  display: grid; place-content: center; justify-items: start; gap: 1.4rem;
  min-height: 100svh; padding: 3rem var(--gutter);
  background: var(--marigold);
}
.not-found img { border-radius: 50%; }
.not-found h1 { max-width: 12ch; }
.not-found p { max-width: 30em; font-size: 1.15rem; }
.not-found .tag-button { --hole: var(--marigold); }

/* Larger screens: list rows split name / note, and the photo follows the pointer */
@media (min-width: 900px) {
  .make-list a { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: .5rem 3rem; padding: 1.35rem 0; }
  .make-note { grid-column: 2; }
  .make-custom .make-note { grid-column: 2; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .make-peek {
    grid-area: auto; /* position against the whole row, not the thumbnail's grid cell */
    position: absolute; left: 0; top: 0; z-index: 3;
    width: 190px; height: 190px;
    border-width: 8px;
    opacity: 0; pointer-events: none;
    transform: translate(calc(var(--mx, 50%) + 1.5rem), calc(var(--my, 50%) - 80%)) rotate(-5deg) scale(.7);
    transition: opacity .2s, transform .25s ease-out;
  }
  .make-list a:hover .make-peek {
    opacity: 1;
    transform: translate(calc(var(--mx, 50%) + 1.5rem), calc(var(--my, 50%) - 80%)) rotate(-4deg) scale(1);
  }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 1rem; }
  .box-stage { --s: clamp(70px, 24vw, 118px); min-height: calc(var(--s) * 3.3); margin-top: .5rem; }
  .reel { flex-basis: min(72vw, 280px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1.2rem var(--gutter) 1.6rem;
    background: var(--marigold);
    border-bottom: 2px dashed var(--stitch);
  }
  .site-nav.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .strip-nav { display: none; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .tile-mat { padding: 6px 6px 0; }
  .tile-cap { font-size: .92rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.2rem; }
  .steps li::before { grid-row: 1 / span 2; width: 3.6rem; height: 3.6rem; margin: 0; font-size: 1.7rem; }
  .about-inner { grid-template-columns: minmax(0, 1fr); }
  .about-photo { width: min(78%, 320px); margin: 0 auto -2.5rem; transform: rotate(-4deg); }
  .note-card { padding: 4rem 1.6rem 2.2rem; transform: rotate(.8deg); }
  .gift-tag {
    grid-template-columns: minmax(0, 1fr);
    padding: 3.8rem 1.4rem 2rem;
    clip-path: polygon(2.4rem 0, calc(100% - 2.4rem) 0, 100% 2.4rem, 100% 100%, 0 100%, 0 2.4rem);
  }
  .gift-tag::before { left: 50%; top: 1.4rem; margin: 0 0 0 -.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
