:root {
    color-scheme: light;
    --ink: #1d2923;
    --forest: #173c32;
    --leaf: #4e7155;
    --paper: #f8f8f3;
    --white: #fff;
    --line: #d9ded6;
    --copper: #bd744d;
    --display: "Cormorant Garamond", Georgia, serif;
    --body: "DM Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 clamp(22px, 6vw, 92px);
    background: var(--forest);
    color: var(--white);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.wordmark-mark {
    display: grid;
    width: 32px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #a9c1ae;
    border-radius: 50%;
    color: #e8c18b;
    font-family: var(--display);
    font-size: 22px;
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: clamp(18px, 3vw, 42px);
}

.main-nav a {
    color: #e3eae4;
    font-size: 12px;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #efc998;
}

.hero {
    position: relative;
    display: flex;
    min-height: min(720px, 76svh);
    align-items: center;
    overflow: hidden;
    background: #26362f;
    color: var(--white);
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center 36%;
}

.hero-shade {
    background: linear-gradient(90deg, rgb(15 32 26 / 80%) 0%, rgb(15 32 26 / 56%) 42%, rgb(15 32 26 / 8%) 100%);
}

.hero-copy {
    position: relative;
    width: min(680px, 75%);
    margin-left: clamp(24px, 12vw, 180px);
    padding: 82px 0 98px;
    animation: arrive 850ms ease-out both;
}

.eyebrow {
    margin: 0 0 17px;
    color: var(--copper);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #efc998;
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2,
blockquote p {
    font-family: var(--display);
    font-weight: 500;
}

h1 {
    max-width: 700px;
    margin-bottom: 16px;
    font-size: clamp(58px, 8vw, 112px);
    line-height: 0.88;
}

.hero-subtitle {
    max-width: 390px;
    margin: 25px 0 28px;
    color: #e7ebe6;
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.hero-link {
    padding-bottom: 7px;
    border-bottom: 1px solid #efc998;
    color: #fff;
}

.hero-caption {
    position: absolute;
    right: clamp(22px, 6vw, 92px);
    bottom: 23px;
    margin: 0;
    color: #f1f3ee;
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.4;
}

.dedication {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 18px;
    color: var(--forest);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.dedication p {
    margin: 0;
}

.dedication p span {
    padding: 0 9px;
    color: var(--copper);
}

.dedication-rule {
    width: 35px;
    height: 1px;
    background: #b8c5b7;
}

.section-wrap {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.story {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(48px, 10vw, 150px);
    padding-block: 110px 120px;
}

.section-heading h2 {
    margin-bottom: 0;
    color: var(--forest);
    font-size: clamp(43px, 5vw, 67px);
    line-height: 0.98;
}

.story-copy {
    max-width: 610px;
}

.story-copy p {
    margin-bottom: 20px;
    color: #4b5650;
    font-size: 13px;
}

.story-copy .story-lead {
    margin: 0 0 27px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 28px;
    line-height: 1.25;
}

.milestones {
    padding-block: 84px 100px;
    background: #e9eee7;
}

.milestone-heading {
    margin-bottom: 52px;
}

.milestone-heading h2 {
    font-size: clamp(40px, 4.5vw, 58px);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    min-height: 135px;
    padding: 20px 15px 24px 0;
    border-top: 1px solid #b9c8b8;
}

.timeline-year {
    color: var(--copper);
    font-family: var(--display);
    font-size: 29px;
    font-weight: 600;
    line-height: 1;
}

.timeline li p {
    max-width: 285px;
    margin: 10px 0 0;
    color: #435149;
    font-size: 12px;
}

.gallery {
    padding-block: 105px 115px;
}

.gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.gallery-intro {
    max-width: 280px;
    margin: 0 0 5px;
    color: #606c63;
    font-size: 12px;
}

.programme-link {
    color: var(--forest);
    font-size: 11px;
    font-weight: 600;
    text-decoration-color: #aab9ab;
    text-underline-offset: 4px;
}

.programme-link span {
    color: #69766d;
    font-size: 10px;
}

.gallery-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 4px;
    margin-bottom: 25px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.gallery-tab {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #59675e;
    cursor: pointer;
    font: 600 11px var(--body);
}

.gallery-tab[aria-selected="true"] {
    background: var(--forest);
    color: var(--white);
}

.gallery-status {
    min-height: 24px;
    margin: 0 0 13px;
    color: #6b776d;
    font-size: 11px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.burial-film-slide {
    grid-column: span 2;
    min-width: 0;
    margin: 0;
    background: #102d26;
    color: #dbe3dc;
}

.burial-film-slide iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #102d26;
}

.burial-film-fallback {
    display: flex;
    min-height: 150px;
    aspect-ratio: 16 / 9;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #173c32;
    color: #fff8eb;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.burial-film-play {
    display: grid;
    width: 44px;
    aspect-ratio: 1;
    place-items: center;
    padding-left: 3px;
    border: 1px solid #e8c18b;
    border-radius: 50%;
    color: #e8c18b;
    font-size: 15px;
}

.burial-film-slide figcaption {
    padding: 9px 12px;
    font-size: 10px;
}

.burial-film-slide figcaption a {
    color: inherit;
}

.photo-button {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 1.12;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #dce2da;
    cursor: zoom-in;
}

.photo-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.photo-button:hover img,
.photo-button:focus-visible img {
    transform: scale(1.045);
}

.photo-button:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #d29361;
    outline-offset: 3px;
}

.load-more {
    display: block;
    min-height: 44px;
    margin: 32px auto 0;
    padding: 0 18px;
    border: 1px solid #9aab9c;
    border-radius: 2px;
    background: transparent;
    color: var(--forest);
    cursor: pointer;
    font: 600 11px var(--body);
}

.load-more:hover {
    background: var(--forest);
    color: var(--white);
}

.tributes {
    padding-block: 88px 98px;
    background: #e9eee7;
}

.tributes-heading {
    margin-bottom: 38px;
}

.tributes-intro {
    max-width: 440px;
    margin: 16px 0 0;
    color: #606c63;
    font-size: 13px;
}

.tributes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
}

.tribute {
    margin: 0;
    padding: 24px 8px 25px 0;
    border-top: 1px solid #b9c8b8;
}

.tribute p {
    margin: 0;
    color: #34453b;
    font-family: var(--display);
    font-size: 24px;
    line-height: 1.27;
}

.tribute-featured {
    grid-column: 1 / -1;
}

.tribute-featured p {
    max-width: 900px;
    margin-bottom: 15px;
    font-family: var(--body);
    font-size: 13px;
    line-height: 1.8;
}

.tribute-featured p:last-of-type {
    margin-bottom: 0;
}

.tribute footer {
    margin-top: 15px;
    color: var(--forest);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
}

.tribute cite {
    font-style: normal;
}

.tribute footer span {
    display: block;
    color: #69766d;
    font-size: 10px;
    font-weight: 400;
}

.remembrance {
    padding: 90px 24px 95px;
    background: var(--forest);
    color: var(--white);
    text-align: center;
}

.remembrance-inner {
    width: min(680px, 100%);
    margin-inline: auto;
}

.remembrance .eyebrow {
    color: #efc998;
}

.remembrance h2 {
    margin: 0 0 27px;
    color: #f0d1a6;
    font-size: clamp(43px, 6vw, 68px);
    line-height: 1;
}

.remembrance blockquote {
    margin: 0 auto;
}

.remembrance blockquote p {
    margin: 0;
    color: #f2f3ee;
    font-size: 25px;
    line-height: 1.35;
}

.remembrance blockquote footer {
    margin-top: 17px;
    color: #c7d5ca;
    font-size: 11px;
}

.farewell {
    margin: 49px 0 0;
    color: #d4e0d4;
    font-family: var(--display);
    font-size: 25px;
    line-height: 1.2;
}

.site-footer {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(22px, 6vw, 92px);
    background: #102d26;
    color: #dbe3dc;
}

.footer-wordmark {
    color: var(--white);
}

.site-footer p {
    margin: 0;
    color: #bdc9bf;
    font-size: 10px;
}

.back-top {
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #547264;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
}

.photo-viewer {
    width: min(1100px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100% - 28px);
    overflow: visible;
    padding: 24px 64px;
    border: 0;
    background: #10201b;
    color: var(--white);
}

.photo-viewer::backdrop {
    background: rgb(8 17 13 / 88%);
}

.photo-viewer figure {
    display: grid;
    min-height: 300px;
    place-items: center;
    margin: 0;
}

.photo-viewer figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100svh - 115px);
    object-fit: contain;
}

.photo-viewer figcaption {
    padding-top: 12px;
    color: #d4ddd5;
    font-size: 11px;
    text-align: center;
}

.viewer-close,
.viewer-nav {
    position: absolute;
    display: grid;
    width: 42px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #64766a;
    border-radius: 50%;
    background: #173c32;
    color: white;
    cursor: pointer;
    font: 22px var(--body);
}

.viewer-close {
    top: 12px;
    right: 12px;
}

.viewer-previous {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.viewer-next {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 0;
        padding-block: 11px;
    }
    .main-nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0 0 43px;
    }
    .main-nav a {
        font-size: 10px;
    }
    .hero {
        min-height: 650px;
        min-height: 76svh;
        align-items: end;
    }
    .hero-image {
        object-position: 58% center;
    }
    .hero-shade {
        background: linear-gradient(0deg, rgb(15 32 26 / 86%) 0%, rgb(15 32 26 / 38%) 56%, rgb(15 32 26 / 5%) 100%);
    }
    .hero-copy {
        width: calc(100% - 44px);
        margin: 0 22px;
        padding: 100px 0 90px;
    }
    h1 {
        font-size: clamp(57px, 15vw, 82px);
    }
    .hero-subtitle {
        max-width: 310px;
        font-size: 13px;
    }
    .hero-caption {
        left: 22px;
        right: 22px;
        bottom: 16px;
        font-size: 9px;
        text-align: right;
    }
    .dedication {
        min-height: 72px;
        gap: 11px;
        font-size: 10px;
    }
    .dedication-rule {
        width: 17px;
    }
    .section-wrap {
        width: min(100% - 40px, 560px);
    }
    .story {
        grid-template-columns: 1fr;
        gap: 33px;
        padding-block: 77px 82px;
    }
    .story-copy .story-lead {
        font-size: 25px;
    }
    .milestones {
        padding-block: 70px 78px;
    }
    .milestone-heading {
        margin-bottom: 34px;
    }
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }
    .timeline li {
        min-height: 145px;
    }
    .gallery {
        padding-block: 76px 82px;
    }
    .gallery-heading {
        display: block;
        margin-bottom: 26px;
    }
    .gallery-intro {
        margin-top: 14px;
    }
    .tributes {
        padding-block: 70px 78px;
    }
    .tributes-grid {
        grid-template-columns: 1fr;
    }
    .tribute p {
        font-size: 22px;
    }
    .tribute-featured p {
        font-size: 13px;
    }
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .photo-button {
        aspect-ratio: 1;
    }
    .remembrance {
        padding-block: 73px 78px;
    }
    .remembrance blockquote p {
        font-size: 22px;
    }
    .site-footer {
        flex-wrap: wrap;
        padding-block: 22px;
    }
    .site-footer p {
        order: 3;
        width: 100%;
    }
    .photo-viewer {
        padding: 54px 44px 22px;
    }
    .photo-viewer figure {
        min-height: 180px;
    }
    .viewer-close {
        top: 7px;
        right: 7px;
    }
    .viewer-previous {
        left: 3px;
    }
    .viewer-next {
        right: 3px;
    }
}

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