
/* ==========================================
   SUSTAINABLEALTERNATIVE.ORG — INNER PAGES
   ========================================== */

.inner-page {
    background: #fbfbf7;
    color: #173d39;
}

/* Header adjustments for inner pages */
.inner-page header {
    border-bottom: 1px solid #e8e9e1;
    background: transparent;
}

.inner-page nav a.active {
    color: #214a40;
    font-weight: 600;
}

.inner-page .inner-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Centered content, not full-width */
.inner-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 28px 0 22px;
    font-size: 12px;
    color: #718078;
}

.breadcrumb a {
    color: #315d50;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page introduction */
.inner-intro {
    max-width: 760px;
    padding: 32px 0 48px;
}

.inner-kicker {
    display: inline-block;
    color: #638071;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.inner-intro h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    margin: 14px 0 18px;
}

.inner-intro > p {
    max-width: 650px;
    color: #62716a;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* Category banner: full-width cover photo, like the homepage hero */
.category-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 48px;
    background: var(--green);
    color: white;
}

.category-hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(5, 25, 19, 0.88) 0%,
        rgba(5, 25, 19, 0.62) 50%,
        rgba(5, 25, 19, 0.2) 100%
    );
}

.category-hero .breadcrumb,
.category-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}

.category-hero .inner-intro {
    padding: 40px 0 72px;
}

.category-hero .inner-kicker {
    color: #b9d3c3;
}

.category-hero .inner-intro h1 {
    color: white;
}

.category-hero .inner-intro > p {
    color: rgba(255, 255, 255, 0.86);
}

/* About / Privacy / Terms */
.page-body {
    max-width: 720px;
    padding: 8px 0 72px;
    color: #405b56;
    font-size: 16px;
    line-height: 1.8;
}

.page-body h2 {
    margin: 40px 0 12px;
    color: #173d39;
    font-size: 26px;
    line-height: 1.25;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body p,
.page-body ul {
    margin: 0 0 16px;
}

.page-body ul {
    padding-left: 22px;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body a {
    color: #315d50;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-body strong {
    color: #173d39;
}

/* Story list */
.story-section {
    padding: 8px 0 70px;
}

.story-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dfe5dc;
}

.story-section-heading h2 {
    font-size: clamp(26px, 3vw, 35px);
    margin: 8px 0 0;
}

.story-count {
    color: #718078;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
}

.story-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e8eae3;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23, 61, 57, 0.08);
}

.story-image-link {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: #e6ebe3;
}

.story-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.story-card:hover .story-image-link img {
    transform: scale(1.035);
}

.image-number {
    position: absolute;
    bottom: 14px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fbfbf7;
    color: #214a40;
    font-family: Georgia, serif;
    font-size: 14px;
}

.story-card-body {
    padding: 23px 24px 25px;
}

.story-category {
    color: #678071;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.6;
}

.story-card h3 {
    font-size: clamp(21px, 2.2vw, 27px);
    line-height: 1.22;
    margin: 12px 0;
}

.story-card h3 a:hover {
    color: #547966;
}

.story-card p {
    color: #64726b;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.story-read {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #aab9ad;
    color: #214a40;
    font-size: 13px;
    font-weight: 600;
}

.story-read span {
    transition: transform 0.2s ease;
}

.story-read:hover span {
    transform: translateX(4px);
}

.story-disclaimer {
    margin: 24px 0 0;
    color: #79847c;
    font-size: 12px;
    line-height: 1.7;
}

/* Newsletter panel on inner pages */
.inner-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 65px;
    padding: 30px 34px;
    background: #edf1e9;
    border-left: 3px solid #315d50;
}

.inner-newsletter h2 {
    margin: 8px 0;
    font-size: clamp(24px, 3vw, 32px);
}

.inner-newsletter p {
    color: #64726b;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.inner-button {
    display: inline-block;
    flex-shrink: 0;
    padding: 13px 20px;
    background: #214a40;
    color: #ffffff;
    border-radius: 3px;
    font-size: 12px;
    transition: background 0.2s ease;
}

.inner-button:hover {
    background: #173d39;
}

/* Article page */
.article-container {
    max-width: 1060px;
}

.full-story {
    padding-bottom: 65px;
}

.article-heading {
    max-width: 820px;
    margin: 0 auto;
    padding: 25px 0 32px;
    text-align: center;
}

.article-heading h1 {
    max-width: 800px;
    margin: 17px auto;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
}

.article-deck {
    max-width: 690px;
    margin: 0 auto;
    color: #64726b;
    font-size: 17px;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    color: #78847d;
    font-size: 12px;
}

.meta-dot {
    color: #9eaea1;
}

.article-hero {
    margin: 0 0 42px;
}

.article-hero img {
    display: block;
    width: 100%;
    height: clamp(260px, 42vw, 490px);
    object-fit: cover;
    border-radius: 4px;
}

.article-hero figcaption {
    margin-top: 10px;
    color: #7b867f;
    font-size: 11px;
    line-height: 1.6;
}

.article-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 680px);
    justify-content: center;
    gap: 55px;
    align-items: start;
}

.article-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #dfe5dc;
}

.article-sidebar .inner-kicker {
    margin: 0 0 12px;
    padding-top: 16px;
}

.article-sidebar a {
    padding: 11px 0;
    border-bottom: 1px solid #e5e8e0;
    color: #617168;
    font-size: 12px;
    line-height: 1.6;
}

.article-sidebar a:hover {
    color: #214a40;
}

.article-body {
    min-width: 0;
    color: #384f46;
}

.article-body p,
.article-body li {
    font-size: 16px;
    line-height: 1.95;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body .article-lead {
    color: #284a3e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.75;
}

.article-body h2 {
    scroll-margin-top: 24px;
    margin: 42px 0 17px;
    font-size: clamp(26px, 3vw, 33px);
    line-height: 1.2;
}

.article-body ul {
    padding-left: 24px;
    margin-bottom: 28px;
}

.article-body li {
    padding-left: 5px;
    margin-bottom: 9px;
}

.article-callout {
    margin: 30px 0;
    padding: 23px 25px;
    background: #edf1e9;
    border-left: 3px solid #638071;
}

.article-callout p {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.7;
}

.official-source {
    margin: 35px 0;
    padding: 23px;
    border: 1px solid #dfe5dc;
    border-radius: 3px;
}

.official-source strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.official-source p {
    margin: 8px 0;
    font-size: 14px;
}

.official-source a {
    color: #315d50;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body .article-disclaimer {
    color: #78847d;
    font-size: 12px;
    line-height: 1.8;
    border-top: 1px solid #e1e5de;
    padding-top: 18px;
}

.article-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #dfe5dc;
}

.article-bottom a {
    color: #315d50;
    font-size: 12px;
    font-weight: 600;
}

.article-bottom a:hover {
    text-decoration: underline;
}

/* Simple inner-page footer */
.inner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 25px max(24px, calc((100% - 1120px) / 2));
    border-top: 1px solid #e3e6df;
    color: #6b7971;
    font-size: 11px;
}

.inner-footer .footer-brand {
    color: #173d39;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

/* Tablet */
@media (max-width: 800px) {
    .inner-container {
        width: min(100% - 36px, 680px);
    }

    .inner-intro {
        padding: 20px 0 35px;
    }

    .category-hero {
        margin-bottom: 36px;
    }

    .category-hero .inner-intro {
        padding: 24px 0 48px;
    }

    .story-grid {
        gap: 24px 18px;
    }

    .story-image-link {
        height: 200px;
    }

    .story-card-body {
        padding: 19px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .article-sidebar .inner-kicker {
        grid-column: 1 / -1;
    }

    .inner-newsletter {
        align-items: flex-start;
        flex-direction: column;
    }

    .inner-footer {
        padding: 24px 5%;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .inner-container {
        width: calc(100% - 32px);
    }

    .breadcrumb {
        padding-top: 20px;
        font-size: 11px;
        gap: 7px;
    }

    .inner-intro h1 {
        font-size: 38px;
    }

    .inner-intro > p {
        font-size: 14px;
    }

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

    .story-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .story-image-link {
        height: 220px;
    }

    .story-card h3 {
        font-size: 25px;
    }

    .story-card p {
        font-size: 14px;
    }

    .inner-newsletter {
        padding: 24px 20px;
    }

    .article-heading {
        padding-top: 12px;
    }

    .article-heading h1 {
        font-size: 36px;
    }

    .article-deck {
        font-size: 15px;
    }

    .article-hero img {
        height: 250px;
    }

    .article-body .article-lead {
        font-size: 19px;
    }

    .article-body p,
    .article-body li {
        font-size: 15px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-sidebar .inner-kicker {
        grid-column: auto;
    }

    .article-bottom {
        flex-direction: column;
    }

    .inner-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* OPTIONAL POLISH — INNER PAGES */

/* Smoother story-card interaction */
.inner-page .story-card {
    border-radius: 6px;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.inner-page .story-card:hover {
    border-color: #d5dfd3;
    box-shadow: 0 12px 28px rgba(23, 61, 57, 0.09);
}

/* Improve paragraph readability */
.inner-page .story-card p {
    line-height: 1.85;
}

/* More refined newsletter panel */
.inner-page .inner-newsletter {
    border-radius: 4px;
}

/* Comfortable button interaction */
.inner-page .inner-button {
    text-align: center;
    line-height: 1.5;
    text-decoration: none;
}

.inner-page .inner-button:focus-visible,
.inner-page .story-card a:focus-visible {
    outline: 2px solid #b59a58;
    outline-offset: 4px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .inner-page .story-card,
    .inner-page .story-image-link img,
    .inner-page .inner-button {
        transition: none;
    }

    .inner-page .story-card:hover {
        transform: none;
    }

    .inner-page .story-card:hover .story-image-link img {
        transform: none;
    }
}

/* Mobile newsletter button */
@media (max-width: 520px) {
    .inner-page .inner-button {
        max-width: 100%;
        white-space: normal;
    }
}



/* STORY PAGE — OPTIONAL VISUAL REFINEMENTS */

/* Article heading */
.inner-page .article-heading {
    padding-bottom: 38px;
}

.inner-page .article-heading .story-category {
    letter-spacing: 1.5px;
    line-height: 1.7;
}

.inner-page .article-deck {
    line-height: 1.85;
}

/* Hero image */
.inner-page .article-hero img {
    border-radius: 6px;
}

.inner-page .article-hero figcaption {
    line-height: 1.75;
}

/* Table of contents */
.inner-page .article-sidebar {
    padding-bottom: 12px;
}

.inner-page .article-sidebar a {
    transition: color 0.2s ease;
}

.inner-page .article-sidebar a:hover {
    color: #547966;
}

/* Main article text */
.inner-page .article-body {
    overflow-wrap: break-word;
}

.inner-page .article-body p,
.inner-page .article-body li {
    line-height: 1.9;
}

.inner-page .article-body h2 {
    scroll-margin-top: 35px;
}

/* Key-point callout */
.inner-page .article-callout {
    border-radius: 3px;
    padding: 25px;
}

.inner-page .article-callout p {
    line-height: 1.8;
}

/* Official source panel */
.inner-page .official-source {
    background: #fff;
    border-radius: 4px;
    padding: 25px;
}

.inner-page .official-source a {
    display: inline-block;
    line-height: 1.7;
    text-underline-offset: 3px;
}

/* Bottom navigation */
.inner-page .article-bottom a {
    line-height: 1.7;
    text-underline-offset: 3px;
}

/* Smaller screens */
@media (max-width: 800px) {
    .inner-page .article-layout {
        gap: 28px;
    }

    .inner-page .article-sidebar {
        background: #f2f4ee;
        border: 1px solid #e1e7dd;
        border-radius: 4px;
        padding: 16px 18px;
    }

    .inner-page .article-sidebar .inner-kicker {
        padding-top: 0;
    }

    .inner-page .article-hero {
        margin-bottom: 30px;
    }
}

@media (max-width: 520px) {
    .inner-page .article-heading h1 {
        line-height: 1.15;
    }

    .inner-page .article-body .article-lead {
        line-height: 1.75;
    }

    .inner-page .article-callout,
    .inner-page .official-source {
        padding: 19px;
    }

    .inner-page .article-bottom {
        gap: 18px;
    }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    .inner-page .article-sidebar a {
        transition: none;
    }
}


/* ==========================================
   BLOG LISTINGS (home "Recent stories", related stories, empty categories)
   ========================================== */
.story-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid.three .story-image-link {
    height: 190px;
}

.story-grid.three .story-card h3 {
    font-size: 21px;
}

.latest {
    padding: 52px 4.7% 20px;
}

.latest .story-card {
    background: #ffffff;
    border: 1px solid #e8eae3;
}

.empty-category {
    padding: 40px 28px;
    border: 1px dashed #cfd8cc;
    border-radius: 5px;
    color: #64726b;
    text-align: center;
}

.empty-category a {
    color: #315d50;
    text-decoration: underline;
}

a.story-count:hover {
    color: #214a40;
}

@media (max-width: 900px) {
    .story-grid.three {
        grid-template-columns: 1fr;
    }
}

.inner-page .newsletter h2 {
    color: #fff;
}

/* ==========================================
   HOMEPAGE "RECENT STORIES" — image overlay cards
   ========================================== */
.latest {
    padding: 56px 0 40px;
}

.latest-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 22px;
}

.latest-eyebrow {
    color: #a8782a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.latest-heading h2 {
    margin: 0;
    font-size: clamp(32px, 3.4vw, 46px);
}

.latest-heading p {
    max-width: 340px;
    margin: 0 0 6px;
    color: #5d6f7a;
    font-size: 13px;
    line-height: 1.7;
}

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

.feature-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 320px;
    overflow: hidden;
    border-radius: 4px;
    color: #fff;
    background: #1d3a34;
}

.feature-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* dark gradient so the white text always reads */
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 25, 22, 0.05) 0%, rgba(10, 25, 22, 0.45) 45%, rgba(10, 25, 22, 0.88) 100%);
}

/* gold slanted accent on the right edge */
.feature-card::after {
    content: "";
    position: absolute;
    top: 52%;
    right: 0;
    bottom: 0;
    width: 10px;
    background: #e6b84f;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card-body {
    padding: 22px 26px 24px 22px;
}

.feature-kicker {
    display: block;
    margin-bottom: 8px;
    color: #f0cf7e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.feature-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: clamp(20px, 1.55vw, 24px);
    line-height: 1.18;
}

.feature-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.6;
}

.feature-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.feature-more span {
    color: #e6b84f;
    font-size: 16px;
    transition: transform 0.25s ease;
}

.feature-card:hover .feature-more span {
    transform: translateX(4px);
}

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

@media (max-width: 640px) {
    .latest-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card img,
    .feature-more span {
        transition: none;
    }
}
