/* Self-hosted so Windows stops falling back to Segoe Script (felt-tip scrawl)
   for the register signatures. Petit Formal Script, OFL — dignified + legible. */
@font-face {
  font-family: 'Petit Formal Script';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/petit-formal-script-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Petit Formal Script';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/petit-formal-script-latinext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

/* Guestbook.Memorial — a fine register book, reborn.
   Ivory paper, deep ink, oxblood leather, brass. Dignity over cleverness. */

:root {
  --bg: #f8f5ee;
  --surface: #fffdf8;
  --ink: #29251c;
  --ink-soft: #6f6a5c;
  --line: #e6dfd0;
  --oxblood: #6d3a33;
  --oxblood-dark: #552c26;
  --brass: #a5854f;
  --brass-soft: #f1e8d3;
  --danger: #9c4a3c;
  --danger-soft: #f7e9e6;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --script: "Petit Formal Script", "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
body.bare main { max-width: none; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 32px 0 12px; }
h3 { font-size: 1.15rem; margin: 20px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--oxblood); }

/* Nav */
.appnav {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--brass); }
.appnav .links { display: flex; gap: 4px; flex-wrap: wrap; }
.appnav .links a { text-decoration: none; color: var(--ink-soft); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; }
.appnav .links a:hover { background: var(--bg); color: var(--ink); }
.appnav .links a.active { background: var(--brass-soft); color: var(--ink); font-weight: 600; }
.navright { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.username { color: var(--ink-soft); font-size: 0.9rem; }
a.quiet { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
a.quiet:hover { color: var(--ink); }

/* Buttons & forms */
.btn {
  display: inline-block; background: var(--oxblood); color: #fff;
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 1rem; font-family: var(--sans); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--oxblood-dark); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn.big { padding: 14px 26px; font-size: 1.08rem; }
.btn.secondary { background: transparent; color: var(--oxblood); border: 1px solid var(--oxblood); }
.btn.secondary:hover { background: var(--brass-soft); }
.btn.gold { background: var(--brass); }
.btn.gold:hover { background: #8d713f; }
.btn.danger { background: var(--danger); }
button.linklike { background: none; border: none; color: var(--oxblood); cursor: pointer; font-size: 0.88rem; padding: 2px 4px; text-decoration: underline; }
button.linklike.danger { color: var(--danger); }

form.stack label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 0.92rem; }
label .req { color: var(--oxblood); font-weight: 400; font-size: 0.8rem; }
label .opt { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: var(--sans); background: var(--surface); color: var(--ink);
}
input[type=file] { font-size: 0.95rem; }
textarea { min-height: 120px; resize: vertical; }
.form-hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-top: 16px; }
label.check input { width: auto; }
.addr-note { margin: 18px 0 -6px; font-size: 0.85rem; color: var(--ink-soft); border-left: 3px solid var(--brass); padding-left: 10px; }
.voice-controls { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
#recPreview { width: 100%; margin-top: 6px; }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 480px; margin: 40px auto; }
.card.narrow-wide { max-width: 680px; margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.subtle { color: var(--ink-soft); font-size: 0.95rem; }

.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.pagehead h1 { margin-bottom: 2px; }
.pagehead.tight { margin: 0 0 10px; align-items: baseline; }
.pagehead-actions { display: flex; gap: 10px; align-items: center; }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-value { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.stat-label { color: var(--ink-soft); font-size: 0.88rem; margin-top: 2px; }
.stat-hint { color: var(--ink-soft); font-size: 0.78rem; margin-top: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 600; }
tr:last-child td { border-bottom: none; }
a.rowlink { font-weight: 600; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.02rem; }
a.rowlink:hover { color: var(--oxblood); }
.small-cell { font-size: 0.85rem; color: var(--ink-soft); max-width: 260px; }
.row-hidden td { opacity: 0.45; }
.row-actions { white-space: nowrap; }
.inline-form { display: inline; }

/* Badges, notices */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.badge-open { background: #e2ecdf; color: #3c5a34; }
.badge-closed { background: #eeeae2; color: var(--ink-soft); }
.badge-src { background: var(--brass-soft); color: #71592e; }
.flash { max-width: 1120px; margin: 16px auto 0; padding: 12px 18px; background: var(--danger-soft); border: 1px solid #e0c1ba; border-radius: 8px; color: var(--danger); }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 0.94rem; }
.notice.warn { background: var(--brass-soft); border: 1px solid #dcc99b; color: #6d5628; }
.notice.welcome { background: #eef2ea; border: 1px solid #ccd9c4; color: #3c5a34; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-mini { padding: 28px; text-align: center; color: var(--ink-soft); }

/* Service hub link rows */
.linkgrid .card h2 { margin-top: 0; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linkrow:last-child { border-bottom: none; }
.btnpair { display: flex; gap: 8px; }
.livecount { display: inline-block; background: var(--oxblood); color: #fff; font-family: var(--sans); font-size: 0.85rem; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
details.menu { position: relative; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-card { position: absolute; right: 0; z-index: 30; width: min(560px, 92vw); max-height: 75vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(41,37,28,0.18); }
.memo-cell { font-style: italic; }

/* Thank-you cards */
.ty-card { padding: 18px 22px; }
.ty-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ty-head .btn { margin-left: auto; }
.ty-memory { margin: 10px 0 4px; font-style: italic; color: var(--ink-soft); font-size: 0.92rem; border-left: 3px solid var(--brass); padding-left: 12px; }
.ty-body { margin-top: 10px; font-family: var(--serif); font-size: 1.02rem; line-height: 1.65; white-space: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 24px 36px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer .fineprint { font-size: 0.8rem; margin-top: 6px; }
.prose { max-width: 720px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }
.prose h1 { margin-top: 0; }
.fineprint { color: var(--ink-soft); font-size: 0.85rem; }

/* ============================== Landing ============================== */

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 40px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; background: var(--brass-soft); color: #6d5628; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 2.7rem; line-height: 1.12; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }
.lede-sm { color: var(--ink-soft); max-width: 640px; margin: -4px auto 26px; }
.hero-ctas { display: flex; gap: 14px; margin: 26px 0 20px; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.9rem; }

/* The animated register card */
.register-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--oxblood);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(41,37,28,0.14);
  padding: 30px 34px 22px;
  transform: rotate(1.2deg);
}
.register-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.register-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.register-dates { color: var(--brass); font-size: 0.9rem; letter-spacing: 0.12em; margin-top: 2px; }
.register-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 11px 2px 6px; opacity: 0; animation: signin 0.9s ease forwards; }
.register-sig { font-family: var(--script); font-size: 1.5rem; color: #33302a; white-space: nowrap; }
.register-rel { color: var(--ink-soft); font-size: 0.78rem; text-align: right; }
.register-foot { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; color: var(--ink-soft); font-size: 0.75rem; padding-top: 16px; font-style: italic; }
.register-qr { border: 1px solid var(--line); border-radius: 4px; padding: 3px; background: #fff; }
@keyframes signin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.band { padding: 56px 0; }
.band.alt { position: relative; }
.band.alt::before { content: ''; position: absolute; inset: 0 -100vw; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: -1; }
.band h2 { font-size: 1.9rem; margin-top: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { width: 36px; height: 36px; border-radius: 999px; background: var(--oxblood); color: #fff; font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px; }
.step h3 { margin-top: 0; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.compare { margin-top: 30px; }
.compare th.us, .compare td.us { background: var(--brass-soft); font-weight: 600; }
.compare td:first-child { font-weight: 600; }

.price-math { margin-top: 30px; }
.price-math-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .price-math-inner { grid-template-columns: 1fr 1fr; } }
.pm-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.pm-col.us { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.pm-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.pm-num span { font-size: 1rem; font-weight: 400; }
.pm-label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.pm-col.us .pm-label { color: #f0dfdc; }
.pm-foot { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 16px; font-style: italic; }

.outputs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 1000px) { .outputs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .outputs-grid { grid-template-columns: 1fr; } }
.output { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.output h3 { margin-top: 0; font-size: 1.02rem; }
.output p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

.band.dark { position: relative; color: #efeadf; }
.band.dark::before { content: ''; position: absolute; inset: 0 -100vw; background: #2a2620; z-index: -1; }
.dark-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.band.dark h2 { color: #f6f2e8; }
.band.dark p { color: #bfb8a8; }
.band.dark blockquote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.6; color: #e8e1d2; border-top: 1px solid #4a443a; margin: 28px auto 0; padding: 24px 12px 0; }

.whyfree-card { background: var(--surface); border: 1px solid var(--brass); border-radius: var(--radius); padding: 36px 40px; max-width: 760px; margin: 0 auto; }
.whyfree-card h2 { margin-top: 0; }

.faq { max-width: 760px; margin: 30px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; font-size: 0.98rem; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; }

.final-cta { text-align: center; padding: 70px 0 60px; }
.final-cta h2 { font-size: 1.9rem; }
.final-cta p { color: var(--ink-soft); margin-bottom: 24px; }

/* ============================== Guest & kiosk pages ============================== */

.guest-page { max-width: 640px; margin: 0 auto; padding: 36px 20px 60px; }
.service-head { text-align: center; margin-bottom: 26px; }
.service-photo { width: 128px; height: 128px; object-fit: cover; border-radius: 999px; border: 4px solid var(--surface); box-shadow: 0 6px 24px rgba(41,37,28,0.18); margin-bottom: 14px; }
.service-inmemory { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.service-name { font-family: var(--serif); font-size: 2.2rem; margin: 6px 0 2px; line-height: 1.15; }
.service-dates { color: var(--ink-soft); letter-spacing: 0.1em; }
.signbook-title { text-align: center; font-size: 1.3rem; margin: 0 0 6px; }
.guest-card { padding: 28px 30px; }
.guest-foot { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin-top: 18px; }
.bigcheck { width: 64px; height: 64px; border-radius: 999px; background: var(--oxblood); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 6px auto 16px; }

.kiosk { max-width: 760px; margin: 0 auto; padding: 40px 28px 80px; }
.kiosk .service-name { font-size: 2.6rem; }
.kiosk-form input, .kiosk-form select, .kiosk-form textarea { font-size: 1.15rem; padding: 14px 16px; }
.kiosk-form label { font-size: 1.05rem; }
.kiosk .btn.big { width: 100%; padding: 18px; font-size: 1.25rem; }
.kiosk-screen.hidden { display: none; }
.kiosk-screen.center { text-align: center; padding-top: 10vh; }
.kiosk-reset-note { color: var(--ink-soft); }

/* ============================== Family keepsake ============================== */

.keepsake { max-width: 860px; margin: 0 auto; padding: 48px 24px 60px; }
.keepsake-meta { text-align: center; color: var(--ink-soft); margin-bottom: 34px; }
.keepsake-count { margin-top: 6px; font-size: 0.92rem; }
.keepsake-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.memory-summary { background: var(--surface); border: 1px solid var(--brass); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 30px; }
.memory-summary h2 { margin-top: 0; font-size: 1.2rem; color: var(--brass); letter-spacing: 0.04em; }
.prose-block { font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; }
.memory-wall { columns: 2 300px; column-gap: 18px; }
.memory { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.memory img, .memory video { width: 100%; border-radius: 6px; margin-bottom: 12px; }
.memory audio { width: 100%; margin-top: 4px; }
.memory-voice { margin: 8px 0 10px; }
.voice-tag { display: block; font-size: 0.78rem; color: var(--brass); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 4px; }
.memory-text { font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; margin: 0 0 10px; }
.memory-by { color: var(--ink-soft); font-size: 0.88rem; }
.memory-by span { font-style: italic; }
.keepsake-register { margin-top: 44px; text-align: center; }
.name-columns { columns: 3 200px; column-gap: 24px; text-align: left; max-width: 720px; margin: 18px auto 0; }
.signed-name { font-family: var(--serif); font-size: 1.02rem; padding: 5px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.signed-name .rel { color: var(--ink-soft); font-size: 0.85rem; font-family: var(--sans); }
.keepsake-foot { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 48px; line-height: 1.8; }
.powered a { color: var(--brass); }

/* ============================== Printables ============================== */

.print-note { max-width: 720px; margin: 18px auto; background: var(--brass-soft); border: 1px solid #dcc99b; color: #6d5628; border-radius: 8px; padding: 12px 18px; font-size: 0.9rem; display: flex; align-items: center; gap: 14px; justify-content: space-between; }

/* QR poster (one per letter page) */
.poster { max-width: 7.5in; margin: 20px auto; background: #fff; border: 1px solid var(--line); padding: 0.8in 0.6in; text-align: center; }
.poster-inmemory { letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); font-size: 0.95rem; }
.poster-name { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; margin: 10px 0 2px; }
.poster-dates { color: var(--ink-soft); letter-spacing: 0.14em; font-size: 1.05rem; }
.poster-rule { width: 90px; height: 2px; background: var(--oxblood); margin: 22px auto; }
.poster-headline { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 18px; }
.poster-qr { width: 3.2in; height: 3.2in; }
.poster-sub { font-size: 1.05rem; margin-top: 18px; line-height: 1.6; }
.poster-foot { color: var(--ink-soft); font-size: 0.85rem; margin-top: 22px; }

/* Program insert cards (8-up) */
.insert-sheet { display: grid; grid-template-columns: 1fr 1fr; max-width: 7.6in; margin: 20px auto; background: #fff; }
.insert-card { border: 1px dashed var(--line); text-align: center; padding: 0.28in 0.2in; }
.ic-inmemory { letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-size: 0.62rem; }
.ic-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; margin: 3px 0 8px; }
.ic-qr { width: 1.35in; height: 1.35in; }
.ic-line { font-size: 0.7rem; margin-top: 7px; }

/* Printed register */
.printreg { max-width: 7.5in; margin: 20px auto; background: #fff; border: 1px solid var(--line); padding: 0.7in 0.6in; }
.printreg-head { text-align: center; margin-bottom: 0.4in; }
.printreg-name { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; margin: 8px 0 2px; }
.printreg-dates { color: var(--ink-soft); letter-spacing: 0.14em; }
.printreg-service { margin-top: 8px; color: var(--ink-soft); }
.printreg-count { margin-top: 14px; font-style: italic; color: var(--ink-soft); font-size: 0.9rem; }
.printreg-table { width: 100%; border-collapse: collapse; }
.printreg-table th { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; border-bottom: 1.5px solid var(--ink); }
.printreg-table td { font-size: 0.92rem; border-bottom: 0.5px solid var(--line); padding: 8px 10px; }
.printreg-guest { font-family: var(--serif); font-size: 1.04rem !important; }

/* Envelopes (#10) */
.envelope { width: 9.5in; height: 4.125in; background: #fff; border: 1px dashed var(--line); margin: 12px auto; position: relative; page-break-after: always; }
.env-return { position: absolute; top: 0.35in; left: 0.4in; font-size: 0.72rem; line-height: 1.5; }
.env-to { position: absolute; top: 1.7in; left: 3.6in; font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; }

/* Avery 5160 labels */
.label-sheet { display: grid; grid-template-columns: repeat(3, 2.625in); grid-auto-rows: 1in; column-gap: 0.125in; width: 8.125in; margin: 20px auto; background: #fff; }
.label { display: flex; align-items: center; padding: 0.06in 0.18in; font-size: 0.7rem; line-height: 1.35; overflow: hidden; }

/* Acknowledgment cards (4-up, 4.25x5.5) */
.ack-sheet { display: grid; grid-template-columns: 4.25in 4.25in; grid-auto-rows: 5.5in; margin: 20px auto; width: 8.5in; background: #fff; }
.ack-card { border: 1px dashed var(--line); text-align: center; padding: 0.5in 0.4in; display: flex; flex-direction: column; justify-content: center; }
.ack-inmemory { letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); font-size: 0.66rem; }
.ack-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 5px 0 1px; }
.ack-dates { color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.1em; }
.ack-rule { width: 50px; height: 1.5px; background: var(--oxblood); margin: 14px auto; }
.ack-verse { font-family: var(--serif); font-style: italic; font-size: 0.9rem; line-height: 1.6; }
.ack-attr { color: var(--ink-soft); font-size: 0.75rem; margin-top: 6px; }
.ack-thanks { font-size: 0.8rem; margin-top: 16px; line-height: 1.6; }
.ack-family { font-family: var(--script); font-size: 1.15rem; margin-top: 10px; }

/* Keepsake QR cards (share the ack-sheet 4-up grid) */
.keep-card { border: 1px dashed var(--line); text-align: center; padding: 0.45in 0.4in; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.keep-qr { width: 1.8in; height: 1.8in; margin: 4px auto 10px; }
.keep-line { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.keep-sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }
.book-av-note { font-style: italic; color: var(--ink-soft); padding-top: 14px; }

/* Thank-you print */
.ty-print { max-width: 7.5in; margin: 20px auto; }
.ty-print-note { background: #fff; border: 1px solid var(--line); padding: 0.4in 0.5in; margin-bottom: 16px; page-break-inside: avoid; }
.ty-print-for { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 10px; }
.ty-print-body { font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; }

/* Memory book */
.book { max-width: 7.5in; margin: 20px auto; }
.book-cover { background: #fff; border: 1px solid var(--line); text-align: center; padding: 2.2in 0.7in; page-break-after: always; }
.book-inmemory { letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.book-name { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; margin: 14px 0 4px; }
.book-dates { color: var(--ink-soft); letter-spacing: 0.16em; font-size: 1.1rem; }
.book-service { margin-top: 26px; color: var(--ink-soft); line-height: 1.7; }
.book-page { background: #fff; border: 1px solid var(--line); padding: 0.6in 0.7in; margin-bottom: 16px; }
.book-page h2 { margin-top: 0; }
.book-memory { border-bottom: 1px solid var(--line); padding: 14px 0; page-break-inside: avoid; }
.book-memory p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.65; margin: 0 0 8px; }
.book-names .signed-name { font-size: 0.95rem; }

/* Print rules */
@media print {
  .no-print, .print-note, .appnav, .site-footer, .keepsake-actions { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .poster, .printreg, .insert-sheet, .ack-sheet, .label-sheet, .book-cover, .book-page, .ty-print-note, .envelope { border: none; margin: 0 auto; }
  .insert-card, .ack-card, .keep-card { border: 0.5px solid #ddd; }
  .envelope { page-break-after: always; }
  a { color: inherit; text-decoration: none; }
}

/* THE SERVICE BAR — copied from memorial-hub/clients/mbar.css. Do not edit here. */
/* THE SERVICE BAR — append verbatim to each tool's public/styles.css.
   Canonical source: memorial-hub/clients/mbar.css
   Uses each tool's own --surface/--line if defined, with safe fallbacks. */

.mbar { background: var(--surface, #fffdf8); border-bottom: 1px solid var(--line, #e6dfd0); }
.mbar-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 7px 14px; flex-wrap: wrap; }
.mbar-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 0.86rem; line-height: 1; }
.mbar-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mbar-item.live { color: var(--c, #29251c); background: color-mix(in srgb, var(--c, #29251c) 9%, transparent); font-weight: 600; }
.mbar-item.live:hover { background: color-mix(in srgb, var(--c, #29251c) 16%, transparent); }
.mbar-item.current { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #29251c) 35%, transparent); }
.mbar-item.off { color: #b3ada0; cursor: default; }
.mbar-count { margin-left: auto; font-size: 0.74rem; color: #a29c8e; letter-spacing: 0.04em; }
.mbar-all { font-size: 0.78rem; color: #6f6a5c; text-decoration: none; border-left: 1px solid var(--line, #e6dfd0); padding-left: 12px; margin-left: 10px; }
.mbar-all:hover { color: #29251c; }
@media (max-width: 560px) {
  .mbar-item span { display: none; }
  .mbar-item { padding: 7px 10px; }
  .mbar-count { font-size: 0.7rem; }
}
@media print { .mbar { display: none !important; } }

/* Founder note on /why-free — a real person, at a size that reads as a byline
   rather than an author photo on a dust jacket. */
.whyfree .lede-strong { font-size: 1.06rem; color: var(--ink); }
.founder { display: flex; gap: 20px; align-items: flex-start; margin: 20px 0 18px; }
.founder-photo { width: 120px; height: 150px; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(41,37,28,0.14); flex: none; }
.founder-words p { margin: 0; }
@media (max-width: 560px) {
  .founder { flex-direction: column; gap: 14px; }
  .founder-photo { width: 108px; height: 135px; }
}
