/* ============================================================
   Choose Insights — screen.css
   Brand: #f3f1ec bg · #1D475A brand · #05D483 accent (sparing)
   ============================================================ */

:root {
    --bg:           #f3f1ec;
    --brand:        #1D475A;
    --accent:       #05D483;
    --text:         #1c2329;
    --text-muted:   #5c6878;
    --card-bg:      #ffffff;
    --border:       rgba(29, 71, 90, 0.11);
    --border-strong:rgba(29, 71, 90, 0.22);
    --font:         system-ui, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen,
                    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
        --max:          1200px;
    --content-max:  740px;
    --radius:       6px;
    --shadow-sm:    0 1px 4px rgba(29,71,90,0.07), 0 2px 12px rgba(29,71,90,0.05);
    --shadow-md:    0 4px 20px rgba(29,71,90,0.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ── Layout ── */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Section labels ── */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: 0.5;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    background: var(--brand);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.nav-logo-img {
    height: 26px;
    width: auto;
}

.nav-logo-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: white;
}

.nav-divider {
    display: block;
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.25);
}

.nav-insights {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-right .nav-item a,
.nav-right a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-right .nav-item a:hover,
.nav-right a:hover {
    color: white;
}

.nav-back {
    color: rgba(255,255,255,0.5) !important;
    font-size: 12.5px !important;
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 1.75rem;
    margin-left: 0.25rem;
    transition: color 0.15s !important;
}

.nav-back:hover {
    color: rgba(255,255,255,0.85) !important;
}


/* ============================================================
   MASTHEAD / HERO
   ============================================================ */
.masthead {
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.masthead-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: 0.4;
    margin-bottom: 1.25rem;
}

.masthead-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
}

.masthead-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.masthead-sub {
    font-size: 1rem;
    color: var(--text);
    max-width: 480px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

.masthead-tagline {
    font-family: var(--font);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: var(--text);
    max-width: 540px;
    margin: 0 auto 0.75rem;
}

.masthead-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}

.btn-subscribe {
    display: inline-block;
    background: var(--brand);
    color: white;
    padding: 0.75rem 2.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background 0.15s, transform 0.1s;
}

.btn-subscribe:hover {
    background: #163a4a;
    transform: translateY(-1px);
}


/* ============================================================
   FEATURED INSIGHT
   ============================================================ */
.featured-insight {
    padding: 4rem 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.featured-image-link { display: block; }

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
}

.post-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: 0.6;
    margin-bottom: 0.65rem;
}

.post-tag--link {
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.post-tag--link:hover { opacity: 1; }

.featured-title {
    font-family: var(--font);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand);
    margin-bottom: 1rem;
}

.featured-title a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.featured-title a:hover { opacity: 0.75; }

.featured-excerpt {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.read-more {
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.read-more:hover { color: var(--accent); }


/* ============================================================
   LATEST ARTICLES GRID
   ============================================================ */
.more-posts {
    padding: 0 0 3.5rem;
}

.latest-articles {
    padding: 0 0 4.5rem;
    padding-top: 3.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.articles-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-card {
}

.post-card:nth-child(odd) {
    padding-right: 2rem;
}

.post-card:nth-child(even) {
    padding-left: 2rem;
}

.post-card-link {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 0;
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover .post-card-title {
    opacity: 0.7;
}

.post-card-text {
    flex: 1;
    min-width: 0;
}

.post-card-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--brand);
    margin-bottom: 0.5rem;
    transition: opacity 0.15s;
}

.post-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.post-card-image-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 72px;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}


/* ============================================================
   FROM THE EDITOR
   ============================================================ */
.from-editor {
    background: var(--brand);
    padding: 4rem 0;
}

.from-editor .section-label {
    color: rgba(255,255,255,0.5);
    opacity: 1;
    border-color: rgba(255,255,255,0.12);
}

.editor-block {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.editor-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.25);
}

.editor-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.editor-role {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.editor-quote {
    border-left: 3px solid var(--accent);
    padding-left: 2rem;
    list-style: none;
}

.editor-quote p {
    font-family: var(--font);
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.editor-quote .read-more {
    color: var(--accent);
}

.editor-quote .read-more:hover {
    opacity: 0.8;
    color: var(--accent);
}

.editor-block--placeholder code {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    color: rgba(255,255,255,0.7);
}


/* ============================================================
   READER QUESTIONS
   ============================================================ */
.reader-questions {
    padding: 4rem 0 3.5rem;
}

.questions-list {
    margin-bottom: 1.5rem;
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: color 0.12s;
    gap: 1rem;
}

.question-item:first-child {
    border-top: 1px solid var(--border);
}

.question-item:hover {
    color: var(--brand);
}

.question-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
}

.question-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.12s, transform 0.12s;
}

.question-item:hover .question-arrow {
    color: var(--brand);
    transform: translateX(3px);
}

.ask-link {
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.ask-link:hover { color: var(--accent); }


/* ============================================================
   POPULAR TOPICS
   ============================================================ */
.popular-topics {
    padding: 0 0 4.5rem;
    border-top: 1px solid var(--border);
    padding-top: 3.5rem;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.topic-tag {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 100px;
    color: var(--brand);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.topic-tag:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.topic-tag--sm {
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
}


/* ============================================================
   SUBSCRIBE SECTION
   ============================================================ */
.subscribe-section {
    background: var(--brand);
    padding: 4rem 2rem;
}

.subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.subscribe-copy h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.subscribe-copy p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    max-width: 360px;
}

.subscribe-form {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.subscribe-input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font);
    background: rgba(255,255,255,0.95);
    color: var(--text);
}

.subscribe-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #0f1f28;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: 0.02em;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}

.subscribe-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.subscribe-notice,
.subscribe-already {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    margin-top: 0.65rem;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--brand);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-logo-img { height: 18px; }

.footer-logo-text {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.05em;
}

.footer-insights {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.15s;
}

.footer-link:hover { color: rgba(255,255,255,0.85); }

.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}


/* ============================================================
   POST DETAIL PAGE
   ============================================================ */
.post-main { padding: 0 0 5rem; }

.post-header {
    max-width: var(--content-max);
    margin: 3.5rem auto 2rem;
    padding: 0 2rem;
}

.post-title {
    font-family: var(--font);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.post-excerpt {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-family: var(--font);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-meta a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.post-meta-sep { opacity: 0.4; }

.post-feature-image {
    max-width: var(--content-max);
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
}

.post-feature-image img {
    width: 100%;
    border-radius: var(--radius);
}

.post-feature-image figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    text-align: center;
}

/* Post content */
.post-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.gh-content > * + * { margin-top: 1.5em; }

.gh-content .kg-width-wide {
    width: 85vw;
    max-width: 1100px;
    margin-left: calc(50% - 42.5vw);
    margin-right: calc(50% - 42.5vw);
}

.gh-content .kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.gh-content .kg-width-full img,
.gh-content .kg-width-wide img {
    width: 100%;
}

.gh-content h2 {
    font-family: var(--font);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.3;
    margin-top: 2.5em;
}

.gh-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.35;
    margin-top: 2em;
}

.gh-content p { line-height: 1.8; }

.gh-content a,
.gh-content a:link,
.gh-content a:visited {
    color: var(--brand) !important;
    text-decoration: underline;
    text-decoration-color: rgba(29,71,90,0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}

.gh-content a:hover {
    color: var(--brand) !important;
    text-decoration-color: var(--brand);
}

.gh-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-left: 0;
    font-family: var(--font);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.gh-content ul, .gh-content ol {
    padding-left: 1.5rem;
}

.gh-content li { margin-top: 0.4em; line-height: 1.7; }

.gh-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3em 0;
}

.gh-content figure { margin: 2em 0; }

.gh-content figure img {
    border-radius: var(--radius);
    width: 100%;
}

.gh-content figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gh-content th, .gh-content td {
    border: 1px solid var(--border);
    padding: 0.65rem 1rem;
    text-align: left;
}

.gh-content th {
    background: var(--brand);
    color: white;
    font-weight: 600;
}

.gh-content tr:nth-child(even) td {
    background: rgba(29,71,90,0.03);
}

/* Post footer */
.post-footer {
    max-width: var(--content-max);
    margin: 3rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.author-card-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-card-name {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.author-card-bio {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Related posts */
.related-posts {
    padding: 3.5rem 0 0;
    border-top: 1px solid var(--border);
    margin-top: 3.5rem;
}


/* ============================================================
   TAG / ARCHIVE PAGE
   ============================================================ */
.tag-header {
    background: var(--brand);
    padding: 3rem 0;
    color: white;
}

.tag-header .masthead-eyebrow { color: rgba(255,255,255,0.5); opacity: 1; }

.tag-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-top: 0.5rem;
}

.tag-description {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    max-width: 480px;
}

.tag-posts {
    padding: 3.5rem 0 5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    font-size: 0.875rem;
}

.pagination a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}

.pagination a:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* Error page */
.error-main { padding: 6rem 0; text-align: center; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--border-strong); line-height: 1; }
.error-message { color: var(--text-muted); margin: 1rem 0 2rem; }

/* Empty state */
.empty-state { color: var(--text-muted); font-size: 0.9rem; padding: 2rem 0; }

/* Subscribe in post */
.subscribe-section--post { margin-top: 0; }



.masthead-form {
    display: flex;
    gap: 0.65rem;
    max-width: 460px;
    margin: 1.75rem auto 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.masthead-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--card-bg);
    color: var(--text);
}

.masthead-input:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: transparent;
}

.masthead-btn {
    padding: 0.75rem 1.5rem;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.masthead-btn:hover {
    background: #163a4a;
    transform: translateY(-1px);
}

.masthead-notice,
.masthead-already {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .featured-article { grid-template-columns: 1fr; gap: 2rem; }
    .editor-block { grid-template-columns: 1fr; gap: 1.5rem; }
    .articles-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .subscribe-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
    .masthead { padding: 3.5rem 1.25rem 3rem; }
    .articles-grid,
    .articles-grid--3 { grid-template-columns: 1fr; }
    .post-card:nth-child(odd) { border-right: none; padding-right: 0; }
    .post-card:nth-child(even) { padding-left: 0; }
    .nav-right .nav-item { display: none; }
    .nav-back { border-left: none; padding-left: 0; margin-left: 0; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .post-header,
    .post-feature-image,
    .post-content,
    .post-footer { padding: 0 1.25rem; }
    .subscribe-form { flex-direction: column; }
    .subscribe-input { min-width: 0; width: 100%; }
}
