/* ============================================================
   TOP MONEY MINDS — screen.css  (v2: light content, navy/gold brand)
   ============================================================ */

:root {
    --paper: #f5f6f8;      /* page background */
    --card: #ffffff;       /* card surfaces */

    --navy-900: #0b1320;   /* header / footer / brief widget */
    --navy-800: #0f1a2b;
    --navy-700: #16243d;
    --navy-600: #1f3357;

    --gold-500: #c79a4f;   /* decorative gold (borders, button) */
    --gold-grad: linear-gradient(120deg, #b8915a 0%, #e6cc8f 55%, #c9a96a 100%);
    --gold-ink: #9c7531;   /* gold text legible on light */

    --ink-900: #121a28;    /* headlines */
    --ink-700: #33404f;    /* body */
    --ink-500: #606b7a;    /* muted */
    --line: #e3e7ec;       /* borders */
    --line-soft: #eef1f4;

    --gold-on-dark: #d8b878;  /* gold text on navy surfaces */
    --ink-on-dark: #e9ebef;
    --muted-on-dark: #97a2b2;

    --font-display: var(--gh-font-heading, "Fraunces", Georgia, serif);
    --font-body: var(--gh-font-body, "Inter", system-ui, -apple-system, sans-serif);
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --wrap: 1320px;
    --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-700);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---- Utility type ----------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.section-head { margin: 0 0 22px; }
.section-head__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.1;
    color: var(--ink-900);
    margin: 8px 0 0;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: -0.01em;
}
.section-head__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 2px;
    background: var(--gold-grad);
    border-radius: 2px;
}
.section-head--compact .section-head__title { font-size: 20px; }

.tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-ink);
    border: 1px solid rgba(156, 117, 49, 0.32);
    padding: 3px 8px;
    border-radius: 999px;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px; letter-spacing: 0.04em;
    padding: 9px 18px; border-radius: 8px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--gold { background: var(--gold-grad); color: #1a130a; font-weight: 500; }
.btn--gold:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink-on-dark); border-color: rgba(255,255,255,0.22); }
.btn--ghost:hover { border-color: var(--gold-on-dark); color: var(--gold-on-dark); }
.btn--block { display: flex; width: 100%; margin-top: 16px; }

/* ---- Header (navy brand band) ----------------------------- */
.site-header {
    background: var(--navy-900);
    position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.site-brand { display: flex; align-items: center; }
.site-brand__logo { height: 54px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav a {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
    color: var(--ink-on-dark); transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--gold-on-dark); }
.site-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Home layout ------------------------------------------ */
.home {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr) 322px;
    gap: 36px;
    padding-top: 44px; padding-bottom: 64px;
    align-items: start;
}

/* ---- Feed (centre) ---------------------------------------- */
.feed__list { display: flex; flex-direction: column; gap: 24px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
    border-color: rgba(156, 117, 49, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}
.card--has-image { display: grid; grid-template-columns: 200px 1fr; }
.card__media { display: block; height: 100%; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px; }
.card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card__dot { color: var(--ink-500); }
.card__date, .post__date, .post__reading {
    font-family: var(--font-mono); font-size: 12px; color: var(--ink-500);
}
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.22; margin: 0 0 10px; }
.card__title a { color: var(--ink-900); transition: color 0.15s ease; }
.card__title a:hover { color: var(--gold-ink); }
.card__excerpt { margin: 0 0 14px; color: var(--ink-700); font-size: 15px; }
.card__byline { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }

/* ---- Pagination ------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 18px; margin-top: 40px; font-family: var(--font-mono); font-size: 13px; }
.pagination a { color: var(--gold-ink); }
.pagination a:hover { color: var(--navy-700); }
.pagination .page-number { color: var(--ink-500); }

/* ---- Rails ------------------------------------------------ */
.rail { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 102px; }

/* Morning Brief — premium dark widget on light page */
.brief {
    background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
    border: 1px solid var(--navy-600);
    border-radius: var(--radius);
    padding: 22px 20px;
}
.brief .eyebrow { color: var(--gold-on-dark); }
.brief .section-head__title { color: var(--ink-on-dark); }
.brief__list { list-style: none; margin: 4px 0 0; padding: 0; }
.brief__item { border-top: 1px solid rgba(255,255,255,0.08); }
.brief__item:first-child { border-top: 0; }
.brief__link { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; }
.brief__date { font-family: var(--font-mono); font-size: 11px; color: var(--gold-on-dark); white-space: nowrap; }
.brief__title { font-size: 14px; line-height: 1.35; color: var(--muted-on-dark); transition: color 0.15s ease; }
.brief__link:hover .brief__title { color: var(--ink-on-dark); }
.brief__lock { font-size: 12px; opacity: 0.55; }
.brief__empty { color: var(--muted-on-dark); font-size: 14px; padding: 12px 0; }

/* ---- Affiliate slots -------------------------------------- */
.ad { width: 100%; }
.ad__label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.ad__placeholder {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(18, 26, 40, 0.015);
    min-height: 240px;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.ad__hint { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
.ad--inline .ad__placeholder { min-height: 110px; }
.ad--inline { margin: 2px 0; }

/* ---- Crypto section (separate band) ----------------------- */
.crypto-band {
    background: linear-gradient(180deg, #eef2f7 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: 44px 0 52px;
    margin-bottom: 8px;
}
.crypto-band__head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.crypto-band__more {
    margin-left: auto; align-self: center;
    font-family: var(--font-mono); font-size: 13px; color: var(--gold-ink);
    transition: color 0.15s ease;
}
.crypto-band__more:hover { color: var(--navy-700); }
.crypto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.crypto-grid .card--has-image { display: flex; flex-direction: column; }
.crypto-grid .card__media { width: 100%; aspect-ratio: 16 / 9; }

/* ---- Single post / pages ---------------------------------- */
.post-wrap, .page-wrap { padding-top: 48px; padding-bottom: 80px; }
.post, .page { max-width: 760px; margin: 0 auto; }
.post__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.post__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; color: var(--ink-900); margin: 0 0 16px; letter-spacing: -0.01em; }
.post__lede { font-size: 20px; line-height: 1.5; color: var(--ink-700); margin: 0 0 20px; }
.post__byline { margin-bottom: 28px; }
.post__author { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
.post__feature { margin: 0 0 36px; }
.post__feature img { width: 100%; border-radius: var(--radius); }
.post__feature figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); text-align: center; margin-top: 10px; }

.gh-content { font-size: 18px; line-height: 1.72; color: var(--ink-700); }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2 { font-family: var(--font-display); font-weight: 600; font-size: 27px; color: var(--ink-900); margin-top: 1.9em; line-height: 1.2; }
.gh-content h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink-900); margin-top: 1.6em; }
.gh-content a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--navy-700); }
.gh-content blockquote { border-left: 3px solid var(--gold-500); padding-left: 22px; margin-left: 0; color: var(--ink-900); font-style: italic; }
.gh-content em { color: var(--ink-900); }
.gh-content small { color: var(--ink-500); font-size: 13px; }
.gh-content img { border-radius: var(--radius); }
.gh-content hr { border: 0; border-top: 1px solid var(--line); }
.gh-content :is(.kg-width-wide) { width: min(88vw, 1040px); margin-left: 50%; transform: translateX(-50%); }
.gh-content :is(.kg-width-full) { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: 100vw; }
.gh-content :is(.kg-width-full) img { border-radius: 0; }

.page__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); color: var(--ink-900); margin: 0 0 24px; }

/* ---- Footer (navy brand band) ----------------------------- */
.site-footer { background: var(--navy-900); margin-top: 0; padding: 44px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-on-dark); }
.site-footer__tag { font-family: var(--font-mono); font-size: 12px; color: var(--gold-on-dark); margin-left: 10px; }
.site-footer__nav { margin-left: auto; }
.site-footer__nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-footer__nav a { font-family: var(--font-mono); font-size: 12px; color: var(--muted-on-dark); }
.site-footer__nav a:hover { color: var(--gold-on-dark); }
.site-footer__legal { flex-basis: 100%; font-size: 12px; color: var(--muted-on-dark); margin: 8px 0 0; }

/* ---- Focus ------------------------------------------------ */
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1180px) {
    .home { grid-template-columns: minmax(0, 1fr) 300px; }
    .rail--left { display: none; }
    .crypto-strip__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .home { grid-template-columns: 1fr; gap: 40px; }
    .rail { position: static; }
    .rail--right { order: 2; }
    .card--has-image { grid-template-columns: 1fr; }
    .card__media { aspect-ratio: 16 / 9; }

    .site-nav { display: none; }
}
@media (max-width: 540px) {
    .wrap { padding: 0 18px; }
    .site-header__inner { min-height: 64px; gap: 14px; }
    .site-brand__logo { height: 44px; }
    .site-actions .btn--ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- Tag archive pages ------------------------------------ */
.tag-wrap { padding-top: 44px; padding-bottom: 72px; }
.tag-head { margin-bottom: 32px; }
.tag-head__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--ink-900);
    margin: 8px 0 0;
    letter-spacing: -0.01em;
}
.tag-head__desc { color: var(--ink-500); font-size: 16px; margin: 10px 0 0; }
.tag-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 36px;
    align-items: start;
}
@media (max-width: 860px) {
    .tag-layout { grid-template-columns: 1fr; }
    .tag-layout .rail { position: static; }
}
