/* ── /articles ──
   A reading page. Light paper for long text, the brand's navy and orange
   for everything that isn't body copy. Shared by every article and the
   listing; built pages link it at /articles/articles.css. */

:root {
    --ink: #1b2430;
    --muted: #5b6474;
    --rule: #e6e8ee;
    --paper: #fff;
    --ground: #fff1db;
    --btc: #f7931a;
    --btc-dark: #b45f00;
    --navy: #243b53;
    --n950: #070b14;
    --fd: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: var(--fd);
    background: var(--ground);
    color: var(--ink);
    line-height: 1.7;
}

a {
    color: var(--btc-dark);
}

/* ══ NAV ══
   The landing page's header, exactly — dark, fixed, full width, the same
   links, a hamburger on phones — over the light reading page. Keep in
   step with index.html. */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,11,20,.92);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #fff;
}

.nav-logo-i {
    display: block;
    height: 32px;
    width: auto;
}

.nav-logo-t {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.3px;
}

    .nav-logo-t span {
        color: var(--btc);
    }

.nav-a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-lk {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    padding: 8px 10px;
    transition: color .2s;
}

    .nav-lk:hover {
        color: #fff;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f7931a, #e07d08);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(247,147,26,.25);
}

    .btn:hover {
        filter: brightness(1.05);
    }

.btn-sm {
    padding: 9px 18px;
    font-size: 13px;
}

.ham {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .ham span {
        display: block;
        width: 16px;
        height: 1.5px;
        background: rgba(255,255,255,.7);
        transition: all .25s;
    }

    .ham.open span:nth-child(1) { transform: rotate(45deg) translate(2px,2px); }
    .ham.open span:nth-child(2) { opacity: 0; }
    .ham.open span:nth-child(3) { transform: rotate(-45deg) translate(2px,-2px); }

.mob-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(7,11,20,.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 16px 24px;
    flex-direction: column;
    gap: 8px;
}

    .mob-menu.open {
        display: flex;
    }

    .mob-menu a {
        padding: 12px 16px;
        color: rgba(255,255,255,.7);
        font-size: 15px;
        text-decoration: none;
        border-radius: 8px;
    }

        .mob-menu a:hover {
            color: #fff;
            background: rgba(255,255,255,.05);
        }

@media (max-width: 640px) {
    .nav-lk, .nav-a .btn {
        display: none;
    }

    .ham {
        display: flex;
    }
}

/* ══ ARTICLE ══ (top padding clears the fixed header) */
.wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 88px 20px 56px;
}

article {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 40px 48px 44px;
}

.crumb {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .crumb a {
        color: var(--muted);
        text-decoration: none;
    }

        .crumb a:hover {
            color: var(--btc-dark);
        }

h1 {
    margin: 4px 0 12px;
    font-size: clamp(30px, 4.6vw, 42px);
    line-height: 1.12;
    letter-spacing: -.8px;
    font-weight: 800;
    color: var(--navy);
}

.byline {
    margin: 0 0 30px;
    font-size: 14px;
    color: var(--muted);
}

/* The hero photo, under the byline, bleeding to the card's padding edge */
.hero {
    margin: 0 -48px 28px;
}

    .hero img {
        display: block;
        width: 100%;
        height: auto;
    }

article h2 {
    margin: 38px 0 10px;
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: -.3px;
    font-weight: 800;
    color: var(--navy);
}

article h3 {
    margin: 26px 0 8px;
    font-size: 18px;
    font-weight: 700;
}

article p {
    margin: 0 0 18px;
    font-size: 17.5px;
}

article ul {
    margin: 0 0 18px;
    padding-left: 22px;
    font-size: 17.5px;
}

article li {
    margin-bottom: 6px;
}

article hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 30px 0 18px;
}

/* A comparison table. On a desk: a plain grid, the first column carrying
   the row's name, our own row (tr.own, from a bold first cell in the
   markdown) on the cream. On a phone: one card per row, the name as its
   heading and each cell labelled with its column from data-label, so
   nothing has to scroll sideways or shrink. */
.tbl {
    margin: 4px 0 24px;
    overflow-x: auto;
}

    .tbl table {
        width: 100%;
        border-collapse: collapse;
        font-size: 15px;
        line-height: 1.45;
    }

    .tbl th, .tbl td {
        padding: 11px 12px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid var(--rule);
    }

    .tbl th {
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--muted);
        background: #f7f8fb;
        border-bottom: 2px solid var(--rule);
    }

    .tbl td:first-child {
        font-weight: 700;
        color: var(--navy);
    }

    .tbl tr.own td {
        background: var(--ground);
    }

@media (max-width: 640px) {
    .tbl {
        overflow: visible;
    }

        .tbl table, .tbl tbody, .tbl tr {
            display: block;
        }

        .tbl thead {
            display: none;
        }

        .tbl tr {
            margin: 0 0 12px;
            border: 1px solid var(--rule);
            border-radius: 12px;
            overflow: hidden;
        }

        .tbl td {
            display: grid;
            grid-template-columns: 7.5em 1fr;
            gap: 10px;
            padding: 9px 12px;
        }

            .tbl td::before {
                content: attr(data-label);
                padding-top: 2px;
                font-size: 12px;
                font-weight: 700;
                letter-spacing: .04em;
                text-transform: uppercase;
                color: var(--muted);
            }

            .tbl td:first-child {
                grid-template-columns: 1fr;
                font-size: 16px;
                background: #f7f8fb;
            }

                .tbl td:first-child::before {
                    display: none;
                }

            .tbl td:last-child {
                border-bottom: 0;
            }

        .tbl tr.own td:first-child {
            background: var(--btc);
            color: #fff;
        }
}

article strong {
    color: var(--navy);
}

.sources {
    font-size: 13.5px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

    .sources a {
        color: var(--muted);
    }

/* ══ CALL TO ACTION ══ */
.cta {
    margin-top: 22px;
    padding: 32px 36px;
    border-radius: 18px;
    background: radial-gradient(520px 260px at 96% 110%, rgba(247,147,26,.45), transparent 60%), #000;
    color: #fff;
}

    .cta h2 {
        margin: 0 0 8px;
        font-size: 22px;
        letter-spacing: -.3px;
    }

    .cta p {
        margin: 0 0 18px;
        font-size: 15px;
        color: rgba(255,255,255,.7);
        max-width: 48em;
    }

/* ══ LISTING ══ */
.list-h h1 {
    margin-top: 12px;
}

.list-h p {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--muted);
    max-width: 44em;
}

.list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

    /* Orange cards on the cream, the way the brand's buttons sit */
    .list a {
        display: block;
        padding: 22px 26px;
        background: #f18d15;
        border-radius: 16px;
        text-decoration: none;
        color: #fff;
        box-shadow: 0 10px 28px rgba(241,141,21,.25);
        transition: transform .2s, filter .2s;
    }

        .list a:hover {
            transform: translateY(-2px);
            filter: brightness(1.04);
        }

    .list h2 {
        margin: 0 0 6px;
        font-size: 21px;
        line-height: 1.25;
        letter-spacing: -.3px;
        color: var(--ink);
    }

    .list p {
        margin: 0 0 10px;
        font-size: 15px;
        color: #fff;
    }

    .list .meta {
        font-size: 13px;
        color: rgba(255,255,255,.85);
    }

/* ══ FOOTER ══ */
footer {
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 18px;
    font-size: 12.5px;
    color: var(--muted);
}

    footer a {
        color: var(--muted);
        text-decoration: none;
    }

        footer a:hover {
            color: var(--btc-dark);
        }

@media (max-width: 600px) {
    article {
        padding: 26px 20px 30px;
        border-radius: 14px;
    }

    .hero {
        margin: 0 -20px 22px;
    }

    article p, article ul {
        font-size: 16.5px;
    }

    .cta {
        padding: 24px 22px;
    }
}
