/* ============================================================
   Stack and Value — Track 1 homepage refresh (2026-10-25)
   ------------------------------------------------------------
   Hand-maintained, like assets/built/dark-mode.css: copy this file to
   the theme's assets/built/ folder (see INTEGRATION.md) and do NOT
   put it through the gulp build, so a rebuild cannot overwrite it.

   Everything here uses existing theme variables, so dark mode
   (assets/built/dark-mode.css, prefers-color-scheme) keeps working
   with no duplicate dark-mode block:
     --ghost-accent-color  (site accent, #16A34A)
     --color-primary-text / --color-secondary-text
     --color-border / --color-lighter-gray / --background-color
   No new fonts, no new colors, no JavaScript.
   ============================================================ */

/* ---------- Shared section spacing ---------- */

.home-hero,
.home-drops,
.home-trending {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

@media (max-width: 767px) {
    .home-hero,
    .home-drops,
    .home-trending {
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }
}

/* ---------- Hero ---------- */

.home-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.2rem;
    align-items: center;
    background-color: var(--color-lighter-gray);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3.2rem;
}

@media (max-width: 767px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

.home-hero-eyebrow {
    margin: 0 0 0.8rem;
    color: var(--ghost-accent-color, #16a34a);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2.8rem, 4.5vw, 4.4rem);
    line-height: 1.1;
}

.home-hero-blurb {
    margin: 0 0 1.6rem;
    color: var(--color-secondary-text);
    font-size: 1.7rem;
    line-height: 1.55;
}

.home-hero-price {
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.8rem;
}

.home-hero-price-now {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.home-hero-price-note {
    color: var(--color-secondary-text);
    font-size: 1.4rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem;
}

.home-hero-button {
    /* .gh-button already supplies the accent background + text color */
    text-decoration: none;
}

.home-hero-link {
    color: var(--color-primary-text);
    font-weight: 700;
    text-decoration: none;
}

.home-hero-link:hover {
    color: var(--ghost-accent-color, #16a34a);
}

.home-hero-link svg {
    width: 1.4rem;
    height: 1.4rem;
    vertical-align: -0.1rem;
}

.home-hero-fineprint {
    margin: 1.6rem 0 0;
    color: var(--color-secondary-text);
    font-size: 1.3rem;
    line-height: 1.5;
}

/* Reserved image box: aspect-ratio holds the space before the image
   loads, so the hero does not shift. Image is cropped, never stretched. */
.home-hero-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--color-light-gray);
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Price-drops strip ---------- */

.home-drops-inner {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-drops-head,
.home-trending-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem 2rem;
    margin-bottom: 1.6rem;
}

.home-drops-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
}

.home-drops-all,
.home-trending-all {
    color: var(--color-primary-text);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-drops-all:hover,
.home-trending-all:hover {
    color: var(--ghost-accent-color, #16a34a);
}

.home-drops-all svg,
.home-trending-all svg {
    width: 1.3rem;
    height: 1.3rem;
    vertical-align: -0.1rem;
}

.home-drops-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 767px) {
    .home-drops-list {
        grid-template-columns: 1fr;
    }
}

.home-drops-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.home-drops-link {
    display: block;
    padding: 1.6rem;
    color: var(--color-primary-text);
    text-decoration: none;
}

.home-drops-link:hover .home-drops-name {
    color: var(--ghost-accent-color, #16a34a);
}

.home-drops-name {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-drops-prices {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.6rem;
}

.home-drops-prices s {
    color: var(--color-secondary-text);
    margin-right: 0.6rem;
}

.home-drops-prices strong {
    color: var(--ghost-accent-color, #16a34a);
}

.home-drops-meta {
    display: block;
    color: var(--color-secondary-text);
    font-size: 1.3rem;
    line-height: 1.5;
}

.home-drops-note {
    margin: 1.2rem 0 0;
    color: var(--color-secondary-text);
    font-size: 1.3rem;
}

/* ---------- Trending guides row ---------- */

.home-trending-title {
    /* .gh-container-title supplies the theme's section-title style */
    margin: 0;
}

.home-trending-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
}

@media (max-width: 1000px) {
    .home-trending-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-trending-feed {
        grid-template-columns: 1fr;
    }
}

/* Track 7: reader-request wall block on homepage */
.request-wall { padding: 2rem 1rem; text-align: center; }
.request-wall-note { opacity: 0.75; font-size: 0.9em; }
