/* Fond Creations public site.
 *
 * Same family as Fond Wishes: Source Serif 4 headings, Source Sans 3 body,
 * the white pill menu, large rounded panels and pill buttons. The colour is
 * the difference — deep teal where Fond Wishes is purple.
 *
 * Contrast (WCAG): cream on teal 7.5:1, ink on cream 13:1, teal on white
 * 7.8:1, muted on white 6.3:1. Coral is decoration only — it is too light to
 * carry text on either cream or teal.
 */

:root {
  --teal: #185a5b;
  --teal-deep: #134849;
  --sea: #e8f2ef;
  --sea-line: #cfe2dc;
  --cream: #fff8f0;
  --coral: #d6816d;
  --gold: #f3c63d;
  --ink: #162d32;
  --muted: #4d6266;
  --on-teal: #fff8f0;
  --on-teal-muted: #d6e8e3;
  --white: #ffffff;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --radius: 28px;
  --shadow: 0 16px 40px rgba(22, 45, 50, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: 100px;
  background-color: var(--teal);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image: linear-gradient(var(--teal), var(--teal));
  background-size: 100% 120px;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-teal :focus-visible { outline-color: var(--cream); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 24px;
  font: 700 16px/1.1 var(--sans);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--teal); color: var(--cream); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-light { background: var(--cream); color: var(--teal); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--sea); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost-light:hover { background: rgba(255, 248, 240, 0.1); }
.btn-gold { background: var(--gold); color: var(--teal-deep); }
.btn-gold:hover { background: #f6d15a; }
/* Start buttons: the one action on every product, so it is the brightest
 * thing on the page on teal and on white alike. */
.btn-start {
  background: var(--gold);
  color: var(--teal-deep);
  box-shadow: none;
  transition: background 0.15s ease;
}
.btn-start::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}
.btn-start:hover { background: #ffd54f; transform: none; box-shadow: none; }
.btn-start:hover::after { transform: translateX(3px); }
.btn-start:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }

/* ------------------------------------------------------------------- hero */
.hero-shell.hero-home {
  margin-top: -90px;
  padding: 168px 0 128px;
  background-color: var(--teal);
  color: var(--on-teal);
}
/* The plate leaves the text column empty around its own centre, so it must stay
   centred at its natural size. */
.hero-home .hero-doodles {
  background: url("/assets/site/img/hero-doodles.svg?v=10") center top / 3840px 1000px no-repeat;
  opacity: 0.55;
}
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #fff;
}
.hero .lede {
  color: var(--on-teal-muted);
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 30px;
}
.hero-entries {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  border-top: 1px solid rgba(214, 232, 227, 0.22);
}
.hero-entries li { border-bottom: 1px solid rgba(214, 232, 227, 0.22); }
.hero-entries a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 11px 4px;
  color: var(--on-teal-muted);
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  border-radius: 10px;
}
.hero-entries a > span { flex: 1; }
.hero-entries strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.hero-entries svg { flex-shrink: 0; }
.hero-entries .hero-check { width: 22px; height: 22px; margin-top: 1px; }
.hero-entries .hero-arrow { width: 16px; height: 16px; margin-top: 5px; transition: transform 0.15s ease; }
.hero-entries a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.hero-entries a:hover .hero-arrow { transform: translateX(3px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn { padding: 16px 26px; }

/* Two columns of photos drifting in opposite directions, as on Fond Wishes.
   They run the full height of the hero, under the menu pill and the wave. */
.hero-visual { position: relative; align-self: stretch; min-height: 420px; }
.hero-masonry {
  position: absolute;
  top: -168px;
  bottom: -128px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  overflow: hidden;
}
.masonry-col { overflow: hidden; min-width: 0; }
.masonry-track { display: flex; flex-direction: column; animation: fc-masonry-up 80s linear infinite; }
.masonry-col:nth-child(2) .masonry-track { animation-name: fc-masonry-down; animation-duration: 104s; }
.masonry-set { display: flex; flex-direction: column; gap: 20px; padding-bottom: 20px; }
.hero-masonry .tile { display: block; overflow: hidden; border-radius: 20px; flex-shrink: 0; background: var(--teal-deep); }
.hero-masonry .tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-masonry .tile-tall { height: 300px; }
.hero-masonry .tile-mid { height: 228px; }
@keyframes fc-masonry-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes fc-masonry-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .btn-start:hover, .btn-start:hover::after { transform: none; }
  .masonry-track, .masonry-col:nth-child(2) .masonry-track { animation: none; }
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  display: block;
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------- sections */
.section { padding: 84px 0; }
.section-sea { background: var(--sea); }
.section-white { background: var(--white); }
.section-head { margin: 0 0 44px; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 19px; }
.concept-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--sea-line);
  color: var(--muted);
  font-size: 16px;
}
.concept-note svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ---------------------------------------------------------- creation cards */
.fc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.fc-box {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fc-box-art { aspect-ratio: 7 / 4.4; overflow: hidden; background: var(--sea); }
.fc-box-art img { width: 100%; height: 100%; object-fit: cover; }
.fc-box-copy { display: flex; flex-direction: column; flex: 1; padding: 30px 34px 34px; }
.fc-box-copy h3 { font-size: 30px; line-height: 1.12; margin: 0 0 8px; }
.fc-box-copy h3 a { color: inherit; text-decoration: none; }
.fc-box-copy h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fc-box-copy > p { margin: 0 0 22px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.fc-facts {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--sea);
}
.fc-facts div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 12px; }
.fc-facts svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--teal); }
.fc-facts dt { font-weight: 700; font-size: 15px; color: var(--ink); }
.fc-facts dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.fc-box-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.fc-box-actions .btn { padding: 13px 18px; border-radius: 10px; font-size: 15px; }

/* Homepage product boxes, one per product, as on Fond Wishes. */
.fc-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.fc-product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fc-product-art { aspect-ratio: 7 / 5; overflow: hidden; background: var(--sea); }
.fc-product-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.fc-product:hover .fc-product-art img { transform: scale(1.03); }
.fc-product-copy { display: flex; flex-direction: column; flex: 1; padding: 32px 36px 34px; }
.fc-product-copy h3 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 8px; }
.fc-product-copy h3 a { color: inherit; text-decoration: none; }
.fc-product-copy h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fc-product-copy > p { margin: 0 0 20px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.fc-product .fc-ticks { margin-bottom: 28px; gap: 9px; }
.fc-product .fc-ticks li { padding-left: 31px; font-size: 16px; }
.fc-product .fc-ticks li::before { width: 20px; height: 20px; }
.fc-product .fc-box-actions .btn { padding: 13px 18px; border-radius: 8px; font-size: 15px; }
/* Nine boxes in two columns: the odd last one takes the whole row, picture beside the words. */
.fc-product:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
.fc-product:last-child:nth-child(odd) .fc-product-art { flex: 0 0 calc(50% - 14px); aspect-ratio: auto; }

.fc-later {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.fc-later div {
  padding: 24px 28px;
  border-radius: 22px;
  border: 1.5px dashed var(--sea-line);
  background: var(--white);
}
.fc-later h3 { font-size: 22px; margin: 0 0 6px; }
.fc-later p { margin: 0; color: var(--muted); font-size: 16px; }

/* ------------------------------------------------------------------ steps */
.fc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.fc-steps li {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.08);
  counter-increment: step;
}
.fc-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  font: 700 19px/1 var(--sans);
}
.fc-steps li::after {
  content: "";
  position: absolute;
  left: 58px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--coral);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.fc-steps h3 { font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.fc-steps p { margin: 0; font-size: 16px; color: var(--muted); }

/* -------------------------------------------------------------- occasions */
.fc-occasions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.fc-occasion {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.08);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.fc-occasion:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22, 45, 50, 0.1); }
.fc-occasion img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.fc-occasion-body { display: flex; flex: 1; flex-direction: column; padding: 28px 32px 30px; }
.fc-occasion h3 { font-size: 30px; margin: 0 0 10px; }
.fc-occasion p { margin: 0 0 18px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.fc-occasion .fc-suits { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--teal); }
.fc-occasion:nth-child(odd):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.fc-occasion:nth-child(odd):last-child img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.fc-occasion:nth-child(odd):last-child .fc-occasion-body { justify-content: center; padding: 40px 44px; }

/* --------------------------------------------------------------- previews */
.fc-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.fc-preview {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--sea);
  overflow: hidden;
}
.fc-preview-art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--teal);
  overflow: hidden;
}
.fc-preview-art .hero-doodles { opacity: 0.35; background-size: 900px auto; }
.fc-preview-copy { padding: 26px 30px 30px; }
.fc-preview-copy h3 { font-size: 24px; margin: 0 0 6px; }
.fc-preview-copy p { margin: 0; font-size: 16px; color: var(--ink); }

/* book spread */
.mock-book {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(5, 25, 26, 0.4);
}
.mock-book img { width: 100%; height: 100%; object-fit: cover; }

/* slideshow frame */
.mock-slide {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0d2526;
  box-shadow: 0 18px 40px rgba(5, 25, 26, 0.4);
}
.mock-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mock-slide-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--on-teal-muted);
  font-size: 13px;
}
.mock-slide-bar span:first-child {
  width: 0; height: 0;
  border-left: 10px solid var(--cream);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.mock-slide-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 248, 240, 0.2); overflow: hidden; }
.mock-slide-track i { display: block; width: 38%; height: 100%; background: var(--coral); }

/* anniversary book timeline */
.mock-timeline {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 18px 22px;
  list-style: none;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(5, 25, 26, 0.35);
}
.mock-timeline li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.mock-timeline li + li { border-top: 1px solid var(--sea-line); }
.mock-timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.mock-timeline li.is-locked::before { background: transparent; border: 2px solid var(--teal); }
.mock-timeline b { display: block; font-size: 13px; color: var(--teal); }

/* contributor view (a phone) */
.mock-phone {
  position: relative;
  z-index: 1;
  width: min(250px, 72%);
  padding: 16px 16px 18px;
  border-radius: 30px;
  background: var(--cream);
  border: 6px solid #0d2526;
  box-shadow: 0 18px 40px rgba(5, 25, 26, 0.4);
  font-size: 13px;
  line-height: 1.35;
}
.mock-phone b { display: block; margin-bottom: 4px; font: 600 16px/1.25 var(--serif); }
.mock-phone p { margin: 0 0 10px; color: var(--muted); }
.mock-field {
  height: 54px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--sea-line);
}
.mock-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.mock-chips span {
  flex: 1;
  padding: 6px 0;
  border-radius: 999px;
  background: var(--sea);
  text-align: center;
  font-weight: 600;
  color: var(--teal);
}
.mock-send { padding: 9px 0; border-radius: 10px; background: var(--teal); color: var(--cream); text-align: center; font-weight: 700; }

/* ------------------------------------------------------------ cross-link */
.fc-sister {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--sea-line);
}
.fc-sister img { width: 64px; height: 96px; }
.fc-sister h2 { font-size: 26px; margin: 0 0 4px; }
.fc-sister p { margin: 0; color: var(--muted); font-size: 17px; }

/* ------------------------------------------------------------------- faq */
.fc-faq { display: grid; gap: 12px; }
.fc-faq details {
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.1);
}
.fc-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font: 600 19px/1.3 var(--serif);
  cursor: pointer;
  border-radius: 18px;
}
.fc-faq summary::-webkit-details-marker { display: none; }
.fc-faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.fc-faq details[open] summary::after { transform: rotate(225deg); }
.fc-faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 17px; }

/* ------------------------------------------------------------- final CTA */
.fc-final {
  position: relative;
  padding: 88px 0;
  background: var(--teal);
  color: var(--on-teal);
  text-align: center;
  overflow: hidden;
}
.fc-final .wrap { position: relative; z-index: 1; }
.fc-final .hero-doodles { opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 34% 55% at 50% 50%, transparent 70%, #000 100%);
          mask-image: radial-gradient(ellipse 34% 55% at 50% 50%, transparent 70%, #000 100%); }
.fc-final h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.1; margin: 0 0 12px; color: #fff; }
.fc-final p { margin: 0 0 30px; color: var(--on-teal-muted); font-size: 19px; }
.fc-final .hero-actions { justify-content: center; }

/* ------------------------------------------------------------ inner pages */
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.08; margin: 0 0 14px; }
.page-head .lede { margin: 0; font-size: 20px; color: var(--muted); }

.fc-landing-hero { margin: 8px 0 28px; }
.fc-landing-hero img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius);
}
.wrap > .fc-landing-hero + h2 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; }
.wrap > .fc-landing-hero ~ p { margin: 0 0 22px; }
.wrap > .hero-actions { margin: 0 0 56px; }

.fc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 24px 0 64px;
}
.fc-split-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fc-split h2 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; }
.fc-split > div > p { margin: 0 0 22px; color: var(--muted); }
.fc-ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.fc-ticks li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.45; }
.fc-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #1f9d4e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='19 7 10 16 5 11'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.fc-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.fc-cat {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.fc-cat-go { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.fc-cat img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fc-cat div { padding: 20px 24px 24px; }
.fc-cat p.fc-cat-start { margin: 0; padding: 0 24px 24px; color: inherit; }
.fc-cat-start .btn { width: 100%; justify-content: center; }
.fc-cat h2, .fc-cat h3 { font-size: 23px; margin: 0 0 6px; }
.fc-cat p { margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.fc-cat q { display: block; padding: 10px 14px; border-radius: 12px; background: var(--sea); font-size: 15px; color: var(--ink); quotes: "“" "”"; }
.fc-cat:hover h2, .fc-cat:hover h3, .fc-cat-go:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.wall-setup .start-form { width: min(640px, 100%); margin-inline: auto; }
.start-step { margin: 8px 0 0; padding: 0; border: 0; min-inline-size: 0; }
.start-step + .start-step { margin-top: 28px; padding-top: 8px; }
.start-step legend {
  float: none;
  width: 100%;
  padding: 0;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}
.start-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.start-form .btn-gold { width: 100%; justify-content: center; margin-top: 18px; padding: 16px 24px; font-size: 18px; }
@media (max-width: 640px) {
  .start-pair { grid-template-columns: 1fr; }
}

.fc-prose { padding: 8px 0 72px; }
.fc-prose p, .fc-prose li { font-size: 18px; }
.fc-panel {
  padding: 30px 34px;
  border-radius: var(--radius);
  background: var(--sea);
}
.fc-panel h2 { font-size: 28px; margin: 0 0 10px; }
.fc-panel p { margin: 0 0 12px; }
.fc-panel p:last-child { margin-bottom: 0; }

.fc-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 38px 40px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--sea-line);
}
.fc-empty h2 { font-size: 30px; margin: 0; }
.fc-empty p { margin: 0; color: var(--muted); }

/* ------------------------------------------------- features, as on Fond Wishes */
/* Product pages: words beside an example picture, alternating sides. */
.fc-rows .section-head { margin-bottom: 12px; }
.fc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  padding: 36px 0 56px;
}
.fc-row-flip .fc-row-copy { order: 2; }
.fc-row-copy h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.16; margin: 0 0 14px; }
.fc-row-copy p { margin: 0; font-size: 19px; color: var(--muted); }
.fc-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fc-points li { position: relative; padding-left: 32px; font-size: 17px; font-weight: 600; }
.fc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1f9d4e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='19 7 10 16 5 11'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fc-row-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 36px 28px;
  border-radius: 30px;
  background: linear-gradient(170deg, #ffffff 0%, var(--sea) 100%);
  border: 1px solid var(--sea-line);
  box-shadow: var(--shadow);
}

/* Homepage: feature cards, a picture panel over a title and a few lines. */
.fc-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.fc-feat {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.fc-feat-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  padding: 28px;
  overflow: hidden;
  background: var(--cream);
}
.fc-feat:nth-child(4n+2) .fc-feat-art,
.fc-feat:nth-child(4n+3) .fc-feat-art {
  background: radial-gradient(circle at 82% 0%, rgba(126, 200, 179, 0.28), transparent 55%), var(--teal);
}
/* The cream panels are the page colour. A drop shadow on the sample
 * card inside them reads as a glow, so the sample sits flat. */
.fc-feat-art .fx,
.fc-feat-art .fx-player,
.fc-feat-art .fx-written,
.fc-feat-art .fx-spread,
.fc-feat-art .fx-photos figure { box-shadow: none; }
.fc-feat-copy { padding: 26px 30px 30px; }
.fc-feat-copy h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.fc-feat-copy p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); }

/* The example pictures. */
.fx { width: 100%; max-width: 400px; color: var(--ink); text-align: left; font-family: var(--sans); }
.fx-prompt, .fx-invite, .fx-gift, .fx-surprise, .fx-written, .fx-timeline {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(22, 45, 50, 0.14);
}
.fx-prompt, .fx-invite, .fx-gift, .fx-surprise { padding: 22px; }
.fx-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fx-title { display: block; margin: 0 0 12px; font: 600 19px/1.3 var(--serif); }
.fx-q { margin: 0 0 14px; font: 600 19px/1.35 var(--serif); }
.fx-small { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.fx-go {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 700;
}
.fx-av {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.fx-av-1 { background: var(--coral); }
.fx-av-2 { background: #7ec8b3; color: var(--teal-deep); }
.fx-av-3 { background: var(--gold); color: var(--teal-deep); }
.fx-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
}
.fx-lock svg { width: 14px; height: 14px; }
.fx-play { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); }
.fx-play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 11px solid var(--teal-deep);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.fx-answer { padding: 12px 14px; border: 1.5px solid var(--sea-line); border-radius: 14px; background: var(--cream); }
.fx-answer p { margin: 0; font-size: 15px; line-height: 1.5; }
.fx-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--teal); animation: fx-blink 1s steps(2) infinite; }
@keyframes fx-blink { 50% { opacity: 0; } }
.fx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.fx-bar .fx-go { margin-left: auto; }
.fx-chip { padding: 5px 10px; border-radius: 999px; background: var(--sea); color: var(--teal-deep); font-size: 12.5px; font-weight: 600; }

.fx-voice { display: grid; gap: 14px; }
.fx-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(22, 45, 50, 0.14);
}
.fx-wave { display: flex; flex: 1; align-items: center; gap: 3px; height: 24px; }
.fx-wave i { flex: 1; max-width: 4px; border-radius: 2px; background: var(--sea-line); }
.fx-wave i.is-played { background: var(--teal); }
.fx-player em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.fx-written { padding: 18px 22px; }
.fx-written p { margin: 0 0 14px; font: 500 16px/1.5 var(--serif); }

.fx-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  background: var(--sea);
  color: var(--muted);
  font-size: 14px;
}
.fx-link em { padding: 6px 12px; border-radius: 8px; background: var(--teal); color: var(--cream); font-style: normal; font-size: 13px; font-weight: 700; }
.fx-people { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fx-people li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.3; }
.fx-people strong { display: block; color: var(--ink); font-size: 14.5px; }

.fx-photos { display: flex; justify-content: center; padding: 6px 0 22px; }
.fx-photos figure {
  width: 52%;
  margin: 0;
  padding: 10px 10px 12px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(22, 45, 50, 0.18);
  transform: rotate(-4deg);
}
.fx-photos figure + figure { margin-left: -8%; transform: rotate(3.5deg) translateY(18px); }
.fx-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.fx-photos figcaption { margin-top: 9px; font: italic 500 14px/1.35 var(--serif); }
.fx-photos figcaption b { display: block; margin-top: 3px; color: var(--muted); font: 700 12px var(--sans); }

.fx-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 1.55;
  padding: 14px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(22, 45, 50, 0.18);
}
.fx-spread::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 10px);
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(22, 45, 50, 0.1), transparent);
}
.fx-page-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.fx-page-text { display: flex; flex-direction: column; padding: 8px 4px 4px 20px; }
.fx-page-text strong { margin-bottom: 8px; font: 600 17px/1.2 var(--serif); }
.fx-page-text p { margin: 0; color: var(--muted); font: italic 14px/1.5 var(--serif); }
.fx-page-text span { margin-top: auto; color: var(--teal); font-size: 12px; font-weight: 700; }
.fx-formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.fx-formats span { padding: 5px 11px; border-radius: 999px; background: var(--teal); color: var(--cream); font-size: 12.5px; font-weight: 700; }
.fx-formats .is-planned { background: var(--white); color: var(--teal); border: 1px dashed var(--teal); }

.fx-gift { border-top: 6px solid var(--coral); }
.fx-gift p { margin: 0 0 16px; color: var(--muted); font: italic 15.5px/1.5 var(--serif); }

.fx-avs { display: flex; align-items: center; }
.fx-avs .fx-av { margin-left: -8px; border: 2px solid var(--white); }
.fx-avs .fx-av:first-child { margin-left: 0; }
.fx-avs span { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }

.fx-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 8px solid #d9c7a8;
  border-radius: 0 0 4px 4px;
}
.fx-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 68px;
  height: 165px;
  padding: 14px 6px;
  border-radius: 4px 6px 6px 4px;
  color: #fff;
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, 0.12), 0 10px 20px rgba(22, 45, 50, 0.18);
}
.fx-year b { font: 600 34px/1 var(--serif); }
.fx-year i { writing-mode: vertical-rl; transform: rotate(180deg); font-style: normal; font-size: 12px; font-weight: 700; }
.fx-year-1 { height: 150px; background: #8fb59f; }
.fx-year-2 { background: var(--teal); }
.fx-year-3 { height: 158px; background: var(--coral); }
.fx-year-next { background: transparent; border: 2px dashed var(--teal); color: var(--teal); box-shadow: none; }

.fx-record { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 40px rgba(22, 45, 50, 0.2); }
.fx-record img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-rec {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.fx-rec i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.fx-ask {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  font: 600 15.5px/1.35 var(--serif);
}

.fx-film, .fx-slide { border-radius: 18px; background: var(--ink); box-shadow: 0 18px 40px rgba(22, 45, 50, 0.22); }
.fx-film { padding: 12px; }
.fx-slide { padding: 10px 10px 0; }
.fx-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; }
.fx-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-screen .fx-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); }
.fx-track { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.fx-track i { display: block; width: 38%; height: 100%; border-radius: 2px; background: var(--gold); }
.fx-chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.fx-chapters li { padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); color: var(--on-teal-muted); font-size: 13px; font-weight: 600; }
.fx-chapters li.is-on { background: var(--gold); color: var(--teal-deep); }
.fx-slidebar { display: flex; align-items: center; gap: 10px; padding: 10px 4px 12px; color: var(--on-teal-muted); font-size: 12.5px; }
.fx-slidebar .fx-play { width: 28px; height: 28px; }
.fx-slidebar .fx-play::after { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.fx-slidebar .fx-track { position: static; flex: 1; }
.fx-slidebar em { font-style: normal; }

.fx-order { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 330px; }
.fx-tile { position: relative; aspect-ratio: 1; padding: 6px; border-radius: 12px; background: var(--white); box-shadow: 0 8px 18px rgba(22, 45, 50, 0.14); }
.fx-tile img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.fx-tile b {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--teal-deep);
  font-size: 13px;
}
.fx-tile.is-moving { outline: 3px solid var(--teal); transform: rotate(-4deg) scale(1.05); box-shadow: 0 18px 36px rgba(22, 45, 50, 0.25); }

.fx-timeline { margin: 0; padding: 22px 22px 22px 26px; list-style: none; }
.fx-timeline li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--sea-line); color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.fx-timeline li:last-child { padding-bottom: 0; }
.fx-timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.fx-timeline b { display: block; color: var(--ink); font-size: 14px; }
.fx-timeline .is-locked { opacity: 0.55; }
.fx-timeline .is-locked::before { background: var(--sea-line); }

/* ---------------------------------------------- search sections and guides */
.fc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.fc-cards:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fc-card {
  padding: 28px 30px 30px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.08);
}
.fc-card h3 { font-size: 23px; line-height: 1.2; margin: 0 0 8px; }
.fc-card p { margin: 0; font-size: 16.5px; color: var(--muted); }

.fc-list, .fc-songs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}
.fc-list li, .fc-songs li {
  position: relative;
  padding: 16px 20px 16px 50px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.08);
  font-size: 17px;
  line-height: 1.45;
}
.fc-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 19px;
  width: 16px;
  height: 16px;
  background: var(--coral);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.fc-songs { counter-reset: song; }
.fc-songs li { counter-increment: song; }
.fc-songs li::before {
  content: counter(song);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  text-align: center;
  font: 700 17px/1.45 var(--sans);
  color: var(--teal);
}
.fc-songs strong { display: block; font-family: var(--serif); }
.fc-songs span { color: var(--muted); font-size: 15.5px; }

.fc-guide-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.fc-guide-link img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; }
.fc-guide-link div { padding: 32px 36px; }
.fc-guide-link h2 { font-size: 32px; line-height: 1.15; margin: 0 0 10px; }
.fc-guide-link p { margin: 0 0 20px; color: var(--muted); }
.fc-guide-link:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.fc-crosslink { margin: 0; padding: 22px 28px; border-radius: 20px; background: var(--white); font-size: 18px; }
.fc-guide-link + .fc-crosslink { margin-top: 22px; }
.fc-crosslink a { font-weight: 700; color: var(--teal); }

.fc-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; }
.fc-kinds a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sea);
  color: var(--teal-deep);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.fc-kinds a:hover { background: var(--sea-line); }

.fc-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: stretch;
  padding-top: 16px;
}
.fc-guide-hero { margin: 0 0 14px; }
.fc-guide-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }
.fc-guide-date { margin: 0 0 8px; color: var(--muted); font-size: 15px !important; }
.fc-guide section { padding-top: 26px; scroll-margin-top: 80px; }
.fc-guide h2 { font-size: 32px; line-height: 1.15; margin: 0 0 14px; }
.fc-guide h3 { font-size: 20px; margin: 0 0 8px; }
.fc-guide p { margin: 0 0 16px; }
.fc-guide ul { margin: 0 0 16px; padding-left: 22px; }
.fc-guide li { margin-bottom: 6px; }
.fc-guide a { color: var(--teal); font-weight: 600; }
.fc-guide-note { padding: 16px 20px; border-radius: 16px; background: var(--sea); }
.fc-ms, .fc-guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.fc-ms > div, .fc-guide-cards > div {
  padding: 20px 22px 6px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(22, 45, 50, 0.08);
}
.fc-ms li, .fc-guide-cards p { font-size: 16.5px !important; }
.fc-guide-when { margin: 0 0 16px; display: grid; gap: 12px; }
.fc-guide-table { overflow-x: auto; margin: 0 0 20px; border-radius: 16px; border: 1px solid rgba(22, 45, 50, 0.08); background: var(--white); }
.fc-guide-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.fc-guide-table th, .fc-guide-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(22, 45, 50, 0.07); }
.fc-guide-table thead th { font: 600 15px/1.3 var(--sans); color: var(--teal); background: var(--sea); }
.fc-guide-table tbody th { font: 600 18px/1.3 var(--serif); white-space: nowrap; }
.fc-guide-table tbody tr:last-child > * { border-bottom: 0; }
.fc-guide-table td:last-child { color: var(--muted); }
.fc-guide-when div { padding: 18px 22px; border-radius: 16px; background: var(--white); border: 1px solid rgba(22, 45, 50, 0.08); }
.fc-guide-when dt { font: 600 19px/1.3 var(--serif); margin: 0 0 4px; }
.fc-guide-when dd { margin: 0; color: var(--muted); }

.fc-article-aside { display: flex; flex-direction: column; gap: 22px; padding-bottom: 72px; }
.fc-toc { padding: 24px 26px; border-radius: 22px; background: var(--sea); }
.fc-toc h2 { font-size: 20px; margin: 0 0 10px; }
.fc-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.fc-toc a { color: var(--ink); text-decoration: none; }
.fc-toc a:hover { color: var(--teal); text-decoration: underline; }
.fc-aside-product {
  position: sticky;
  top: 88px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--teal-deep);
  color: var(--cream);
  box-shadow: 0 22px 50px rgba(19, 72, 73, 0.28);
}
.fc-aside-art { display: block; overflow: hidden; }
.fc-aside-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; }
.fc-aside-product:hover .fc-aside-art img { transform: scale(1.04); }
.fc-aside-copy { padding: 24px 24px 26px; }
.fc-aside-product h2 { font-size: 27px; line-height: 1.15; margin: 0 0 8px; color: var(--cream); }
.fc-aside-product h2 a { color: inherit; text-decoration: none; }
.fc-aside-product p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.5; color: rgba(255, 248, 240, 0.82); }
.fc-aside-product .fc-ticks { margin: 0 0 22px; gap: 8px; }
.fc-aside-product .fc-ticks li { font-size: 15.5px; padding-left: 30px; color: var(--cream); }
.fc-aside-product .btn { display: flex; width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-radius: 10px; font-size: 15.5px; }
.fc-aside-more { display: block; margin-top: 14px; text-align: center; font-weight: 600; font-size: 15px; color: var(--gold); text-underline-offset: 4px; }

.fc-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 28px 0 8px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--teal-deep);
  color: var(--cream);
  box-shadow: 0 22px 50px rgba(19, 72, 73, 0.22);
}
.fc-callout-art { display: block; overflow: hidden; }
.fc-callout-art img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform 0.5s ease; }
.fc-callout:hover .fc-callout-art img { transform: scale(1.04); }
.fc-callout-copy { display: flex; flex-direction: column; padding: 30px 32px 32px; }
.fc-prose .fc-callout h3 { font-size: 28px; line-height: 1.15; margin: 0 0 8px; color: var(--cream); }
.fc-callout h3 a { color: inherit; text-decoration: none; }
.fc-prose .fc-callout p { margin: 0 0 16px; font-size: 17px; color: rgba(255, 248, 240, 0.85); }
.fc-prose .fc-callout .fc-ticks { margin: 0 0 22px; padding: 0; gap: 8px; }
.fc-prose .fc-callout .fc-ticks li { margin: 0; font-size: 16px; color: var(--cream); }
.fc-callout .fc-box-actions .btn { text-decoration: none; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 879px) {
  .fc-products { grid-template-columns: 1fr; gap: 22px; }
  .fc-product:last-child:nth-child(odd) { flex-direction: column; }
  .fc-product:last-child:nth-child(odd) .fc-product-art { flex: none; aspect-ratio: 7 / 5; }
  .fc-product-copy { padding: 26px 22px 28px; }
  .fc-product .fc-box-actions .btn { flex: 1 1 auto; }
  .fc-row { grid-template-columns: 1fr; gap: 30px; padding: 28px 0 42px; }
  .fc-row-flip .fc-row-copy { order: 0; }
  .fc-row-art { min-height: 0; padding: 28px 18px; }
  .fc-feats { grid-template-columns: 1fr; gap: 22px; }
  .fc-feat-art { height: auto; min-height: 280px; padding: 26px 18px; }
}
@media (max-width: 960px) {
  .wrap { width: calc(100% - 32px); }
  .hero-shell.hero-home { margin-top: -72px; padding: 116px 0 96px; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 0; }
  .hero-masonry { position: relative; top: auto; bottom: auto; height: 320px; gap: 12px; margin-bottom: -96px; }
  .masonry-set { gap: 12px; padding-bottom: 12px; }
  .hero-masonry .tile-tall { height: 210px; }
  .hero-masonry .tile-mid { height: 160px; }
  .hero-home .hero-doodles { display: none; }
  .fc-grid, .fc-previews { grid-template-columns: 1fr; }
  .fc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-split { grid-template-columns: 1fr; gap: 28px; }
  .fc-cards:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; }
  .fc-article { grid-template-columns: 1fr; gap: 8px; }
  .fc-article-aside { position: static; order: -1; padding-bottom: 0; }
  .fc-aside-product { display: none; }
  .fc-guide-link { grid-template-columns: 1fr; }
  .fc-callout { grid-template-columns: 1fr; }
  .fc-callout-art img { min-height: 0; aspect-ratio: 16 / 9; }
  .fc-guide-link img { min-height: 0; aspect-ratio: 16 / 9; }
  .fc-sister { grid-template-columns: auto minmax(0, 1fr); }
  .fc-sister .btn { grid-column: 1 / -1; justify-self: start; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
  .fc-box-copy { padding: 24px 22px 26px; }
  .fc-box-copy h3 { font-size: 26px; }
  .fc-product-copy h3 { font-size: 26px; }
  .fc-occasion:nth-child(odd):last-child { display: flex; }
  .fc-occasion:nth-child(odd):last-child img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .fc-occasion:nth-child(odd):last-child .fc-occasion-body { padding: 28px 32px 30px; }
  .fc-occasion-body { padding: 22px 22px 26px; }
  .fc-occasion h3 { font-size: 26px; }
  .fc-steps, .fc-occasions, .fc-cats, .fc-later, .fc-cards, .fc-list, .fc-songs, .fc-ms, .fc-guide-cards { grid-template-columns: 1fr; }
  .fc-guide-link div { padding: 24px 22px 26px; }
  .fc-guide h2 { font-size: 27px; }
  .fc-preview-art { padding: 18px; }
  .fc-sister { grid-template-columns: 1fr; padding: 26px 22px; }
  .fc-sister img { display: none; }
  .fc-empty { padding: 28px 24px; }
  .section-head { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .fc-occasion:hover { transform: none; }
}

.fc-prompt { margin: 0 0 22px; }
.fc-prompt p { font: 600 21px/1.4 var(--serif); }

.fc-welcome { margin: 0 0 24px; padding: 26px 30px; border-left: 5px solid var(--gold); }
.fc-welcome h2 { margin: 0 0 6px; }
.fc-welcome p { margin: 0; }

.wall-setup, .wall { padding-bottom: 72px; }
.book-cover {
  margin: 8px 0 28px;
  padding: 36px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(22, 45, 50, 0.08);
}
.book-cover h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.book-cover p { margin: 10px 0 0; }
.book-page { margin: 0 0 16px; padding: 22px 24px 18px; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 2px 12px rgba(22, 45, 50, 0.08); }
.book-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 14px 0; }
.book-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin: 0; }
.book-page .book-by { color: var(--muted); }
.book-add summary, .book-edit summary { cursor: pointer; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.book-add, .book-edit { margin-top: 18px; }
.book-voice { margin: 12px 0; padding: 0; border: 0; }
.book-voice label { display: block; margin: 6px 0; font-weight: 450; }
.book-own { display: block; margin-top: 8px; }
.book-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.book-page-actions form { margin: 0; }
.book-page-actions .btn { margin-top: 0; }
.book-read .book-flip { position: relative; max-width: 760px; margin: 8px auto 0; }
.book-leaf {
  display: none;
  padding: clamp(36px, 6vw, 64px) clamp(28px, 6vw, 72px);
  min-height: 56vh;
  background: #fffdf8;
  border: 1px solid #e8dec9;
  border-radius: 6px 14px 14px 6px;
  box-shadow: 0 20px 50px rgba(40, 30, 20, 0.22), inset 7px 0 0 #f0e6d2, inset 12px 0 0 #fffdf8;
}
.book-leaf.is-on { display: block; }
.book-leaf h2 { margin: 0 0 16px; font: 600 clamp(24px, 3.4vw, 34px)/1.2 var(--serif); color: #2a2420; }
.book-leaf-body { margin: 0 0 18px; font: 400 19px/1.65 var(--serif); color: #3a332b; }
.book-leaf .book-photos { margin: 18px 0; }
.book-leaf .book-by { margin: 22px 0 0; color: #8a7f6f; font-family: var(--sans); }
.book-leaf-cover { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.book-leaf-cover.is-on { display: flex; }
.book-leaf-cover h1 { margin: 0; font: 600 clamp(34px, 5vw, 52px)/1.08 var(--serif); color: #2a2420; }
.book-leaf-for { margin: 14px 0 0; font: 400 20px/1.4 var(--serif); color: #5c5348; }
.book-leaf-kind { margin: 8px 0 0; color: #8a7f6f; font-family: var(--sans); }
.book-leaf-hint { margin: 26px 0 0; color: #a99f8c; font-size: 15px; }
.book-flip-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 8px; }
.book-flip-count { min-width: 90px; text-align: center; font-weight: 600; color: var(--muted); }
.book-flip-nav .btn[disabled] { opacity: 0.4; pointer-events: none; }
.book-flip-actions { justify-content: center; }
.wall-head h1 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 58px); }
.wall-head .wall-lede { margin: 0 0 22px; font-size: 18px; color: var(--muted); overflow-wrap: anywhere; }
.wall-share, .wall-add, .wall-setup .wall-form, .fc-wall-list article {
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.wall-add .wall-form { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.wall-add { margin: 0 0 20px; }
.wall-add .wall-form + .wall-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sea-line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wall-share { margin: 0 0 28px; }
.wall-share h2, .wall-add h2 { margin: 0 0 8px; font-size: 28px; }
.wall-share p, .wall-add p { margin: 0 0 14px; }
.wall-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 0 0 18px;
}
.wall-share-main { flex: 1 1 320px; min-width: 0; }
.wall-share-link label { display: block; margin: 0 0 6px; font-weight: 650; }
.wall-share-main .wall-share-actions { margin: 12px 0 0; }
.wall-share-bar .wall-qr { width: 132px; height: 132px; margin: 0; flex: 0 0 auto; }
.wall-keep {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: center;
  margin-top: 4px;
}
.wall-keep h2 { margin: 0; font-size: 22px; }
.wall-keep > p { margin: 0; }
.wall-keep .wall-share-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
.wall-keep-note { grid-column: 1 / -1; }
form.wall-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 16px;
}
form.wall-line p { margin: 0; flex: 1 1 240px; }
form.wall-line .btn { margin: 0; }
.wall-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 8px;
}
.wall-fields label { margin: 0 0 6px; }
.wall-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.wall-upload label { flex: 1 1 100%; margin-top: 8px; }
.wall-upload input[type="file"] { flex: 1 1 280px; width: auto; margin: 0; }
.wall-upload .wall-file-note { flex: 1 1 100%; margin: 0; }
.wall-upload .btn { margin: 0; }
.wall-form label { display: block; margin: 16px 0 6px; font-weight: 650; }
.wall-form label span { font-weight: 500; color: var(--muted); }
.wall-form input[type="text"],
.wall-form input[type="date"],
.wall-form textarea,
.wall-form select,
.wall-share input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sea-line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.4 var(--sans);
}
.wall-form textarea { resize: vertical; }
.wall-form input[type="file"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--sea-line);
  border-radius: 14px;
  background: var(--cream);
  font: 16px/1.4 var(--sans);
}
.wall-form input[type="file"][hidden],
.fw-rec input[type="file"] { display: none; margin: 0; }
.wall-form.wall-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.wall-form.wall-upload label { flex: 1 1 100%; margin-top: 8px; order: 0; }
.wall-form.wall-upload input[type="file"] { flex: 1 1 280px; width: auto; margin: 0; order: 1; }
.wall-form.wall-upload .btn { margin: 0; order: 2; }
.wall-form.wall-upload .wall-file-note { flex: 1 1 100%; margin: 0; order: 3; }
.wall-card-gif { margin: 0; }
.wall-card-gif img { display: block; width: 100%; height: auto; }
.wall-card-gif figcaption { margin: 0; padding: 8px 18px 0; text-align: right; font-size: 12px; }
.wall-card-gif figcaption a { color: var(--muted); }
.wall-form .btn { margin-top: 8px; }
.wall-file-note { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.wall-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.wall-qr { display: block; width: 196px; height: 196px; margin-top: 8px; border-radius: 16px; background: var(--white); }
.wall-form input.wall-honey,
.mg-form input.wall-honey {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.wall-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fde8e4; color: #7a2e22; }
.wall-thanks { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--sea); }
.wall-pass label { display: block; margin: 0 0 6px; font-weight: 650; }
.wall-pass input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sea-line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.4 var(--sans);
}
.wall-keep.is-ask { margin-top: 8px; padding: 14px 16px; border-radius: 16px; background: var(--sea); }
.wall-keep-note { margin: 0 0 8px; font-weight: 650; }
.show-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.show-gallery article { margin: 0; }
.show-gallery img, .show-gallery video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; border-radius: 12px; background: var(--cream); }
.show-gallery p { margin: 8px 0 0; }
.show-caption { color: var(--muted); }
.wall-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 8px 0 32px; align-items: start; }
.wall-post { padding: 16px 16px 12px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.wall-post img, .wall-post video { width: 100%; height: auto; margin: 0 0 12px; border-radius: 14px; background: #111; }
.wall-post p { margin: 0 0 12px; font-size: 18px; overflow-wrap: anywhere; }
.wall-post footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wall-post footer strong { font-size: 16px; }
.wall-remove { margin: 0; }
.wall-remove button { border: 0; background: transparent; color: var(--muted); font: 15px/1 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wall-empty { margin: 8px 0 28px; padding: 28px 30px; border-radius: var(--radius); background: var(--white); }
html:has(body.wall-live) { background: var(--cream); }
body.wall-live { min-height: 100vh; background: var(--cream); overflow-x: clip; }
.wall-live .site-header, .wall-live .site-footer, .wall-live .hero-shell, .wall-live footer { display: none; }
.wall-live main { padding-top: 0; }
.wall-live .wall-head { position: relative; z-index: 0; margin: 0 0 36px; padding: 48px 0 32px; }
.wall-live .wall-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--teal);
}
.wall-live .wall-head h1 { color: var(--on-teal); font-size: clamp(42px, 6vw, 76px); line-height: 1.05; }
.wall-live .wall-head .wall-lede { margin: 0; color: var(--on-teal-muted); font-size: 22px; }
.wall-live .wall-posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.wall-live .wall-post p { font-size: 24px; line-height: 1.35; }
.wall-live .wall-post footer strong { font-size: 18px; }
.wall-live .wall-live-exit { margin: 20px 0 0; }
.wall-live .wall-live-exit a { color: var(--on-teal); font-size: 16px; text-decoration: none; }
.wall-live .wall-live-exit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fc-create { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.fc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 36px;
}
.fc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(22, 45, 50, 0.12);
}
.fc-card-visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #185A5B center / cover no-repeat;
}
.fc-kind {
  display: block;
  margin: 0;
  padding: 10px 16px;
  background: #185A5B;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}
.fc-card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc-cover {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 18px;
  background: linear-gradient(160deg, #1d6a68 0%, #0e3336 70%);
  color: #fff;
}
.fc-cover-memorial { background: linear-gradient(160deg, #3d4a55 0%, #1b242c 72%); }
.fc-cover-retirement { background: linear-gradient(160deg, #3e5c4e 0%, #1a2c24 72%); }
.fc-cover-baby { background: linear-gradient(160deg, #d7a35a 0%, #8d5a32 72%); }
.fc-cover-anniversary { background: linear-gradient(160deg, #8d4a52 0%, #3d2228 72%); }
.fc-cover p { margin: 0; color: #fff; font: 500 26px/1.15 var(--serif); }
.fc-card-body { padding: 16px 18px 18px; }
.fc-card h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.fc-card h3 a { color: inherit; text-decoration: none; }
.fc-card-body > p { margin: 0 0 14px; color: var(--muted); }
.fc-card-body { margin-top: auto; }
.fc-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fc-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 6px;
  border: 1px solid var(--sea-line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--teal);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fc-act:hover { background: #fff; border-color: var(--teal); }
.fc-act svg { width: 22px; height: 22px; }
.fc-act span { line-height: 1; }
.fc-wall-list { display: grid; gap: 16px; margin: 0 0 28px; }
.fc-wall-list h2 { margin: 0 0 6px; font-size: 28px; }
.fc-wall-list h2 a { color: inherit; text-decoration: none; }
.fc-wall-list p { margin: 0 0 14px; color: var(--muted); }
.wall-scan {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  width: 196px;
  margin: 0;
  padding: 14px 14px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(22, 45, 50, 0.22);
  text-align: center;
}
.wall-scan img { display: block; width: 168px; height: 168px; margin: 0 auto; }
.wall-scan p { margin: 8px 0 0; font-weight: 650; }
.wall-scan-phone { display: none; margin-top: 10px; }
.fc-dash .fc-start {
  display: grid;
  margin: 8px 0 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(22, 45, 50, 0.12);
}
.fc-dash .fc-start {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  overflow: hidden;
}
.fc-dash .fc-start-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 26px 28px 28px;
}
.fc-dash .fc-start-art {
  position: relative;
  display: block;
  min-height: 250px;
  background: linear-gradient(140deg, #eaf2ef 0%, #f6efe4 100%);
}
.fc-dash .fc-start-art img {
  position: absolute;
  bottom: 26%;
  width: 38%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(22, 45, 50, 0.2);
  transform-origin: bottom center;
  transition: transform 0.25s ease;
}
.fc-dash .fc-start-art img:nth-child(1) { left: 6%; transform: rotate(-8deg); }
.fc-dash .fc-start-art img:nth-child(2) { left: 31%; z-index: 2; transform: rotate(1deg) translateY(8%); }
.fc-dash .fc-start-art img:nth-child(3) { left: 56%; transform: rotate(9deg); }
.fc-dash .fc-start-art:hover img:nth-child(1) { transform: rotate(-11deg) translateY(-4%); }
.fc-dash .fc-start-art:hover img:nth-child(3) { transform: rotate(12deg) translateY(-4%); }
.fc-dash .fc-start-art span {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 3;
  color: var(--teal);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}
.fc-dash .fc-start h2 {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 28px;
  line-height: 1.15;
}
.fc-dash .fc-start p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.45;
}
.fc-dash .btn { border-radius: 6px; }
.fc-dash .fc-start .btn { margin-top: auto; }
.fc-dash .fc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fc-dash .fc-card {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
  padding: 0;
  align-items: stretch;
}
.fc-dash .fc-card-visual { aspect-ratio: auto; height: 100%; min-height: 196px; }
.fc-dash .fc-card-visual img,
.fc-dash .fc-cover { height: 100%; min-height: 196px; }
.fc-dash .fc-card .fc-kind {
  margin: 0 0 4px;
  padding: 0;
  background: none;
  color: var(--teal);
  font-size: 15px;
  font-weight: 650;
}
.fc-dash .fc-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 18px 16px;
}
.fc-dash .fc-card-body > p:not(.fc-kind) { margin-bottom: 16px; }
.fc-dash .fc-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.fc-dash .fc-act {
  flex: 0 0 auto;
  flex-direction: row;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: var(--cream);
  font-size: 14.5px;
}
.fc-dash .fc-act:hover { background: var(--teal-deep); color: var(--cream); }
.fc-dash .fc-act svg { width: 16px; height: 16px; }
@media (max-width: 980px) {
  .fc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-dash .fc-start { grid-template-columns: 1fr; }
  .fc-dash .fc-start-art { min-height: 190px; }
  .fc-dash .fc-start-art img { width: 34%; }
  .fc-dash .fc-start-art img:nth-child(1) { left: 10%; }
  .fc-dash .fc-start-art img:nth-child(2) { left: 33%; }
  .fc-dash .fc-start-art img:nth-child(3) { left: 56%; }
  .fc-dash .fc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fc-cards { grid-template-columns: 1fr; }
  .fc-dash .fc-card { grid-template-columns: 1fr; }
  .fc-dash .fc-card-visual { aspect-ratio: 16 / 9; min-height: 0; }
  .fc-dash .fc-card-visual img,
  .fc-dash .fc-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .wall-scan { position: static; width: min(100%, 280px); margin: 0 auto 8px; }
  .wall-scan-phone { display: inline-flex; }
}
.fc-wall-note { margin: 8px 0 0; color: var(--muted); }

/* The wall itself: a scene, then white cards in columns, like Fond Wishes. */
html:has(body.wall-board) { background-color: var(--wall-paper, #e8f0d8); }
body.wall-board {
  min-height: 100vh;
  background-color: var(--wall-paper, #e8f0d8);
  background-image: var(--wall-scene, none);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}
body.wall-bg-meadow { --wall-paper: #e8f0d8; --wall-scene: url("/assets/site/img/wall/meadow.jpg"); }
body.wall-bg-coast { --wall-paper: #d8e8ee; --wall-scene: url("/assets/site/img/wall/coast.jpg"); }
body.wall-bg-lanterns { --wall-paper: #f3d4b8; --wall-scene: url("/assets/site/img/wall/lanterns.jpg"); }
body.wall-bg-sparkle { --wall-paper: #f4e2b8; --wall-scene: url("/assets/site/img/wall/sparkle.jpg"); }
body.wall-bg-streamers { --wall-paper: #6db8f2; --wall-scene: url("/assets/site/img/wall/streamers.jpg"); }
body.wall-bg-rose { --wall-paper: #fda4af; --wall-scene: url("/assets/site/img/wall/rose.jpg"); }
body.wall-bg-garden { --wall-paper: #e8f0e4; --wall-scene: url("/assets/site/img/wall/garden.jpg"); }
body.wall-bg-party { --wall-paper: #fce7f3; --wall-scene: url("/assets/site/img/wall/party.jpg"); }
body.wall-bg-celebration { --wall-paper: #eed6a8; --wall-scene: url("/assets/site/img/wall/celebration.jpg"); }
body.wall-bg-doodles { --wall-paper: #3c1e50; --wall-scene: url("/assets/site/img/wall/doodles.jpg"); }
body.wall-bg-cream { --wall-paper: #fff7ef; --wall-scene: none; }
body.wall-bg-own { --wall-paper: #e7efe8; --wall-scene: var(--wall-own, none); }
body.wall-screen main.wall { padding-top: clamp(24px, 5vh, 56px); }
body.wall-screen main.wall > .wrap { padding-bottom: clamp(24px, 5vh, 56px); }
.wall-banner {
  margin: 0 0 18px;
  padding: 28px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(22, 45, 50, 0.16);
}
.wall-banner { text-align: center; }
.wall-banner h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.wall-banner p { margin: 10px 0 0; color: var(--muted); font-size: 18px; }
.wall-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin: 0 0 28px;
  align-items: start;
}
.wall-card {
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(22, 45, 50, 0.16);
}
.wall-card-empty { grid-column: 1 / -1; }
.wall-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #17343a; }
.wall-card-media img,
.wall-card-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-card-media video { object-fit: contain; }
.wall-card-gif-credit { margin: 0; padding: 8px 18px 0; text-align: right; font-size: 12px; }
.wall-card-gif-credit a { color: var(--muted); }
.wall-card-body { padding: 16px 18px 18px; }
.wall-card-body p { margin: 0; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.wall-card-from { display: block; margin-top: 14px; text-align: right; color: var(--muted); font-size: 14px; }
.wall-card-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.wall-card-actions form { margin: 0; }
.wall-card-title { padding: 22px 20px 18px; }
.wall-card-title h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.wall-card-title p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.wall-card-prompt { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.wall-card-held { outline: 2px dashed rgba(24, 90, 91, 0.45); }
.wall-held { margin: 10px 0 0; color: var(--muted); }
.wall-settings { margin-top: 18px; }
.wall-settings summary { cursor: pointer; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.wall-settings .wall-form { margin-top: 14px; }
body.wall-live .wrap { width: min(1600px, calc(100% - 48px)); }
body.wall-live .wall-live-exit { position: fixed; top: 12px; right: 12px; z-index: 3; margin: 0; }
body.wall-live .wall-live-exit a { font-size: 13px; opacity: 0.8; }
body.wall-live .wall-live-title {
  margin: 8px 0 22px;
  padding: 28px 32px;
  background: rgba(255, 248, 240, 0.94);
  border-radius: 16px;
}
body.wall-live .wall-live-title h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 5vw, 76px); line-height: 1.05; }
body.wall-live .wall-live-title p { margin: 8px 0 0; color: var(--muted); font-size: clamp(20px, 2vw, 28px); }
body.wall-live .wall-masonry { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
body.wall-live .wall-card-body p { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.3; }
body.wall-live .wall-card-prompt { font-size: clamp(26px, 2.4vw, 36px); }
body.wall-live .wall-card-from { font-size: 20px; }
body.wall-live .wall-card.is-new { animation: wall-arrive 1.4s ease; }
@keyframes wall-arrive {
  from { box-shadow: 0 0 0 4px #185a5b; transform: translateY(10px); }
  to { box-shadow: 0 2px 12px rgba(22, 45, 50, 0.16); transform: none; }
}
.wall-bg-label { margin: 18px 0 6px; font-weight: 650; }
.wall-bg-picks { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.wall-bg-pick {
  position: relative;
  width: 84px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 13px/1.2 var(--sans);
  text-align: center;
  cursor: pointer;
}
.wall-bg-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wall-bg-swatch {
  display: block;
  height: 52px;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(22, 45, 50, 0.15);
}
.wall-bg-name { display: block; margin-top: 4px; }
.wall-bg-pick.is-on .wall-bg-swatch,
.wall-bg-pick:has(input:checked) .wall-bg-swatch { box-shadow: inset 0 0 0 3px var(--teal); }
.wall-share h3 { margin: 18px 0 6px; font-size: 22px; }
body.wall-live .wall-live-exit { margin: 0 0 14px; }
body.wall-live .wall-live-exit a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.92);
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 800px) {
  body.wall-live .wall-live-title h1 { font-size: 40px; }
  .wall-keep, .wall-fields { grid-template-columns: 1fr; }
  .wall-keep .wall-share-actions { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .wall-banner { padding: 22px 18px; }
  body.wall-board { background-attachment: scroll; }
}
@media (max-width: 720px) {
  .wall-posts, .wall-live .wall-posts { grid-template-columns: 1fr; }
  .wall-share, .wall-add, .wall-setup .wall-form, .fc-wall-list article { padding: 22px 18px; }
  .wall-head h1 { font-size: 34px; }
  .wall-head .wall-lede { font-size: 16px; }
  .wall-share-actions .btn { flex: 1 1 100%; }
  .wall-live .wall-head { margin-left: -16px; margin-right: -16px; padding: 32px 16px 24px; background: var(--teal); }
  .wall-live .wall-head::before { display: none; }
  .wall-live .wall-head h1 { font-size: 36px; }
  .wall-live .wall-head .wall-lede { font-size: 17px; }
  .wall-qr { width: 160px; height: 160px; }
}

.show-items { display: grid; gap: 14px; }
.show-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--sea-line);
}
.show-item img, .show-item video {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #111;
}
.show-item { padding: 16px 0; }
.show-item p { margin: 0 0 10px; }
.show-item-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: end; }
.show-item-actions form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0; }
.show-item-actions form:first-child { flex: 1 1 100%; padding-bottom: 12px; border-bottom: 1px solid var(--sea-line); }
.show-item-actions form:first-child input[type="text"] { flex: 1 1 260px; min-width: 0; }
.show-item-actions label { margin: 0; font-weight: 600; font-size: 14.5px; }
.wall-form select, .show-item-actions select {
  padding: 10px 12px;
  border: 1px solid var(--sea-line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.4 var(--sans);
}
.show-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 15px/1 var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.show-play { background: #111; }
body.show-play .site-header,
body.show-play .site-footer,
body.show-play .hero-shell,
body.show-play footer { display: none; }
body.show-play main { padding: 0; }
.show-stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.show-stage img, .show-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.show-styles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}
.show-styles legend { grid-column: 1 / -1; margin: 0; font-weight: 650; }
.show-styles label {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--sea-line);
  border-radius: 14px;
  background: var(--cream);
}
.show-styles label:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.show-styles label span { display: block; color: var(--muted); font-weight: 450; }
.show-captions-toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 500; }
.show-captions-toggle input { width: auto; margin: 0; }
/* Classic, cinema and drift all show one full-bleed photo with a slow,
   constant-speed Ken Burns and a gentle crossfade. The animation duration is
   set inline to match each photo, so the motion never jumps or stalls. */
.show-frame, .show-album {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.show-frame.is-in, .show-album.is-in { opacity: 1; }
.show-frame.is-out, .show-album.is-out, .show-words.is-out { opacity: 0; }
.show-frame img, .show-frame video { width: 100%; height: 100%; object-fit: cover; }
.show-img { will-change: transform; animation-timing-function: linear; animation-fill-mode: both; animation-duration: 8s; }
body.show-style-classic .show-img { animation-name: kb-zoom; }
body.show-style-drift .show-img { animation-name: kb-pan-left; }
body.show-style-drift .is-alt .show-img { animation-name: kb-pan-right; }
body.show-style-cinema .show-img { animation-name: kb-cinema; }

/* Cinema: a full-bleed photo with two slim letterbox bars, not a small box floating in black. */
body.show-style-cinema, body.show-style-cinema .show-stage { background: #000; }
body.show-style-cinema .show-stage::before,
body.show-style-cinema .show-stage::after { content: ""; position: fixed; left: 0; right: 0; height: 7vh; background: #000; z-index: 2; pointer-events: none; }
body.show-style-cinema .show-stage::before { top: 0; }
body.show-style-cinema .show-stage::after { bottom: 0; }

/* Album: one photo on a cream mat, centred, with the caption underneath. */
body.show-style-album, body.show-style-album .show-stage { background: #efe6d6; }
.show-album { flex-direction: column; }
.show-album-mat { max-width: min(860px, 86vw); padding: 24px 24px 20px; overflow: hidden; background: #fffdf8; box-shadow: 0 24px 50px rgba(40, 30, 20, .28); }
.show-album-mat img, .show-album-mat video { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #f4efe6; }
.show-album .show-img { animation-name: kb-still; }
.show-album p { margin: 14px 4px 0; color: #2a2420; font: 500 22px/1.35 var(--serif); text-align: center; }
.show-album .show-by { margin-top: 4px; font: 16px/1.3 var(--sans); color: #5c5348; }

/* Polaroid: a pile that grows. Older photos sit behind in black and white; the newest lands on top in colour. */
body.show-style-polaroid, body.show-style-polaroid .show-stage { background: #2b2420; }
body.show-style-polaroid .show-stage { display: block; }
.show-polaroid { position: absolute; width: min(330px, 38vw); margin: 0; padding: 12px 12px 42px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); transform: translate(-50%, -50%) rotate(var(--rot)); transform-origin: center; animation: polaroid-in .8s cubic-bezier(.2, .8, .2, 1.05) both; }
.show-polaroid.is-seed { animation: none; }
.show-polaroid img, .show-polaroid video { display: block; width: 100%; height: min(33vh, 270px); max-width: none; max-height: none; object-fit: cover; background: #eee; filter: none; transition: filter .9s ease; }
.show-polaroid.is-bw img, .show-polaroid.is-bw video { filter: grayscale(1) contrast(1.03) brightness(.98); }
.show-polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; color: #2a2420; font: 500 16px/1.25 var(--serif); text-align: center; }

@keyframes kb-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes kb-pan-left { from { transform: scale(1.12) translateX(3%); } to { transform: scale(1.12) translateX(-3%); } }
@keyframes kb-pan-right { from { transform: scale(1.12) translateX(-3%); } to { transform: scale(1.12) translateX(3%); } }
@keyframes kb-cinema { from { transform: scale(1.1) translateX(-3.5%); } to { transform: scale(1.1) translateX(3.5%); } }
@keyframes kb-still { from { transform: scale(1); } to { transform: scale(1.03); } }
@keyframes polaroid-in {
  0% { opacity: 0; transform: translate(-50%, -82%) rotate(calc(var(--rot) - 10deg)) scale(.84); }
  65% { opacity: 1; transform: translate(-50%, -46%) rotate(var(--rot)) scale(1.03); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1); }
}
.show-empty { margin: 0; color: #fff; font-size: 22px; }
.show-mark {
  position: fixed;
  right: 26px;
  bottom: 18px;
  margin: 0;
  pointer-events: none;
  z-index: 2;
}
.show-mark img { display: block; width: 300px; height: auto; opacity: 0.92; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
body.show-style-album .show-mark img { filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.6)); }
.show-play-ui { position: fixed; left: 18px; bottom: 16px; display: flex; gap: 8px; z-index: 3; transition: opacity 0.4s ease; }
.show-play-ui.is-hidden { opacity: 0; pointer-events: none; }
body.show-cursor-none { cursor: none; }
.show-words { position: absolute; left: 28px; right: 180px; bottom: 78px; margin: 0; pointer-events: none; }
.show-caption, .show-by { margin: 0; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75); }
.show-caption { font-size: clamp(22px, 3vw, 36px); line-height: 1.25; }
.show-by { margin-top: 6px; font-size: 18px; }
.show-video-preview { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 14px; }
.show-drag {
  padding: 8px 12px;
  border: 1px solid var(--sea-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: grab;
}
.show-item.is-dragging { opacity: 0.55; }
@media (max-width: 640px) {
  .show-item { grid-template-columns: 1fr; }
  .show-item img, .show-item video { width: 100%; height: auto; max-height: 220px; }
}

/* Manage pages: one page per creation. The title and the two main actions,
   the invite, then what people added beside the settings. */
.mg { padding: 26px 0 84px; }
.mg .fc-crumbs { margin: 0 0 22px; }
.mg .btn { gap: 8px; padding: 11px 18px; border-radius: 6px; font-size: 15.5px; }
.mg .btn svg { flex: 0 0 auto; }
.mg .btn-sm { padding: 9px 14px; font-size: 14.5px; }
.mg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  margin: 0 0 24px;
}
.mg-head > div:first-child { min-width: 0; flex: 1 1 420px; }
.mg-head h1 { margin: 0 0 8px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; overflow-wrap: anywhere; }
.mg-meta { margin: 0; color: var(--muted); font-size: 17px; }
.mg-card > h2 + .wall-error { margin: 12px 0 0; }
.mg-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.mg-invite, .mg-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(22, 45, 50, 0.1);
}
.mg-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 32px;
  margin: 0 0 22px;
  padding: 24px 28px;
}
.mg-invite h2, .mg-card > h2, .mg-card-head h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; }
.mg-invite-main > p { margin: 0 0 16px; color: var(--muted); }
.mg-link { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-link input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--sea-line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.3 var(--sans);
}
.mg-qr { margin: 0; text-align: center; }
.mg-qr img { display: block; width: 116px; height: 116px; }
.mg-qr figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
.mg-invite > .wall-keep, .mg-status { grid-column: 1 / -1; }
.mg-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--sea-line);
}
.mg-status p { display: flex; align-items: center; gap: 12px; flex: 1 1 280px; margin: 0; }
.mg-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #2f8a68; box-shadow: 0 0 0 4px rgba(47, 138, 104, 0.16); }
.mg-status.is-off .mg-dot { background: #c27f2e; box-shadow: 0 0 0 4px rgba(194, 127, 46, 0.18); }

.mg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 22px; }
.mg-main, .mg-side { display: grid; gap: 22px; min-width: 0; }
.mg-card { padding: 22px 24px 24px; }
.mg-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin: 0 0 18px; }
.mg-card-head h2 { margin: 0; }
.mg-card-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.mg-card > h2 + .mg-form > label:first-of-type { margin-top: 12px; }
.mg-empty {
  margin: 0;
  padding: 32px 20px;
  border: 1.5px dashed var(--sea-line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.mg-form { margin: 0; }
.mg-form label { display: block; margin: 14px 0 6px; font-size: 15.5px; font-weight: 650; }
.mg-form label span { color: var(--muted); font-weight: 450; }
.mg-form input[type="text"],
.mg-form input[type="date"],
.mg-form input[type="file"],
.mg-form select,
.mg-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--sea-line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.35 var(--sans);
}
.mg-form textarea { resize: vertical; }
.mg-form input:focus, .mg-form select:focus, .mg-form textarea:focus, .mg-link input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.mg-form > .btn, .mg-form > .mg-row:last-child { margin-top: 16px; }
.mg-form > .mg-row:last-child { margin-bottom: 0; }
.mg-split { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--sea-line); }
.mg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-row > select, .mg-row > input { flex: 1 1 140px; width: auto; min-width: 0; }
.mg-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.mg-note { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.mg-choices { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; }
.mg-form .mg-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--sea-line);
  border-radius: 10px;
  font-weight: 450;
  cursor: pointer;
}
.mg-choice input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--teal); }
.mg-choice strong { display: block; font-size: 16px; }
.mg-choice small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.mg-choice:hover { border-color: var(--teal); }
.mg-choice:has(input:checked) { border-color: var(--teal); background: #f1f7f6; box-shadow: inset 0 0 0 1px var(--teal); }
.mg-form .mg-check { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 500; cursor: pointer; }
.mg-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }

.mg-tiles { display: grid; gap: 14px; }
.mg-tile {
  display: grid;
  grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sea-line);
  border-radius: 12px;
  background: #fff;
}
.mg-tile.is-dragging { opacity: 0.5; }
.mg-tile-media { position: relative; min-height: 190px; background: #17343a; }
.mg-tile-media img, .mg-tile-media video { position: absolute; inset: 0; }
.mg-tile-media img, .mg-tile-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-tile-num {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(22, 45, 50, 0.82);
  color: #fff;
  font: 700 14px/28px var(--sans);
  text-align: center;
}
.mg-drag {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: grab;
}
.mg-drag:active { cursor: grabbing; }
.mg-tile-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px 14px; }
.mg-tile-by { margin: 0; color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.mg-tile-by strong { color: var(--ink); font-weight: 650; }
.mg-tile-form { display: grid; gap: 8px; }
.mg-tile-row { display: flex; gap: 8px; }
.mg-tile-row select { flex: 1 1 auto; width: auto; min-width: 0; font-size: 15px; }
.mg-tile-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--sea-line);
}
.mg-tile-tools form, .mg-page-tools form { margin: 0; }
.mg-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--sea-line);
  border-radius: 6px;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
}
.mg-icon-btn:hover { border-color: var(--teal); }
.mg-icon-btn[disabled] { opacity: 0.35; cursor: default; border-color: var(--sea-line); }
.mg-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #9a3b2c;
  font: 600 14.5px/1 var(--sans);
  cursor: pointer;
}
.mg-tile-tools form:last-child { margin-left: auto; }
.mg-remove:hover { background: #fbeeea; }
.mg-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; align-items: end; gap: 12px; }
.mg-add label { margin-top: 0; }
.mg-add > .btn { margin-top: 0; }

/* The wishes on a wall, managed. */
.mg .wall-masonry { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 0; }
.mg .wall-card { border: 1px solid var(--sea-line); box-shadow: none; border-radius: 12px; }
.mg .wall-card-empty { border-style: dashed; }
.mg .wall-card-held { outline: 0; border: 1.5px dashed #c27f2e; background: #fffaf3; }
.mg .wall-card-held .wall-card-media { opacity: 0.6; }
.mg .wall-held { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #8a5a1c; font-size: 14.5px; }
.mg .wall-card-actions { gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sea-line); }
.mg .wall-remove button {
  padding: 8px 10px;
  border: 1px solid var(--sea-line);
  border-radius: 6px;
  background: #fff;
  color: var(--teal);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}
.mg .wall-remove button:hover { border-color: var(--teal); }
.mg .wall-remove:last-child { margin-left: auto; }
.mg .wall-remove:last-child button { border-color: transparent; color: #9a3b2c; }
.mg .wall-remove:last-child button:hover { background: #fbeeea; }
.mg .wall-bg-picks { gap: 10px; margin: 12px 0 0; }
.mg .wall-bg-pick { width: calc((100% - 20px) / 3); }
.mg .wall-bg-swatch { height: 56px; border-radius: 8px; }

/* The pages of a book, managed. */
.mg-pages { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mg-page {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 18px 14px;
  border: 1px solid var(--sea-line);
  border-radius: 12px;
}
.mg-page-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--teal);
  color: var(--cream);
  font: 700 15px/1 var(--sans);
}
.mg-page h3 { margin: 4px 0 8px; font-size: 21px; line-height: 1.25; }
.mg-page-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  white-space: pre-line;
}
.mg-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.mg-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.mg-page-by { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.mg-page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sea-line);
}
.mg-page-tools > form:last-of-type { margin-left: auto; }
.mg-edit { order: 0; margin: 0; }
.mg .mg-edit > summary { height: 38px; padding: 0 14px; list-style: none; cursor: pointer; font: 700 14.5px/1 var(--sans); }
.mg-page-tools .mg-icon-btn { width: 38px; height: 38px; }
.mg-edit > summary::-webkit-details-marker { display: none; }
.mg-edit[open] { order: 9; flex: 1 1 100%; margin-top: 6px; padding: 14px 16px 16px; border-radius: 10px; background: #f7f3ec; }
.mg-edit[open] > summary { margin-bottom: 4px; }
.mg-drop { display: grid; gap: 4px; margin: 0; font-weight: 450; }
.mg-form .mg-drop { margin: 0; font-size: 14.5px; font-weight: 450; }
.mg-drop span { display: flex; align-items: center; gap: 6px; }
.mg-form .book-own { margin-top: 12px; }
.mg-form .book-own input { margin-top: 6px; }
.mg-form .book-voice label { margin: 6px 0; font-weight: 450; }
.mg-edit .book-voice { margin: 12px 0 0; }
.mg-edit .book-voice legend { font-weight: 650; font-size: 15.5px; }

@media (max-width: 1040px) {
  .mg-grid { grid-template-columns: 1fr; }
  .mg-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
}
@media (max-width: 720px) {
  .mg-head-actions { width: 100%; }
  .mg-head-actions .btn { flex: 1 1 auto; }
  .mg-invite { grid-template-columns: 1fr; padding: 20px 18px; }
  .mg-qr { display: none; }
  .mg-card { padding: 18px 16px 20px; }
  .mg-link .btn { flex: 1 1 auto; }
  .mg-add { grid-template-columns: 1fr; }
  .mg-page { grid-template-columns: 1fr; gap: 8px; }
  .mg-tile { grid-template-columns: 1fr; }
  .mg-tile-media { min-height: 0; aspect-ratio: 4 / 3; }
  .mg-status .btn { width: 100%; }
}
