.homepage-v41 {
    --homepage-paper: #fbf7f0;
    --homepage-paper-soft: #fffdf9;
    --homepage-ink: #241914;
    --homepage-muted: #5f5149;
    --homepage-wine: #7c1917;
    --homepage-wine-dark: #65110f;
    --homepage-line: #d9cabc;
    background: #ececea;
    color: var(--homepage-ink);
    font-family: Georgia, "Times New Roman", serif;
}

.homepage-v41 > :is(.site-header, main, .site-footer) {
    width: min(1280px, 100%);
    margin-inline: auto;
    box-shadow: 0 3px 20px rgb(60 43 32 / 16%);
}

.homepage-v41 main { overflow: hidden; background: var(--homepage-paper); }
.homepage-v41 .section-pad { position: relative; padding-inline: 6%; }
.homepage-v41 :is(h1, h2, h3, p) { text-wrap: pretty; }
.homepage-v41 .botanical { pointer-events: none; user-select: none; }

.homepage-v41 .site-header {
    height: 65px;
    padding-inline: 4%;
    border-color: #eee5dd;
    background: #fffdf9;
}

.homepage-v41 .site-header .menu-trigger { width: 36px; height: 36px; padding: 9px; }
.homepage-v41 .site-header .wordmark { display: flex; flex-direction: column; align-items: center; font-family: Georgia, "Times New Roman", serif; line-height: 1; }
.homepage-v41 .site-header .wordmark__name { font-size: 29px; }
.homepage-v41 .site-header .wordmark__tagline { display: block; margin-top: 5px; font: 600 5.8px/1.6 Arial, Helvetica, sans-serif; letter-spacing: .39em; }
.homepage-v41 .site-actions { gap: 8px; }
.homepage-v41 .site-header :is(.account-menu, .account-control),
.human-heritage-page .site-header :is(.account-menu, .account-control) { width: auto; max-width: none; flex-basis: auto; }
.homepage-v41 .site-header :is(.account-control__separator, .account-control__name),
.human-heritage-page .site-header :is(.account-control__separator, .account-control__name) { display: none; }

.homepage-hero {
    display: grid;
    grid-template-columns: 39% 61%;
    height: 395px;
    padding-block: 0;
    padding-right: 0 !important;
    overflow: hidden;
    background: #fdfaf5;
}

.homepage-hero__copy { position: relative; z-index: 2; padding-top: 36px; padding-right: 20px; }
.homepage-v41 .homepage-hero h1 { max-width: 410px; margin: 0 0 17px; font: 400 43px/1.01 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.homepage-v41 .homepage-hero__copy > p { max-width: 460px; margin: 0 0 17px; color: var(--homepage-ink); white-space: normal; font: 14.2px/1.43 Georgia, "Times New Roman", serif; }
.homepage-hero__art { position: relative; height: 100%; min-width: 0; overflow: hidden; }
.homepage-hero__art > img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { position: absolute; top: 12%; right: 8.5%; color: #8a7469; font-size: 18px; font-style: italic; line-height: 1.15; text-align: left; opacity: .9; transform: rotate(-8deg); }
.hero-botanical { position: absolute; z-index: 3; top: 14px; left: -36px; width: 105px; opacity: .4; }

.homepage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.homepage-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 12px; padding: 0 25px; border: 1px solid var(--homepage-wine); border-radius: 999px; font: 11px Arial, Helvetica, sans-serif; text-decoration: none; white-space: nowrap; }
.homepage-button--primary { background: var(--homepage-wine); color: white; }
.homepage-button--primary:hover { background: var(--homepage-wine-dark); }
.homepage-button--secondary { border-color: #7c6259; background: #fffdf9; color: #3d2a25; }
.homepage-button--compact { min-height: 37px; padding-inline: 21px; }
.homepage-button:is(:focus-visible, :hover), .homepage-text-link:focus-visible, .mini-button:focus-visible { outline-color: var(--homepage-wine); }
.homepage-quote { display: flex; align-items: center; gap: 12px; margin-top: 19px; color: #867870; font-size: 13px; }
.homepage-quote > span { display: block; width: 52px; height: 1px; background: #bda99a; }

.memory-forms { height: 283px; padding-top: 20px; padding-bottom: 18px; overflow: hidden; border-bottom: 1px solid #eee6dd; background: #fffdf9; }
.homepage-section-title { position: relative; z-index: 2; text-align: center; }
.homepage-v41 .homepage-section-title h2, .homepage-v41 .rule-title h2 { margin: 0 0 7px; font: 400 34px/1.08 Georgia, "Times New Roman", serif; }
.homepage-v41 .homepage-section-title p { max-width: 720px; margin: 0 auto; color: #4f453f; font: 13.1px/1.38 Georgia, "Times New Roman", serif; }
.forms-botanical { position: absolute; z-index: 1; top: 15px; opacity: .31; }
.forms-botanical--left { left: -38px; width: 135px; }
.forms-botanical--right { right: -34px; width: 130px; }
.memory-forms__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.memory-forms__grid article { position: relative; padding: 0 40px; text-align: center; }
.memory-forms__grid article + article { border-left: 1px solid #d9cec5; }
.homepage-v41 .memory-forms__grid h3 { margin: 8px 0 6px; font: 400 18.5px/1.2 Georgia, "Times New Roman", serif; }
.homepage-v41 .memory-forms__grid p { max-width: 270px; margin: 0 auto; font: 11.7px/1.4 Georgia, "Times New Roman", serif; }
.round-icon { display: grid; width: 46px; height: 46px; margin: 0 auto; overflow: hidden; place-items: center; border: 1.35px solid #9e3934; border-radius: 50%; background: #fffdf9; }
.round-icon img { width: 28px; height: 28px; object-fit: contain; }

.human-heritage { min-height: 397px; padding-top: 20px; padding-bottom: 20px; overflow: hidden; background: linear-gradient(90deg, #faf5ee, #f7eee4); }
.human-heritage__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.homepage-v41 .human-heritage__head h2 { margin: 0; font: 400 36px/1.04 Georgia, "Times New Roman", serif; }
.homepage-v41 .human-heritage__head p { margin: 2px 0 0; font: 15.3px/1.4 Georgia, "Times New Roman", serif; }
.homepage-text-link { margin-bottom: 10px; color: var(--homepage-wine); font: 10.3px Arial, Helvetica, sans-serif; text-decoration: none; }
.human-heritage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.heritage-card { display: flex; min-width: 0; min-height: 300px; flex-direction: column; align-items: center; padding-bottom: 10px; border: 1px solid #e1d6cb; background: #fffdf9; box-shadow: 0 4px 9px rgb(58 36 25 / 8%); text-align: center; }
.heritage-card__image { position: relative; display: grid; width: 100%; aspect-ratio: 21 / 10; flex: 0 0 auto; overflow: hidden; place-items: center; background: #e4ded5; text-decoration: none; }
.heritage-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.heritage-card__fallback { color: var(--homepage-wine); font: 400 28px/1 Georgia, "Times New Roman", serif; letter-spacing: .08em; }
.heritage-card__collective { width: 44px; height: 44px; border: 1px solid #a98e84; border-radius: 50%; }
.homepage-v41 .heritage-card h3 { margin: 7px 8px 1px; font: 400 16.6px/1.15 Georgia, "Times New Roman", serif; }
.heritage-card h3 a { text-decoration: none; }
.homepage-v41 .heritage-card__dates { margin: 0; font: 9.7px/1.3 Georgia, "Times New Roman", serif; }
.homepage-v41 .heritage-card__summary { display: -webkit-box; min-height: 42px; margin: 7px 12px 8px; overflow: hidden; font: 10.6px/1.32 Georgia, "Times New Roman", serif; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.heritage-card__actions { display: flex; justify-content: center; gap: 8px; margin-top: auto; }
.mini-button { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #9e7771; border-radius: 999px; font: 9.5px Arial, Helvetica, sans-serif; text-decoration: none; white-space: nowrap; }
.mini-button--filled { border-color: var(--homepage-wine); background: var(--homepage-wine); color: white; }

.rule-title { display: flex; align-items: center; justify-content: center; gap: 18px; }
.rule-title > span { width: 142px; height: 1px; background: #c9b8a9; }
.homepage-v41 .rule-title h2 { margin: 0; font-size: 31px; }
.how-it-works { height: 164px; padding-top: 17px; padding-bottom: 18px; border-top: 1px solid #ede5dc; border-bottom: 1px solid #ede5dc; background: #fffdf9; }
.how-it-works__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 16px; margin-top: 19px; }
.how-it-works__grid article { display: flex; align-items: center; gap: 15px; padding-right: 8px; }
.step { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border: 1px solid #bd8f8b; border-radius: 50%; color: var(--homepage-wine); font-size: 18px; }
.homepage-v41 .how-it-works__grid h3 { margin: 0 0 3px; font: 400 15.8px/1.2 Georgia, "Times New Roman", serif; }
.homepage-v41 .how-it-works__grid p { margin: 0; color: #5e5048; font: 11.3px/1.34 Georgia, "Times New Roman", serif; }

.two-column { display: grid; grid-template-columns: 49% 51%; align-items: center; }
.personal-memory { height: 372px; padding-top: 19px; padding-bottom: 19px; overflow: hidden; background: #fbf7f0; }
.personal-memory__copy { padding-right: 34px; }
.homepage-v41 :is(.personal-memory, .community-memory) h2 { margin: 0 0 5px; font: 400 38px/1.03 Georgia, "Times New Roman", serif; }
.homepage-v41 :is(.personal-memory, .community-memory) h3 { margin: 0 0 16px; font: 400 18.3px/1.25 Georgia, "Times New Roman", serif; }
.homepage-v41 :is(.personal-memory, .community-memory) p { margin: 0 0 19px; color: #52463f; font: 13px/1.47 Georgia, "Times New Roman", serif; }
.personal-memory__art { height: 334px; margin-right: -13.7%; overflow: hidden; }
.personal-memory__art img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 25px; font-size: 12px; }
.feature-grid > div { display: flex; min-height: 27px; align-items: center; gap: 10px; }
.feature-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }

.community-memory { height: 257px; padding-top: 20px; padding-bottom: 20px; overflow: hidden; background: #fffaf4; }
.community-memory__copy { padding-right: 25px; }
.homepage-v41 .community-memory h2 { font-size: 37px; }
.homepage-v41 .community-memory h3 { margin-bottom: 14px; font-size: 17.8px; }
.homepage-v41 .community-memory p { margin-bottom: 15px; font-size: 12.8px; }
.community-memory__art { position: relative; height: 217px; margin-right: -13.7%; overflow: hidden; background: #f8f3ec; }
.community-memory__art .community-image { position: absolute; display: block; object-fit: cover; filter: drop-shadow(0 3px 4px rgb(50 35 25 / 16%)); }
.community-memory__art .bridge { z-index: 1; top: 20px; left: 0; width: 48%; height: 172px; transform: rotate(-1deg); }
.community-memory__art .street { z-index: 2; top: 14px; left: 44%; width: 41%; height: 172px; transform: rotate(1deg); }
.community-memory__art .note { z-index: 4; top: 43px; left: 37%; width: 23%; height: auto; transform: rotate(-4deg); }
.community-memory__art .plaque { z-index: 5; top: 24px; right: -2%; width: 27%; height: auto; }

.homepage-resources { height: 180px; padding-top: 13px; padding-bottom: 15px; overflow: hidden; background: #fffdf9; }
.homepage-v41 .homepage-resources .rule-title h2 { font-size: 30px; }
.homepage-resources__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; margin-top: 13px; }
.resource-card { display: grid; grid-template-columns: 66px minmax(0, 1fr) 136px; height: 111px; align-items: center; overflow: hidden; border: 1px solid #e5d8ca; background: linear-gradient(90deg, #f7f0e6, #efe5d9); box-shadow: 0 3px 7px rgb(65 45 31 / 5%); }
.resource-icon { width: 39px; height: 39px; margin: auto; object-fit: contain; }
.resource-photo { width: 100%; height: 100%; object-fit: cover; }
.homepage-v41 .resource-card__copy h3 { margin: 0 0 5px; font: 400 14.8px/1.2 Georgia, "Times New Roman", serif; }
.homepage-v41 .resource-card__copy p { margin: 0 0 6px; font: 10.6px/1.27 Georgia, "Times New Roman", serif; }
.resource-card__copy a { color: var(--homepage-wine); font: 9.7px Arial, Helvetica, sans-serif; text-decoration: none; }

.remembrance-cta { height: 175px; padding-top: 21px; padding-bottom: 20px; overflow: hidden; background: #fffaf4; text-align: center; }
.homepage-v41 .remembrance-cta h2 { position: relative; z-index: 2; max-width: 760px; margin: 0 auto 14px; font: 400 33px/1.11 Georgia, "Times New Roman", serif; }
.homepage-actions--centered { position: relative; z-index: 2; justify-content: center; }
.final-botanical { position: absolute; z-index: 1; bottom: -10px; opacity: .24; }
.final-botanical--left { left: -23px; width: 150px; }
.final-botanical--right { right: -20px; width: 145px; }
.hand-note { position: absolute; z-index: 2; top: 31px; right: 5.3%; max-width: 115px; color: #9a7c6c; font-size: 13px; font-style: italic; line-height: 1.34; transform: rotate(-8deg); }

/* Minimal Human Heritage landing, using the same restrained visual vocabulary. */
.human-heritage-page { background: #ececea; color: #241914; font-family: Georgia, "Times New Roman", serif; }
.human-heritage-page > :is(.site-header, main, .site-footer) { width: min(1280px, 100%); margin-inline: auto; }
.human-heritage-page main { background: #fbf7f0; }
.human-heritage-page .section-pad { padding-inline: 6%; }
.heritage-landing-hero { padding-block: 70px 58px; background: linear-gradient(100deg, #f8eee3, #fffaf4); text-align: center; }
.heritage-landing-kicker { margin: 0 0 12px; color: #7c1917; font: 700 11px/1.4 Arial, Helvetica, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.heritage-landing-hero h1 { max-width: 850px; margin: 0 auto; font: 400 clamp(42px, 6vw, 72px)/1 Georgia, "Times New Roman", serif; }
.heritage-landing-hero > p:not(.heritage-landing-kicker) { max-width: 650px; margin: 20px auto 0; color: #5f5149; font-size: 17px; }
.heritage-landing-hero nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.heritage-landing-hero nav span { padding: 8px 16px; border: 1px solid #c9afa2; border-radius: 999px; background: #fffdf9; font: 11px Arial, Helvetica, sans-serif; }
.heritage-listing { min-height: 420px; padding-block: 42px 70px; background: #fffdf9; }
.heritage-listing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.heritage-listing-card { overflow: hidden; border: 1px solid #e1d6cb; background: #fff; box-shadow: 0 4px 12px rgb(58 36 25 / 7%); }
.heritage-listing-card__image { display: grid; height: 190px; place-items: center; overflow: hidden; background: #e8e0d7; color: #7c1917; font-size: 32px; text-decoration: none; }
.heritage-listing-card__image img { width: 100%; height: 100%; object-fit: cover; }
.heritage-listing-card__copy { padding: 20px; }
.heritage-listing-card__collection { margin: 0 0 5px; color: #7c1917; font: 700 10px Arial, Helvetica, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.heritage-listing-card h2 { margin: 0; font: 400 24px/1.15 Georgia, "Times New Roman", serif; }
.heritage-listing-card h2 a { text-decoration: none; }
.heritage-listing-card__dates, .heritage-listing-card__topics { color: #6d5d54; font: 11px Arial, Helvetica, sans-serif; }
.heritage-listing-card__summary { min-height: 4.5em; color: #4f453f; font-size: 14px; line-height: 1.5; }
.heritage-listing-card__actions { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid #eadfd5; }
.heritage-listing-card__actions a { color: #7c1917; font: 700 11px Arial, Helvetica, sans-serif; }
.heritage-listing__empty { margin: 60px auto; color: #5f5149; text-align: center; }
.heritage-pagination { display: flex; justify-content: center; gap: 24px; margin-top: 35px; font: 12px Arial, Helvetica, sans-serif; }

@media (max-width: 820px) {
    .homepage-v41 .section-pad { padding-inline: 5.5%; }
    .homepage-v41 .site-actions { gap: 14px; }
    .homepage-hero { grid-template-columns: 42% 58%; height: 370px; }
    .homepage-v41 .homepage-hero h1 { max-width: 360px; font-size: 38px; }
    .homepage-v41 .homepage-hero__copy > p { font-size: 12.9px; }
    .homepage-hero__copy { padding-top: 34px; }
    .memory-forms__grid article { padding-inline: 20px; }
    .homepage-v41 :is(.personal-memory, .community-memory) h2 { font-size: 34px; }
    .homepage-v41 :is(.personal-memory, .community-memory) h3 { font-size: 16px; }
    .homepage-v41 :is(.personal-memory, .community-memory) p { font-size: 12px; }
    .feature-grid { gap: 11px 16px; font-size: 11.4px; }
    .human-heritage__grid { gap: 16px; }
    .homepage-v41 .human-heritage__head h2 { font-size: 33px; }
    .mini-button { padding-inline: 12px; }
    .resource-card { grid-template-columns: 58px minmax(0, 1fr) 112px; }
    .heritage-listing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .homepage-v41 { background: #fffdf9; }
    .homepage-v41 > :is(.site-header, main, .site-footer) { width: 100%; box-shadow: none; }
    .homepage-v41 .section-pad { padding-inline: 24px; }
    .homepage-v41 .site-header { height: 62px; padding-inline: 17px; }
    .homepage-v41 .site-header .wordmark__name { font-size: 24px; }
    .homepage-v41 .site-header .wordmark__tagline { font-size: 4.8px; letter-spacing: .32em; }

    .homepage-hero { grid-template-columns: 1fr; height: auto; padding: 0 !important; }
    .homepage-hero__copy { order: 1; padding: 34px 24px 28px; }
    .homepage-v41 .homepage-hero h1 { max-width: none; margin-bottom: 15px; font-size: 40px; }
    .homepage-v41 .homepage-hero__copy > p { max-width: none; margin-bottom: 18px; font-size: 14px; }
    .homepage-hero__art { order: 2; height: 285px; }
    .hero-note { top: 10%; right: 7%; font-size: 14px; }
    .homepage-hero .homepage-button { min-width: 158px; }
    .homepage-quote { margin-top: 20px; }
    .hero-botanical { display: none; }

    .memory-forms { height: auto; padding-top: 30px; padding-bottom: 28px; }
    .homepage-v41 .homepage-section-title h2, .homepage-v41 .rule-title h2 { font-size: 31px; }
    .homepage-v41 .homepage-section-title p { font-size: 13px; }
    .memory-forms__grid { grid-template-columns: 1fr; margin-top: 21px; }
    .memory-forms__grid article { padding: 18px 0; }
    .memory-forms__grid article + article { border-top: 1px solid #dfd3c9; border-left: 0; }
    .forms-botanical { width: 105px; opacity: .14; }

    .human-heritage { min-height: 0; padding-top: 28px; padding-bottom: 31px; }
    .human-heritage__head { align-items: flex-start; gap: 15px; margin-bottom: 17px; }
    .homepage-v41 .human-heritage__head h2 { font-size: 35px; }
    .homepage-v41 .human-heritage__head p { font-size: 15px; }
    .homepage-text-link { margin-top: 7px; font-size: 10px; white-space: nowrap; }
    .human-heritage__grid { display: flex; gap: 15px; margin-right: -24px; padding: 2px 24px 8px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .human-heritage__grid::-webkit-scrollbar { display: none; }
    .heritage-card { min-height: 320px; flex: 0 0 84%; scroll-snap-align: start; }

    .how-it-works { height: auto; padding-top: 25px; padding-bottom: 26px; }
    .rule-title > span { width: 54px; }
    .how-it-works__grid { grid-template-columns: 1fr; gap: 19px; margin-top: 22px; }
    .how-it-works__grid article { align-items: flex-start; padding-right: 0; }

    .two-column { grid-template-columns: 1fr; }
    .personal-memory { height: auto; padding-top: 31px; padding-bottom: 0; }
    .personal-memory__copy { padding-right: 0; padding-bottom: 26px; }
    .homepage-v41 :is(.personal-memory, .community-memory) h2 { font-size: 36px; }
    .homepage-v41 :is(.personal-memory, .community-memory) h3 { font-size: 18px; }
    .homepage-v41 :is(.personal-memory, .community-memory) p { font-size: 13.5px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 12px; }
    .personal-memory__art { height: 300px; margin-inline: -24px; }
    .personal-memory__art img { object-position: center top; }

    .community-memory { height: auto; padding-top: 30px; padding-bottom: 0; }
    .community-memory__copy { padding-right: 0; padding-bottom: 26px; }
    .community-memory__art { height: 235px; margin-inline: -24px; }

    .homepage-resources { height: auto; padding-top: 24px; padding-bottom: 28px; }
    .homepage-v41 .homepage-resources .rule-title h2 { font-size: 29px; text-align: center; }
    .homepage-resources__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
    .resource-card { grid-template-columns: 58px minmax(0, 1fr) 105px; height: 120px; }
    .resource-photo { height: 120px; }

    .remembrance-cta { height: auto; padding-top: 34px; padding-bottom: 35px; }
    .homepage-v41 .remembrance-cta h2 { font-size: 31px; }
    .remembrance-cta .homepage-button { min-width: 190px; }
    .hand-note { display: none; }
    .final-botanical { width: 110px; opacity: .14; }

    .heritage-landing-hero { padding-block: 48px 40px; }
    .heritage-landing-hero nav { align-items: center; flex-direction: column; }
    .heritage-listing__grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    .homepage-v41 .homepage-hero h1 { font-size: 36px; }
    .homepage-hero .homepage-actions, .remembrance-cta .homepage-actions { display: grid; grid-template-columns: 1fr; }
    .homepage-hero .homepage-button, .remembrance-cta .homepage-button { width: 100%; }
    .feature-grid { grid-template-columns: 1fr; }
    .human-heritage__head { display: block; }
    .homepage-text-link { display: inline-block; margin-top: 10px; }
    .resource-card { grid-template-columns: 54px minmax(0, 1fr) 82px; }
    .resource-photo { width: 82px; }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-v41 *, .human-heritage-page * { scroll-behavior: auto !important; transition: none !important; }
}
