/* Homepage (spec p.25 to 32). */

/* Opening hero: full screen, the parish seal beside the wording. */
.ss-hero--home {
    min-height: 100vh;
    min-height: 100svh;
    background: var(--ss-emerald-shadow);
}

/* The bundled photograph's sky, continued above the image so the cross clears the bar. */
.ss-hero--sky {
    background: linear-gradient(90deg, #0155AE, #0053AB 20%, #0050A3 45%, #0053A7 60%, #0056B0 80%, #0160BB);
}

.ss-hero--sky .ss-hero__media {
    inset: clamp(48px, 7vh, 72px) 0 0;
}

.ss-hero--sky .ss-hero__photo {
    object-position: 50% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 56px);
    mask-image: linear-gradient(180deg, transparent, #000 56px);
}

.ss-hero--home .ss-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.ss-home-lockup {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
    max-width: 1000px;
}

/* A soft shadow behind the wording, so it reads over the brightest stone. */
.ss-home-lockup::before {
    content: "";
    position: absolute;
    inset: -20% -14% -24% -16%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        farthest-side at 42% 55%,
        color-mix(in srgb, var(--ss-emerald-shadow) 52%, transparent),
        color-mix(in srgb, var(--ss-emerald-shadow) 30%, transparent) 55%,
        transparent
    );
}

.ss-home-seal {
    display: grid;
    place-items: center;
    width: clamp(120px, 13.5vw, 196px);
    aspect-ratio: 1;
    margin-top: clamp(0px, 0.6vw, 10px);
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, var(--ss-white), var(--ss-cream) 72%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--ss-gold-highlight) 75%, transparent),
        0 0 0 8px color-mix(in srgb, var(--ss-cream) 14%, transparent),
        0 22px 44px -14px rgb(0 0 0 / 0.6);
}

.ss-home-seal img {
    width: 93%;
    height: 93%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.ss-hero--home .ss-home-title {
    color: var(--ss-cream);
    text-shadow: 0 2px 30px color-mix(in srgb, var(--ss-emerald-shadow) 35%, transparent);
}

.ss-home-hero__subtitle {
    margin-top: 20px;
    color: color-mix(in srgb, var(--ss-cream) 95%, transparent);
    font-size: clamp(1.125rem, 1.7vw, 1.5rem);
    line-height: 1.35;
}

.ss-home-hero__armenian {
    margin-top: 10px;
    color: var(--ss-gold-highlight);
    font-size: clamp(1rem, 1.45vw, 1.3125rem);
    line-height: 1.6;
}

.ss-home-hero__since {
    margin-top: 28px;
}

.ss-home-hero__haven {
    max-width: 36em;
    margin-top: 12px;
    color: color-mix(in srgb, var(--ss-cream) 90%, transparent);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.55;
}

.ss-hero--home .ss-hero__actions {
    margin-top: var(--ss-space-3);
}

@media (max-width: 767px) {
    .ss-home-lockup {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ss-home-seal {
        width: 104px;
        margin-top: 0;
    }

    .ss-hero--home .ss-home-title {
        font-size: clamp(3rem, 14vw, 4rem);
    }

    .ss-home-hero__subtitle {
        margin-top: 14px;
    }

    .ss-home-hero__since {
        margin-top: 20px;
        font-size: 0.75rem;
    }
}

/* Church photographs: a 16:9 frame for the shared slideshow (slideshow.css). */
.ss-slideshow {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--ss-cream-secondary);
}

.ss-slideshow__pause {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 6px 14px 6px 10px;
    border: 0;
    border-radius: var(--ss-radius-pill);
    background: var(--ss-cream);
    color: var(--ss-ink);
    font-size: 0.875rem;
    cursor: pointer;
}

.ss-slideshow__pause::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--ss-gold);
    border-radius: 4px;
    background: var(--ss-white);
}

.ss-slideshow__pause[aria-pressed="true"]::before {
    border-color: var(--ss-maroon);
    background: var(--ss-maroon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23FBF8F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ss-home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ss-space-2);
    margin-top: var(--ss-space-4);
}

.ss-follow {
    position: relative;
}

.ss-follow__popover {
    left: 50%;
    transform: translateX(-50%);
}

/* Liturgy & parish life: the bundled photograph is framed on the arched windows and oculus. */
.ss-panel__media picture {
    display: block;
    height: 100%;
}

.ss-home-film__panel.is-framed .ss-panel__media img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 130%;
    height: auto;
    object-fit: fill;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .ss-home-film__panel.is-framed .ss-panel__media img {
        width: auto;
        height: 150%;
    }
}

.ss-home-film__play {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    margin-top: 10px;
    padding: 6px 24px 6px 6px;
    border: 1px solid color-mix(in srgb, var(--ss-gold-highlight) 75%, transparent);
    border-radius: var(--ss-radius-pill);
    background: color-mix(in srgb, var(--ss-cream) 94%, transparent);
    color: var(--ss-ink);
    font-size: 1rem;
    font-weight: var(--ss-weight-medium);
    cursor: pointer;
    transition: background-color var(--ss-duration-hover) var(--ss-ease);
}

.ss-home-film__play:hover {
    background: var(--ss-white);
}

.ss-home-film__play-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ss-maroon);
}

.ss-home-film__play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -5px;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent var(--ss-cream);
}

.ss-home-film__player {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--ss-emerald-shadow);
}

/* Gather with us (spec p.29): the calendar, a gold hairline, then This season. */
.ss-home-calendar__layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--ss-space-5);
}

.ss-home-calendar__season {
    padding-left: var(--ss-space-5);
    border-left: 1px solid var(--ss-hairline);
}

.ss-calendar__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ss-space-2);
    margin: var(--ss-space-4) 0 var(--ss-space-3);
}

.ss-calendar__month-name {
    margin: 0;
    font-size: 1.25rem;
}

.ss-calendar__steps:not([hidden]) {
    display: flex;
    gap: var(--ss-space-1);
}

.ss-calendar__step {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--ss-gold);
    border-radius: var(--ss-radius-pill);
    background: transparent;
    color: var(--ss-ink);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color var(--ss-duration-hover) var(--ss-ease), opacity var(--ss-duration-hover) var(--ss-ease);
}

.ss-calendar__step:hover:not(:disabled) {
    background: var(--ss-gold-highlight);
}

.ss-calendar__step:disabled {
    opacity: 0.4;
    cursor: default;
}

.ss-calendar__grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ss-calendar__grid th {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ss-hairline);
    color: var(--ss-muted);
    font-size: 0.75rem;
    font-weight: var(--ss-weight-regular);
    text-align: center;
}

.ss-calendar__grid abbr {
    text-decoration: none;
}

.ss-calendar__grid td {
    height: 52px;
    padding: 4px 0;
    text-align: center;
}

.ss-calendar__day {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.ss-calendar__day.is-feast {
    box-shadow: inset 0 0 0 1px var(--ss-gold);
}

.ss-calendar__day.has-parish-date::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: calc(50% - 2.5px);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ss-maroon);
}

.ss-calendar__day.is-today {
    width: 100%;
    height: 44px;
    border-radius: 0;
    background: var(--ss-maroon);
    color: var(--ss-cream);
}

.ss-calendar__day.is-today.is-feast {
    box-shadow: inset 0 0 0 1px var(--ss-gold-highlight);
}

.ss-calendar__day.is-today.has-parish-date::after {
    background: var(--ss-cream);
}

.ss-calendar__dates {
    margin: var(--ss-space-3) 0 0;
    padding: 0;
    border-top: 1px solid var(--ss-hairline);
    list-style: none;
}

.ss-calendar__date {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: var(--ss-space-2);
    padding: 14px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ss-gold) 30%, transparent);
}

.ss-calendar__when {
    margin: 0;
    color: var(--ss-accent-text);
    font-size: 0.8125rem;
    font-weight: var(--ss-weight-medium);
}

.ss-calendar__entries {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    list-style: none;
}

.ss-calendar__entry,
.ss-calendar__source {
    position: relative;
    padding-left: 20px;
}

.ss-calendar__entry::before,
.ss-calendar__source::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.ss-calendar__entry.is-feast::before,
.ss-calendar__source::before {
    border: 1px solid var(--ss-gold);
}

.ss-calendar__entry.is-parish-date::before {
    background: var(--ss-maroon);
}

.ss-calendar__time {
    margin-left: 8px;
    color: var(--ss-muted);
}

.ss-calendar__source {
    margin: var(--ss-space-3) 0 0;
    color: var(--ss-caption);
    font-size: 0.75rem;
}

.ss-calendar__note {
    margin: var(--ss-space-2) 0 0;
    color: var(--ss-caption);
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .ss-home-calendar__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ss-home-calendar__season {
        padding: var(--ss-space-5) 0 0;
        border-top: 1px solid var(--ss-hairline);
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .ss-calendar__grid td {
        height: 44px;
    }

    .ss-calendar__day {
        width: 32px;
        height: 32px;
    }

    .ss-calendar__day.is-today {
        height: 38px;
    }

    .ss-calendar__date {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}
