:root {
    --background: #2d0a31;
    --surface: rgba(255, 255, 255, 0.09);
    --ink: #ffffff;
    --muted: #f1d9f6;
    --line: rgba(255, 255, 255, 0.2);
    --accent: #f067ff;
    --accent-dark: #ffb2ff;
    --warm: #22d5c2;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header,
.memorial-hero,
.farewell,
.site-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 164px;
    height: auto;
}

.archive-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.memorial-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 48px;
    min-height: 70vh;
    padding: 64px 0 72px;
    overflow: hidden;
    isolation: isolate;
}

.hero-copy {
    max-width: 670px;
}

.eyebrow {
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    overflow-wrap: break-word;
}

h1,
h2 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    max-width: 12ch;
    font-size: 4.4rem;
}

h2 {
    font-size: 2rem;
}

.lead {
    max-width: 620px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
    background: var(--accent);
    color: var(--background);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--accent-dark);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
    color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.button:focus-visible {
    outline: 3px solid rgba(18, 133, 124, 0.25);
    outline-offset: 3px;
}

.promo-note {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.promo-note strong {
    color: var(--ink);
}

.hero-art {
    width: min(440px, 100%);
    justify-self: end;
    filter: drop-shadow(0 28px 36px rgba(23, 26, 25, 0.16));
}

.farewell {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    padding: 44px 0 72px;
    border-top: 1px solid var(--line);
}

.farewell-copy p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

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

.memory-list li {
    min-height: 138px;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--warm);
    border-radius: 8px;
    background: var(--surface);
    backdrop-filter: blur(8px);
}

.memory-list strong,
.memory-list span {
    display: block;
}

.memory-list strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.memory-list span {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.site-footer {
    padding: 24px 0 36px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .memorial-hero,
    .farewell {
        grid-template-columns: 1fr;
    }

    .memorial-hero {
        min-height: auto;
        padding: 48px 0 56px;
    }

    .hero-art {
        width: 320px;
        justify-self: start;
    }

    .memory-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header,
    .memorial-hero,
    .farewell,
    .site-footer {
        width: min(100% - 28px, 1120px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    h1 {
        max-width: 11ch;
        font-size: 3rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .lead {
        font-size: 1.05rem;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-art {
        width: 250px;
    }
}
