/* The Garden Collective · homepage (home.hbs). Colours fall back to the brand values
   if the Site header code injection is ever removed. */
.tgc-home {
    --h-green: var(--tgc-green, #3C4B34);
    --h-ink: var(--tgc-ink, #262825);
    --h-soft: var(--tgc-soft, #4D4F49);
    --h-rule: var(--tgc-rule, #C9C1B5);
    --h-ivory: var(--tgc-surface, #FBF8F2);
    --h-sage: #DDE3D8;
    --h-sans: var(--tgc-sans, Jost, "Futura PT", Futura, sans-serif);
    --h-serif: var(--gh-font-heading, "Sorts Mill Goudy", Georgia, serif);
    --h-gap: var(--container-gap, 24px);
    color: var(--h-ink);
}
.tgc-home *, .tgc-home *::before, .tgc-home *::after { box-sizing: border-box; }
.tgc-home :is(h1, h2, h3, p, ol, ul) { margin: 0; }
.tgc-home a { color: inherit; }
.tgc-home :is(h1, h2, h3) a { text-decoration: none; }
.tgc-home :is(h1, h2, h3) a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }

/* shared pieces */
.tgc-home .tgc-kicker {
    font-family: var(--h-sans); font-size: 1.5rem; font-weight: 500; line-height: 1.4;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-green);
}
.tgc-home .tgc-h2 { font-family: var(--h-serif); font-weight: 400; font-size: clamp(3.2rem, 1.4vw + 2.5rem, 4.4rem); line-height: 1.12; }
.tgc-home .tgc-body { font-family: var(--h-serif); font-size: 2rem; line-height: 1.55; color: #3A3C37; }
.tgc-home .tgc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem;
    font-family: var(--h-sans); font-size: 1.6rem; letter-spacing: 0.03em; color: var(--h-soft); }
.tgc-home .tgc-meta strong { font-weight: 500; color: var(--h-ink); }
.tgc-home .tgc-meta-small { font-family: var(--h-sans); font-size: 1.6rem; letter-spacing: 0.03em; color: var(--h-soft); }
.tgc-home .tgc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 1.8rem; }
.tgc-home .tgc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem;
    min-height: 52px; padding: 0 2.6rem; border: 1.5px solid var(--h-green); border-radius: 4px;
    font-family: var(--h-sans); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; text-decoration: none; color: var(--h-green); background: transparent;
}
.tgc-home .tgc-btn.is-solid { background: var(--h-green); color: var(--h-ivory); }
.tgc-home .tgc-btn:hover { opacity: 0.9; }
.tgc-home .tgc-btn.is-play::before { content: ""; width: 12px; height: 14px; background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tgc-home .tgc-pill {
    display: inline-flex; align-items: center; padding: 0.2rem 1.2rem; border: 1.5px solid var(--h-green);
    border-radius: 999px; font-family: var(--h-sans); font-size: 1.5rem; font-weight: 500; line-height: 1.5;
    letter-spacing: 0.03em; color: var(--h-green); background: transparent; white-space: nowrap;
}
.tgc-home .tgc-pill.is-free { background: var(--h-sage); }
.tgc-home .tgc-pill.is-members { background: var(--h-green); color: var(--h-ivory); }
.tgc-home .tgc-pill.is-open { border-color: #5E5A52; color: #4A4740; }
.tgc-home img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tgc-home .tgc-noimage { display: block; width: 100%; height: 100%; background: #E4E0D6; }

/* sections */
.tgc-home .tgc-hero,
.tgc-home .tgc-section,
.tgc-home .tgc-listen {
    max-width: calc(1240px + var(--h-gap) * 2); margin: 0 auto; padding-left: var(--h-gap); padding-right: var(--h-gap);
}
.tgc-home .tgc-section-head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.2rem;
    border-top: 1px solid var(--h-ink); padding-top: 2.2rem; margin-bottom: 4rem;
}
.tgc-home .tgc-section-head .tgc-kicker { margin-bottom: 0.6rem; }
.tgc-home .tgc-head-link { font-family: var(--h-sans); font-size: 1.7rem; letter-spacing: 0.03em; color: var(--h-green); }

/* 1. lead essay */
.tgc-home .tgc-hero { display: grid; grid-template-columns: 1fr; gap: 3.2rem; padding-top: 4.8rem; padding-bottom: 8rem; align-items: center; }
.tgc-home .tgc-hero-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #E4E0D6; }
.tgc-home .tgc-hero-text { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.tgc-home .tgc-hero-title { font-family: var(--h-serif); font-weight: 400; font-size: clamp(4rem, 3.2vw + 2.6rem, 6.8rem); line-height: 1.04; }
.tgc-home .tgc-hero-excerpt { font-family: var(--h-serif); font-size: clamp(2rem, 0.4vw + 1.85rem, 2.4rem); line-height: 1.45; color: #3A3C37; }
.tgc-home .tgc-hero .tgc-meta { font-size: 1.7rem; }
.tgc-home .tgc-hero .tgc-actions { margin-top: 0.4rem; }
@media (min-width: 1000px) {
    .tgc-home .tgc-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5.6rem; padding-top: 6.4rem; }
}

/* 2. three essays */
.tgc-home .tgc-section { padding-bottom: 9.6rem; }
.tgc-home .tgc-week { display: grid; grid-template-columns: 1fr; gap: 5.6rem 4.8rem; }
@media (min-width: 768px) { .tgc-home .tgc-week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tgc-home .tgc-card { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.tgc-home .tgc-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #E4E0D6; margin-bottom: 0.6rem; }
.tgc-home .tgc-card-title { font-family: var(--h-serif); font-weight: 400; font-size: clamp(2.6rem, 0.6vw + 2.3rem, 3rem); line-height: 1.15; }
.tgc-home .tgc-card-excerpt { font-family: var(--h-serif); font-size: 1.9rem; line-height: 1.5; color: #3A3C37;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* 3. listen */
.tgc-home .tgc-listen { display: grid; grid-template-columns: 1fr; gap: 5.6rem; padding-bottom: 9.6rem; }
.tgc-home .tgc-listen-text { display: flex; flex-direction: column; gap: 2.2rem; min-width: 0;
    border-top: 1px solid var(--h-ink); padding-top: 2.2rem; }
.tgc-home .tgc-listen-list { list-style: none; padding: 0; margin: 0.8rem 0 1rem; font-family: var(--h-sans); letter-spacing: 0.03em; }
.tgc-home .tgc-listen-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem;
    padding: 1.8rem 0; border-top: 1px solid var(--h-rule); font-size: 1.85rem; line-height: 1.4; }
.tgc-home .tgc-listen-list li:last-child { border-bottom: 1px solid var(--h-rule); }
.tgc-home .tgc-listen-list li > :first-child { flex: 1 1 auto; min-width: 0; }
.tgc-home .tgc-listen-list .tgc-pill { flex: 0 0 auto; }
.tgc-home .tgc-listen-list strong { font-weight: 500; }
.tgc-home .tgc-listen-list a { text-decoration: none; }
.tgc-home .tgc-listen-list a:hover strong { text-decoration: underline; text-underline-offset: 0.15em; }
.tgc-home .tgc-listen-text > .tgc-btn { align-self: flex-start; }
.tgc-home .tgc-latest { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; align-self: start;
    border: 1px solid var(--h-rule); padding: 3.2rem; }
.tgc-home .tgc-latest-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #E4E0D6; margin-bottom: 0.4rem; }
.tgc-home .tgc-latest-title { font-family: var(--h-serif); font-weight: 400; font-size: clamp(2.8rem, 0.6vw + 2.5rem, 3.2rem); line-height: 1.15; }
@media (min-width: 1000px) {
    .tgc-home .tgc-listen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6.4rem; }
    .tgc-home .tgc-latest { margin-top: 2.3rem; }
}

/* 4. recent essays */
.tgc-home .tgc-section-head + .tgc-rows { margin-top: -1.6rem; }
.tgc-home .tgc-rows { list-style: none; padding: 0; }
.tgc-home .tgc-row {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "date date" "img text" "img access";
    gap: 0.8rem 1.8rem; align-items: start; padding: 2.4rem 0; border-bottom: 1px solid var(--h-rule);
}
.tgc-home .tgc-row-date { grid-area: date; font-family: var(--h-sans); font-size: 1.6rem; letter-spacing: 0.03em; color: var(--h-soft); }
.tgc-home .tgc-row-media { grid-area: img; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #E4E0D6; }
.tgc-home .tgc-row-text { grid-area: text; min-width: 0; }
.tgc-home .tgc-row-title { font-family: var(--h-serif); font-weight: 400; font-size: 2.3rem; line-height: 1.25; }
.tgc-home .tgc-row-author { margin-top: 0.4rem; font-family: var(--h-sans); font-size: 1.6rem; letter-spacing: 0.03em; color: var(--h-soft); }
.tgc-home .tgc-row-access { grid-area: access; }
@media (min-width: 768px) {
    .tgc-home .tgc-row { grid-template-columns: 90px 200px minmax(0, 1fr) auto; grid-template-areas: "date img text access";
        gap: 0 3.2rem; align-items: center; }
    .tgc-home .tgc-row-date { align-self: center; }
    .tgc-home .tgc-row-title { font-size: 2.7rem; }
}
.tgc-home .tgc-more { margin-top: 3.2rem; }

@media (max-width: 767px) {
    .tgc-home .tgc-hero { padding-top: 2.4rem; padding-bottom: 6.4rem; }
    .tgc-home .tgc-section, .tgc-home .tgc-listen { padding-bottom: 6.4rem; }
    .tgc-home .tgc-latest { padding: 2.2rem; }
    .tgc-home .tgc-hero .tgc-btn { flex: 1 1 100%; }
}
