/* The Akoson Family — site styles
   After the family's chosen reference (the "Bohu" index-2 layout): white and soft blush
   grounds, a white-to-mauve gradient masthead, very large thin display lettering (Italiana),
   DM Sans text, square dusty-mauve buttons, tilted "polaroid" photographs and a mauve footer.
   The Papa Akoson memorial pages (body.memorial) use a solemn warm-charcoal and rose-gold version. */

:root {
  --white: #ffffff;
  --mist: #f7f3f2;
  --blush: #f3eae8;
  --rose: #e6d6d3;
  --mauve: #b59e9c;
  --plum: #806967;
  --plum-ink: #6e5755;          /* dark enough for small text on white */
  --ink: #4c4646;
  --heading: #041117;
  --muted: #7a7271;
  --bg: var(--white);
  --surface: var(--white);
  --soft: var(--mist);
  --accent: var(--plum-ink);
  --line: #e9dfdd;
  --masthead: linear-gradient(180deg, #ffffff 0%, #f1e9e8 48%, #cdb9b6 100%);
  --display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 30px 60px -30px rgba(60, 35, 33, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body.memorial {
  --bg: #1d1718;
  --surface: #2a2223;
  --soft: #2a2223;
  --blush: #2a2223;
  --ink: #d9cfcd;
  --heading: #f8f0ee;
  --muted: #b5a9a7;
  --accent: #e2c3b4;
  --line: rgba(226, 195, 180, .22);
  --masthead: radial-gradient(ellipse 80% 70% at 50% 100%, #3b2e2f 0%, #231c1d 60%, #1d1718 100%);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
body.memorial :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }
strong, b { font-weight: 600; color: var(--heading); }
::selection { background: var(--rose); color: #041117; }

h1, h2, h3 { font-family: var(--display); color: var(--heading); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1.15em; }

.wrap { width: min(100% - 2.5rem, 1170px); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, 1400px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--heading); color: #fff; padding: .6rem 1rem; z-index: 80; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font: 500 .78rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; }
.lead { font-size: 1.16rem; line-height: 1.8; }
.rule { height: 1px; width: 110px; margin: 1.8rem auto; background: var(--mauve); position: relative; }
.rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--mauve); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px var(--bg); }
.section.alt .rule::after { box-shadow: 0 0 0 6px var(--soft); }
.rule.left { margin-left: 0; }
.theme-line { font: 500 .76rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }

/* Buttons — square, as in the reference */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 2rem; background: var(--plum); color: #fff; border: 1px solid var(--plum); font: 600 1rem/1.2 var(--sans); text-transform: capitalize; text-decoration: none; border-radius: 0; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--heading); border-color: var(--heading); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--plum-ink); }
.btn.light:hover { background: var(--heading); border-color: var(--heading); color: #fff; }
.btn.ghost { background: transparent; color: var(--heading); border-color: currentColor; }
.btn.ghost:hover { background: var(--heading); color: #fff; border-color: var(--heading); }
.btn.accent { background: var(--plum); }
.btn.gold, body.memorial main .btn { background: transparent; color: var(--accent); border-color: rgba(226, 195, 180, .6); }
.btn.gold:hover, body.memorial main .btn:hover { background: var(--accent); border-color: var(--accent); color: #1d1718; }
body.memorial main .btn.ghost { color: var(--heading); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* Masthead: header and hero share the gradient */
.masthead { background: var(--masthead); position: relative; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; position: relative; z-index: 20; }
.brand { text-decoration: none; color: var(--heading); display: inline-grid; line-height: 1; }
.brand-name { font: 700 1.9rem/1 var(--sans); letter-spacing: -.02em; }
.brand-name i { font-style: normal; color: var(--mauve); }
.brand-sub { font: 500 .6rem var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.brand:hover { color: var(--heading); }
.menu-btn { display: inline-flex; align-items: center; gap: .75rem; background: none; border: 0; color: var(--heading); font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: .7rem 0; }
.lines { width: 30px; height: 9px; border-block: 1.5px solid currentColor; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--heading); font: 500 .84rem var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover, .site-nav a.on, .site-nav a[aria-current] { color: var(--plum); }
@media (min-width: 1240px) {
  .site-nav { display: block; }
  .site-nav > ul { display: flex; gap: 1.55rem; }
  .site-nav > ul > li > a { display: block; padding: .6rem 0; position: relative; }
  .site-nav > ul > li > a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: currentColor; }
  .has-sub { position: relative; }
  .site-nav .sub { display: none; position: absolute; top: 100%; left: -1.2rem; min-width: 240px; background: #fff; padding: .6rem 0; box-shadow: 0 24px 50px -24px rgba(60, 35, 33, .5); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .site-nav .sub a { display: block; padding: .65rem 1.3rem; color: #041117; text-transform: none; letter-spacing: 0; font-size: .95rem; }
  .site-nav .sub a:hover, .site-nav .sub a[aria-current] { color: var(--plum); }
  .menu-label { display: none; }
}
body.memorial .site-nav a, body.memorial .brand, body.memorial .menu-btn { color: #f8f0ee; }
body.memorial .site-nav a:hover, body.memorial .site-nav a.on { color: var(--accent); }
body.memorial .site-nav .sub a { color: #041117; }

/* Full-screen menu */
.menu-overlay { position: fixed; inset: 0; z-index: 60; background: var(--plum); color: #fff; overflow-y: auto; padding: 4.5rem 1.5rem 3rem; text-align: center; }
.menu-overlay .brand { margin: 0 auto 2rem; color: #fff; }
.menu-overlay .brand-name i { color: var(--rose); }
.menu-overlay .brand-sub { color: var(--rose); }
.menu-close { position: absolute; top: 1.1rem; right: 1.2rem; width: 48px; height: 48px; background: none; border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.menu-overlay ul { list-style: none; margin: 0; padding: 0; }
.menu-overlay nav > ul > li > a { display: block; padding: .35rem; font: 400 clamp(1.8rem, 5vw, 2.6rem)/1.15 var(--display); color: #fff; text-decoration: none; }
.menu-overlay nav > ul > li > a:hover, .menu-overlay nav > ul > li > a.on { color: var(--rose); }
.menu-overlay .sub { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.3rem; margin: .1rem 0 .7rem; }
.menu-overlay .sub a { font: 500 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); text-decoration: none; display: inline-block; padding: .4rem 0; }
.menu-overlay .sub a:hover, .menu-overlay .sub a[aria-current] { color: #fff; }
.menu-foot { margin-top: 2.2rem; font: 500 .72rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--rose); }

/* Home hero — giant lettering around a tall arched photograph */
.hero { position: relative; display: grid; overflow: hidden; padding: 1rem 0 0; }
.hero-title { margin: 0; font-size: clamp(4.2rem, 19vw, 11rem); line-height: .88; text-transform: uppercase; letter-spacing: .02em; color: #041117; position: relative; z-index: 3; pointer-events: none; }
.hero-title span { display: block; }
.hero-title .w0 { font: 500 .78rem/1 var(--sans); letter-spacing: .5em; color: var(--plum-ink); margin: 0 0 1.2rem .3rem; }
.hero-title .w2 { text-align: right; }
.hero-photo { position: relative; z-index: 2; justify-self: center; width: min(78vw, 430px); margin-top: 1.5rem; }
.hero-photo img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; object-position: 50% 22%; border-radius: 999px 999px 0 0; }
.hero-intro { position: relative; z-index: 3; padding: 1.8rem 0 2.5rem; max-width: 30rem; font-size: 1rem; color: #3d3535; }
.hero-intro b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: #041117; }
.hero-intro p { margin-bottom: .8rem; }
.hero-badge { position: absolute; z-index: 4; width: 120px; height: 120px; right: 4%; top: 38%; }
.hero-badge svg { width: 100%; height: 100%; display: block; }
.hero-badge text { font: 500 9.2px var(--sans); letter-spacing: 3.4px; text-transform: uppercase; fill: #6e5755; }
@media (min-width: 900px) {
  .hero { min-height: max(640px, min(94vh, 920px)); padding-top: 0; }
  .hero > * { grid-area: 1 / 1; }
  .hero-title { align-self: stretch; display: grid; grid-template-rows: auto auto 1fr auto; font-size: clamp(6rem, 12.5vw, 11rem); padding: 3vh 0 16.5rem; }
  .hero-title .w2 { grid-row: 4; text-align: left; }
  .hero-photo { align-self: end; width: clamp(330px, 30vw, 460px); margin: 0 0 0 30%; }
  .hero-intro { align-self: end; justify-self: start; max-width: 21rem; padding: 0 0 2.2rem; }
  .hero-badge { top: 44%; right: 7%; width: 150px; height: 150px; }
}
@media (min-width: 1300px) { .hero-photo { margin-left: 26%; } }

/* Number circles under the hero (the reference's countdown) */
.circles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 1000px; margin: 0 auto; }
.circles div { aspect-ratio: 1; border-radius: 50%; background: var(--blush); display: grid; place-content: center; text-align: center; position: relative; }
.circles div::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid #fff; }
.circles b { font: 400 clamp(2.4rem, 6vw, 3.4rem)/1 var(--display); color: #041117; }
.circles span { font-size: .82rem; color: var(--muted); margin-top: .35rem; padding: 0 .8rem; line-height: 1.35; }
@media (min-width: 760px) { .circles { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* Tilted polaroids with names (the reference's couple section) */
.pair { display: grid; gap: 2.5rem; align-items: center; }
.pair .who h3 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: .35rem; }
.pair .who p { margin: 0; font-size: .98rem; }
.pair .who small { display: block; font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.polaroids { display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; max-width: 560px; margin: 0 auto; }
.polaroid { margin: 0; background: #fff; padding: 10px 10px 12px; box-shadow: var(--shadow); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.polaroid:first-child { transform: rotate(-6deg); margin-right: -12%; }
.polaroid:last-child { transform: rotate(5deg); margin-top: 18%; position: relative; z-index: 1; }
.polaroids .knot { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 300 1.7rem/1 var(--sans); color: var(--plum); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); }
@media (min-width: 960px) {
  .pair { grid-template-columns: 1fr 560px 1fr; gap: 3rem; }
  .pair .who:first-child { text-align: right; align-self: start; margin-top: 18%; }
  .pair .who:last-child { align-self: end; margin-bottom: 14%; }
}

/* Big centred quotation */
.big-quote { text-align: center; }
.big-quote p { font: 400 clamp(2.3rem, 5.8vw, 5rem)/1.12 var(--display); color: #041117; max-width: 18ch; margin: 0 auto; text-wrap: balance; }
body.memorial .big-quote p { color: var(--heading); }
.big-quote .mark { display: block; font: 400 6rem/0.6 var(--display); color: var(--mauve); }

/* Photo band with translucent panels (the reference's story section) */
.story-band { position: relative; color: #fff; }
.story-band > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; aspect-ratio: 16 / 9; }
.story-panels { display: grid; gap: 0; }
.story-panel { background: var(--plum); padding: clamp(1.8rem, 4vw, 3rem); --heading: #fff; --accent: #f3e3df; }
.story-panel h3 { color: #fff; margin-bottom: .6rem; }
.story-panel p { color: #f6eeec; font-size: .98rem; margin-bottom: .8rem; }
.story-panel a { color: #fff; }
/* The whole photograph stays visible; the panels sit below it, overlapping only its bottom edge. */
@media (min-width: 900px) {
  .story-band > img { aspect-ratio: 16 / 9; max-height: none; }
  .story-panels { grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: -4.5rem; position: relative; z-index: 1; padding-bottom: 1rem; }
  .story-panel:nth-child(2) { text-align: right; }
}

/* Stacked photo pile (the reference's portfolio section) */
.pile { position: relative; width: min(100%, 440px); height: 470px; margin: 0 auto; }
.pile .photo { position: absolute; width: 62%; background: #fff; padding: 8px; box-shadow: var(--shadow); }
.pile .photo img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%; }
.pile .photo figcaption { display: none; }
.pile .photo:nth-child(1) { left: 2%; top: 6%; transform: rotate(-8deg); }
.pile .photo:nth-child(2) { right: 2%; top: 0; transform: rotate(7deg); }
.pile .photo:nth-child(3) { left: 19%; top: 15%; transform: rotate(-1deg); z-index: 2; }

/* Card on a blush band beside a photo (the reference's RSVP section) */
.invite { position: relative; }
.invite-word { font: 400 clamp(3rem, 10vw, 8rem)/1 var(--display); text-transform: uppercase; color: #e3d5d2; text-align: center; margin: 0 0 1.5rem; letter-spacing: .03em; }
.invite-grid { display: grid; gap: 0; }
.invite-card { background: #fff; padding: clamp(1.8rem, 4vw, 3.4rem); box-shadow: var(--shadow); position: relative; z-index: 1; }
.invite-card h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.invite-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.invite-card li { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.invite-grid > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .invite-grid { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .invite-card { margin-right: -5rem; margin-top: 6rem; }
  .invite-grid > img { aspect-ratio: 4 / 4.4; }
}
.section.blush-top { background: linear-gradient(180deg, var(--blush) 0 46%, var(--bg) 46%); }

/* Photograph and list panel (the reference's plans section) */
.plans { display: grid; background: var(--soft); }
.plans > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; aspect-ratio: 4 / 5; }
.plans-body { padding: clamp(2rem, 5vw, 4.5rem); }
.plans-body h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.plans-body h3 { font-size: 1.9rem; margin: 2rem 0 .8rem; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plan-list li span:last-child { color: var(--muted); text-align: right; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } .plans > img { aspect-ratio: auto; } }

/* Inner page hero */
.page-hero { text-align: center; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.page-hero h1 { max-width: 18ch; margin-inline: auto; }
.page-hero .lead { max-width: 660px; margin: 0 auto 1.2rem; color: #3d3535; }
body.memorial .page-hero .lead { color: var(--ink); }
.hero-sub { font: 400 1.9rem var(--display); color: var(--accent); margin: 0 0 1rem; }
.crumbs { margin: 1.6rem 0 0; font: 500 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--heading); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--plum); }
.crumbs i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mauve); margin: 0 .8em; vertical-align: middle; }

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section.alt { background: var(--soft); }
.section.sand, .section.sun { background: var(--blush); }
.section-head { text-align: center; margin: 0 auto 3rem; max-width: 760px; }
.section-head p:last-child { margin-bottom: 0; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } .split.photo-narrow { grid-template-columns: 380px 1fr; } }

/* Prose pages */
.prose h2 { clear: both; margin-top: 2em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.prose .photo { max-width: 380px; margin: 1.8rem auto; }
.prose .photo.wide { max-width: 100%; }
@media (min-width: 760px) {
  .prose .photo.right { float: right; width: 290px; margin: .4rem 0 1.4rem 2.6rem; }
  .prose .photo.left { float: left; width: 290px; margin: .4rem 2.6rem 1.4rem 0; }
  .prose .photo.right img, .prose .photo.left img { background: #fff; }
}
.prose::after { content: ""; display: block; clear: both; }
.prose blockquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 1px solid var(--mauve); font: 400 1.8rem/1.3 var(--display); color: var(--heading); }
.prose blockquote p { margin: 0; }
.prose .closing { font: 400 1.75rem/1.3 var(--display); color: var(--heading); margin-bottom: .35em; }
.prose .signature { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.signature strong { display: block; font: 400 2rem var(--display); color: var(--heading); }
.names { margin: 1.5rem 0; padding: 1.5rem 1.5rem 1.5rem 3.2rem; background: var(--soft); font: 400 1.5rem/1.5 var(--display); color: var(--heading); }
.names li { padding: .1rem 0; }
.names li::marker { color: var(--accent); font: 500 .8rem var(--sans); }

.quote-feature { text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.quote-feature p { font: 400 clamp(2rem, 4.8vw, 3.4rem)/1.2 var(--display); color: var(--heading); max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.quote-feature p.long { max-width: 26ch; }

/* Photographs */
.photo { margin: 0; }
.photo a { display: block; cursor: zoom-in; overflow: hidden; background: var(--blush); }
.photo img { width: 100%; transition: transform .7s var(--ease); }
.photo a:hover img { transform: scale(1.04); }
.photo figcaption { padding: .75rem 0 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.photo.plain figcaption { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.8rem; }
.chip { font: 500 .8rem var(--sans); letter-spacing: .04em; padding: .7rem 1.1rem; border: 1px solid var(--line); background: transparent; color: var(--heading); border-radius: 0; cursor: pointer; transition: background-color .2s, border-color .2s; }
.chip:hover { border-color: var(--plum); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
span.chip { cursor: default; background: var(--surface); }
span.chip:hover { border-color: var(--line); }
.gallery { columns: 2; column-gap: 1rem; }
.gallery .photo { break-inside: avoid; margin-bottom: 1.5rem; }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: 1.6rem; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }
.empty { text-align: center; max-width: 560px; margin: 1rem auto; padding: 2.4rem 1.5rem; border: 1px dashed var(--mauve); color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; } }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tiles .photo img { aspect-ratio: 3 / 4.2; object-fit: cover; object-position: 50% 22%; }
.tiles .photo figcaption { display: none; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(5, 1fr); } .tiles .photo:nth-child(even) { margin-top: 3rem; } }

.video-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.video-grid.three { max-width: 920px; margin-inline: auto; }
.video { margin: 0; }
.video video { width: 100%; background: #1d1718; aspect-ratio: 9 / 16; object-fit: contain; }
.video figcaption { padding-top: .8rem; font-size: .84rem; color: var(--muted); }
.video figcaption b { display: block; font: 400 1.55rem/1.15 var(--display); margin-bottom: .2rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: none; align-items: center; justify-content: center; }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(29, 23, 24, .95); }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; margin: 0 auto; }
.lightbox figcaption { color: #f3eae8; font: 400 1.45rem/1.35 var(--display); padding: 1rem 1rem 0; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); width: 48px; height: 48px; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }

/* Cards */
.cards { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); padding: 2.6rem 2.2rem; }
.section:not(.alt):not(.sand) .card { background: var(--soft); }
.card h3 { font-size: 2.1rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { font: 500 .74rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 1rem; }
.card ul { margin: 0 0 1em; padding-left: 1.2rem; }
.card blockquote { margin: 0 0 1.2rem; font: 400 1.6rem/1.35 var(--display); color: var(--heading); }
.card.value { text-align: center; }
.card.value .num { width: 74px; height: 74px; margin: 0 auto 1.3rem; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font: 400 1.8rem/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--plum-ink); box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px var(--rose); }

/* Memorial */
.memorial-band { background: #1d1718; background-image: radial-gradient(ellipse 80% 80% at 70% 50%, #3b2e2f 0%, #1d1718 70%); color: #d9cfcd; padding: clamp(3.5rem, 8vw, 6.5rem) 0; --heading: #f8f0ee; --accent: #e2c3b4; --line: rgba(226, 195, 180, .22); --surface: #2a2223; --muted: #b5a9a7; --bg: #1d1718; }
.memorial-band .btn.light, .memorial-band .btn.gold { background: transparent; color: #e2c3b4; border-color: rgba(226, 195, 180, .6); }
.memorial-band .btn.light:hover, .memorial-band .btn.gold:hover { background: #e2c3b4; color: #1d1718; }
.memorial-name { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: .15em; }
.dates { font: 400 2rem var(--display); color: var(--accent); letter-spacing: .12em; margin: 0 0 1.1rem; }
.known-as { font: 400 2rem var(--display); margin: 0 0 .4rem; color: var(--heading); }
.titles { font: 500 .76rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.memorial-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem); color: var(--ink); }
.memorial-hero .photo img, .memorial-band .photo img { border-radius: 999px 999px 0 0; }
.memorial-hero .photo, .memorial-band .photo { max-width: 400px; margin-inline: auto; width: 100%; }

/* Family tree */
.tree { text-align: center; }
.gen-label { font: 500 .76rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.2rem; }
.couple { display: grid; gap: .6rem; justify-items: center; }
@media (min-width: 700px) { .couple { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; } .couple .person:first-child { justify-self: end; } .couple .person:last-child { justify-self: start; } }
.person { background: var(--soft); padding: 1.8rem 1.6rem; width: min(100%, 360px); }
.person strong { display: block; font: 400 2rem/1.1 var(--display); color: var(--heading); }
.person span { display: block; font-size: .92rem; color: var(--muted); margin-top: .35rem; }
.married { font: 400 1.6rem var(--display); color: var(--accent); margin: 0; }
.stem { width: 1px; height: 3.4rem; background: var(--mauve); margin: 0 auto; }
.branches { text-align: left; max-width: 780px; margin: 2rem auto 0; list-style: none; padding: 0; counter-reset: child; }
.branches > li { counter-increment: child; margin-bottom: .6rem; }
.branches details { background: var(--soft); }
.branches summary { cursor: pointer; padding: 1.15rem 1.3rem 1.15rem 3.8rem; position: relative; font: 400 1.75rem/1.2 var(--display); color: var(--heading); }
.branches summary::before { content: counter(child, decimal-leading-zero); position: absolute; left: 1.3rem; top: 1.45rem; font: 500 .76rem var(--sans); letter-spacing: .1em; color: var(--accent); }
.branches summary small { display: block; font: 400 .9rem var(--sans); color: var(--muted); margin-top: .2rem; }
.branch-body { padding: 0 1.3rem 1.4rem 3.8rem; font-size: .96rem; }
.branch-body p { margin: 0 0 .5rem; }
.branch-body .label { font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: .9rem; }
.branch-body ul { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--mauve); }
.branch-body li { padding: .2rem 0; font: 400 1.35rem/1.35 var(--display); color: var(--heading); }
.branch-body li ul { margin: .2rem 0 .4rem .3rem; }
.branch-body li li { font-size: 1.2rem; }
.branch-body small { font: 400 .8rem var(--sans); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 760px; margin: 0 auto; text-align: center; }
.stats div { aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; background: var(--blush); }
.section.alt .stats div { background: #fff; }
.stats b { display: block; font: 400 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); color: var(--heading); }
.stats span { font-size: .78rem; color: var(--muted); padding: 0 .6rem; line-height: 1.3; margin-top: .3rem; }

/* The name */
.name-eq { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .35em; font: 400 clamp(2.6rem, 10vw, 6rem)/1.05 var(--display); color: var(--heading); letter-spacing: .06em; margin: 2rem 0 .5rem; }
.name-eq i { font-style: normal; color: var(--mauve); }
.name-steps { display: grid; gap: 1rem; margin: 2.5rem 0; }
@media (min-width: 700px) { .name-steps { grid-template-columns: 1fr 1fr; } }
.name-steps div { background: var(--soft); padding: 2.2rem 1.6rem; text-align: center; }
.name-steps b { display: block; font: 400 2.8rem var(--display); color: var(--heading); letter-spacing: .04em; }
.name-steps span { color: var(--accent); font: 400 1.5rem var(--display); }

/* Archive lists, arrangements, forms */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .1rem; border-bottom: 1px solid var(--line); }
.doc-list small { color: var(--muted); }
.pill { flex: none; font: 500 .66rem var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .35rem .7rem; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.live { border-color: var(--mauve); color: var(--accent); }
.arrangements { margin: 0; border-top: 1px solid var(--line); }
.arrangements div { display: grid; gap: .2rem; padding: 1.05rem .1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .arrangements div { grid-template-columns: 240px 1fr; gap: 1.5rem; } .arrangements.record div { grid-template-columns: 150px 1fr; } }
.arrangements dt { font: 500 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding-top: .3rem; }
.arrangements dd { margin: 0; color: var(--muted); font-style: italic; }
.arrangements.record dd { font-style: normal; color: var(--ink); }
.notice { border: 1px solid var(--mauve); padding: 1.5rem; text-align: center; font: 400 1.7rem/1.35 var(--display); color: var(--heading); margin: 0 0 2.2rem; }
.notice.small { font: 400 .96rem/1.65 var(--sans); text-align: left; color: var(--ink); }
.note { font-size: .9rem; color: var(--muted); border-left: 1px solid var(--mauve); padding-left: 1rem; }
.resources { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1rem; }
.resource { background: var(--bg); padding: 1.4rem; display: grid; gap: .6rem; justify-items: start; }
.resource b { font: 400 1.6rem var(--display); color: var(--heading); }
.announcement { background: var(--soft); padding: clamp(1.8rem, 5vw, 3.4rem); }

.form { display: grid; gap: 1.4rem; }
.form label { display: grid; gap: .3rem; font: 500 .8rem var(--sans); color: var(--heading); }
.form input, .form textarea { font: 400 1rem var(--sans); padding: .85rem 0; border: 0; border-bottom: 1px solid #d8cac7; background: transparent; color: #041117; border-radius: 0; width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--plum); }
.form textarea { min-height: 120px; resize: vertical; }
.privacy { font-size: .9rem; color: var(--muted); border-left: 1px solid var(--mauve); padding-left: 1rem; }

.faq h3.q { font-size: 1.85rem; margin: 1.8em 0 .45em; }
.faq h2 + h3.q { margin-top: .6em; }

/* Footer — dusty mauve, as in the reference */
.site-footer { background: var(--plum); color: #f3e9e7; padding: clamp(3.5rem, 8vw, 5.5rem) 0 1.5rem; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.8fr .8fr 1fr; gap: 4rem; } }
.site-footer .brand { color: #fff; margin-bottom: 1.6rem; }
.site-footer .brand-name i, .site-footer .brand-sub { color: var(--rose); }
.foot-big { font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1.22 var(--display); color: #fff; margin: 0 0 1rem; max-width: 24ch; }
.footer-motto { font-size: .95rem; color: #f3e3df; margin: 0; }
.site-footer h2 { font-size: 1.85rem; color: #fff; margin-bottom: 1rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; font-size: .96rem; }
.footer-nav a { color: #f3e9e7; text-decoration: none; display: inline-block; padding: .3rem 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .84rem; color: #eadbd8; display: grid; gap: .3rem; }
.foot-bottom p { margin: 0; }
body.memorial .site-footer { background: #151112; }

/* Gentle fade-up as sections scroll into view */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.polaroid.reveal.in:first-child { transform: rotate(-6deg); }
.polaroid.reveal.in:last-child { transform: rotate(5deg); }

@media (prefers-reduced-motion: reduce) { html, html:focus-within { scroll-behavior: auto; } .photo img, .btn { transition: none; } .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .site-header, .menu-overlay, .site-footer nav, .btn-row, .hero-badge { display: none; } body { background: #fff; color: #000; } .masthead { background: none; } }
@media (max-width: 599px) { .hero-badge { display: none; } }
@media (min-width: 900px) and (max-width: 1299px) { .hero-badge { right: 1.5%; top: 30%; width: 124px; height: 124px; } }

/* Films under the family photograph on the home page */
.story-films { display: grid; gap: 1.5rem; padding: 2.5rem 0 1rem; color: var(--ink); }
.video:not(.tall) video { aspect-ratio: 16 / 9; }
.story-films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-films .video:not(.tall) { grid-column: 1 / -1; }
@media (min-width: 900px) { .story-films { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.4fr); align-items: start; } .story-films .video:not(.tall) { grid-column: auto; } }
@media (min-width: 760px) { .video-grid .video:not(.tall) { grid-column: span 2; } }

/* Small helpers (instead of inline styles, so the security policy can forbid them) */
.split.top { align-items: start; }
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.section.flush-top { padding-top: 0; }
.known-as.plum { color: var(--plum-ink); }
.big-quote .theme-line { font: 500 .78rem var(--sans); max-width: none; }
.name-eq.small { font-size: clamp(2rem, 7vw, 3.2rem); }
h2.h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.card h2.h3 { font-size: 2.1rem; }

/* Contribution form */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { margin: -.6rem 0 0; }
.notice.small.success { border-color: #5f8a6b; }
.notice.small.error { border-color: #b4483c; }
.form button[disabled] { opacity: .6; cursor: progress; }
.arrangements dd.filled { font-style: normal; color: var(--ink); }
