/* Talofa Insights editorial pages */

:root {
    --insights-ink: #1E140D;
    --insights-brown: #3E2A1C;
    --insights-mid: #5A3A24;
    --insights-copper: #8B5E3C;
    --insights-gold: #C9A46C;
    --insights-gold-light: #EDD9B8;
    --insights-text: #D6B48A;
}

.insights-page {
    position: relative;
    min-height: 100vh;
    padding: 8.5rem 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 7%, rgba(201, 164, 108, 0.12), transparent 24rem),
        linear-gradient(180deg, #2A1A10 0%, #1E140D 38rem, #171009 100%);
}

.insights-page .pattern-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-size: 38rem auto;
    background-repeat: repeat;
    pointer-events: none;
}

.insights-content {
    position: relative;
    z-index: 1;
}

.insights-kicker,
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--insights-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.insights-kicker::before,
.article-category::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: currentColor;
}

.insights-hero {
    max-width: 58rem;
    margin: 0 auto 4.5rem;
    text-align: center;
}

.insights-title {
    margin: 1rem 0 1.25rem;
    font-family: 'Cinzel', serif;
    color: var(--insights-gold-light);
    font-size: clamp(2.3rem, 7vw, 5.2rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
}

.insights-lead {
    max-width: 49rem;
    margin: 0 auto;
    color: rgba(214, 180, 138, 0.86);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.12rem, 2.2vw, 1.45rem);
    line-height: 1.75;
}

.insights-intro {
    max-width: 48rem;
    margin: 1.4rem auto 0;
    color: rgba(214, 180, 138, 0.7);
    font-size: 0.98rem;
    line-height: 1.85;
}

.insights-section {
    margin-top: 5rem;
}

.insights-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(201, 164, 108, 0.22);
}

.insights-section-heading h2 {
    font-family: 'Cinzel', serif;
    color: var(--insights-gold-light);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.25;
}

.insights-section-heading span {
    color: rgba(214, 180, 138, 0.52);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.featured-insight {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 108, 0.28);
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(90, 58, 36, 0.64), rgba(30, 20, 13, 0.92));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

@media (min-width: 860px) {
    .featured-insight {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        min-height: 31rem;
    }
}

.featured-insight-image {
    min-height: 18rem;
    background: #160F09;
}

.featured-insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-insight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.6rem, 5vw, 3.7rem);
}

.featured-label {
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.32rem 0.75rem;
    border: 1px solid rgba(201, 164, 108, 0.45);
    color: var(--insights-gold);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.featured-insight h2,
.insight-card h3,
.founder-insight h2 {
    font-family: 'Cinzel', serif;
    color: var(--insights-gold-light);
    line-height: 1.34;
}

.featured-insight h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.featured-insight p,
.insight-card p,
.founder-insight p {
    color: rgba(214, 180, 138, 0.74);
    line-height: 1.75;
}

.featured-insight p {
    margin-bottom: 1.5rem;
    font-size: 0.96rem;
}

.read-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.55rem;
    color: var(--insights-gold);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease, gap 0.25s ease;
}

.read-link::after {
    content: "→";
}

.read-link:hover {
    color: #DEC08E;
    gap: 0.8rem;
}

.insights-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 680px) {
    .insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1060px) {
    .insights-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.insight-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 108, 0.2);
    border-radius: 2px;
    background: linear-gradient(160deg, rgba(90, 58, 36, 0.36), rgba(30, 20, 13, 0.86));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.insight-card:hover,
.insight-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(201, 164, 108, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.insight-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #160F09;
}

.insight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-card-image img {
    transform: scale(1.025);
}

.insight-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.45rem;
}

.insight-card-category {
    margin-bottom: 0.7rem;
    color: var(--insights-gold);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.insight-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    overflow-wrap: break-word;
}

.insight-card p {
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.insight-card .read-link {
    margin-top: auto;
}

.founder-insight {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 108, 0.24);
    background: #24170E;
}

@media (min-width: 760px) {
    .founder-insight {
        grid-template-columns: 18rem 1fr;
    }
}

.founder-insight-image {
    min-height: 22rem;
}

.founder-insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.founder-insight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.7rem, 5vw, 3.2rem);
}

.founder-insight h2 {
    margin: 0.8rem 0 1rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.founder-insight p {
    margin-bottom: 1.4rem;
}

.coming-soon {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(201, 164, 108, 0.2);
    background: rgba(30, 20, 13, 0.62);
}

.coming-soon p {
    margin-bottom: 1.35rem;
    color: rgba(214, 180, 138, 0.68);
    line-height: 1.7;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
}

.topic-list li {
    padding: 0.48rem 0.8rem;
    border: 1px solid rgba(201, 164, 108, 0.25);
    color: rgba(237, 217, 184, 0.82);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.92rem;
}

/* Individual article pages */
.article-shell {
    max-width: 55rem;
    margin: 0 auto;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2.3rem;
    color: var(--insights-gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.article-back::before {
    content: "←";
}

.article-back:hover {
    color: #DEC08E;
}

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-category {
    margin-bottom: 1.1rem;
}

.article-title {
    margin-bottom: 1.2rem;
    color: var(--insights-gold-light);
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 3.9rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.article-deck {
    max-width: 44rem;
    margin: 0 auto;
    color: rgba(214, 180, 138, 0.8);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.08rem, 2.3vw, 1.35rem);
    line-height: 1.7;
}

.article-hero {
    margin: 0 auto 3rem;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 108, 0.28);
    background: #160F09;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
}

.article-hero img {
    width: 100%;
    max-height: 34rem;
    object-fit: cover;
}

.article-hero--portrait {
    max-width: 28rem;
}

.article-hero--portrait img {
    max-height: none;
    object-position: center top;
}

.article-body {
    max-width: 46rem;
    margin: 0 auto;
}

.article-body > p,
.article-body li {
    color: rgba(214, 180, 138, 0.84);
    font-size: 1rem;
    line-height: 1.86;
}

.article-body > p {
    margin-bottom: 1.35rem;
}

.article-body h2 {
    margin: 3rem 0 1rem;
    color: var(--insights-gold-light);
    font-family: 'Cinzel', serif;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.3;
}

.article-body h3 {
    margin: 2rem 0 0.75rem;
    color: var(--insights-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    line-height: 1.4;
}

.article-body ul,
.article-body ol {
    display: grid;
    gap: 0.55rem;
    margin: 0.35rem 0 1.6rem;
    padding-left: 1.35rem;
}

.article-body li::marker {
    color: var(--insights-gold);
}

.article-body .value-intro {
    margin-bottom: 0.8rem;
}

.article-pullquote {
    margin: 2.2rem 0;
    padding: 1.5rem 1.65rem;
    border-left: 3px solid var(--insights-gold);
    background: rgba(90, 58, 36, 0.28);
    color: var(--insights-gold-light);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-style: italic;
    line-height: 1.65;
}

.article-promise {
    margin: 1.4rem 0 0;
    padding: 1.4rem;
    border: 1px solid rgba(201, 164, 108, 0.28);
    color: var(--insights-gold-light);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.7;
    text-align: center;
}

.related-program {
    max-width: 46rem;
    margin: 3.5rem auto 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(201, 164, 108, 0.25);
    border-bottom: 1px solid rgba(201, 164, 108, 0.25);
    text-align: center;
}

.related-program p {
    margin-bottom: 0.85rem;
    color: rgba(214, 180, 138, 0.66);
    font-size: 0.86rem;
}

.article-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.article-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.68rem 1.2rem;
    border: 1px solid rgba(201, 164, 108, 0.35);
    color: var(--insights-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
}

.article-footer-nav a:hover {
    background: rgba(201, 164, 108, 0.08);
}

.nav-link:focus-visible,
.nav-mobile-link:focus-visible,
.nav-mobile-btn:focus-visible,
.read-link:focus-visible,
.article-back:focus-visible,
.article-footer-nav a:focus-visible,
.footer-nav-link:focus-visible {
    outline: 2px solid #EDD9B8;
    outline-offset: 4px;
}

@media (max-width: 679px) {
    .insights-page {
        padding-top: 7.4rem;
    }

    .insights-hero {
        margin-bottom: 3.2rem;
        min-width: 0;
        overflow: hidden;
    }

    .insights-kicker {
        display: flex;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.6;
    }

    .insights-section {
        margin-top: 3.5rem;
    }

    .insights-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-insight-image {
        min-height: 14rem;
    }

    .article-title {
        font-size: clamp(1.75rem, 10vw, 2.6rem);
    }

    .insights-title {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 2.75rem);
        overflow-wrap: anywhere;
    }

    .insights-lead,
    .insights-intro {
        max-width: 100%;
    }

    .article-body > p,
    .article-body li {
        font-size: 0.96rem;
    }

    .article-hero {
        margin-bottom: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .insight-card,
    .insight-card-image img,
    .read-link {
        transition: none;
    }
}
