:root {
  --cream: #f8f2e9;
  --paper: #fffdf9;
  --ink: #261d1a;
  --muted: #786963;
  --wine: #5e1724;
  --deep-wine: #351018;
  --rose: #b85c6c;
  --blush: #ead2cf;
  --gold: #b69257;
  --line: rgba(64, 40, 35, 0.16);
  --valentine-bg: #9f2f49;
  --anniversary-bg: #67375f;
  --christmas-bg: #245b47;
  --mothers-bg: #c35670;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font-family: var(--font-sans), sans-serif; }
a { color: inherit; }
button { font: inherit; }

.topbar { position: sticky; top: 0; z-index: 30; height: 74px; padding: 0 clamp(22px, 6vw, 86px); display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.monogram { font-family: var(--font-serif), serif; font-size: 1.18rem; font-weight: 500; letter-spacing: .24em; text-decoration: none; }
.monogram span, .footer-mark b { color: var(--rose); }
.desktop-nav { display: flex; gap: clamp(25px, 4vw, 56px); }
.desktop-nav a { font-size: .78rem; font-weight: 500; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.desktop-nav a:hover { color: var(--wine); }
.menu-toggle, .mobile-menu { display: none; }
.mobile-menu[hidden] { display: none; }

.hero { min-height: calc(100svh - 74px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.hero-art { position: relative; min-height: 700px; overflow: hidden; background: #100002; }
.hero-art img { object-fit: contain; object-position: center; }
.hero-art > img, .photo-pair figure > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 2, 5, .08), rgba(18, 2, 5, .72)); }
.hero-title { position: absolute; left: clamp(28px, 6vw, 90px); right: 30px; top: clamp(42px, 7vw, 86px); color: white; }
.eyebrow { margin: 0 0 12px; font-size: .69rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.76); }
.hero h1 { margin: 0; font-family: var(--font-serif), serif; font-size: clamp(4.5rem, 9vw, 8.5rem); font-weight: 400; line-height: .9; letter-spacing: -.04em; }
.flourish { display: block; margin-top: 22px; font-family: var(--font-serif), serif; font-size: 1rem; letter-spacing: .18em; }
.letter-intro { padding: clamp(60px, 9vw, 130px) clamp(38px, 7vw, 112px); display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.letter-intro > p:not(.eyebrow), .letter-body > p { font-family: var(--font-serif), serif; font-size: clamp(1.25rem, 1.65vw, 1.55rem); line-height: 1.72; }
.salutation { margin: 18px 0 26px; text-align: center; }
.salutation em { display: block; margin-top: 12px; font-family: var(--font-script), cursive; font-size: 1.45em; }
.letter-intro blockquote, .letter-body blockquote { margin: 30px 0; padding: 26px 12px; border-block: 1px solid var(--line); font-family: var(--font-serif), serif; font-size: clamp(1.45rem, 2.2vw, 2.1rem); font-style: italic; line-height: 1.35; text-align: center; }
.text-link, .light-link { width: fit-content; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.text-link span, .light-link span { transition: transform .2s ease; }
.text-link:hover span, .light-link:hover span { transform: translateX(4px); }

.journey { padding: clamp(78px, 10vw, 140px) clamp(22px, 6vw, 86px) clamp(42px, 6vw, 78px); }
.section-heading { max-width: 670px; margin-bottom: 54px; }
.journey .section-heading { margin-bottom: 0; }
.section-heading h2, .memory-copy h2, .letter-heading h2 { margin: 0 0 15px; font-family: var(--font-serif), serif; font-size: clamp(3.2rem, 6vw, 6rem); font-weight: 400; line-height: .96; letter-spacing: -.035em; }
.section-heading > p:last-child { max-width: 570px; color: var(--muted); font-family: var(--font-serif), serif; font-size: 1.25rem; line-height: 1.55; }
.occasion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.occasion-card { position: relative; min-height: 260px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; text-decoration: none; transition: transform .25s ease; }
.occasion-card:hover { transform: translateY(-5px); }
.occasion-card.valentine { background: var(--valentine-bg); color: white; }
.occasion-card.anniversary { background: var(--anniversary-bg); color: white; }
.occasion-card.christmas { background: var(--christmas-bg); color: white; }
.occasion-card.mothers { background: var(--mothers-bg); color: white; }
.occasion-count { position: absolute; top: -20px; right: 16px; font-family: var(--font-serif), serif; font-size: 9rem; line-height: 1; opacity: .25; }
.occasion-card strong { font-family: var(--font-serif), serif; font-size: 1.7rem; font-weight: 500; }
.occasion-card small { margin-top: 5px; opacity: .72; }
.card-arrow { position: absolute; top: 22px; left: 25px; font-size: 1.25rem; }

.christmas-preview { padding: clamp(74px, 9vw, 125px) clamp(22px, 6vw, 86px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 8vw, 120px); align-items: end; background: var(--paper); }
.valentine-preview { background: #f2dfde; }
.christmas-heading h2 { margin: 0 0 18px; font-family: var(--font-serif), serif; font-size: clamp(3.1rem, 5.5vw, 5.6rem); font-weight: 400; line-height: .95; letter-spacing: -.035em; }
.christmas-heading > p:last-child { color: var(--muted); font-family: var(--font-serif), serif; font-size: 1.2rem; line-height: 1.55; }
.year-links { border-top: 1px solid var(--line); }
.year-links a { min-height: 112px; padding: 22px 4px; display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.year-links a:hover .year-arrow { transform: translateX(5px); }
.year { font-family: var(--font-serif), serif; font-size: 1.7rem; color: var(--wine); }
.year-copy strong, .year-copy small { display: block; }
.year-copy strong { font-family: var(--font-serif), serif; font-size: 1.45rem; font-weight: 500; }
.year-copy small { margin-top: 4px; color: var(--muted); }
.year-arrow { font-size: 1.4rem; transition: transform .2s ease; }

.occasion-accordion-grid { padding: 0 clamp(22px, 6vw, 86px) clamp(84px, 10vw, 140px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--cream); }
.occasion-links { --occasion-accent: var(--wine); position: relative; scroll-margin-top: 74px; padding: 0 clamp(26px, 3vw, 46px); overflow: hidden; background: var(--paper); color: var(--ink); border: 1px solid var(--line); transition: box-shadow .25s ease; }
.occasion-links::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--occasion-accent); }
.occasion-links::after { content: attr(data-count); position: absolute; top: 7px; right: 24px; color: var(--occasion-accent); font-family: var(--font-serif), serif; font-size: clamp(5rem, 8vw, 8rem); line-height: 1; opacity: .11; pointer-events: none; }
.occasion-links[open] { grid-column: 1 / -1; box-shadow: 0 24px 55px rgba(55,34,29,.1); }
.occasion-links[open]::after { display: none; }
.occasion-links.valentine-links { --occasion-accent: var(--valentine-bg); }
.occasion-links.anniversary-links { --occasion-accent: var(--anniversary-bg); background: #fbf8f5; }
.occasion-links.christmas-links { --occasion-accent: var(--christmas-bg); }
.occasion-links.mothers-links { --occasion-accent: var(--mothers-bg); background: #fbf8f5; }
.occasion-links summary { min-height: 235px; padding: clamp(38px, 5vw, 64px) 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; list-style: none; cursor: pointer; }
.occasion-links summary::-webkit-details-marker { display: none; }
.occasion-heading { display: grid; gap: 7px; }
.occasion-heading .eyebrow { margin: 0 0 4px; color: var(--occasion-accent); }
.occasion-heading > strong { color: var(--occasion-accent); font-family: var(--font-serif), serif; font-size: clamp(2.8rem, 4.2vw, 4.5rem); font-weight: 400; line-height: .92; letter-spacing: -.035em; }
.occasion-heading > small { max-width: 650px; color: var(--muted); font-family: var(--font-serif), serif; font-size: 1.2rem; line-height: 1.45; }
.occasion-toggle { position: relative; width: 54px; height: 54px; flex: 0 0 54px; color: var(--occasion-accent); border: 1px solid color-mix(in srgb, var(--occasion-accent) 65%, transparent); border-radius: 50%; }
.occasion-toggle::before, .occasion-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s ease; }
.occasion-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.occasion-links[open] .occasion-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.occasion-links > .year-links { padding: 0 0 clamp(50px, 6vw, 82px); }
.occasion-links > .year-links a { min-height: 96px; }
.occasion-links .year-links { border-color: var(--line); }
.occasion-links .year-links a { border-color: var(--line); }
.occasion-links .year-links a:hover { padding-inline: 15px; background: color-mix(in srgb, var(--occasion-accent) 8%, transparent); }
.occasion-links .year { color: var(--occasion-accent); }
.occasion-links .year-copy strong { color: var(--ink); }
.occasion-links[open] summary { padding-bottom: clamp(30px, 4vw, 52px); }

.memory-feature { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 620px; background: var(--deep-wine); color: white; }
.memory-copy { padding: clamp(60px, 8vw, 120px) clamp(30px, 7vw, 98px); display: flex; flex-direction: column; justify-content: center; }
.memory-copy h2 { color: white; }
.memory-copy > p:not(.eyebrow) { color: rgba(255,255,255,.76); font-family: var(--font-serif), serif; font-size: 1.25rem; line-height: 1.6; }
.handwritten { margin: 18px 0 35px; font-family: var(--font-script), cursive; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.25; }
.photo-pair { min-height: 620px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 8px; padding: 8px 8px 8px 0; }
.photo-pair figure { position: relative; margin: 0; overflow: hidden; }
.photo-pair img { object-fit: cover; }
.photo-pair figure:last-child img { object-position: 58% center; }

.full-letter { padding: clamp(82px, 11vw, 150px) 22px; background: var(--paper); }
.letter-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.letter-heading span { color: var(--rose); }
.letter-body { position: relative; max-width: 760px; max-height: 780px; margin: 0 auto; overflow: hidden; transition: max-height .5s ease; }
.letter-body.is-open { max-height: 5000px; }
.salutation.compact { font-family: var(--font-serif), serif; font-size: 1.3rem; }
.letter-body .declaration { margin-top: 45px; color: var(--wine); font-size: clamp(1.8rem, 3.3vw, 2.8rem); }
.signature { margin-top: 42px; font-family: var(--font-script), cursive !important; font-size: clamp(2rem, 4vw, 3rem) !important; text-align: right; }
.letter-fade { position: absolute; inset: auto 0 0; height: 250px; background: linear-gradient(transparent, var(--paper)); }
.read-more { margin: 34px auto 0; padding: 13px 22px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.read-more:hover { border-color: var(--wine); }
.read-more span { transition: transform .2s ease; }
.read-more span.rotate { transform: rotate(180deg); }

footer { padding: 62px 25px 100px; background: var(--cream); text-align: center; }
.footer-mark { font-family: var(--font-serif), serif; font-size: 1.6rem; letter-spacing: .25em; }
footer p { color: var(--muted); font-family: var(--font-serif), serif; font-style: italic; }
.phone-nav { display: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .letter-intro { padding-inline: 42px; }
  .occasion-grid { grid-template-columns: repeat(2, 1fr); }
  .memory-feature { grid-template-columns: 1fr; }
  .photo-pair { min-height: 500px; padding: 0 8px 8px; }
}

@media (max-width: 700px) {
  body { padding-bottom: 66px; }
  .topbar { height: 60px; padding: 0 20px; }
  .desktop-nav { display: none; }
  .menu-toggle { width: 38px; height: 38px; padding: 10px 7px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 0; background: transparent; }
  .menu-toggle span { display: block; height: 1px; background: var(--ink); }
  .mobile-menu { position: absolute; top: 60px; left: 0; right: 0; padding: 18px 22px 22px; display: grid; gap: 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(44,27,23,.12); }
  .mobile-menu a { font-family: var(--font-serif), serif; font-size: 1.35rem; text-decoration: none; }
  .hero { min-height: auto; display: block; }
  .hero-art { min-height: 520px; }
  .hero-title { left: 24px; top: 38px; }
  .hero h1 { max-width: 100%; font-size: clamp(3.6rem, 18vw, 4.75rem); line-height: .92; }
  .letter-intro { padding: 58px 24px 66px; }
  .letter-intro > * { min-width: 0; max-width: 100%; }
  .salutation { width: 100%; overflow-wrap: anywhere; white-space: normal; font-size: 1.05rem !important; }
  .letter-intro > p:not(.eyebrow), .letter-body > p { font-size: 1.22rem; line-height: 1.66; }
  .letter-intro blockquote { font-size: 1.62rem; }
  .journey { padding: 74px 18px 34px; }
  .section-heading { margin-bottom: 35px; }
  .occasion-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .occasion-card { min-height: 190px; padding: 19px; }
  .occasion-count { font-size: 6rem; }
  .occasion-card strong { font-size: 1.25rem; }
  .memory-copy { padding: 66px 24px; }
  .christmas-preview { padding: 74px 22px; grid-template-columns: 1fr; gap: 35px; }
  .occasion-accordion-grid { padding: 0 18px 82px; grid-template-columns: 1fr; gap: 12px; }
  .occasion-links { scroll-margin-top: 60px; padding-inline: 22px; }
  .occasion-links[open] { grid-column: 1; }
  .occasion-links summary { min-height: 170px; padding-block: 42px; gap: 18px; }
  .occasion-heading > strong { font-size: clamp(2.65rem, 13vw, 4rem); }
  .occasion-heading > small { font-size: 1.05rem; }
  .occasion-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .year-links a { grid-template-columns: 68px 1fr auto; }
  .photo-pair { min-height: auto; padding: 8px; grid-template-columns: 1fr; gap: 8px; }
  .photo-pair figure { width: 100%; aspect-ratio: 4 / 3; }
  .photo-pair img, .photo-pair figure:last-child img { object-fit: cover; object-position: center; }
  .full-letter { padding: 78px 22px; }
  .letter-heading h2 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .letter-body { max-height: 690px; }
  footer { padding-bottom: 40px; }
  .phone-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 66px; display: flex; justify-content: space-around; align-items: center; background: rgba(255,253,249,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .phone-nav a { min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
  .phone-nav a:first-child { color: var(--wine); }
  .phone-nav a span { font-family: var(--font-serif), serif; font-size: 1rem; }
}

@media (max-width: 390px) {
  .occasion-grid { grid-template-columns: 1fr; }
  .occasion-card { min-height: 155px; }
}

/* Christmas memory pages */
.christmas-page { background: var(--paper); }
.valentine-page { background: var(--paper); }
.valentine-page .holiday-hero { background: var(--deep-wine); }
.valentine-page .holiday-hero::before { background: url("valentine-header.jpg") center 64% / auto 108% no-repeat; opacity: .3; }
.valentine-page .holiday-hero::after { background: linear-gradient(180deg, rgba(74,14,27,.44), rgba(45,8,16,.78)); }
.valentine-page .holiday-hero p:last-child { font-family: var(--font-serif), serif; font-style: italic; }
.valentine-note-list { margin: 30px 0; padding: 0; list-style: none; }
.valentine-note-list li { margin: 0 0 13px; padding-left: 24px; position: relative; font-family: var(--font-serif), serif; font-size: clamp(1.16rem, 1.8vw, 1.42rem); line-height: 1.55; }
.valentine-note-list li::before { content: "♥"; position: absolute; left: 0; top: .08em; color: var(--rose); font-size: .8em; }
.memory-topbar { position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 clamp(20px, 6vw, 84px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,249,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.back-link, .year-switcher a { font-size: .72rem; font-weight: 500; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.back-link:hover, .year-switcher a:hover { color: var(--wine); }
.year-switcher { display: flex; gap: 22px; }
.year-switcher a[aria-current="page"] { color: var(--wine); border-bottom: 1px solid var(--wine); }
.holiday-hero { position: relative; min-height: 66svh; padding: clamp(85px, 12vw, 155px) 24px; display: grid; place-items: center; overflow: hidden; color: white; text-align: center; background: var(--deep-wine); isolation: isolate; }
.holiday-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("christmas-header.jpeg") center 62% / auto 135% no-repeat; opacity: .3; }
.holiday-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(53,16,24,.2), rgba(53,16,24,.72)); }
.holiday-hero .eyebrow { color: rgba(255,255,255,.72); }
.holiday-hero h1 { margin: 5px 0 18px; font-family: var(--font-serif), serif; font-size: clamp(4.4rem, 11vw, 9.5rem); font-weight: 400; line-height: .88; letter-spacing: -.045em; }
.holiday-hero p:last-child { margin: 0; font-family: var(--font-script), cursive; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.holiday-note { max-width: 790px; margin: 0 auto; padding: clamp(72px, 10vw, 135px) 24px; }
.holiday-note.centered-note { text-align: center; }
.holiday-note h2 { margin: 0 0 34px; color: var(--wine); font-family: var(--font-serif), serif; font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 400; line-height: .95; }
.holiday-note > h2 { text-align: center; }
.holiday-note p { font-family: var(--font-serif), serif; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.75; }
.holiday-note blockquote { margin: 38px 0; padding: 30px clamp(20px, 5vw, 48px); border-block: 1px solid var(--line); color: var(--wine); font-family: var(--font-serif), serif; font-size: clamp(1.55rem, 3vw, 2.25rem); font-style: italic; line-height: 1.4; text-align: center; }
.quote-image { margin: 42px 0; }
.quote-image img { width: 100%; height: auto; display: block; }
.holiday-signoff { margin-top: 34px; color: var(--wine); font-family: var(--font-script), cursive !important; font-size: clamp(.75rem, 3vw, 2.5rem) !important; line-height: 1.2 !important; text-align: center; white-space: nowrap; }
.reflection-grid { max-width: 1100px; margin: -35px auto clamp(80px, 10vw, 140px); padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reflection-grid.single-card { grid-template-columns: minmax(300px, 520px); justify-content: center; }
.reflection-card { padding: clamp(25px, 4vw, 42px); background: var(--cream); border: 1px solid var(--line); }
.reflection-card h3 { margin: 0 0 16px; color: var(--wine); font-family: var(--font-serif), serif; font-size: 2rem; font-weight: 500; }
.reflection-card p { margin: 0; font-family: var(--font-serif), serif; font-size: 1.15rem; font-style: italic; line-height: 1.6; }
.holiday-feature { margin: 0; padding: 0 clamp(18px, 5vw, 72px) clamp(80px, 10vw, 140px); }
.holiday-feature a { position: relative; max-width: 1280px; margin: 0 auto; display: block; overflow: hidden; }
.holiday-feature img { width: 100%; max-height: 760px; display: block; object-fit: cover; }
.holiday-feature figcaption { position: absolute; inset: auto 18px 18px; padding: 13px 18px; background: rgba(30,8,13,.82); color: white; font-size: .75rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; backdrop-filter: blur(8px); }
.holiday-gallery { padding: 0 clamp(12px, 4vw, 60px) clamp(80px, 10vw, 140px); columns: 2; column-gap: 12px; }
.holiday-gallery figure { width: 100%; margin: 0 0 12px; display: inline-block; break-inside: avoid; overflow: hidden; background: var(--blush); vertical-align: top; }
.holiday-gallery img { width: 100%; height: auto; display: block; object-fit: contain; }
.scrapbook-gallery { max-width: 1320px; margin: 0 auto; padding: clamp(55px, 7vw, 95px) clamp(25px, 6vw, 90px) clamp(100px, 12vw, 170px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(18px, 3vw, 42px); row-gap: clamp(38px, 7vw, 90px); background: #f3eadd; }
.scrapbook-gallery figure { position: relative; width: auto; margin: 0; padding: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px) clamp(25px, 3vw, 48px); display: block; overflow: visible; background: #fffdf9; border: 0; box-shadow: 0 18px 45px rgba(52,28,23,.18); transform: rotate(-1.6deg); }
.scrapbook-gallery figure::before { content: ""; position: absolute; z-index: 2; top: -13px; left: 50%; width: 82px; height: 26px; background: rgba(213,190,151,.58); box-shadow: 0 1px 2px rgba(50,30,20,.09); transform: translateX(-50%) rotate(1deg); }
.scrapbook-gallery figure:nth-child(3n+2) { transform: translateY(32px) rotate(1.8deg); }
.scrapbook-gallery figure:nth-child(4n) { transform: translateY(-18px) rotate(-2.3deg); }
.scrapbook-gallery figure:nth-child(1) { grid-column: 2 / 12; transform: rotate(.6deg); }
.scrapbook-gallery figure:nth-child(2), .scrapbook-gallery figure:nth-child(5), .scrapbook-gallery figure:nth-child(8), .scrapbook-gallery figure:nth-child(11), .scrapbook-gallery figure:nth-child(14) { grid-column: span 5; }
.scrapbook-gallery figure:nth-child(3), .scrapbook-gallery figure:nth-child(4), .scrapbook-gallery figure:nth-child(6), .scrapbook-gallery figure:nth-child(7), .scrapbook-gallery figure:nth-child(9), .scrapbook-gallery figure:nth-child(10), .scrapbook-gallery figure:nth-child(12), .scrapbook-gallery figure:nth-child(13), .scrapbook-gallery figure:nth-child(15) { grid-column: span 7; }
.scrapbook-gallery figure:nth-child(15) { grid-column: 3 / 11; }
.scrapbook-feature { max-width: none; margin: 0; padding: clamp(65px, 8vw, 110px) clamp(25px, 10vw, 170px) clamp(100px, 12vw, 160px); background: #f3eadd; }
.scrapbook-feature > a { max-width: 1080px; padding: clamp(9px, 1.2vw, 16px) clamp(9px, 1.2vw, 16px) clamp(38px, 4vw, 58px); overflow: visible; background: #fffdf9; box-shadow: 0 22px 55px rgba(52,28,23,.2); transform: rotate(-1deg); }
.scrapbook-feature > a::before { content: ""; position: absolute; z-index: 2; top: -13px; left: 50%; width: 90px; height: 27px; background: rgba(213,190,151,.6); transform: translateX(-50%) rotate(1deg); }
.scrapbook-feature figcaption { inset: auto clamp(9px, 1.2vw, 16px) clamp(9px, 1.2vw, 16px); }
.memory-footer { padding: 45px 24px 70px; background: var(--cream); text-align: center; }
.memory-footer a { color: var(--wine); font-size: .75rem; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.occasion-memory-hero { position: relative; min-height: 62svh; padding: clamp(95px, 13vw, 165px) 24px; display: grid; place-items: center; overflow: hidden; color: white; text-align: center; background: var(--deep-wine); isolation: isolate; }
.anniversary-memory .occasion-memory-hero,
.mothers-memory .occasion-memory-hero { background: var(--deep-wine); }
.anniversary-memory .occasion-memory-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("anniversary-header.jpg") center center / 60% auto no-repeat; opacity: .3; }
.mothers-memory .occasion-memory-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("mothers-header.jpg") center center / cover no-repeat; opacity: .3; }
.occasion-memory-hero h1 { margin: 5px 0 20px; font-family: var(--font-serif), serif; font-size: clamp(4rem, 10vw, 9rem); font-weight: 400; line-height: .88; letter-spacing: -.045em; }
.occasion-memory-hero p:last-child { margin: 0; color: rgba(255,255,255,.82); font-family: var(--font-serif), serif; font-size: clamp(1.35rem, 2.6vw, 2.1rem); font-style: italic; }
.occasion-memory-note #occasion-copy p { text-align: left; }
.anniversary-memory .occasion-memory-note h2, .anniversary-memory .holiday-signoff,
.mothers-memory .occasion-memory-note h2, .mothers-memory .holiday-signoff { color: var(--wine); }
.occasion-memory-page .scrapbook-gallery { background: #f3eadd; }
.occasion-memory-page .scrapbook-gallery:empty { display: none; }
.occasion-memory-page .scrapbook-gallery { max-width: 1320px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 52px); }
.occasion-memory-page .scrapbook-gallery figure,
.occasion-memory-page .scrapbook-gallery figure:nth-child(n) { width: 100%; margin: 0; grid-column: auto; align-self: start; transform: none; }
.occasion-memory-page .scrapbook-gallery figure.photo-wide { grid-column: 1 / -1; }
.occasion-memory-page .scrapbook-gallery figure.photo-tall { width: min(100%, 560px); justify-self: center; }
.occasion-memory-page .scrapbook-gallery img { width: 100%; height: auto; display: block; object-fit: contain; }
.mothers-memory .scrapbook-gallery { grid-template-columns: 1fr; }
.mothers-memory .scrapbook-gallery figure { max-width: 1120px; justify-self: center; }
.occasion-memory-page .memory-footer { background: var(--paper); }
@media (max-width: 700px) {
  .memory-topbar { height: 60px; padding-inline: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .back-link { font-size: .64rem; white-space: nowrap; }
  .year-switcher { width: 100%; max-width: none; min-width: 0; gap: 17px; overflow-x: auto; padding: 6px 2px 7px; }
  .year-switcher a { flex: 0 0 auto; }
  .holiday-hero { min-height: 52svh; padding-block: 82px; }
  .holiday-hero h1 { font-size: clamp(3.15rem, 17vw, 5rem); }
  .holiday-note { width: 100%; max-width: 100vw; padding: 68px 20px 82px; overflow: hidden; }
  .holiday-note h2 { max-width: 100%; font-size: clamp(2rem, 9vw, 2.8rem); overflow-wrap: anywhere; }
  .holiday-note p { max-width: 100%; font-size: 1.12rem; line-height: 1.65; overflow-wrap: anywhere; }
  .holiday-signoff { font-size: clamp(1.3rem, 7vw, 2rem) !important; white-space: normal; }
  .occasion-memory-hero { min-height: 50svh; padding: 76px 18px; }
  .occasion-memory-hero > div { width: 100%; max-width: 350px; }
  .occasion-memory-hero h1 { max-width: 100%; font-size: clamp(2.2rem, 10.5vw, 3.2rem); line-height: .96; overflow-wrap: anywhere; }
  .occasion-memory-hero p:last-child { font-size: 1.3rem; }
  .anniversary-memory .occasion-memory-hero::before { background-size: 100% auto; }
  .occasion-memory-note #occasion-copy p { overflow-wrap: anywhere; }
  .holiday-gallery { columns: 1; padding-inline: 10px; }
  .holiday-gallery figure { margin-bottom: 10px; }
  .scrapbook-gallery { display: block; padding: 45px 18px 100px; }
  .scrapbook-gallery figure, .scrapbook-gallery figure:nth-child(n) { width: min(92%, 520px); margin: 0 auto 42px; transform: rotate(-1deg); }
  .scrapbook-gallery figure:nth-child(even) { transform: rotate(1deg); }
  .scrapbook-feature { padding: 60px 18px 100px; }
  .scrapbook-feature > a { transform: none; }
  .reflection-grid { grid-template-columns: 1fr; margin-top: -15px; }
  .occasion-memory-page .scrapbook-gallery { display: grid; grid-template-columns: 1fr; gap: 38px; }
  .occasion-memory-page .scrapbook-gallery figure,
  .occasion-memory-page .scrapbook-gallery figure:nth-child(n) { width: 100%; margin: 0; grid-column: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
