/* Memory Stamp — pastel keepsake theme */
:root {
  --bg: #fffaf6;
  --paper: #ffffff;
  --ink: #3b3350;
  --ink-soft: #6b6380;
  --line: #ece4ee;
  --plum: #8a6fb0;
  --plum-deep: #6d5196;

  --blush: #f8d9e0;
  --butter: #fbefc4;
  --mint: #d3eedf;
  --powder: #d6e6f6;
  --lavender: #e5dbf3;
  --peach: #fbe1cf;
  --sage: #dde6d6;
  --sky: #d9eef3;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(84, 62, 110, 0.10);
  --shadow-sm: 0 4px 14px rgba(84, 62, 110, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
a { color: var(--plum-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); font-size: 1.6em; color: var(--plum); line-height: 1; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; }
.center .lead { margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--plum); margin-bottom: .6rem; display: block; }
section { padding: 88px 0; }
.tint-blush { background: #fdf0f3; }
.tint-lavender { background: #f6f1fb; }
.tint-mint { background: #eff9f3; }
.tint-butter { background: #fffaea; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 246, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--plum-deep); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 18px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-family: var(--sans); font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 8px 20px rgba(138, 111, 176, .35); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Postage-stamp edge: perforations punched in the page background color */
.stamp {
  --c: var(--blush);
  --hole: var(--bg);
  position: relative;
  padding: 18px;
  background:
    radial-gradient(circle, var(--hole) 5px, transparent 5.5px) 0 -8px / 16px 16px repeat-x,
    radial-gradient(circle, var(--hole) 5px, transparent 5.5px) 0 calc(100% + 8px) / 16px 16px repeat-x,
    radial-gradient(circle, var(--hole) 5px, transparent 5.5px) -8px 0 / 16px 16px repeat-y,
    radial-gradient(circle, var(--hole) 5px, transparent 5.5px) calc(100% + 8px) 0 / 16px 16px repeat-y,
    var(--c);
  filter: drop-shadow(0 6px 14px rgba(84, 62, 110, .12));
}
.stamp-inner { background: rgba(255, 255, 255, .62); border-radius: 10px; padding: 18px; height: 100%; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }
.hero-art { position: relative; height: 470px; }
.hero-art .stamp { position: absolute; width: 230px; }
.hero-art .s1 { --c: var(--lavender); top: 10px; left: 20px; transform: rotate(-7deg); }
.hero-art .s2 { --c: var(--mint); top: 70px; right: 10px; transform: rotate(6deg); }
.hero-art .s3 { --c: var(--blush); bottom: 10px; left: 90px; transform: rotate(-2deg); width: 250px; }
.mini-photo { aspect-ratio: 4/3; border-radius: 8px; display: grid; place-items: center; font-family: var(--hand); font-size: 1.7rem; color: var(--ink); margin-bottom: 10px; }
.mini-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.mini-sub { font-size: .82rem; color: var(--ink-soft); }
.mini-qr { display: flex; gap: 12px; align-items: center; }
.mini-qr canvas, .mini-qr .qr-box { width: 84px; height: 84px; background: #fff; border-radius: 8px; padding: 6px; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { height: 420px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-art .stamp { width: 200px; }
  .hero-art .s3 { width: 220px; left: 50px; }
}

/* Founder story */
.story .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.video-frame { --c: var(--sage); }
.video-frame .ratio { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink-soft); border: 1px solid var(--line); }
.caption { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 880px) { .story .wrap { grid-template-columns: 1fr; } }

/* Stamp types */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-top: 44px; }
.types .stamp { --hole: #f6f1fb; }
.type-icon { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.type-icon svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.types h3 { margin-bottom: .3em; }
.types p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .6em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; font-weight: 700; background: #fff; border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; counter-reset: step; }
.step { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lavender); font-weight: 800; margin-bottom: 14px; }
.step:nth-child(2)::before { background: var(--mint); }
.step:nth-child(3)::before { background: var(--peach); }
.step:nth-child(4)::before { background: var(--powder); }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Bookmark page mock (Linktree-style) */
.bookmarks .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.phone { width: min(340px, 100%); margin: 0 auto; background: #fff; border-radius: 38px; padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.phone-screen { background: linear-gradient(180deg, var(--lavender), #fff 60%); border-radius: 28px; padding: 28px 18px 22px; text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; background: var(--blush); display: grid; place-items: center; font-family: var(--hand); font-size: 2rem; border: 4px solid #fff; }
.phone h3 { font-size: 1.2rem; margin-bottom: 2px; }
.phone .sub { font-size: .82rem; color: var(--ink-soft); margin-bottom: 16px; }
.link-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; margin-bottom: 9px; text-align: left; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); }
.link-card .dot { width: 30px; height: 30px; border-radius: 10px; flex: none; }
.link-card small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .74rem; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%233b3350' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (max-width: 880px) { .bookmarks .wrap { grid-template-columns: 1fr; } }

/* Keepsakes */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 880px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.product .swatch { aspect-ratio: 1; border-radius: 16px; margin-bottom: 14px; display: grid; place-items: center; }
.product .swatch svg { width: 56%; height: 56%; stroke: var(--ink); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: 1.05rem; margin-bottom: 2px; }
.product p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.price { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--plum); box-shadow: var(--shadow); }
.price .amt { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.price .amt small { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.price ul { padding-left: 20px; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.price .badge { align-self: flex-start; background: var(--lavender); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.moments-table { margin-top: 48px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.moments-row { display: grid; grid-template-columns: 1.1fr 2fr .8fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: center; }
.moments-row:first-child { border-top: 0; background: #faf6fd; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.moments-row strong { font-family: var(--serif); font-size: 1.08rem; }
.moments-row .p { font-weight: 800; text-align: right; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } .moments-row { grid-template-columns: 1fr; gap: 4px; } .moments-row .p { text-align: left; } .moments-row:first-child { display: none; } }
.fine { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; }

/* Share band */
.share-band { background: linear-gradient(120deg, var(--blush), var(--lavender) 50%, var(--powder)); border-radius: 32px; padding: 56px 40px; text-align: center; }

/* Forms */
.form-card { background: #fff; border-radius: 28px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 620px; margin: 36px auto 0; text-align: left; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: 1rem; color: var(--ink); background: #fffdfb;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--lavender); border-color: var(--plum); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.hidden { display: none; }

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink-soft); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

/* Memory page (public stamp) */
.memory-page { max-width: 620px; margin: 0 auto; padding: 40px 16px 72px; }
.memory-head { text-align: center; padding: 40px 24px 28px; border-radius: 32px; background: linear-gradient(180deg, var(--sage), #fff); margin-bottom: 22px; }
.memory-head .avatar { width: 108px; height: 108px; background: #fff; font-size: 2.4rem; }
.memory-head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 4px; }
.memory-section-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 30px 0 12px; }
.guest-note { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 18px; color: var(--ink-soft); font-size: .95rem; }

/* Stamp maker */
.maker { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; margin-top: 36px; }
.maker-panel { background: #fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--plum); }
.preview-area { background: repeating-linear-gradient(45deg, #fbf7f2, #fbf7f2 12px, #f7f1ea 12px, #f7f1ea 24px); border-radius: 28px; padding: 36px; display: grid; place-items: center; min-height: 420px; border: 1px solid var(--line); }
.preview-area canvas { max-width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(84, 62, 110, .18)); }
.seg { display: inline-flex; background: #f4eff8; border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 880px) { .maker { grid-template-columns: 1fr; } }

/* Print sheet for QR stickers */
#print-sheet { display: none; }
@media print {
  body.printing > *:not(#print-sheet) { display: none !important; }
  body.printing #print-sheet { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0.25in; padding: 0.4in; }
  body.printing #print-sheet img { width: 100%; height: auto; }
  @page { margin: 0; }
}

:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a { white-space: nowrap; }

/* Resources & articles */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 760px) { .res-grid { grid-template-columns: 1fr; } }
.res-card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.res-card .kicker { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.res-card h3 { margin-bottom: .35em; }
.res-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 880px) { .dir { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dir { grid-template-columns: 1fr; } }
.dir a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--ink); }
.dir a strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.dir a span { font-size: .9rem; color: var(--ink-soft); }
.dir a small { display: block; margin-top: 8px; color: var(--plum-deep); font-weight: 700; font-size: .8rem; }

.article { max-width: 720px; margin: 0 auto; padding: 56px 16px 80px; }
.article .crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.article .crumbs a { color: var(--ink-soft); }
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.article .dek { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 26px; }
.article h2 { font-size: 1.6rem; margin-top: 2em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: .45em; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: #faf6fd; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
.callout { background: #faf6fd; border-left: 4px solid var(--plum); border-radius: 0 16px 16px 0; padding: 16px 20px; margin: 22px 0; }
.callout.mint { background: #eff9f3; border-color: #6fb38c; }
.sources { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 18px; }
.sources li { margin-bottom: .3em; }
.cta-box { margin-top: 44px; background: linear-gradient(120deg, var(--blush), var(--lavender)); border-radius: 26px; padding: 30px; text-align: center; }
.hero .wrap.center { display: block; }
