/* Home page components. */

.home-language-songs small {
    font-family: Arial, Helvetica, sans-serif;
}

.home-page {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.home-hero {
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    padding: clamp(38px, 7vw, 82px) clamp(28px, 7vw, 82px);
    background: linear-gradient(130deg, #164d43 0%, #1a6655 62%, #297965 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgb(19 66 57 / 16%);
}

.home-hero::after {
    position: absolute;
    right: -90px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    border: 68px solid rgb(228 189 89 / 18%);
    border-radius: 50%;
    content: "";
}

.home-eyebrow {
    margin: 0 0 12px;
    color: #e7c96e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.home-lead {
    position: relative;
    z-index: 1;
    max-width: 670px;
    margin: 24px 0 0;
    color: #e0eeea;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.home-content-section {
    margin-top: 48px;
}

.home-daily-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    gap: 18px;
    margin-top: 24px;
}

.home-daily-grid.has-sape {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .72fr) minmax(230px, .63fr);
}

.home-featured-artists,
.home-featured-quote,
.home-sape-card {
    border: 1px solid #dce6e2;
    border-radius: 17px;
    padding: 22px;
    background: #fff;
}

.home-featured-artists > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.home-featured-artists h2 {
    margin: 0;
    color: #173f37;
    font-size: 21px;
    line-height: 1.25;
}

.home-featured-artists > header > a {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-featured-artists > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-featured-artists > div > a {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    color: #28453e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.home-featured-artists img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #edf1ef;
    object-fit: cover;
}

.home-featured-artists span {
    overflow-wrap: anywhere;
}

.home-featured-artists small {
    display: block;
    margin-top: 2px;
    color: #72807b;
    font-weight: 500;
}

.home-featured-quote {
    background: #fff9e9;
}

.home-sape-card {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    background: #f7f4e8;
    color: #52625d;
    font-size: 14px;
    line-height: 1.55;
}

.home-sape-card .home-eyebrow {
    margin-bottom: 9px;
}

.home-sape-card a {
    color: var(--green-link);
    font-weight: 700;
}

.home-featured-quote .home-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.home-featured-quote blockquote,
.home-featured-quote blockquote p {
    margin: 0;
}

.home-featured-quote blockquote > p {
    color: #443c2b;
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
}

.home-featured-quote blockquote > p > a {
    color: inherit;
    text-decoration: none;
}

.home-featured-quote footer {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    margin-top: 13px;
    color: #786d54;
    font-size: 12px;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.home-section-heading p,
.home-section-heading h2 {
    margin: 0;
}

.home-section-heading p {
    margin-bottom: 5px;
    color: #4f786d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-section-heading h2 {
    color: #173f37;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.home-section-heading > a {
    flex: 0 0 auto;
    font-weight: 700;
    text-decoration: none;
}

.home-carousel {
    display: grid;
    position: relative;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
}

.home-carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
    .home-carousel-viewport {
        scroll-behavior: auto;
    }
}

.home-carousel-track {
    display: grid;
    grid-auto-columns: minmax(180px, 21%);
    grid-auto-flow: column;
    gap: 14px;
    padding-bottom: 10px;
}

.home-carousel-button {
    width: 42px;
    height: 42px;
    border: 1px solid #cddbd6;
    border-radius: 50%;
    background: #fff;
    color: #276b59;
    font-size: 20px;
    cursor: pointer;
}

.home-carousel-button:hover {
    border-color: #72aa99;
    background: #edf7f4;
}

.home-carousel-button:disabled {
    border-color: #dce4e1;
    background: #f5f7f6;
    color: #87938f;
    cursor: default;
    opacity: 0.7;
}

.home-song-card {
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #dae4e0;
    border-radius: 14px;
    background: #fff;
}

.home-song-card > a {
    display: grid;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-song-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background: #eef2f0;
}

.home-song-card span {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 14px;
}

.home-song-card strong {
    color: #27735f;
    font-size: 13px;
}

.home-song-card b {
    font-size: 16px;
    line-height: 1.25;
}

.home-song-card small {
    color: #6a7772;
}

.home-feature-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 42px;
}

.home-feature-links a {
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 2;
    min-height: 150px;
    border-radius: 15px;
    background: #173f37;
    color: #fff;
}

.home-feature-links a::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgb(8 30 26 / 82%) 100%);
    content: "";
    pointer-events: none;
}

.home-feature-links img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    transition: opacity 160ms ease, transform 220ms ease;
}

.home-feature-links span {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 13px;
    left: 14px;
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 2px 12px rgb(0 0 0 / 70%);
}

.home-feature-links a:hover img {
    opacity: .92;
    transform: scale(1.025);
}

.home-sections {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.home-sections a {
    display: grid;
    gap: 6px;
    border: 1px solid #dce5e2;
    border-radius: 14px;
    padding: 22px;
    background: #fff;
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.home-sections a:hover {
    border-color: #9fc8bc;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgb(34 71 63 / 9%);
}

.home-sections strong {
    color: #1d5046;
    font-size: 18px;
}

.home-sections span {
    color: #687772;
    font-size: 14px;
    line-height: 1.45;
}

.home-album-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.home-album-card {
    min-width: 0;
}

.home-album-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #edf1ef;
}

.home-album-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 180ms ease;
}

.home-album-cover:hover img {
    transform: scale(1.025);
}

.home-album-card p,
.home-album-card h3 {
    margin: 0;
}

.home-album-card p {
    margin-top: 11px;
    color: #547169;
    font-size: 13px;
}

.home-album-card h3 {
    margin-top: 3px;
    font-size: 16px;
    line-height: 1.3;
}

.home-album-card a {
    text-decoration: none;
}

.home-album-card small {
    display: block;
    margin-top: 4px;
    color: #7b8581;
}

.home-language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-language-card {
    overflow: hidden;
    border: 1px solid #d9e5e1;
    border-radius: 16px;
    background: #fff;
}

.home-language-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px 12px;
}

.home-language-card h3 {
    margin: 0;
    color: #1d5046;
    font-size: 21px;
}

.home-language-card > header a,
.home-card-more {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-tab-list {
    display: flex;
    gap: 4px;
    margin: 0 16px 8px;
    border-radius: 9px;
    padding: 4px;
    background: #edf4f1;
}

.home-tab-list button {
    flex: 1;
    border: 0;
    border-radius: 7px;
    padding: 8px 10px;
    background: transparent;
    color: #60736d;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.home-tab-list button[aria-selected="true"] {
    background: #fff;
    color: #1e6755;
    box-shadow: 0 2px 8px rgb(22 61 53 / 10%);
}

.home-language-songs {
    padding: 3px 16px 16px;
}

.home-language-songs[hidden] {
    display: none;
}

.home-language-songs > a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    border-top: 1px solid #edf1ef;
    padding: 9px 0;
    color: #30423d;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.home-language-songs img {
    width: 46px;
    height: 46px;
    border-radius: 7px;
    background: #edf1ef;
    object-fit: cover;
}

.home-language-songs span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-language-songs small {
    display: block;
    margin-bottom: 2px;
    color: #6c7b76;
    font-size: 12px;
    font-weight: 500;
}

.home-seasonal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(220px, .85fr));
    gap: 18px;
    margin-top: 48px;
}

.home-seasonal-grid > article {
    overflow: hidden;
    border: 1px solid #dce6e2;
    border-radius: 18px;
    background: #fff;
}

.home-holidays-card,
.home-events-card,
.home-words-card {
    padding: 24px;
}

.home-holidays-card h2,
.home-events-card h2,
.home-words-card h2 {
    margin: 0 0 16px;
    color: #173f37;
    font-size: 23px;
    line-height: 1.2;
}

.home-holidays-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.home-holidays-card > header p {
    margin: 0 0 4px;
}

.home-holidays-card > header h2 {
    margin-bottom: 0;
}

.home-holidays-card > header > a {
    flex: 0 0 auto;
    color: var(--green-link);
    font-weight: 700;
    text-decoration: none;
}

.home-holiday-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.home-holiday-list > a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.home-holiday-list > a + a {
    border-top: 1px solid #e7edeb;
    padding-top: 10px;
}

.home-holiday-list img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.home-holiday-list span,
.home-holiday-list strong,
.home-holiday-list small {
    display: block;
    min-width: 0;
}

.home-holiday-list strong {
    overflow: hidden;
    color: #173f37;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-holiday-list small {
    overflow: hidden;
    margin-top: 3px;
    color: #687772;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-events-card h3 a {
    color: inherit;
    text-decoration: none;
}

.home-events-card > article {
    border-top: 1px solid #e7edeb;
    padding: 14px 0;
}

.home-events-card time {
    color: #846a27;
    font-size: 12px;
    font-weight: 800;
}

.home-events-card h3,
.home-events-card > article p {
    margin: 3px 0 0;
}

.home-events-card h3 {
    font-size: 17px;
    line-height: 1.3;
}

.home-events-card > article p {
    color: #71807b;
    font-size: 13px;
}

.home-words-card ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.home-words-card li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 12px;
    border-top: 1px solid #e7edeb;
    padding: 9px 0;
}

.home-words-card li a {
    font-weight: 800;
    text-decoration: none;
}

.home-words-card li span {
    grid-row: 2;
    color: #66756f;
    font-size: 13px;
}

.home-words-card li small {
    grid-row: 1 / span 2;
    align-self: center;
    color: #89938f;
    font-size: 11px;
}

.home-discovery {
    border-radius: 20px;
    padding: clamp(24px, 4vw, 38px);
    background: #edf4f1;
}

.home-alphabet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.home-alphabet-grid details {
    border: 1px solid #cfddd8;
    border-radius: 11px;
    background: #fff;
}

.home-alphabet-grid summary {
    padding: 14px 17px;
    color: #1d5046;
    font-weight: 800;
    cursor: pointer;
}

.home-alphabet-grid nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    border-top: 1px solid #e5ece9;
    padding: 13px 17px 17px;
}

.home-alphabet-grid nav a,
.home-discovery-grid article > div a {
    border-radius: 999px;
    padding: 5px 9px;
    background: #f5f8f7;
    color: #315f53;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-discovery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-discovery-grid article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid #d5e2dd;
    border-radius: 13px;
    padding: 18px;
    background: #fff;
}

.home-discovery-grid h3 {
    margin: 0 0 13px;
    color: #204b42;
    font-size: 17px;
}

.home-discovery-grid article > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.home-discovery-grid .home-card-more {
    margin-top: auto;
}

.home-translation-help > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-translation-help article {
    border: 1px solid #dce6e2;
    border-radius: 15px;
    padding: 20px;
    background: #fff;
}

.home-translation-help h3 {
    margin: 0 0 12px;
    color: #1d5046;
    font-size: 18px;
}

.home-translation-help ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-translation-help li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #e8eeeb;
    padding: 9px 0;
    font-size: 13px;
    line-height: 1.35;
}

.home-translation-help li a {
    font-weight: 800;
    text-decoration: none;
}

.home-community-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 20px;
    margin-top: 48px;
}

.home-birthdays,
.home-contribute {
    border-radius: 18px;
    padding: clamp(24px, 4vw, 36px);
}

.home-birthdays {
    border: 1px solid #dce6e2;
    background: #fff;
}

.home-birthdays ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-birthdays li {
    display: grid;
    grid-template-columns: 48px minmax(130px, .75fr) minmax(190px, 1fr);
    gap: 14px;
    align-items: center;
    border-top: 1px solid #edf0ef;
    padding: 13px 0;
}

.home-birthday-photo,
.home-birthday-photo img {
    display: block;
    width: 48px;
    height: 48px;
}

.home-birthday-photo img {
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 50%;
    object-fit: cover;
}

.home-birthdays li.is-deceased .home-birthday-photo img {
    border-color: #111;
    padding: 2px;
    background: #fff;
}

.home-birthdays time {
    color: #66736f;
}

.home-birthdays a {
    font-weight: 750;
    text-decoration: none;
}

.home-birthdays small {
    color: #7a8581;
}

.home-birthday-person {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.home-birthday-person a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-birthday-person small {
    flex: 0 0 auto;
}

.home-contribute {
    align-content: center;
    background: linear-gradient(145deg, #71345b, #9a4967);
    color: #fff;
}

.home-contribute h2 {
    margin: 0;
    font-size: 28px;
}

.home-contribute p:not(.home-eyebrow) {
    color: #f2dfe8;
    line-height: 1.55;
}

.home-contribute a {
    display: inline-block;
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;
    color: #6f2d54;
    font-weight: 800;
    text-decoration: none;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
    margin-top: 52px;
}

.home-news-list {
    display: grid;
    gap: 0;
}

.home-news-list > article {
    border-top: 1px solid #dde5e2;
    padding: 18px 0;
}

.home-news-list h3,
.home-news-list p {
    margin: 0;
}

.home-news-list h3 {
    margin: 5px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.home-news-list h3 a {
    text-decoration: none;
}

.home-news-list p {
    color: #65736e;
    font-size: 14px;
    line-height: 1.5;
}

.home-news-list p:first-child {
    display: flex;
    gap: 10px;
    color: #77827e;
    font-size: 12px;
}

.home-empty {
    color: #687772;
}

@media (max-width: 1100px) {
    .home-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-daily-grid.has-sape {
        grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    }

    .home-daily-grid.has-sape .home-sape-card {
        grid-column: 1 / -1;
    }

    .home-album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-language-grid,
    .home-discovery-grid,
    .home-translation-help > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-seasonal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-holidays-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .home-feature-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-community-grid,
    .home-news-grid,
    .home-language-grid,
    .home-daily-grid {
        grid-template-columns: 1fr;
    }

    .home-daily-grid.has-sape {
        grid-template-columns: 1fr;
    }

    .home-daily-grid.has-sape .home-sape-card {
        grid-column: auto;
    }

    .home-discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home-hero {
        border-radius: 17px;
    }

    .home-sections {
        grid-template-columns: 1fr;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-carousel {
        display: block;
    }

    .home-carousel-button {
        display: none;
    }

    .home-carousel-track {
        grid-auto-columns: minmax(165px, 72%);
    }

    .home-feature-links {
        gap: 10px;
    }

    .home-feature-links a {
        min-height: 120px;
    }

    .home-feature-links span {
        font-size: 15px;
    }

    .home-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .home-seasonal-grid,
    .home-discovery-grid,
    .home-alphabet-grid,
    .home-translation-help > div {
        grid-template-columns: 1fr;
    }

    .home-featured-artists > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-featured-artists > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-language-card > header,
    .home-holidays-card,
    .home-events-card,
    .home-words-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .home-discovery {
        margin-right: -8px;
        margin-left: -8px;
    }

    .home-birthdays li {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 2px 12px;
    }

    .home-birthday-photo {
        grid-row: 1 / span 2;
    }

    .home-birthdays time,
    .home-birthday-person {
        grid-column: 2;
    }
}
