:root {
    --flynn-ink: #1f2933;
    --flynn-muted: #65707f;
    --flynn-soft: #f7f3ef;
    --flynn-card: #ffffff;
    --flynn-border: rgba(31, 41, 51, 0.12);
    --flynn-accent: #8a5a2d;
    --flynn-accent-dark: #5f3d1e;
    --flynn-shadow: 0 18px 60px rgba(31, 41, 51, 0.13);
}

.flynn-obit-page {
    background: linear-gradient(180deg, #fbf8f5 0%, #ffffff 30%, #ffffff 100%);
    color: var(--flynn-ink);
}

.flynn-obit-container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.flynn-obit-hero {
    position: relative;
    min-height: 410px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #1f2933;
}

.flynn-obit-hero-bg,
.flynn-obit-hero-bg img,
.flynn-obit-hero-overlay {
    position: absolute;
    inset: 0;
}

.flynn-obit-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) scale(1.08);
    opacity: 0.42;
}

.flynn-obit-hero-overlay {
    background: linear-gradient(180deg, rgba(16, 24, 32, 0.34), rgba(16, 24, 32, 0.88));
}

.flynn-obit-hero-inner {
    position: relative;
    z-index: 1;
    padding: 88px 0 120px;
    color: #fff;
    text-align: center;
}

.flynn-return-link {
    display: inline-flex;
    color: rgba(255,255,255,0.88);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    text-decoration: none;
    margin-bottom: 22px;
}

.flynn-return-link:hover {
    color: #fff;
    text-decoration: underline;
}

.flynn-obit-hero h1,
.flynn-archive-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.95;
    margin: 0 0 16px;
    color: inherit;
}

.flynn-obit-date-range,
.flynn-obit-location {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin: 0.35rem 0;
    color: rgba(255,255,255,0.9);
}

.flynn-obit-date-range.dark {
    color: var(--flynn-muted);
}

.flynn-obit-profile-wrap {
    margin-top: -82px;
    position: relative;
    z-index: 2;
    padding-bottom: 54px;
}

.flynn-obit-profile-card {
    background: var(--flynn-card);
    border-radius: 22px;
    box-shadow: var(--flynn-shadow);
    border: 1px solid rgba(255,255,255,0.75);
    padding: clamp(18px, 4vw, 38px);
    display: grid;
    grid-template-columns: minmax(190px, 280px) 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.flynn-obit-profile-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: var(--flynn-soft);
    box-shadow: 0 10px 30px rgba(31, 41, 51, 0.18);
}

.flynn-obit-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flynn-kicker {
    margin: 0 0 8px;
    color: var(--flynn-accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
}

.flynn-obit-profile-main h2,
.flynn-section-heading h2,
.flynn-sidebar-card h2,
.flynn-empty-state h2 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--flynn-ink);
}

.flynn-obit-profile-main h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0 0 8px;
}

.flynn-obit-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.flynn-obit-facts div,
.flynn-sidebar-card dl div {
    padding: 14px 16px;
    background: var(--flynn-soft);
    border-radius: 14px;
}

.flynn-obit-facts dt,
.flynn-sidebar-card dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--flynn-muted);
    font-weight: 700;
}

.flynn-obit-facts dd,
.flynn-sidebar-card dd {
    margin: 4px 0 0;
    color: var(--flynn-ink);
    font-weight: 650;
}

.flynn-obit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.flynn-button,
.flynn-copy-button,
.flynn-obit-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.82rem 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.flynn-button:hover,
.flynn-copy-button:hover,
.flynn-obit-search button:hover {
    transform: translateY(-1px);
}

.flynn-button.primary,
.flynn-obit-search button,
.flynn-copy-button {
    background: var(--flynn-accent);
    color: #fff;
}

.flynn-button.primary:hover,
.flynn-obit-search button:hover,
.flynn-copy-button:hover {
    background: var(--flynn-accent-dark);
    color: #fff;
}

.flynn-button.ghost {
    background: #fff;
    color: var(--flynn-ink);
    border-color: var(--flynn-border);
}

.flynn-obit-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
    padding-bottom: 72px;
}

.flynn-obit-main-card,
.flynn-sidebar-card,
.flynn-obit-card,
.flynn-empty-state {
    background: var(--flynn-card);
    border: 1px solid var(--flynn-border);
    box-shadow: 0 8px 30px rgba(31, 41, 51, 0.07);
    border-radius: 20px;
}

.flynn-obit-main-card {
    padding: clamp(22px, 4vw, 46px);
}

.flynn-obit-mini-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--flynn-border);
}

.flynn-obit-mini-nav a {
    color: var(--flynn-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.flynn-obit-mini-nav a:hover {
    color: var(--flynn-accent);
}

.flynn-obit-section {
    margin-bottom: 46px;
}

.flynn-section-heading {
    margin-bottom: 18px;
}

.flynn-section-heading span {
    color: var(--flynn-accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.flynn-section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.flynn-obit-text {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #4f5965;
}

.flynn-obit-text p {
    margin: 0 0 1.25em;
}

.flynn-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.flynn-service-card {
    background: var(--flynn-soft);
    border-radius: 18px;
    padding: 22px;
}

.flynn-service-card h3 {
    margin-top: 0;
    color: var(--flynn-ink);
}

.flynn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.flynn-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: var(--flynn-soft);
    aspect-ratio: 1 / 1;
}

.flynn-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.flynn-gallery-item:hover img {
    transform: scale(1.035);
}

.flynn-obit-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 16px;
}

.flynn-sidebar-card {
    padding: 22px;
}

.flynn-sidebar-card h2 {
    font-size: 1.35rem;
    margin: 0 0 14px;
}

.flynn-sidebar-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.flynn-sidebar-card p {
    color: var(--flynn-muted);
}

.flynn-sidebar-card.soft {
    background: var(--flynn-soft);
}

.flynn-sidebar-card.muted {
    box-shadow: none;
    background: #fbfbfb;
}

.flynn-archive-hero {
    padding: clamp(64px, 9vw, 110px) 0 54px;
    background: linear-gradient(135deg, #1f2933, #4b382b);
    color: #fff;
    text-align: center;
}

.flynn-archive-hero .flynn-kicker {
    color: rgba(255,255,255,0.72);
}

.flynn-archive-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1.08rem;
}

.flynn-obit-search {
    display: flex;
    gap: 10px;
    width: min(680px, 100%);
    margin: 30px auto 0;
    background: rgba(255,255,255,0.12);
    padding: 8px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.flynn-obit-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.flynn-archive-listing {
    padding: 56px 0 72px;
}

.flynn-obit-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.flynn-obit-card {
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.flynn-obit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--flynn-shadow);
}

.flynn-obit-card-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3.35;
    overflow: hidden;
    background: linear-gradient(135deg, #eadfd4, #f8f3ef);
    color: var(--flynn-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    text-decoration: none;
}

.flynn-obit-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flynn-obit-card-body {
    padding: 22px;
}

.flynn-obit-card h2 {
    margin: 0 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.45rem;
}

.flynn-obit-card h2 a,
.flynn-card-link {
    color: var(--flynn-ink);
    text-decoration: none;
}

.flynn-obit-card h2 a:hover,
.flynn-card-link:hover {
    color: var(--flynn-accent);
}

.flynn-card-dates,
.flynn-card-location,
.flynn-card-excerpt {
    color: var(--flynn-muted);
    margin: 0 0 10px;
}

.flynn-card-link {
    display: inline-flex;
    margin-top: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.flynn-pagination {
    margin-top: 40px;
}

.flynn-empty-state {
    text-align: center;
    padding: 44px 24px;
}

@media (max-width: 920px) {
    .flynn-obit-profile-card,
    .flynn-obit-content-grid {
        grid-template-columns: 1fr;
    }

    .flynn-obit-profile-photo {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }

    .flynn-obit-profile-main {
        text-align: center;
    }

    .flynn-obit-actions {
        justify-content: center;
    }

    .flynn-obit-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .flynn-obit-hero {
        min-height: 330px;
    }

    .flynn-obit-hero-inner {
        padding: 72px 0 96px;
    }

    .flynn-obit-search {
        display: grid;
        border-radius: 22px;
    }

    .flynn-obit-search input,
    .flynn-obit-search button {
        width: 100%;
    }

    .flynn-obit-main-card {
        border-radius: 16px;
    }
}
