:root {
  color-scheme: light;
  --ink: #2d2630;
  --muted: #665b66;
  --paper: #fffdf9;
  --blush: #f7cec9;
  --coral: #d76a62;
  --rose: #9b3f59;
  --plum: #583149;
  --sage: #cadbc5;
  --gold: #d59a2c;
  --blue: #5d75b8;
  --line: #ded4d4;
  --focus: #0b6a78;
  --shadow: 0 18px 50px rgba(71, 45, 61, .12);
  --header-height: 5.25rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(247, 206, 201, .88), transparent 28rem),
    radial-gradient(circle at 92% 76%, rgba(202, 219, 197, .72), transparent 30rem),
    linear-gradient(135deg, #fff9f1 0%, #f7eeee 52%, #f4f0e7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
a { color: var(--rose); text-underline-offset: .18em; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 253, 249, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 2.8rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: white;
  border-radius: .35rem .75rem .75rem .35rem;
  box-shadow: inset 5px 0 rgba(255,255,255,.16), 0 7px 16px rgba(63, 38, 55, .18);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: .82rem; margin-top: -.1rem; }
.menu-button { display: none; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); padding: .55rem 1rem; font: inherit; font-weight: 700; }
.site-layout { display: grid; grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr); max-width: 92rem; margin: 0 auto; min-height: calc(100vh - var(--header-height)); }
.sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 2.25rem 1.25rem 3rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 249, .7);
}
.shelf-label, .eyebrow { margin: 0 0 .7rem; color: var(--rose); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.nav-link { display: block; padding: .7rem .8rem; border-radius: .7rem; color: var(--ink); text-decoration: none; font-weight: 650; }
.nav-link:hover { background: rgba(244, 217, 216, .5); }
.nav-link.is-current, .nav-link.is-context { color: #fff; background: var(--plum); box-shadow: 0 7px 18px rgba(66, 40, 57, .16); }
.nav-link.is-context { border-radius: 999px; }
.sidebar .mom-navigation-children { margin: .5rem 0 .5rem .85rem; padding-left: .9rem; border-left: 1px solid var(--line); gap: .15rem; }
.mom-navigation-children .nav-link { position: relative; display: flex; align-items: center; gap: .6rem; font-size: .93rem; }
.mom-navigation-children .nav-link.is-current { color: var(--plum); background: #f4dfdf; box-shadow: none; }
.nav-position { position: absolute; left: -.75rem; color: var(--plum); font-size: 1.25rem; }
.nav-icon { position: relative; display: inline-block; flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; }
.nav-icon-reflection { border: 1px solid currentColor; border-left-width: .18rem; border-radius: .12rem .22rem .2rem .1rem; }
.nav-icon-reflection::before {
  content: "";
  position: absolute;
  inset: .17rem .12rem .1rem .15rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1px,
    linear-gradient(currentColor, currentColor) 0 .19rem / 84% 1px,
    linear-gradient(currentColor, currentColor) 0 .38rem / 95% 1px,
    linear-gradient(currentColor, currentColor) 0 .57rem / 58% 1px;
  background-repeat: no-repeat;
  transform: rotate(-6deg);
}
.nav-icon-overview::before { content: ""; position: absolute; top: .13rem; left: .19rem; width: .6rem; height: .6rem; border: solid currentColor; border-width: 1px 0 0 1px; transform: rotate(45deg); }
.nav-icon-overview::after { content: ""; position: absolute; bottom: .08rem; left: .2rem; width: .65rem; height: .53rem; border: solid currentColor; border-width: 0 1px 1px; border-radius: 0 0 .1rem .1rem; }
.nav-icon-album { height: .77rem; border: 1px solid currentColor; border-radius: .13rem; }
.nav-icon-album::before { content: ""; position: absolute; inset: .18rem .13rem .12rem; background: currentColor; clip-path: polygon(0 100%, 32% 24%, 54% 69%, 75% 0, 100% 100%); }
.reader { padding: clamp(1.5rem, 4vw, 4rem); }
.reader-hero {
  position: relative;
  overflow: hidden;
  max-width: 58rem;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--paper);
  border: 1px solid rgba(121, 78, 94, .18);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}
.reader-home .reader-hero {
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image:
    linear-gradient(90deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.9) 38%, rgba(255,253,249,.2) 72%),
    url("reflections_of_mom_floral_album_hero_v1.png");
  background-size: cover;
  background-position: center;
  border-color: rgba(155, 63, 89, .28);
}
.reader-home .reader-hero::after { display: none; }
.reader-mom .reader-hero,
.reader-contribute .reader-hero {
  background-image:
    linear-gradient(90deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.9) 58%, rgba(255,253,249,.38) 100%),
    url("reflections_of_mom_floral_album_hero_v1.png");
  background-size: cover;
  background-position: 72% center;
}
.reader-mom .reader-hero::after,
.reader-contribute .reader-hero::after { display: none; }
.reader-reflection .reader-hero:has(.hero-story-credit) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(.85rem, 3vw, 2.75rem); }
.hero-story-credit { position: relative; z-index: 1; display: grid; justify-items: end; align-content: start; gap: .5rem; text-align: right; }
.hero-byline {
  margin: 0;
  color: var(--plum);
  font-size: .98rem;
  font-weight: 750;
}
.hero-story-credit img { display: block; width: clamp(3.75rem, 12vw, 7.5rem); height: auto; border: .25rem solid white; border-radius: .45rem; box-shadow: 0 6px 16px rgba(71,45,61,.14); }
.reader-mom .reader-hero.has-profile-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.35rem, 4vw, 3.25rem);
  background: linear-gradient(130deg, var(--paper), #f8e8e5);
}
.has-profile-photo > img {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: auto;
  justify-self: end;
  border: .45rem solid var(--paper);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(71,45,61,.14);
}
.reader-hero::after {
  content: "";
  position: absolute;
  width: 15rem;
  height: 15rem;
  right: -5rem;
  top: -6rem;
  border: 2rem solid rgba(244, 217, 216, .65);
  border-radius: 50%;
}
.reader-hero h1 { max-width: 12ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: .97; letter-spacing: -.04em; color: var(--plum); }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.reader-mom .reader-hero h1, .reader-reflection .reader-hero h1, .reader-contribute .reader-hero h1, .reader-album .reader-hero h1 { font-size: clamp(2.45rem, 6vw, 4.8rem); }
.page-summary { position: relative; z-index: 1; max-width: 42rem; margin: 1.35rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.collection-section { max-width: 68rem; padding: 3rem 0 .5rem; scroll-margin-top: var(--header-height); }
.section-heading { max-width: 43rem; }
.section-heading h2 { margin: 0; color: var(--plum); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin-top: 1.35rem; }
.collection-card { display: grid; grid-template-columns: 6.4rem 1fr; min-height: 10rem; overflow: hidden; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 12px 32px rgba(71, 45, 61, .09); transition: transform .16s ease, box-shadow .16s ease; }
.collection-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-portrait { display: grid; place-items: center; background: linear-gradient(155deg, var(--blush), var(--sage)); color: var(--plum); font-family: Georgia, serif; font-size: 2rem; font-weight: 700; }
.mom-card .card-portrait { background-image: linear-gradient(rgba(88,49,73,.12), rgba(88,49,73,.28)), url("reflections_of_mom_floral_album_hero_v1.png"); background-size: auto 100%; background-position: 78% center; color: white; text-shadow: 0 2px 10px rgba(55,26,44,.65); }
.collection-card:has(.has-photo) { grid-template-columns: minmax(6rem, 12rem) minmax(0, 1fr); }
.card-portrait.has-photo { align-self: start; background: var(--paper); }
.card-portrait img { display: block; width: 100%; height: auto; }
.reflection-card { border-top: .35rem solid var(--coral); }
.card-copy { display: flex; flex-direction: column; justify-content: center; padding: 1rem; }
.card-copy small { color: var(--rose); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-copy strong { margin-top: .25rem; color: var(--plum); font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.15; }
.card-copy > span { margin-top: .45rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.empty-card { padding: 1.2rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 1rem; }
.reflection-meta { max-width: 48rem; margin-top: 2rem; padding: 1.2rem; background: rgba(255,253,249,.86); border: 1px solid var(--line); border-top: .4rem solid var(--blue); border-radius: 1rem; box-shadow: 0 12px 30px rgba(71,45,61,.08); }
.reflection-details { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; color: var(--muted); font-size: .94rem; }
.reflection-role { color: var(--plum); font-weight: 750; }
.reflection-share { position: relative; }
.share-link, .print-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .45rem; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--plum); font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.share-link:hover, .print-link:hover { background: var(--blush); }
.print-icon { width: 1.05rem; height: 1.05rem; }
.share-icon { position: relative; display: inline-block; width: 1.05rem; height: .9rem; transform: rotate(-38deg); }
.share-icon::before, .share-icon::after { content: ""; position: absolute; top: .24rem; width: .6rem; height: .4rem; border: 1px solid currentColor; border-radius: 999px; }
.share-icon::before { left: 0; }
.share-icon::after { right: 0; }
.share-feedback:not(:empty) { position: absolute; z-index: 2; top: calc(100% + .35rem); inset-inline-end: 0; padding: .3rem .6rem; border-radius: .4rem; color: white; background: var(--plum); white-space: nowrap; box-shadow: 0 4px 14px #49213433; }
.reflection-synopsis { margin: 0; font-size: 1.08rem; }
.reflection-details + .reflection-synopsis { margin-top: .45rem; }
.family-photo { width: min(100%, 26rem); margin: 2.2rem auto; padding: .65rem; background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 12px 30px rgba(71,45,61,.08); }
.family-photo a, .family-photo img { display: block; border-radius: .5rem; }
.family-photo img { width: 100%; height: auto; }
.family-photo figcaption { padding: .65rem .35rem .15rem; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.photo-album { max-width: 58rem; margin: 2rem 0; }
.photo-album > section + section { margin-top: 2.5rem; }
.photo-album h2 { margin-bottom: 1rem; color: var(--plum); font: 700 clamp(1.65rem, 4vw, 2.35rem) Georgia, serif; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.2rem; align-items: start; }
.album-grid .family-photo { width: 100%; margin: 0; padding: .65rem .65rem .8rem; background: #fffaf0; border-color: #e1d4c1; border-radius: .12rem .23rem .16rem .25rem; box-shadow: 0 6px 15px rgba(83,59,42,.13); }
.album-grid .family-photo a, .album-grid .family-photo img { border-radius: .12rem; }
.album-grid .family-photo figcaption { color: #53464a; padding: .75rem .25rem .2rem; }
.album-preview .album-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.album-link { display: inline-block; margin-top: 1.1rem; font-weight: 750; }
.prose { max-width: 48rem; padding: 2.5rem clamp(.25rem, 2vw, 1.5rem); }
.prose p, .prose li { font-size: 1.08rem; }
.prose h2 { margin-top: 2.5rem; font-family: Georgia, "Times New Roman", serif; color: var(--plum); font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; }
.prose h3 { margin-top: 2rem; color: var(--plum); }
.prose blockquote { margin: 1.5rem 0 2rem; padding: 1rem 1.2rem; border-left: .35rem solid var(--rose); background: #fff5f3; border-radius: 0 .8rem .8rem 0; color: var(--plum); font-weight: 700; }
.prose li + li { margin-top: .45rem; }
.reflection-comments { max-width: 48rem; margin: 0 0 2.5rem; padding: 0 clamp(.25rem, 2vw, 1.5rem); }
.reflection-comments h2 { margin: 0 0 1rem; color: var(--plum); font: 700 clamp(1.55rem, 3vw, 2rem)/1.2 Georgia, "Times New Roman", serif; }
.reflection-comment { margin-bottom: .85rem; padding: .9rem 1rem; border: 1px solid var(--line); border-inline-start: .25rem solid var(--rose); border-radius: .6rem; background: var(--paper); }
.reflection-comment h3 { margin: 0 0 .35rem; color: var(--plum); font-size: 1rem; }
.reflection-comment p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reader-footer { max-width: 48rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.reader-footer p { margin: 0; }
@media (max-width: 760px) {
  :root { --header-height: 4.5rem; }
  .brand small { display: none; }
  .brand strong { font-size: 1.05rem; }
  .brand-mark { width: 2.25rem; height: 2.7rem; font-size: 1.1rem; }
  .menu-button { display: inline-block; }
  .site-layout { display: block; }
  .sidebar { display: none; height: auto; max-height: calc(100dvh - var(--header-height)); border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem; background: var(--paper); z-index: 10; }
  .sidebar.is-open { display: block; }
  .reader { padding: 1rem; }
  .reader-hero { border-radius: 1rem; padding: 2.25rem 1.35rem 2.5rem; }
  .reader-reflection .reader-hero h1 { font-size: clamp(1.8rem, 8.5vw, 3.4rem); }
  .hero-story-credit { width: 4.4rem; }
  .hero-byline { font-size: .85rem; line-height: 1.25; }
  .reader-home .reader-hero { min-height: 31rem; background-image: linear-gradient(180deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.9) 52%, rgba(255,253,249,.42) 100%), url("reflections_of_mom_floral_album_hero_v1.png"); background-position: 66% center; }
  .reader-mom .reader-hero, .reader-contribute .reader-hero { min-height: 27rem; background-image: linear-gradient(180deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.9) 56%, rgba(255,253,249,.5) 100%), url("reflections_of_mom_floral_album_hero_v1.png"); background-position: 72% center; }
  .reader-mom .reader-hero.has-profile-photo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .has-profile-photo > img { justify-self: start; width: min(100%, 14rem); }
  .reader-hero h1, .reader-mom .reader-hero h1, .reader-contribute .reader-hero h1 { font-size: clamp(2.35rem, 14vw, 3.7rem); }
  .collection-section { padding-top: 2rem; }
  .collection-card { grid-template-columns: 5.2rem 1fr; }
  .collection-card:has(.has-photo) { grid-template-columns: minmax(5.2rem, 34%) minmax(0, 1fr); }
  .prose { padding: 1.4rem .35rem 2.5rem; }
  .prose p, .prose li { font-size: 1rem; }
  .reader-footer { align-items: flex-start; flex-direction: column; padding: 1rem .35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
