:root {
  color-scheme: light;
  --paper: #fff8ec;
  --paper-2: #fdf0d9;
  --card: #fffdf8;
  --ink: #241d33;
  --ink-2: #5a5068;
  --line: #e9dcc4;
  --red: #ff5a4e;
  --orange: #ff9a3c;
  --yellow: #ffc93c;
  --green: #2bb673;
  --blue: #3d7bff;
  --purple: #8b5cf6;
  --pink: #ff7ab6;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --shadow: 4px 5px 0 var(--ink);
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* Big screens: type and page width grow a little, so the page doesn't shrink into the middle. */
@media (min-width: 1600px) { html { font-size: 106.25%; } }
@media (min-width: 2100px) { html { font-size: 118.75%; } }
body {
  margin: 0;
  font: 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 201, 60, 0.16), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(61, 123, 255, 0.09), transparent 30%),
    radial-gradient(rgba(36, 29, 51, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(70rem, 100% - 32px); margin-inline: auto; }
.narrow { width: min(47.5rem, 100% - 32px); margin-inline: auto; }
.center { text-align: center; padding: 18vh 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h1.display { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2.display { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0 0 6px; }
.kicker { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--red); margin: 0 0 10px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.92rem; }

/* crayon underline under a word */
.scribble { position: relative; white-space: nowrap; z-index: 0; }
.scribble::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: 0.02em; height: 0.36em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 4, 80 18, 120 9 S 180 6, 197 11' stroke='%23ffc93c' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.bar.wrap { width: min(70rem, 100% - 32px); }
.share .bar { width: min(70rem, 100% - 32px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand .logo-mark { width: 1.75em; height: 1.75em; flex: none; overflow: visible; }
.brand .alive i { display: inline-block; font-style: normal; }
.brand .alive i:nth-child(1) { color: var(--red); transform: rotate(-6deg) translateY(-2px); }
.brand .alive i:nth-child(2) { color: var(--blue); transform: rotate(5deg) translateY(1px); }
.brand .alive i:nth-child(3) { color: #2bb673; transform: rotate(-4deg) translateY(-3px); }
.brand .alive i:nth-child(4) { color: #8b5cf6; transform: rotate(6deg); }
.brand .alive i:nth-child(5) { color: #ff9a3c; transform: rotate(-5deg) translateY(-1px); }
/* It's alive: on hover the monster waves and looks around, and the letters hop. */
.brand .wave { transform-origin: 47px 33px; }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .wave { animation: brand-wave 0.5s ease-in-out 2 alternate; }
  .brand:hover .pupils { animation: brand-look 1s ease-in-out; }
  .brand:hover .alive i { animation: brand-hop 0.45s ease-out; }
  .brand:hover .alive i:nth-child(2) { animation-delay: 0.05s; }
  .brand:hover .alive i:nth-child(3) { animation-delay: 0.1s; }
  .brand:hover .alive i:nth-child(4) { animation-delay: 0.15s; }
  .brand:hover .alive i:nth-child(5) { animation-delay: 0.2s; }
}
@keyframes brand-wave { to { transform: rotate(-22deg); } }
@keyframes brand-look { 30%, 70% { transform: translate(-3px, 1px); } }
@keyframes brand-hop { 40% { translate: 0 -6px; } }
.nav { display: flex; gap: 22px; align-items: center; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline wavy var(--yellow); text-underline-offset: 6px; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 2.5px solid var(--ink); border-radius: var(--wobble);
  background: var(--bg); color: var(--fg); font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; box-shadow: 3px 4px 0 var(--red);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-1px, -2px) rotate(-0.5deg); box-shadow: 5px 6px 0 var(--red); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.ghost { --bg: var(--card); --fg: var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.btn.big { padding: 16px 28px; font-size: 1.25rem; width: 100%; }
@media (max-width: 360px) { .btn.big { padding: 14px 16px; font-size: 1.12rem; } }
.btn.small { padding: 8px 14px; font-size: 0.95rem; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 28px 0 72px; }
.hero-copy .lead { margin: 18px 0 26px; }
.season { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 2px dashed var(--orange); font-weight: 800; font-size: 0.92rem; margin-bottom: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); font-weight: 600; }
.trust span::before { content: "✓ "; color: var(--green); font-weight: 800; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; } .hero-art { max-width: 440px; width: 100%; margin: 8px auto 40px; } }

/* the maker card */
.maker { background: var(--card); border: 3px solid var(--ink); border-radius: var(--wobble-2); box-shadow: 6px 7px 0 var(--ink); padding: 22px; }
.step-label { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0 0 10px; }
.step-label b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 0.9rem; }
.maker + .maker, .maker-step + .maker-step { margin-top: 18px; }
.drop {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; min-height: 170px; padding: 18px;
  border: 3px dashed #cdbb9b; border-radius: 22px; background: var(--paper); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.drop:hover, .drop.over { background: #fff3d6; border-color: var(--orange); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .prompt { display: grid; justify-items: center; gap: 2px; }
.drop .icon { line-height: 0; margin-bottom: 6px; color: var(--ink); }
.drop .icon .ico { width: 40px; height: 40px; }
.drop strong { font-family: var(--display); font-size: 1.2rem; }
.drop.has-image { min-height: 0; padding: 10px; }
.drop.has-image .prompt { display: none; }
.preview { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; }
.preview img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); background: #fff; }
.preview .change { font-weight: 800; text-decoration: underline; font-size: 0.92rem; }
.status { font-size: 0.92rem; font-weight: 700; margin: 8px 0 0; min-height: 1.4em; }
.status.err { color: #c62f24; }
.status.ok { color: var(--green); }

.idea { width: 100%; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.chip:hover { border-color: var(--ink); }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pack { position: relative; display: block; cursor: pointer; }
.pack input { position: absolute; opacity: 0; }
.pack > span:not(.tag) { display: grid; gap: 2px; height: 100%; padding: 12px 10px; text-align: center; border: 2.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color 0.12s, transform 0.12s; }
.pack b { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; }
.pack small { color: var(--ink-2); font-weight: 700; font-size: 0.85rem; line-height: 1.25; }
.pack small.each { color: #17804d; font-weight: 800; font-size: 0.78rem; white-space: nowrap; }
.pack input:checked ~ span:not(.tag) { border-color: var(--ink); background: #fff7df; transform: rotate(-1deg); box-shadow: 3px 3px 0 var(--ink); }
.pack input:focus-visible ~ span:not(.tag) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pack .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; z-index: 1; }
.fine { font-size: 0.85rem; color: var(--ink-2); text-align: center; margin: 10px 0 0; }
@media (max-width: 400px) { .packs { gap: 8px; } .pack > span:not(.tag) { padding: 12px 4px; } .pack small { white-space: nowrap; font-size: 0.8rem; } .maker { padding: 18px 16px; } }

/* the demo drawing */
.hero-art { position: relative; }
.paper-sheet { position: relative; background: #fff; border-radius: 6px; padding: 14px; box-shadow: 0 1px 0 #e7dcc8, 0 18px 40px -18px rgba(36, 29, 51, 0.45); transform: rotate(2deg); }
.paper-sheet::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 201, 60, 0.72); border-radius: 3px; }
.paper-sheet svg { width: 100%; height: auto; }
.art-note { font-family: var(--hand); font-size: 1.5rem; position: absolute; right: -6px; bottom: -42px; transform: rotate(-4deg); color: var(--ink-2); }
.art-note::before { content: "↖ "; }
@media (prefers-reduced-motion: no-preference) {
  .doodle .sun { animation: spin 14s linear infinite; transform-origin: 470px 90px; }
  .doodle .monster { animation: bounce 1.6s ease-in-out infinite; transform-origin: 260px 360px; }
  .doodle .arm-l { animation: wave 0.8s ease-in-out infinite alternate; transform-origin: 196px 262px; }
  .doodle .arm-r { animation: wave2 0.8s ease-in-out infinite alternate; transform-origin: 324px 262px; }
  .doodle .eyes { animation: blink 4s infinite; transform-origin: 260px 215px; }
  .doodle .cloud { animation: drift 9s ease-in-out infinite alternate; }
  .doodle .star { animation: twinkle 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .doodle .star:nth-of-type(2) { animation-delay: 0.6s; }
  .doodle .star:nth-of-type(3) { animation-delay: 1.2s; }
  .doodle .grass path { animation: sway 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom; }
  .wiggle { animation: wiggle 2.2s ease-in-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-26px) scale(0.97, 1.04); } 55% { transform: translateY(-26px) scale(0.97, 1.04); } 90% { transform: translateY(0) scale(1.05, 0.95); } }
@keyframes wave { from { transform: rotate(18deg); } to { transform: rotate(-24deg); } }
@keyframes wave2 { from { transform: rotate(-18deg); } to { transform: rotate(24deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(22px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.6) rotate(20deg); opacity: 0.6; } }
@keyframes sway { from { transform: skewX(-8deg); } to { transform: skewX(8deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-1.2deg) scale(1); } 50% { transform: rotate(1.2deg) scale(1.02); } }

/* sections */
section.block { padding: 76px 0; }
.block-head { text-align: center; max-width: 48rem; margin: 0 auto 40px; }
.block-head p { color: var(--ink-2); font-size: 1.12rem; margin: 14px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li { list-style: none; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--wobble); padding: 24px; box-shadow: var(--shadow); }
.steps li:nth-child(2) { transform: rotate(0.8deg); }
.steps li:nth-child(3) { transform: rotate(-0.6deg); }
.steps .num { font-family: var(--hand); font-size: 2.6rem; line-height: 1; color: var(--red); }
.steps p { margin: 0; color: var(--ink-2); }
.steps, .price-grid { padding: 0; margin: 0; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .steps li { transform: none !important; } }

.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--ink); color: #fff; border-radius: 36px; padding: 56px; position: relative; overflow: hidden; }
.gift .kicker { color: var(--yellow); }
.gift p { color: #d9d2e6; font-size: 1.1rem; }
.gift ul { padding-left: 1.1em; color: #d9d2e6; }
.gift .btn { --bg: var(--yellow); --fg: var(--ink); border-color: var(--yellow); box-shadow: 3px 4px 0 #fff; }
.mini-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; color: var(--ink); border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 30px 60px -20px #000; overflow: hidden; max-width: 420px; margin-inline: auto; }
.mini-card > div { padding: 18px; min-height: 230px; display: grid; place-items: center; gap: 8px; text-align: center; }
.mini-card > div + div { border-left: 1px dashed #ccc; }
.mini-card .hand { font-family: var(--hand); font-size: 1.5rem; line-height: 1.1; }
.fake-qr { width: 88px; height: 88px; background:
  linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 11px 11px,
  linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 11px 11px; opacity: 0.85; border: 6px solid #fff; outline: 2px solid var(--ink); border-radius: 4px; }
@media (max-width: 820px) { .gift { grid-template-columns: 1fr; padding: 32px 22px; border-radius: 26px; } }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--wobble-2); padding: 28px 24px; box-shadow: var(--shadow); }
.price.best { background: #fff4d4; transform: translateY(-8px); box-shadow: 6px 8px 0 var(--red); }
.price .amount { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; }
.price .per { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.price .each { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.price .save { background: #dcf5e8; color: #17804d; border: 2px solid #2bb673; border-radius: 999px; padding: 1px 10px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.price .count { color: var(--ink-2); font-weight: 700; margin-top: -4px; }
.price ul { padding-left: 1.1em; margin: 4px 0 12px; color: var(--ink-2); flex: 1; }
.price .tag { position: absolute; top: -14px; right: 18px; background: var(--red); color: #fff; font-weight: 800; font-size: 0.85rem; padding: 2px 12px; border-radius: 999px; transform: rotate(3deg); }
@media (max-width: 960px) { .price-grid { gap: 16px; } .price { padding: 24px 18px; } .price .amount { font-size: 2.5rem; } }
@media (max-width: 740px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; gap: 22px; } .price.best { transform: none; } }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: -4px 20px 0; padding-bottom: 18px; color: var(--ink-2); }

.final { text-align: center; padding: 80px 0 96px; }
.final h2 { max-width: 20ch; margin-inline: auto; }
.final .btn { width: auto; margin-top: 26px; }

footer.site { border-top: 2px dashed var(--line); padding: 32px 0 48px; color: var(--ink-2); font-size: 0.92rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* order page */
.order-main { padding: 12px 0 80px; }
.order-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.credits { font-family: var(--display); font-weight: 600; background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 420px)); gap: 24px; }
.job { background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.job .stage { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--paper-2); border: 2px solid var(--ink); }
.job .stage img, .job .stage video { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.job .idea-text { margin: 10px 4px 0; font-style: italic; color: var(--ink-2); font-size: 0.95rem; }
.job .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.job .actions .btn { flex: 1 1 auto; }
.job.failed .stage { filter: grayscale(0.7); }
.job .err { color: #c62f24; font-weight: 700; margin: 10px 4px 0; }
.cooking { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; background: rgba(255, 248, 236, 0.78); text-align: center; padding: 16px; }
.cooking .wand { font-size: 2.4rem; animation: wiggle 0.9s ease-in-out infinite; }
.cooking p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.cooking .bar-track { width: 70%; height: 10px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); overflow: hidden; }
.cooking .bar-fill { height: 100%; width: 40%; background: repeating-linear-gradient(45deg, var(--yellow) 0 10px, var(--orange) 10px 20px); animation: slide 1.4s linear infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.more { margin-top: 44px; max-width: 560px; }
.keep { margin-top: 28px; background: #fff4d4; border: 2px dashed var(--orange); border-radius: 16px; padding: 14px 18px; font-weight: 600; }
.banner { background: var(--purple); color: #fff; text-align: center; padding: 8px 16px; font-weight: 700; font-size: 0.92rem; }

/* share page */
.share-main { max-width: 47.5rem; text-align: center; padding: 10px 0 80px; }
.share-main h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 24px; text-wrap: balance; }
.frame { position: relative; border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 7px 8px 0 var(--ink); }
.frame .clip { width: 100%; max-height: 72vh; object-fit: contain; margin-inline: auto; }
.mark { position: absolute; right: 12px; top: 12px; background: rgba(255, 255, 255, 0.86); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-family: var(--display); font-weight: 600; font-size: 0.9rem; pointer-events: none; }
.share-actions { justify-content: center; margin: 26px 0 0; }
.cta-card { margin-top: 56px; background: var(--card); border: 3px solid var(--ink); border-radius: var(--wobble); padding: 32px 24px; box-shadow: 6px 7px 0 var(--red); }
.cta-card h2 { margin-bottom: 22px; }
.cta-card .btn { width: auto; }

/* printable card */
.card-page { background: #eee6d8; }
.card-tools { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 18px 0; }
.card-tools p { margin: 0; color: var(--ink-2); flex: 1 1 280px; }
.card-sheet { width: min(1000px, 100% - 32px); margin: 0 auto 48px; aspect-ratio: 11 / 8.5; display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4); }
.card-half { display: grid; place-items: center; align-content: center; gap: 14px; padding: 6%; text-align: center; }
.card-inside { border-left: 1px dashed #bbb; }
.card-front img { max-height: 70%; width: auto; max-width: 100%; object-fit: contain; }
.hand { font-family: var(--hand); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0; outline: none; }
.hand.small { font-size: clamp(1.2rem, 2.4vw, 1.75rem); }
.hand[contenteditable]:hover { background: #fff8d8; }
#qr { padding: 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; }
#qr img, #qr canvas { width: 150px !important; height: 150px !important; }
.scan { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
.tiny { font-size: 0.75rem; color: #888; margin: 0; word-break: break-all; }
@media (max-width: 640px) { .card-sheet { grid-template-columns: 1fr; aspect-ratio: auto; } .card-inside { border-left: 0; border-top: 1px dashed #bbb; } }
@media print {
  @page { size: landscape; margin: 0; }
  body, .card-page { background: #fff; }
  .no-print { display: none !important; }
  .card-sheet { width: 100vw; height: 100vh; margin: 0; box-shadow: none; aspect-ratio: auto; }
  .hand[contenteditable]:hover { background: none; }
}

/* legal pages */
.legal { padding: 20px 0 80px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal h2 { font-family: var(--display); font-size: 1.35rem; margin: 32px 0 6px; }
.legal p, .legal li { color: #3d344b; }

/* occasion stickers on the demo paper */
.sticker { position: absolute; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; filter: drop-shadow(2px 3px 0 rgba(36, 29, 51, 0.18)); }
.st1 { top: -22px; left: -18px; transform: rotate(-12deg); }
.st2 { bottom: 18px; right: -20px; transform: rotate(10deg); }
.st3 { top: 38%; left: -28px; transform: rotate(6deg); font-size: clamp(1.6rem, 4vw, 2.4rem); }
@media (max-width: 600px) { .st1 { left: -4px; top: -26px; } .st2 { right: -4px; } .st3 { left: -8px; } }
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: wiggle 2.6s ease-in-out infinite; }
  .st2 { animation-delay: 0.7s; } .st3 { animation-delay: 1.3s; }
}

/* send grid */
.send-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.send-grid li { display: grid; gap: 4px; align-content: start; background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 3px 4px 0 var(--ink); }
.send-grid strong { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.send-grid span:last-child { color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }
.send-icon { line-height: 0; color: var(--ink); }
.send-icon .ico { width: 34px; height: 34px; }
@media (max-width: 900px) { .send-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .send-grid { grid-template-columns: 1fr; gap: 10px; }
  .send-grid li { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .send-grid .send-icon { grid-row: span 2; }
}

/* occasion grid */
.occasion-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.occasion-grid a { display: grid; gap: 2px; justify-items: start; text-decoration: none; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--wobble); padding: 16px 18px; box-shadow: 3px 4px 0 var(--ink); transition: transform 0.12s; height: 100%; }
.occasion-grid a:hover { transform: translate(-1px, -2px) rotate(-0.6deg); }
.occasion-grid a > span { font-size: 2rem; line-height: 1.1; }
.occasion-grid strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
@media (max-width: 480px) {
  .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .occasion-grid a { padding: 12px 14px; }
  .occasion-grid a > span { font-size: 1.6rem; }
  .occasion-grid strong { font-size: 1rem; line-height: 1.25; }
  .occasion-grid small { font-size: 0.8rem; line-height: 1.3; }
}
.occasion-grid small { color: var(--ink-2); font-weight: 700; }

/* occasion copy */
.prose-block h2 { margin-bottom: 18px; }
.prose-block h3 { margin: 30px 0 10px; font-size: 1.4rem; }
.prose-block p { font-size: 1.1rem; color: #3d344b; }
.crumbs { font-size: 0.9rem; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); display: inline-block; padding: 8px 0; margin: -8px 0; }
.idea-list, .messages { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.idea-list li { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.messages li { font-family: var(--hand); font-size: 1.55rem; line-height: 1.2; background: #fff; border: 2px dashed var(--line); border-radius: 14px; padding: 12px 16px; transform: rotate(-0.4deg); }
.messages li:nth-child(even) { transform: rotate(0.5deg); }
.guide h2 { margin-top: 36px; }
.guide p { font-size: 1.08rem; }

/* footer */
.footer-grid { display: grid !important; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 18px; }
footer.site .footer-grid nav { display: grid; gap: 6px; align-content: start; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-grid strong { color: var(--ink); font-family: var(--display); font-weight: 600; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* share bar */
.sharebar { margin: 24px auto 0; max-width: 38.75rem; }
.share-main-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-main-btns .btn { flex: 1 1 200px; }
.share-icons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; container-type: inline-size; }
.share-icons a, .share-icons button {
  display: grid; justify-items: center; gap: 6px; padding: 12px 2px 10px; line-height: 1; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 14px; text-decoration: none; cursor: pointer;
  transition: border-color 0.12s, transform 0.12s;
}
.share-icons a:hover, .share-icons button:hover { border-color: var(--ink); transform: translateY(-2px); }
.share-icons span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: min(0.74rem, calc(3.7cqi - 2.2px)); font-weight: 800; color: var(--ink-2); font-family: var(--body); }
.share-tip { min-height: 1.4em; text-align: center; font-weight: 700; color: var(--green); margin: 10px 0 0; font-size: 0.95rem; }
.job .sharebar { margin-top: 12px; }
.job .share-icons { gap: 6px; }
.job .share-icons a, .job .share-icons button { padding: 10px 1px 8px; gap: 5px; }
.share-icons .ico { width: 30px; height: 30px; }
.job .share-icons .ico { width: 26px; height: 26px; }
@media (max-width: 420px) { .share-icons { gap: 6px; } .mark { font-size: 0.78rem; right: 8px; top: 8px; } }

/* message under a shared video */
.note { font-family: var(--hand); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; margin: 22px auto 0; max-width: 560px; background: #fff; border: 2px dashed var(--line); border-radius: 16px; padding: 14px 20px; transform: rotate(-0.6deg); }

/* card editor on the order page */
.card-editor { margin-top: 12px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.card-editor summary { cursor: pointer; font-family: var(--display); font-weight: 600; padding: 8px 0; margin: -4px 0; }
.card-editor label { display: block; font-weight: 800; font-size: 0.85rem; margin: 10px 0 4px; }
.card-editor input, .card-editor textarea { width: 100%; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-size: 0.98rem; }
.card-editor textarea { min-height: 72px; resize: vertical; font-family: var(--body); }
.card-editor .chips { margin-top: 8px; }
.card-editor .chip { text-align: left; font-weight: 600; font-size: 0.82rem; }
.card-editor .row { margin-top: 10px; }
.job h3.card-title { margin: 12px 4px 0; font-size: 1.15rem; }
.job .take { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 0.8rem; }
.redo .style-opts { display: grid; gap: 8px; margin-top: 10px; }
.redo .style-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.redo .style-opt:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.redo .style-opt input { width: auto; margin-top: 3px; accent-color: var(--ink); }
.redo .style-opt > span { display: grid; }

/* icons (public/icons.js): brand marks keep their colors, line icons follow the text */
.ico { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; overflow: visible; }
.btn .ico { width: 1.2em; height: 1.2em; }
summary .ico { margin-right: 6px; }

/* ---------- affiliate program ---------- */
.gift-banner { background: var(--green); }
.aff-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 40px 0 56px; }
.aff-intro h1.display { font-size: clamp(2.3rem, 5vw, 3.6rem); text-wrap: balance; margin-bottom: 14px; }
.aff-intro .lede { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 24px; max-width: 34rem; }
.aff-earn { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aff-earn li { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--wobble); box-shadow: var(--shadow); padding: 14px 12px; display: grid; gap: 2px; text-align: center; }
.aff-earn strong { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; color: #17804d; }
.aff-earn li > span { font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }
.aff-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.aff-steps li { color: #3d344b; }
.aff-form { display: grid; gap: 4px; }
.aff-before-tax { margin: 0 0 24px; }
.aff-form-title { font-family: var(--display); font-size: 1.6rem; margin: 0 0 6px; }
.aff-form label { font-weight: 800; font-size: 0.9rem; margin-top: 10px; }
.aff-form input:not([type=checkbox]), .aff-form select { width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-size: 1rem; }
.aff-form input:focus-visible, .aff-form select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.aff-form #f-code { font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.aff-form .hint { margin: 2px 0 0; font-size: 0.82rem; color: var(--ink-2); }
.aff-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 14px 0 12px; }
.aff-form label.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.aff-dash { padding: 40px 0 24px; }
.aff-dash h1.display { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.aff-bookmark { display: inline-block; background: #fff4d4; border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 14px; font-weight: 700; margin: 0 0 22px; }
.aff-share { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; margin-bottom: 22px; }
.aff-copy { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--wobble-2); box-shadow: var(--shadow); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.aff-label { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.aff-copy code { font-family: var(--display); font-weight: 600; font-size: 1.15rem; overflow-wrap: anywhere; }
.aff-stats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.aff-stats li { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 14px 12px; display: grid; gap: 2px; }
.aff-stats li.ready { border-color: var(--green); background: #dcf5e8; }
.aff-stats strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.aff-stats span { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.aff-h2 { font-family: var(--display); font-size: 1.5rem; margin: 30px 0 10px; }
.aff-table-wrap { overflow-x: auto; }
.aff-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.aff-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); padding: 6px 10px; border-bottom: 2px solid var(--ink); }
.aff-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.aff-table td:nth-child(3) { font-weight: 800; }
.aff-table tr.ready td:last-child { color: #17804d; font-weight: 800; }
.aff-table tr.refunded td { color: var(--ink-2); text-decoration: line-through; }
.aff-table tr.refunded td:last-child { text-decoration: none; }
.aff-terms { padding-top: 8px; }
@media (max-width: 960px) {
  .aff-top { grid-template-columns: 1fr; gap: 32px; }
  .aff-form { max-width: 520px; }
  .aff-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .aff-top { padding-top: 24px; }
  .aff-earn { gap: 8px; }
  .aff-earn li { padding: 10px 6px; }
  .aff-earn strong { font-size: 1.45rem; }
  .aff-earn span { font-size: 0.75rem; }
  .aff-share { grid-template-columns: 1fr; }
  .aff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aff-stats li.ready { grid-column: 1 / -1; order: -1; }
  .aff-table td, .aff-table th { padding: 8px 6px; }
}

/* currency menu (pricing section and footer) */
.currency-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.currency-pick select { font: inherit; font-weight: 800; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 4px 28px 4px 10px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; max-width: 100%; }
.currency-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; }
footer .currency-pick { font-weight: 600; }
footer .currency-pick select { font-size: 0.85rem; padding: 3px 26px 3px 8px; }
