:root {
  --paper: #f9f8f3;
  --white: #fffefa;
  --ink: #30362e;
  --muted: #5f695e;
  --green: #536b59;
  --green-deep: #3d5745;
  --green-pale: #edf1e9;
  --bronze: #886d4c;
  --bronze-light: #c5ad87;
  --line: #d9ded5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --content: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.7 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--bronze); outline-offset: 5px; }
::selection { background: #dbe5d7; color: var(--ink); }
h1, h2, h3, p, blockquote, figure { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h3 { font-family: var(--serif); line-height: 1.23; }
section { scroll-margin-top: 5.5rem; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .65rem 1rem; background: var(--ink); color: white; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header { position: relative; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1500px; min-height: 80px; margin: auto; padding: .8rem clamp(1.25rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { flex: none; color: var(--green-deep); font: 1.4rem/1.05 var(--serif); letter-spacing: -.025em; text-decoration: none; }
.wordmark span { display: block; margin-top: .35rem; font: 600 .6rem/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--bronze); }
.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.7rem); }
.site-nav a { color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green-deep); text-decoration: underline; text-underline-offset: .4em; }

.eyebrow { color: var(--bronze); font-size: .76rem; font-weight: 700; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.hero { max-width: 1500px; min-height: min(840px, calc(100vh - 80px)); margin: auto; padding: clamp(3rem, 6vw, 7rem) clamp(1.25rem, 7vw, 8rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: clamp(3rem, 6vw, 8rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { margin-bottom: 1.3rem; }
.hero h1 { margin-bottom: .25rem; font-size: clamp(4.4rem, 8vw, 8.2rem); color: var(--green-deep); white-space: nowrap; }
.hero h1 em { font-weight: 400; }
.birth-name { margin-bottom: 1.4rem; color: var(--muted); font: italic clamp(1.25rem, 2vw, 1.7rem)/1.3 var(--serif); }
.family-tree-trigger { padding: 0; border: 0; border-bottom: 1px solid var(--bronze); background: none; color: inherit; font: inherit; cursor: pointer; }
.family-tree-trigger:hover { color: var(--green-deep); border-bottom-width: 2px; }
.family-tree-trigger:focus-visible { outline: 3px solid var(--bronze); outline-offset: 5px; }
.family-tree[hidden] { display: none !important; }
.family-tree { max-width: 560px; margin: -.1rem 0 2rem; padding: clamp(1.35rem, 2.6vw, 2rem); border: 1px solid #d9e2d7; border-radius: 18px; background: radial-gradient(circle at 100% 0%, #e8eee7 0, transparent 42%), var(--white); box-shadow: 0 20px 48px #31403418; }
.family-tree-kicker { margin-bottom: .35rem; color: var(--bronze); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.family-tree h2 { margin-bottom: 1.65rem; color: var(--green-deep); font-size: clamp(1.7rem, 2.7vw, 2.15rem); }
.family-tree-parents, .family-tree-children { display: grid; gap: .7rem; }
.family-tree-parents { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.family-tree-parents::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -.6rem; border-top: 1px solid #afc0ac; }
.family-tree-parents .family-tree-person::after { content: ""; position: absolute; left: 50%; bottom: -.6rem; height: .6rem; border-left: 1px solid #afc0ac; }
.family-tree-children { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .8rem; }
.family-tree-person { position: relative; min-width: 0; min-height: 86px; padding: 1rem .8rem; border: 1px solid #dfe7dd; border-radius: 12px; background: #fffefa; box-shadow: 0 5px 16px #3140340a; text-align: left; }
.family-tree-person span { display: block; margin-bottom: .45rem; color: var(--bronze); font-size: .63rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.family-tree-person-parent img { width: min(100%, 92px); height: 110px; margin: 0 0 .7rem; border-radius: 8px; object-fit: cover; object-position: center 32%; }
.family-tree-person strong { display: block; color: var(--green-deep); font: 1.05rem/1.25 var(--serif); overflow-wrap: anywhere; }
.family-tree-person small { display: block; margin-top: .5rem; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.family-tree-person .family-tree-nickname { margin-top: .25rem; color: var(--bronze); font: italic .9rem/1.3 var(--serif); }
.family-tree-person .family-tree-life-dates { font-size: .76rem; line-height: 1.55; }
.family-tree-person-gerti { border-color: var(--green-deep); background: var(--green-deep); }
.family-tree-person-gerti span { color: #e0d0b4; }
.family-tree-person-gerti strong { color: white; }
.family-tree-person-gerti small { color: #e0e8dc; }
.family-tree-connector { position: relative; width: 100%; height: 2.4rem; }
.family-tree-connector::before { content: ""; position: absolute; left: 50%; top: 0; height: 2.35rem; border-left: 1px solid #afc0ac; }
.family-tree-connector::after { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 2.35rem; border-top: 1px solid #afc0ac; }
.family-tree-children .family-tree-person::before { content: ""; position: absolute; left: 50%; top: -.86rem; height: .86rem; border-left: 1px solid #afc0ac; }
.life-dates { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 4rem); font-size: .88rem; font-weight: 600; letter-spacing: .05em; color: var(--green-deep); }
.date-separator { display: inline-block; width: 35px; height: 1px; background: var(--bronze); }
.hero-quote { max-width: 540px; margin: 0 0 2.5rem; padding-left: clamp(1.2rem, 2.4vw, 2.3rem); border-left: 2px solid var(--bronze-light); }
.hero-quote p { margin: 0; font: italic clamp(1.35rem, 2.3vw, 2.1rem)/1.48 var(--serif); color: var(--ink); }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.2rem; min-height: 3.4rem; padding: .8rem 1.3rem; color: var(--white); background: var(--green-deep); border: 1px solid var(--green-deep); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.primary-link:hover { background: #294432; transform: translateY(-2px); }
.primary-link span { font-size: 1.2rem; font-weight: 400; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 500px); padding: 1.5rem 2rem 1.5rem 0; }
.hero-visual::before { content: ""; position: absolute; z-index: 0; inset: 0 0 4.2rem 3.5rem; background: #e8ede5; }
.portrait-mat { position: relative; z-index: 1; padding: 14px; background: var(--white); box-shadow: 0 24px 65px #31403425; }
.portrait-mat img { width: 100%; aspect-ratio: 497 / 749; object-fit: cover; }
.hero-symbol { position: absolute; right: -.6rem; bottom: .4rem; display: flex; align-items: center; gap: .8rem; color: var(--bronze); font: 1.2rem var(--serif); }
.hero-symbol span { font-size: .8rem; letter-spacing: .3em; }
.page-rule { display: flex; justify-content: center; align-items: center; height: 2.5rem; }
.page-rule::before, .page-rule::after { content: ""; width: min(12vw, 140px); height: 1px; background: var(--line); }
.page-rule span { width: 5px; height: 5px; margin: 0 1.1rem; transform: rotate(45deg); background: var(--bronze); }

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem); }
.section-heading { max-width: var(--content); margin: 0 auto clamp(2.5rem, 5vw, 5rem); }
.section-heading.narrow { max-width: 820px; }
.section-heading h2 { max-width: 830px; margin-bottom: 1.3rem; color: var(--green-deep); }
.section-intro { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.16rem); line-height: 1.75; }

.timeline-section { background: var(--white); }
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 94px; top: 1.2rem; bottom: 1.2rem; width: 1px; background: var(--bronze-light); }
.timeline-entry { position: relative; display: grid; grid-template-columns: 95px 1fr; gap: 3.2rem; min-height: 9.5rem; }
.timeline-entry:last-child { min-height: 0; }
.timeline-entry::before { content: ""; position: absolute; left: 89px; top: .8rem; width: 11px; height: 11px; border: 2px solid var(--bronze); border-radius: 50%; background: var(--white); }
.timeline-year { font: 1.55rem/1.3 var(--serif); color: var(--bronze); }
.timeline-content { padding: 0 0 2.5rem; }
.timeline-content h3 { margin: .25rem 0 .5rem; color: var(--green-deep); font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.timeline-date { margin-bottom: .3rem; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .08em; }
.timeline-content > p:not(.timeline-date) { max-width: 630px; margin-bottom: 0; color: var(--muted); }
.timeline-undated .timeline-year { color: #8d9b8d; }
.timeline-undated::before { border-color: #9baa9c; }
.timeline.light-travel::after { content: ""; position: absolute; z-index: 2; left: 78px; top: 0; width: 33px; height: 72px; border-radius: 50%; background: radial-gradient(ellipse, #e7bc71b5, #e7bc7144 48%, transparent 72%); pointer-events: none; animation: light-journey 6s ease-in-out forwards; }
@keyframes light-journey { from { top: 0; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } to { top: calc(100% - 72px); opacity: 0; } }

.lights-section { background: #f3f1e9; }
.lights-inner { max-width: var(--content); margin: auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 8rem); }
.lights-intro h2 { margin: 1.1rem 0 1.5rem; color: var(--green-deep); }
.lights-intro h2 em { font-weight: 400; }
.lights-lead { max-width: 450px; color: var(--green-deep); font: italic clamp(1.35rem, 2vw, 1.8rem)/1.5 var(--serif); }
.light-button, .light-memory-submit { display: inline-flex; justify-content: center; align-items: center; gap: .7rem; min-height: 3.5rem; padding: .8rem 1.45rem; border: 1px solid var(--green-deep); background: var(--green-deep); color: white; font: 600 .95rem var(--sans); cursor: pointer; }
.light-button:hover:not(:disabled), .light-memory-submit:hover:not(:disabled) { background: #294432; }
.light-button:disabled, .light-memory-submit:disabled { border-color: #bdc8b9; background: #e4e9e0; color: #566456; cursor: not-allowed; }
.light-button:focus-visible, .light-memory-submit:focus-visible, .more-stars:focus-visible, .star-button:focus-visible, .star-dialog-close:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }
.light-button span { color: #efcf9d; font-size: 1.3rem; }
.light-path { display: flex; align-items: center; gap: .8rem; width: min(100%, 360px); margin: 1.6rem 0 0; color: var(--bronze); font: .82rem/1 var(--serif); }
.light-path i { position: relative; flex: 1; height: 2px; background: #bdc8b9; }
.light-path i::after { content: ""; position: absolute; left: -1px; top: -10px; width: 21px; height: 21px; border-radius: 50%; background: radial-gradient(circle, #efce94 0 16%, #dca96299 35%, transparent 72%); opacity: 0; }
.light-path-active i::after { animation: path-journey 6s ease-in-out forwards; }
@keyframes path-journey { 0% { left: 0; opacity: 0; } 8%, 90% { opacity: 1; } 100% { left: calc(100% - 21px); opacity: 0; } }
.light-count { margin: 2rem 0 .2rem; color: var(--green-deep); font: clamp(1.17rem, 1.7vw, 1.4rem)/1.4 var(--serif); }
.light-count strong { font-weight: 400; }
.light-legacy-note, .light-feedback { margin: .35rem 0 0; color: var(--muted); font-size: .86rem; }
.light-feedback { min-height: 1.5rem; }
.light-after[hidden] { display: none; }
.light-after { margin-top: 2.5rem; padding: 1.7rem; border: 1px solid #d8dfd1; background: var(--white); }
.light-after-icon { margin-bottom: .2rem; color: var(--bronze); font-size: 1.5rem; }
.light-after h3 { margin-bottom: .4rem; color: var(--green-deep); font-size: 1.6rem; }
.light-after > p:not(.light-after-icon) { color: var(--muted); }
.light-after label:not(.light-consent) { display: block; margin: 1rem 0 .25rem; color: var(--green-deep); font-weight: 700; font-size: .88rem; }
.light-after label span { color: var(--muted); font-weight: 400; }
.light-after input[type="text"], .light-after textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #aebdae; border-radius: 0; background: white; color: var(--ink); font: inherit; }
.light-after input:focus-visible, .light-after textarea:focus-visible { outline: 3px solid var(--bronze-light); outline-offset: 2px; }
.light-character-count { margin: .15rem 0 .7rem; color: var(--muted); text-align: right; font-size: .77rem; }
.light-after .light-consent { display: flex; gap: .7rem; align-items: start; margin: 1rem 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.light-consent input { width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; flex: none; accent-color: var(--green-deep); }
.light-memory-feedback { min-height: 1.3rem; margin: .7rem 0 0; color: var(--muted); font-size: .83rem; }
.lights-visual { min-width: 0; }
.burning-lights { min-height: 315px; padding: clamp(1.7rem, 3vw, 2.5rem); background: #e6e9de; }
.lights-visual-label { margin-bottom: .35rem; color: var(--bronze); font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.lights-visual h3 { margin-bottom: .55rem; color: var(--green-deep); font-size: clamp(1.6rem, 2.2vw, 2rem); }
.lights-visual p:not(.lights-visual-label) { color: var(--muted); font-size: .89rem; }
.active-lights-list, .star-list { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.active-light { width: 22px; height: 42px; display: grid; place-items: end center; }
.candle-shape { position: relative; display: block; width: 13px; height: 27px; border-radius: 2px 2px 1px 1px; background: linear-gradient(90deg, #b4a895, #fff5e7 30%, #e8d5b7 80%, #a89982); box-shadow: 0 2px 5px #39412c33; }
.candle-shape::before { content: ""; position: absolute; bottom: calc(100% + 2px); left: 3px; width: 7px; height: 14px; border-radius: 70% 35% 70% 35%; transform: rotate(10deg); background: #d99b44; box-shadow: 0 0 12px 5px #e5a95d88; animation: flame 2.5s ease-in-out infinite alternate; }
@keyframes flame { from { transform: rotate(4deg) scale(.9); } to { transform: rotate(14deg) scale(1.08); } }
.light-empty, .star-empty { color: var(--muted); font: italic 1rem/1.5 var(--serif); }
.star-sky { min-height: 350px; margin-top: 1rem; padding: clamp(1.7rem, 3vw, 2.5rem); background: radial-gradient(circle at 85% 12%, #657967 0, transparent 42%), #344a3c; color: #faf7ed; }
.star-sky .lights-visual-label { color: #e3c79d; }
.star-sky h3 { color: #fffdf6; }
.star-sky p:not(.lights-visual-label), .star-sky .star-empty { color: #e0e8dd; }
.star-list { gap: .65rem 1.05rem; }
.star-item { margin: 0; }
.star-button { width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: #f1d8a7; font-size: 1.5rem; cursor: pointer; transition: transform .2s ease, color .2s ease; }
.star-button:hover { color: white; transform: scale(1.2); }
.more-stars { margin-top: 1.3rem; padding: .55rem .8rem; border: 1px solid #cbd8c7; background: transparent; color: white; font: 600 .8rem var(--sans); cursor: pointer; }
.more-stars[hidden] { display: none; }
.star-dialog { width: min(90vw, 470px); padding: 2.3rem; border: 1px solid #d4ddce; background: var(--white); color: var(--ink); box-shadow: 0 15px 60px #17251bcc; text-align: center; }
.star-dialog::backdrop { background: #1d2d24b8; }
.star-dialog-close { position: absolute; right: .8rem; top: .55rem; border: 0; background: transparent; color: var(--green-deep); font-size: 1.5rem; cursor: pointer; }
.star-dialog-symbol { margin: 0 0 .3rem; color: var(--bronze); font-size: 1.6rem; }
.star-dialog h3 { margin-bottom: 1.2rem; color: var(--green-deep); font-size: 1.9rem; }
.star-dialog-name { margin-bottom: 0; color: var(--bronze); }

.train-section { color: #f5f6f0; background: var(--green-deep); }
.train-inner { max-width: var(--content); margin: auto; display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 9rem); }
.train-heading { position: sticky; top: 2rem; align-self: start; }
.train-heading .eyebrow { color: #d1ba96; }
.train-heading h2 { margin: 1.4rem 0 1.5rem; color: #fff; }
.train-heading h2 em { font-weight: 400; }
.train-heading > p:last-of-type { color: #d4dfd1; }
.track-illustration { display: block; width: min(115%, 550px); max-width: none; height: auto; margin: 2.6rem 0 -1.4rem -10%; transform: rotate(-5deg); opacity: .78; pointer-events: none; }
.train-text { padding-left: clamp(1.3rem, 3vw, 3rem); border-left: 1px solid #9cac9c; font: clamp(1.09rem, 1.55vw, 1.25rem)/1.78 var(--serif); }
.train-text p { margin: 0 0 1.2em; }
.train-text p:nth-of-type(8) { margin-top: 2.8em; }
.train-text .train-farewell { margin-top: 2.4em; color: #f4e7ce; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.4; }
.until-then { margin-top: 3rem !important; margin-bottom: 0 !important; color: #d7c5a9; font-style: italic; }

.gerti-section { background: var(--paper); }
.gerti-section .section-heading { margin-bottom: 3rem; }
.roles { max-width: 900px; margin: 0 auto 4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.roles > span, .roles > button { min-width: 128px; padding: .75rem 1.1rem; border: 1px solid var(--line); background: var(--white); color: var(--green-deep); text-align: center; font: clamp(1rem, 1.4vw, 1.2rem)/1.25 var(--serif); }
.roles > .role-photo-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-color: #b5c4b2; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.role-photo-trigger span { color: var(--bronze); font: .9rem var(--sans); }
.roles > .role-photo-trigger:hover, .roles > .role-photo-trigger[aria-expanded="true"] { border-color: var(--bronze); background: #f5f2ea; transform: translateY(-2px); }
.role-photo-trigger:focus-visible, .role-photo-close:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.role-photo[hidden] { display: none; }
.role-photo { position: relative; max-width: 900px; margin: -2rem auto 3.5rem; padding: .8rem; border: 1px solid #d7dfd3; background: var(--white); box-shadow: 0 18px 45px #31403420; }
.role-photo img { display: block; width: 100%; height: auto; }
.role-photo-portrait { max-width: 610px; }
.role-photo-portrait img { width: auto; max-width: 100%; max-height: 72vh; margin: auto; }
.role-photo figcaption { padding: .8rem .3rem .1rem; color: var(--muted); font-size: .82rem; }
.role-photo-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #fffefaeb; color: var(--green-deep); font: 1.4rem/1 var(--sans); cursor: pointer; box-shadow: 0 2px 12px #31403444; }
.part-quote { max-width: 770px; margin: auto; padding: 1.2rem 2rem 0; border-top: 1px solid var(--bronze-light); text-align: center; }
.part-quote p { margin: 1.2rem 0; font: italic clamp(1.45rem, 2.4vw, 2.2rem)/1.45 var(--serif); color: var(--green-deep); }
.part-quote cite { color: var(--bronze); font: 600 .76rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }

.gallery-section { background: #eff2ed; }
.gallery-grid { max-width: var(--content); margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1.4rem; }
.gallery-item { min-width: 0; margin: 0; }
.gallery-item a { display: block; height: 390px; overflow: hidden; background: #e4e9e1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item a:hover img { transform: scale(1.035); }
.gallery-item figcaption { padding-top: .8rem; color: var(--muted); font-size: .84rem; }
.gallery-item.gallery-aupair { grid-column: 1 / -1; width: min(100%, 420px); justify-self: center; }
.gallery-item.gallery-aupair a { height: auto; aspect-ratio: 1002 / 1570; background: #e4e4e1; }
.gallery-aupair img { object-fit: contain; }
.gallery-family-heading { grid-column: 1 / -1; }
.gallery-family-heading .eyebrow { margin-bottom: .35rem; }
.gallery-family-heading h3 { margin-bottom: 0; color: var(--green-deep); font-size: clamp(1.8rem, 3vw, 2.5rem); }
.gallery-item.gallery-young { grid-column: 1 / -1; width: min(100%, 420px); justify-self: center; }
.gallery-item.gallery-young a { height: auto; aspect-ratio: 755 / 1320; background: #e4e4e1; }
.gallery-young img { object-fit: contain; }
.gallery-subheading { grid-column: 1 / -1; margin: 1.6rem 0 0; padding-top: 1.5rem; border-top: 1px solid #cfd8cc; color: var(--green-deep); font-size: clamp(1.8rem, 3vw, 2.5rem); }
.gallery-item.gallery-wedding a { height: auto; aspect-ratio: 3 / 4; background: #e4e4e1; }
.gallery-wedding img { object-fit: contain; }
.gallery-item.gallery-memory a { height: auto; aspect-ratio: 4 / 3; background: #e4e4e1; }
.gallery-memory img { object-fit: contain; }
.gallery-item.gallery-travel { grid-column: 1 / -1; width: min(100%, 480px); justify-self: center; }
.gallery-item.gallery-travel a { height: auto; aspect-ratio: 1086 / 1448; background: #e4e4e1; }
.gallery-travel img { object-fit: contain; }

.memories-section { background: var(--white); }
.memory-grid { max-width: var(--content); margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.memory-card { min-height: 250px; padding: 1.65rem; background: var(--white); }
.memory-card > span { color: var(--bronze); font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.memory-card h3 { margin: 3.7rem 0 .6rem; color: var(--green-deep); font-size: 1.65rem; }
.memory-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.memory-card-link h3 { margin-top: 1.8rem; }
.memory-related { margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.memory-related .memory-related-label { margin-bottom: .4rem; color: var(--bronze); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.memory-related > p:not(.memory-related-label) { line-height: 1.45; }
.memory-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1rem; padding: .55rem .8rem; border: 1px solid var(--green-deep); color: var(--green-deep); font-size: .8rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.memory-link:hover { background: var(--green-deep); color: white; }
.memory-link span { font-size: 1rem; font-weight: 400; }
.memory-card-letter { grid-column: 1 / -1; padding: clamp(1.65rem, 4vw, 3.5rem); background: #fafbf8; }
.memory-card-letter h3 { margin: 1.1rem 0 1.8rem; font-size: clamp(1.8rem, 2.7vw, 2.4rem); }
.memory-letter { max-width: 72ch; }
.memory-card-letter .memory-letter p { margin: 0 0 1.2rem; color: var(--ink); font-size: 1rem; line-height: 1.75; }
.memory-card-letter .memory-letter p:last-child { margin-bottom: 0; }
.memory-letter strong { color: var(--green-deep); }
.memory-card-letter .memory-letter-signature { margin-top: 1.8rem; }
.memory-card-letter .memory-related { max-width: 72ch; margin-top: 2.5rem; }
.memory-card-short { grid-column: 1 / -1; min-height: 165px; }
.memory-card-short h3 { margin-top: 1.5rem; }

.archive-invite { position: relative; min-height: 610px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; background: #e9eee8; }
.archive-invite-flower { position: absolute; inset: 0 47% 0 0; background: url("../images/calla-parte.png") 80% 80% / auto 128% no-repeat; }
.archive-invite-content { position: relative; grid-column: 2; max-width: 570px; padding-left: clamp(2rem, 4vw, 5rem); }
.archive-invite-content h2 { margin: 0 0 1.5rem; color: var(--green-deep); }
.archive-invite-content > p:not(.eyebrow) { max-width: 480px; margin-bottom: 2rem; font-size: 1.1rem; }

.contribution-section { background: #f1f3ee; }
.contribution-inner { max-width: var(--content); margin: auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.contribution-story h2 { max-width: 650px; margin: 1.2rem 0 2rem; color: var(--green-deep); }
.contribution-lead { max-width: 600px; margin-bottom: 1.3rem; color: var(--green-deep); font: italic clamp(1.45rem, 2.3vw, 2rem)/1.4 var(--serif); }
.contribution-copy { max-width: 520px; color: var(--muted); font-size: 1.05rem; }
.contribution-explainer { max-width: 570px; margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid #cbd4c9; }
.contribution-explainer summary { width: fit-content; color: var(--green-deep); font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: var(--bronze-light); text-underline-offset: .35em; }
.contribution-explainer summary:focus-visible { outline: 3px solid var(--bronze); outline-offset: 5px; }
.contribution-explainer p { margin: 1rem 0 0; color: var(--muted); font-size: .91rem; }
.contribution-card { position: relative; padding: clamp(2rem, 4vw, 3.5rem); overflow: hidden; background: var(--white); border: 1px solid #d9dfd5; box-shadow: 0 20px 55px #3045330c; }
.contribution-card::before { content: ""; position: absolute; width: 15rem; height: 20rem; top: -5rem; right: -4rem; background: url("../images/calla-parte.png") 86% 65% / auto 110% no-repeat; opacity: .07; pointer-events: none; }
.contribution-card > * { position: relative; }
.contribution-card-symbol { display: block; margin-bottom: 2.6rem; color: var(--bronze); font: 1.1rem/1 var(--serif); }
.contribution-card-label { margin-bottom: 1.2rem; color: var(--bronze); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contribution-status { margin-bottom: .65rem; color: var(--green-deep); font: clamp(1.55rem, 2.35vw, 2.3rem)/1.25 var(--serif); }
.contribution-status strong { display: block; margin-top: .25rem; font-weight: 400; }
.contribution-status-note { min-height: 2.8rem; margin-bottom: 2.3rem; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.contribution-year { display: flex; align-items: center; width: 100%; margin-bottom: 1.4rem; color: var(--bronze); }
.contribution-year span { height: 1px; background: #b6c3b4; }
.contribution-year span:first-child { width: 25%; }
.contribution-year span:last-child { flex: 1; }
.contribution-year i { width: 11px; height: 11px; margin: 0 .5rem; border: 2px solid var(--bronze); border-radius: 50%; background: var(--white); }
.contribution-offer { margin-bottom: .1rem; color: var(--muted); font-size: .83rem; }
.contribution-price { margin-bottom: 1.5rem; color: var(--green-deep); font: 2rem/1.2 var(--serif); }
.contribution-button { display: block; width: 100%; min-height: 3.5rem; padding: .75rem 1.1rem; border: 1px solid var(--green-deep); background: var(--green-deep); color: white; font: 600 .92rem var(--sans); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.contribution-button:hover:not(:disabled) { background: #294432; transform: translateY(-2px); }
.contribution-button:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }
.contribution-button:disabled { border-color: #c4cdc1; background: #e7ebe5; color: #617060; cursor: not-allowed; }
.contribution-feedback { min-height: 1.6rem; margin: .85rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.closing { padding: clamp(6rem, 10vw, 10rem) 1.25rem clamp(5rem, 8vw, 8rem); background: var(--white); text-align: center; }
.closing .closing-art { display: block; width: min(100%, 720px); height: auto; margin: 0 auto clamp(2.5rem, 5vw, 4rem); box-shadow: 0 18px 50px #25332618; }
.closing blockquote { max-width: 650px; margin: 0 auto 3rem; color: var(--green-deep); font: italic clamp(1.45rem, 2.3vw, 2.1rem)/1.48 var(--serif); }
.closing-signature { margin: 0; color: var(--bronze); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.closing-signature-name { display: inline-block; margin-right: .35rem; font: 400 clamp(2rem, 4vw, 3rem)/1 "Dancing Script", "Segoe Script", "Apple Chancery", "Brush Script MT", cursive; letter-spacing: 0; text-transform: none; }
.site-footer { padding: 1.25rem clamp(1.25rem, 5vw, 5rem); display: flex; justify-content: space-between; gap: 1rem; background: var(--green-deep); color: #dce6d9; font-size: .76rem; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .site-credit { display: inline-flex; align-items: center; gap: .35rem; margin: 0 .1rem; padding: .17rem .52rem; border: 1px solid #b7c9b5; border-radius: 999px; background: #ffffff14; color: #fffdf6; font-weight: 700; letter-spacing: .02em; white-space: nowrap; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.site-footer .site-credit span { font-size: .95rem; line-height: 1; transition: transform .2s ease; }
.site-footer .site-credit:hover { border-color: #fffdf6; background: #ffffff28; text-decoration: none; transform: translateY(-1px); }
.site-footer .site-credit:hover span { transform: translate(2px, -2px); }
.site-footer .site-credit:focus-visible { outline: 2px solid #fffdf6; outline-offset: 3px; }

@media (max-width: 1050px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .site-nav { width: 100%; padding-bottom: .3rem; overflow-x: auto; scrollbar-width: thin; }
  .site-nav a { padding-bottom: .4rem; }
  .hero { min-height: 0; gap: 2.5rem; }
  .hero h1 { font-size: clamp(3.8rem, 7vw, 6rem); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .header-inner { padding: .9rem 1.2rem .7rem; }
  .wordmark { font-size: 1.25rem; }
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: .8rem; }
  .hero { padding: 4rem 1.25rem 4.5rem; display: flex; flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: clamp(3.75rem, 13vw, 6rem); }
  .hero-quote p { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .hero-quote br { display: none; }
  .hero-visual { width: min(100%, 460px); margin: 0 auto; padding-right: 1rem; }
  .hero-symbol { right: 0; }
  .section { padding: 5rem 1.25rem; }
  .timeline::before { left: 63px; }
  .timeline-entry { grid-template-columns: 65px 1fr; gap: 1.6rem; }
  .timeline-entry::before { left: 58px; }
  .timeline-year { font-size: 1.2rem; }
  .timeline.light-travel::after { left: 47px; }
  .lights-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .train-inner { display: block; }
  .train-heading { position: static; margin-bottom: 3rem; }
  .train-heading h2 br { display: none; }
  .track-illustration { width: min(100%, 460px); margin: 1.5rem auto -1rem; transform: rotate(-4deg); }
  .train-text { padding-left: 1.25rem; font-size: 1.08rem; }
  .roles { justify-content: flex-start; gap: .5rem; }
  .roles > span, .roles > button { min-width: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item a { height: min(100vw, 500px); }
  .memory-grid { grid-template-columns: repeat(2, 1fr); }
  .memory-card { min-height: 220px; }
  .archive-invite { display: block; padding-top: 20rem; }
  .archive-invite-flower { inset: 0 0 auto 0; height: 19rem; background-size: 100% auto; background-position: 82% 80%; }
  .archive-invite-content { max-width: 650px; padding: 0; }
  .contribution-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contribution-card { max-width: 600px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(3.1rem, 11.5vw, 4rem); }
  .life-dates { gap: .5rem; font-size: .8rem; }
  .family-tree { padding: 1.2rem; }
  .family-tree-parents, .family-tree-children { gap: .4rem; }
  .family-tree-person { padding: .7rem .3rem; }
  .family-tree-person strong { font-size: .92rem; }
  .date-separator { width: 15px; }
  .primary-link { width: 100%; }
  .timeline-entry { gap: .8rem; }
  .timeline-content h3 { font-size: 1.45rem; }
  .light-button { width: 100%; }
  .light-after { padding: 1.2rem; }
  .active-lights-list { gap: .9rem; }
  .memory-grid { grid-template-columns: 1fr; }
  .memory-card { min-height: 165px; }
  .memory-card h3 { margin-top: 1.6rem; }
  .site-footer { flex-direction: column; }
  .contribution-card { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .timeline.light-travel::after { display: none; }
  .light-path-active i::after { animation: none; }
}

@media print {
  :root { --paper: #fff; --white: #fff; --ink: #111; --muted: #333; --green-deep: #111; --bronze: #444; }
  @page { size: A4; margin: 15mm; }
  html { scroll-behavior: auto; }
  body { background: white; color: black; font-size: 10pt; }
  .site-header, .site-footer, .skip-link, .primary-link, .page-rule, .contribution-button, .contribution-feedback, .contribution-year, .family-tree, .light-button, .light-path, .light-turnstile, .light-after, .star-list, .active-lights-list, .more-stars, .star-dialog, .light-feedback { display: none !important; }
  .lights-section { background: white; }
  .lights-inner { display: block; }
  .burning-lights, .star-sky { display: none; }
  .hero, .section, .closing { max-width: none; min-height: 0; padding: 8mm 0; break-inside: auto; }
  .hero { display: grid; grid-template-columns: 1fr 60mm; gap: 8mm; }
  .hero h1 { font-size: 40pt; }
  .hero-visual { width: 60mm; padding: 0; }
  .hero-visual::before, .hero-symbol { display: none; }
  .portrait-mat { padding: 0; box-shadow: none; }
  .hero-quote p { font-size: 14pt; }
  .section-heading { margin-bottom: 6mm; }
  h2 { font-size: 25pt; }
  h3 { font-size: 15pt; }
  .section-intro { font-size: 10pt; }
  .timeline::before { left: 19mm; }
  .timeline-entry { grid-template-columns: 20mm 1fr; min-height: 0; gap: 6mm; }
  .timeline-entry::before { left: calc(19mm - 5px); }
  .timeline-content { padding-bottom: 8mm; }
  .train-section { background: white; color: black; }
  .train-inner { display: block; }
  .train-heading { position: static; }
  .train-heading h2, .train-heading .eyebrow, .train-heading > p:last-of-type { color: black; }
  .track-illustration { width: 75mm; margin: 2mm 0 6mm; transform: none; opacity: .85; }
  .train-text { padding-left: 6mm; border-color: #999; font-size: 10pt; }
  .train-text p { break-inside: avoid; }
  .train-text .train-farewell, .until-then { color: black; }
  .roles { margin-bottom: 8mm; }
  .roles > span, .roles > button { padding: 2mm 3mm; }
  .role-photo { display: none !important; }
  .gallery-grid { grid-template-columns: 50mm 1fr; }
  .gallery-item a { height: 55mm; }
  .gallery-item.gallery-aupair { width: 50mm; }
  .gallery-item.gallery-young { width: 50mm; }
  .gallery-item.gallery-travel { width: 50mm; }
  .gallery-item.gallery-aupair a, .gallery-item.gallery-young a, .gallery-item.gallery-wedding a, .gallery-item.gallery-memory a, .gallery-item.gallery-travel a { height: 65mm; aspect-ratio: auto; }
  .gallery-item figcaption { font-size: 8pt; }
  .memory-grid { display: block; border: 0; background: white; }
  .memory-card { display: none; }
  .memory-card-letter { display: block; min-height: 0; padding: 0; background: white; }
  .memory-card-letter h3 { margin: 5mm 0; font-size: 20pt; }
  .memory-card-letter .memory-letter p { font-size: 10pt; line-height: 1.5; break-inside: avoid; }
  .archive-invite { display: block; min-height: 0; background: white; }
  .archive-invite-flower { display: none; }
  .archive-invite-content { max-width: none; padding: 0; }
  .contribution-section { background: white; }
  .contribution-inner { display: block; }
  .contribution-card { max-width: none; margin-top: 7mm; padding: 5mm; box-shadow: none; }
  .contribution-card::before { display: none; }
  .closing { break-before: page; }
  .closing .closing-art { width: 130mm; max-width: 100%; margin-bottom: 8mm; box-shadow: none; }
  a[href] { text-decoration: none; }
}
