/* Index page: the hero photo and the h1 and h2, and the sections below them. The top bar, search bar and plant bags are in top_bar.css, the same for every page. */

/* ---------- Hero frame ---------- */

.hero {
    position: relative;
    isolation: isolate;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    background: var(--night);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* Deepens the sky behind the top bar so stars don't land on the letters. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: calc(var(--nav-h) * 1.45);
    background: linear-gradient(to bottom, rgba(4, 11, 32, .92), rgba(4, 11, 32, .78) 58%, rgba(4, 11, 32, 0));
    pointer-events: none;
}

/* ---------- Hero h1 and h2 below the plant bags ---------- */

.heroCopy {
    box-sizing: border-box;
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: clamp(26px, 6.4vh, 72px);
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--gutter);
    text-align: center;
}

.heroCopyTitle {
    margin: 0;
    color: rgb(255, 255, 255);
    font-family: var(--serif);
    font-size: clamp(40px, min(5.2vw, 9.2vh), 76px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.016em;
    text-wrap: balance;
    /* A thin dark green outline, and a solid dark green shadow with no blur, centered on the letters: the 12 layers point in 12 directions around each letter. */
    -webkit-text-stroke: .05em rgb(13, 44, 25);
    paint-order: stroke fill;
    text-shadow:
        .06em 0 0 rgb(13, 44, 25),
        .052em .03em 0 rgb(13, 44, 25),
        .03em .052em 0 rgb(13, 44, 25),
        0 .06em 0 rgb(13, 44, 25),
        -.03em .052em 0 rgb(13, 44, 25),
        -.052em .03em 0 rgb(13, 44, 25),
        -.06em 0 0 rgb(13, 44, 25),
        -.052em -.03em 0 rgb(13, 44, 25),
        -.03em -.052em 0 rgb(13, 44, 25),
        0 -.06em 0 rgb(13, 44, 25),
        .03em -.052em 0 rgb(13, 44, 25),
        .052em -.03em 0 rgb(13, 44, 25);
    user-select: text;
    cursor: text;
}

/* Italic like the scientific names on the plant bags. */
.heroCopyTitleName {
    color: var(--sun-pale);
    font-family: var(--serif);
    font-style: italic;
}

.heroCopySubtitle {
    max-width: 37em;
    margin: clamp(10px, 1.7vh, 18px) auto 0;
    color: var(--paper);
    font-family: var(--search-font);
    font-size: clamp(17px, min(1.6vw, 2.6vh), 25px);
    font-weight: 700;
    line-height: 1.26;
    word-spacing: .07em;
    text-wrap: balance;
    /* Same centered shadow as the h1, proportionally thicker because these letters are smaller. */
    -webkit-text-stroke: .12em rgb(13, 44, 25);
    paint-order: stroke fill;
    text-shadow:
        .12em 0 0 rgb(13, 44, 25),
        .085em .085em 0 rgb(13, 44, 25),
        0 .12em 0 rgb(13, 44, 25),
        -.085em .085em 0 rgb(13, 44, 25),
        -.12em 0 0 rgb(13, 44, 25),
        -.085em -.085em 0 rgb(13, 44, 25),
        0 -.12em 0 rgb(13, 44, 25),
        .085em -.085em 0 rgb(13, 44, 25);
    user-select: text;
    cursor: text;
}

/* ---------- The search bar once the page has scrolled ---------- */

/* Below the hero there is text to read, so while the search is open the whole screen is blurred, like on the other pages. */
.topBarOnIndex.topBarIsStuck .topBarLayer {
    -webkit-mask: none;
    mask: none;
}

html.topBarIsOpen .topBarOnIndex.topBarIsStuck {
    background-color: var(--night);
}

/* ---------- Pieces shared by the sections below the hero ---------- */

.homeContainer {
    box-sizing: border-box;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.homeCentered {
    text-align: center;
}

.homeSection {
    padding-block: clamp(60px, 7.4vw, 112px);
}

.homeSectionGoldTop {
    border-top: 2px solid var(--sun);
}

.homeSectionPaper {
    background: var(--paper);
}

.homeSectionNight {
    background: var(--night);
}

.homeSectionGreen {
    background: radial-gradient(ellipse at 50% 50%, rgb(36, 90, 48), var(--leaf-deep) 72%);
}

/* Two columns: the narrow one on the left. */
.homeColumns {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 92px);
    align-items: center;
}

/* Two columns: the wide one on the left. */
.homeColumnsWideLeft {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.homeHeading {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(34px, 4.2vw, 60px);
    font-weight: 400;
    line-height: 1.08;
    text-wrap: balance;
    user-select: text;
    cursor: text;
}

.homeHeadingOnNight {
    color: rgb(255, 255, 255);
}

.homeHeadingAccent {
    color: var(--search-button-color);
    font-family: var(--serif);
    font-style: italic;
}

.homeHeadingAccentOnNight {
    color: var(--sun-pale);
}

.homeParagraph {
    margin: clamp(16px, 1.6vw, 22px) 0 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.36;
    user-select: text;
    cursor: text;
}

.homeParagraphOnNight {
    color: var(--paper);
}

.homeAction {
    margin: clamp(24px, 2.4vw, 34px) 0 0;
}

/* Same gold button as the other pages. */
.homeButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 10px clamp(24px, 2.6vw, 38px);
    border-radius: 999px;
    background: var(--sun);
    color: var(--night);
    font-family: var(--search-font);
    font-size: clamp(18px, 1.35vw, 20px);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: filter .25s ease;
}

.homeButton:hover {
    filter: brightness(1.1);
}

.homeButton:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: -2px;
}

/* ---------- Large photos from edge to edge ---------- */

.homeBand {
    height: clamp(280px, 42vw, 680px);
    overflow: hidden;
    border-block: 2px solid var(--sun);
    background: var(--leaf);
}

.homeBandPicture {
    display: block;
    height: 100%;
}

.homeBandImage {
    --homeBandX: 50%;

    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--homeBandX) 100%;
}

.homeBandLake .homeBandImage {
    --homeBandX: 56%;
}

/* ---------- Thin strips of flowers from edge to edge ---------- */

.homeStrip {
    height: clamp(87px, 10.8vw, 177px);
    overflow: hidden;
    border-block: 2px solid var(--sun);
    background: var(--leaf);
}

.homeStripPicture {
    display: block;
    height: 100%;
}

.homeStripImage {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* The photo inside each strip moves slightly while the strip crosses the screen. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .homeStripImage {
            animation: homeStripDrift linear both;
            animation-timeline: view();
        }
    }
}

@keyframes homeStripDrift {
    from {
        object-position: 50% 30%;
    }

    to {
        object-position: 50% 70%;
    }
}

/* ---------- About the company ---------- */

.homeAboutListTitle {
    margin: 0;
    color: var(--leaf);
    font-family: var(--search-font);
    font-size: clamp(21px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.2;
    user-select: text;
    cursor: text;
}

.homeAboutList {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.homeAboutListItem {
    padding: 14px 0;
    border-top: 1px solid rgba(184, 145, 74, .45);
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.26;
    user-select: text;
    cursor: text;
}

.homeAboutListItem:last-child {
    border-bottom: 1px solid rgba(184, 145, 74, .45);
}

/* ---------- Vegetable glycerin ---------- */

/* The background is the color of the top of the photo, so the sky continues above it with no edge. */
.homeGlycerin {
    position: relative;
    isolation: isolate;
    padding-top: clamp(64px, 7.6vw, 116px);
    padding-bottom: 38vw;
    overflow: hidden;
    border-top: 2px solid var(--sun);
    background: rgb(3, 10, 27);
}

.homeGlycerinPicture {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 0;
}

.homeGlycerinPhoto {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2752 / 1536;
    -webkit-mask: linear-gradient(to bottom, transparent, rgb(0, 0, 0) 16%);
    mask: linear-gradient(to bottom, transparent, rgb(0, 0, 0) 16%);
}

.homeGlycerinIntro {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.homeEyebrow {
    margin: 0 0 12px;
    color: var(--sun);
    font-family: var(--search-font);
    font-size: clamp(18px, 1.4vw, 21px);
    font-weight: 700;
    line-height: 1.2;
    user-select: text;
    cursor: text;
}

.homeReasons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(30px, 3.2vw, 46px) clamp(26px, 2.8vw, 40px);
    margin: clamp(40px, 4.4vw, 64px) 0 0;
    padding: 0;
    list-style: none;
}

.homeReason {
    padding-top: 14px;
    border-top: 1px solid rgba(235, 201, 91, .5);
}

.homeReasonTitle {
    margin: 0;
    color: var(--sun-pale);
    font-family: var(--serif);
    font-size: clamp(27px, 2.2vw, 32px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.12;
    user-select: text;
    cursor: text;
}

.homeReasonText {
    margin: 8px 0 0;
    color: rgb(255, 255, 255);
    font-family: var(--serif);
    font-size: clamp(19px, 1.45vw, 21px);
    font-weight: 400;
    line-height: 1.3;
    user-select: text;
    cursor: text;
}

.homeReasonNote {
    margin: 10px 0 0;
    color: var(--sun-pale);
    font-family: var(--search-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.22;
    user-select: text;
    cursor: text;
}

.homeGlycerinClosing {
    margin: clamp(40px, 4.4vw, 64px) 0 0;
    color: rgb(255, 255, 255);
    font-family: var(--serif);
    font-size: clamp(21px, 1.7vw, 25px);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    user-select: text;
    cursor: text;
}

.homeGlycerinClosingTitle {
    color: var(--sun-pale);
    font-family: var(--serif);
    font-size: clamp(28px, 2.5vw, 36px);
    font-style: italic;
}

/* ---------- Invitation to the plants: the names of all the plants ---------- */

/* The list starts one gap to the left and that gap is cut off, so the dot before the first name of each line is not seen. */
.homePlantNames {
    --homePlantGap: clamp(24px, 2.6vw, 38px);

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 0 calc(var(--homePlantGap) * -1);
    padding: 0;
    list-style: none;
    clip-path: inset(0 0 0 var(--homePlantGap));
}

.homePlantName {
    position: relative;
    padding-left: var(--homePlantGap);
}

/* Gold dot between one name and the next. */
.homePlantName::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--homePlantGap) / 2 - 2.5px);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brass);
    translate: 0 -50%;
}

.homePlantLink {
    color: var(--leaf);
    font-family: var(--serif);
    font-size: clamp(23px, 2.15vw, 31px);
    font-weight: 400;
    line-height: 1.42;
    text-decoration: none;
}

.homePlantLink:hover {
    color: var(--search-button-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
}

.homePlantLink:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: -2px;
}

/* ---------- Invitation to the products: three figures ---------- */

.homeFigures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin: clamp(34px, 4vw, 56px) auto 0;
    padding: 0;
    list-style: none;
}

.homeFigure {
    padding: 6px clamp(14px, 2.4vw, 34px);
    border-left: 1px solid rgba(235, 201, 91, .45);
}

.homeFigure:first-child {
    border-left: 0;
}

.homeFigureNumber {
    margin: 0;
    color: var(--sun);
    font-family: var(--serif);
    font-size: clamp(56px, 6.2vw, 90px);
    font-weight: 400;
    line-height: 1;
    user-select: text;
    cursor: text;
}

.homeFigureCaption {
    margin: 8px 0 0;
    color: var(--paper);
    font-family: var(--search-font);
    font-size: clamp(18px, 1.5vw, 21px);
    font-weight: 700;
    line-height: 1.2;
    user-select: text;
    cursor: text;
}

/* ---------- Invitation to the page about how to use the extracts: the steps ---------- */

.homeSteps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.homeStep {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 34px);
    padding-block: clamp(10px, 1.1vw, 16px);
    border-top: 1px solid rgba(184, 145, 74, .45);
}

.homeStep:last-child {
    border-bottom: 1px solid rgba(184, 145, 74, .45);
}

.homeStepNumber {
    flex: none;
    width: .8em;
    color: var(--leaf);
    font-family: var(--serif);
    font-size: clamp(50px, 5vw, 72px);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    user-select: text;
    cursor: text;
}

.homeStepText {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 400;
    line-height: 1.12;
    user-select: text;
    cursor: text;
}

/* ---------- Invitation to the recycling program: the two offers ---------- */

.homeOffers {
    margin: 0;
    padding: 0;
    list-style: none;
}

.homeOffer {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 44px);
    padding-block: clamp(14px, 1.6vw, 24px);
    border-top: 1px solid rgba(235, 201, 91, .4);
}

.homeOffer:last-child {
    border-bottom: 1px solid rgba(235, 201, 91, .4);
}

.homeOfferNumber {
    flex: none;
    width: .7em;
    margin: 0;
    color: var(--sun);
    font-family: var(--serif);
    font-size: clamp(70px, 7.6vw, 110px);
    font-weight: 400;
    line-height: .95;
    text-align: center;
    user-select: text;
    cursor: text;
}

.homeOfferFrom {
    margin: 0;
    color: var(--sun-pale);
    font-family: var(--search-font);
    font-size: clamp(18px, 1.4vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    user-select: text;
    cursor: text;
}

.homeOfferResult {
    margin: 4px 0 0;
    color: rgb(255, 255, 255);
    font-family: var(--serif);
    font-size: clamp(27px, 2.8vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    user-select: text;
    cursor: text;
}

.homeOfferAccent {
    color: var(--sun-pale);
    font-family: var(--serif);
    font-style: italic;
}

/* ---------- Orders ---------- */

.homeOrders {
    border-top: 2px solid var(--sun);
    scroll-margin-top: calc(var(--search-h) + 20px);
}

/* ---------- Medium screens ---------- */

@media only screen and (max-width: 900px) {
    .homeReasons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Small screens ---------- */

@media only screen and (max-width: 600px) {
    .heroCopyTitle {
        font-size: clamp(34px, 10.6vw, 44px);
    }

    .heroCopySubtitle {
        font-size: 17px;
    }

    .homeHeading {
        font-size: 32px;
    }

    .homeSection {
        padding-block: 48px;
    }

    .homeColumns,
    .homeColumnsWideLeft {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    /* The title goes above the steps. */
    .homeSteps {
        order: 2;
    }

    .homeBand {
        height: 72vw;
    }

    .homeGlycerin {
        padding-bottom: 66vw;
    }

    .homeGlycerinPhoto {
        width: 180%;
        max-width: none;
        margin-left: -40%;
    }

    .homeReasons {
        grid-template-columns: minmax(0, 1fr);
    }

    .homeFigures {
        grid-template-columns: minmax(0, 1fr);
    }

    .homeFigure {
        padding: 16px 0;
        border-top: 1px solid rgba(235, 201, 91, .45);
        border-left: 0;
    }

    .homeFigure:first-child {
        border-top: 0;
    }

    .homeButton {
        padding-inline: 20px;
    }
}
