@import url('base.css?v=20260820-25');

:root {
    --home-header: #075f3a;
    --home-header-deep: #034c2e;
    --home-hero: rgb(5 71 49 / 84%);
    --home-surface: #fff;
    --home-ink: #151515;
    --home-shadow: 0 5px 12px rgb(0 0 0 / 26%);
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body.home-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--home-ink);
    background: #bad994 url('../images/virtual-forest-background.png') center top 60px / cover no-repeat fixed;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    text-rendering: optimizelegibility;
}

body.home-page header-component {
    display: block;
    position: sticky;
    z-index: 100;
    top: 0;
}

body.home-page .site-nav {
    min-height: 60px;
    padding: 0 28px;
    color: #fff;
    background: linear-gradient(90deg, var(--home-header), #087144 55%, var(--home-header));
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}

body.home-page .site-nav__inner {
    width: 100%;
}

body.home-page .site-title {
    min-height: 52px;
    gap: 12px;
    margin-left: 0;
    color: #fff;
    font-size: clamp(1.65rem, 2.2vw, 2.05rem);
    line-height: 1;
}

body.home-page .site-nav .logo {
    width: 38px;
    height: 41px;
    background: url('../images/white4hlogo.png') no-repeat center / contain;
}

body.home-page .site-nav__links {
    gap: 8px;
}

body.home-page .site-nav__links .nav-link {
    min-width: 52px;
    min-height: 48px;
    justify-content: center;
    padding: 0.25rem 0.55rem 0;
    color: #fff;
    background: transparent;
    border-radius: 0.35rem;
    font-family: 'Irish Grover', Georgia, serif;
    font-size: 1.23rem;
    line-height: 1;
    text-decoration: none;
}

body.home-page .site-nav__links .nav-link:hover,
body.home-page .site-nav__links .nav-link[aria-current='page'] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.home-main {
    min-height: calc(100vh - 60px);
    padding: clamp(46px, 5.3vw, 55px) 24px 14px;
    background: linear-gradient(rgb(249 255 236 / 7%), rgb(13 77 43 / 6%));
}

.hero {
    width: min(670px, calc(100% - 24px));
    margin: 0 auto 20px;
    padding: 22px 28px 14px;
    color: #fff;
    background: var(--home-hero);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgb(6 58 39 / 14%);
    text-align: center;
    backdrop-filter: blur(2px);
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-family: 'Irish Grover', Georgia, serif;
    font-size: clamp(3rem, 4.15vw, 4.05rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 3px 2px rgb(0 0 0 / 32%);
}

.hero p {
    margin: 9px 0 0;
    font-family: 'Pixelify Sans', 'Roboto', sans-serif;
    font-size: clamp(1rem, 1.36vw, 1.25rem);
    font-weight: 650;
    line-height: 1.25;
    text-shadow: 0 2px 2px rgb(0 0 0 / 35%);
}

.story-grid {
    display: flex;
    width: min(1192px, 100%);
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 17px 22px;
    scroll-margin-top: 76px;
}

.story-card {
    --accent: #0a756f;
    display: flex;
    width: min(276px, 100%);
    min-width: 0;
    min-height: 278px;
    overflow: hidden;
    flex: 0 1 276px;
    flex-direction: column;
    color: var(--home-ink);
    background: var(--home-surface);
    border: 2px solid var(--accent);
    border-radius: 14px;
    box-shadow: var(--home-shadow);
    text-decoration: none;
    transform: translateZ(0);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.story--teal { --accent: #00746f; }
.story--orange { --accent: #b34800; }
.story--olive { --accent: #667700; }
.story--blue { --accent: #0965c8; }
.story--red { --accent: #c31e25; }
.story--purple { --accent: #7348bf; }
.story--green { --accent: #247a43; }

.story-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.72 / 1;
    background: #183e2b;
}

.story-image-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.play-button {
    display: grid;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55px;
    height: 55px;
    place-items: center;
    background: var(--accent);
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 7px rgb(0 0 0 / 35%);
    transform: translate(-50%, -50%);
}

.play-button span {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
}

.story-copy {
    display: flex;
    min-height: 116px;
    padding: 11px 13px 12px;
    flex: 1 1 auto;
    flex-direction: column;
}

.story-category {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.story-title {
    margin-top: 4px;
    color: var(--accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.08;
}

.story-description {
    margin-top: 8px;
    color: #181818;
    font-size: 0.81rem;
    font-weight: 475;
    line-height: 1.28;
}

@media (hover: hover) and (pointer: fine) {
    .story-card:hover {
        box-shadow: 0 10px 24px rgb(0 0 0 / 32%);
        transform: translateY(-4px);
    }

    .story-card:hover .story-image-wrap > img {
        transform: scale(1.025);
    }
}

.story-card:active {
    box-shadow: 0 2px 7px rgb(0 0 0 / 28%);
    transform: translateY(2px);
}

.accessibility-strip {
    display: flex;
    width: fit-content;
    max-width: calc(100% - 16px);
    min-height: 47px;
    margin: 14px auto 0;
    padding: 6px 18px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #00643e;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 14%);
}

.accessibility-strip > span {
    display: inline-flex;
    min-height: 30px;
    padding: 0 19px;
    align-items: center;
    gap: 10px;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.accessibility-strip > span + span {
    border-left: 1px solid rgb(255 255 255 / 76%);
}

.accessibility-strip svg {
    width: 27px;
    height: 24px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    flex: 0 0 auto;
}

.accessibility-strip span:first-child svg {
    fill: rgb(255 255 255 / 8%);
}

@media (min-width: 1800px) {
    .home-main {
        padding-top: 64px;
    }

    .hero {
        width: min(850px, calc(100% - 40px));
        padding: 28px 38px 20px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero p {
        font-size: 1.55rem;
    }

    .story-grid {
        width: min(1600px, 100%);
        gap: 24px 30px;
    }

    .story-card {
        width: 370px;
        min-height: 360px;
        flex-basis: 370px;
    }

    .story-copy {
        min-height: 145px;
        padding: 15px 18px;
    }

    .story-category { font-size: 0.9rem; }
    .story-title { font-size: 1.63rem; }
    .story-description { font-size: 1.02rem; line-height: 1.35; }
    .play-button { width: 68px; height: 68px; }
    .accessibility-strip { min-height: 57px; margin-top: 22px; }
    .accessibility-strip > span { padding-inline: 25px; font-size: 1rem; }
}

@media (max-width: 1220px) {
    .story-grid {
        width: min(890px, 100%);
    }
}

@media (max-width: 930px) {
    body.home-page {
        background-attachment: scroll;
        background-position: center top 60px;
    }

    .home-main {
        padding-top: 34px;
    }

    .story-grid {
        width: min(590px, 100%);
    }
}

@media (max-width: 700px) {
    body.home-page {
        background-position: 54% top 58px;
    }

    body.home-page .site-nav {
        min-height: 58px;
        padding: 0 12px 0 15px;
    }

    body.home-page .site-title {
        min-height: 50px;
        font-size: 1.55rem;
    }

    body.home-page .site-nav .logo {
        width: 34px;
        height: 37px;
    }

    body.home-page .site-nav__panel {
        background: var(--home-header-deep);
    }

    body.home-page .site-nav__links .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.4rem 0.8rem 0.2rem;
        font-size: 1.2rem;
    }

    body.home-page .site-nav__links .nav-link:hover,
    body.home-page .site-nav__links .nav-link[aria-current='page'] {
        background: rgb(255 255 255 / 12%);
        text-decoration: none;
    }

    .home-main {
        min-height: calc(100vh - 58px);
        padding: 20px 12px 18px;
    }

    .hero {
        width: 100%;
        margin-bottom: 16px;
        padding: 18px 12px 15px;
        border-radius: 14px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .hero p {
        font-size: clamp(0.95rem, 4.6vw, 1.16rem);
    }

    .desktop-break {
        display: none;
    }

    .story-grid {
        width: min(420px, 100%);
        gap: 14px;
    }

    .story-card {
        width: 100%;
        min-height: 0;
        flex-basis: auto;
    }

    .story-copy {
        min-height: 0;
        padding: 12px 14px 14px;
    }

    .story-title { font-size: 1.38rem; }
    .story-description { font-size: 0.92rem; line-height: 1.38; }
    .play-button { width: 62px; height: 62px; }

    .accessibility-strip {
        width: min(420px, 100%);
        margin-top: 16px;
        padding: 8px 14px;
        align-items: stretch;
        flex-direction: column;
        border-radius: 14px;
    }

    .accessibility-strip > span {
        min-height: 46px;
        padding: 5px 7px;
        justify-content: flex-start;
        font-size: 0.9rem;
        white-space: normal;
    }

    .accessibility-strip > span + span {
        border-top: 1px solid rgb(255 255 255 / 55%);
        border-left: 0;
    }
}

@media (max-width: 370px) {
    body.home-page .site-title {
        gap: 8px;
        font-size: 1.36rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (forced-colors: active) {
    .story-card,
    .play-button,
    .hero,
    .accessibility-strip {
        border: 2px solid CanvasText;
    }
}

@media print {
    body.home-page {
        background: #fff;
    }

    body.home-page header-component {
        position: static;
    }

    .home-main {
        padding: 24px;
    }

    .story-card {
        break-inside: avoid;
    }
}
