:root {
    --ink: #0b0b0b;
    --muted: #6e6e6e;
    --line: #d8d8d8;
    --blue: #7fb1ff;
    --max: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(calc(100% - 48px), var(--max));
    margin: auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    padding: 22px 0 0;
}

.header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #111;
}

.brand {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.35px;
    margin-top: 8px;
    color: #444;
}

.nav-box {
    display: flex;
    border: 1px solid #111;
    align-items: center;
}

.nav-box a {
    padding: 18px 28px;
    font-size: 14px;
    font-weight: 700;
    border-right: 1px solid var(--line);
}

.nav-box a:last-of-type {
    border-right: 0;
}

.search-icon {
    width: 62px;
    height: 52px;
    display: grid;
    place-items: center;
    border-left: 1px solid var(--line);
    font-size: 26px;
}


/* =========================
   SEARCH + CATEGORIES
========================= */

.discovery-row {
    display: grid;
    grid-template-columns: 34% 1fr;
    gap: 18px;
    padding: 16px 0 8px;
}

.search-box,
.category-box {
    border: 1px solid #111;
    height: 46px;
    display: flex;
    align-items: center;
    background: #fff;
}

.search-box {
    gap: 14px;
    padding: 0 18px;
}

.search-box input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.search-mark {
    font-size: 22px;
}

.category-box {
    justify-content: space-around;
    padding: 0 14px;
}

.category-box a {
    font-size: 13px;
    font-weight: 700;
    padding: 19px 10px;
}

.category-box a.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}


/* =========================
   MAIN NEWS GRID
========================= */

.main-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    border-bottom: 1px solid #111;
    margin-top: 18px;
}

.popular {
    padding: 0 38px 32px 0;
}

.latest {
    padding: 0 0 32px 40px;
    border-left: 1px solid #111;
}

.section-title {
    font-size: 44px;
    line-height: 1;
    margin: 0 0 22px;
    font-weight: 900;
    letter-spacing: -2px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.section-title span {
    position: relative;
    z-index: 1;
}

.section-title span::after {
    content: "";
    position: absolute;

    left: -5px;
    right: -7px;

    bottom: -3px;
    height: 13px;

    background: rgba(127, 177, 255, 0.45);

    z-index: -1;
}

.section-title::after {
    content: "";
    height: 1px;
    background: #777;
    flex: 1;
    margin-top: 9px;
}


/* =========================
   POPULAR NEWS
========================= */

.pop-item {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 30px;
}

.pop-item.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.pop-item.reverse .story-media {
    order: 2;
}

.story-media {
    border: 1px solid #222;
    box-shadow:
        9px 9px 0 #fff,
        10px 10px 0 #888;
}

.story-copy {
    position: relative;
    padding-left: 42px;
}

.story-copy::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 34px;
}

.story-title {
    font-size: 30px;
    line-height: 1.05;
    margin: 0 0 18px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.hl {
    background: none;
}


/* =========================
   BYLINES
========================= */

.byline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 46px;
    height: 46px;
    border: 1px solid #111;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: #f0f0f0;
}

.byline strong {
    display: block;
    font-size: 14px;
}

.byline span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}


/* =========================
   LATEST NEWS
========================= */

.latest-list {
    border-top: 1px solid var(--line);
}

.latest-row {
    display: grid;
    grid-template-columns: 72px 1fr 32px;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.latest-time {
    font-size: 16px;
    color: #666;
}

.latest-head {
    font-size: 20px;
    line-height: 1.18;
    font-weight: 700;
}

.latest-arrow {
    font-size: 28px;
    line-height: 1;
}


/* =========================
   LOWER GRID
========================= */

.lower-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    border-bottom: 1px solid #111;
}

.insights {
    padding: 18px 36px 30px 0;
}

.explainers {
    padding: 18px 0 30px 36px;
    border-left: 1px solid #111;
}

.sub-title {
    font-size: 34px;
    margin: 0 0 18px;
    font-weight: 900;
    display: flex;
    gap: 16px;
    align-items: center;
}

.sub-title::after {
    content: "";
    height: 1px;
    background: #777;
    flex: 1;
}


/* =========================
   INSIGHT CARDS
========================= */

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    border-right: 1px solid var(--line);
    padding-right: 18px;
}

.card:last-child {
    border-right: 0;
}

.card img {
    aspect-ratio: 16 / 7;
    object-fit: cover;
    margin-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
}

.card-meta {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* =========================
   EXPLAINERS
========================= */

.explain-item {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 18px;
    align-items: center;
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.explain-item:last-child {
    border-bottom: 0;
}

.explain-copy {
    position: relative;
    padding-left: 34px;
}

.explain-copy::before {
    content: "→";
    position: absolute;
    left: 0;
    top: -3px;
    font-size: 28px;
}

.explain-copy h3 {
    font-size: 18px;
    margin: 0 0 6px;
}

.explain-copy p {
    font-size: 14px;
    color: #555;
    line-height: 1.35;
    margin: 0 0 7px;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 22px 0 28px;
    font-size: 13px;
}

.footer-brand {
    font-weight: 900;
    font-size: 22px;
}

.footer-links {
    display: flex;
    gap: 24px;
    color: #555;
}


/* =========================
   ARTICLE PAGES
========================= */

.article-page {
    margin-top: 36px;
    margin-bottom: 80px;
}


/* BACK BUTTON */

.article-back {
    display: inline-block;
    margin-bottom: 30px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.article-back:hover {
    text-decoration: underline;
}


/* ARTICLE + SIDEBAR */

.article-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 64px;

    align-items: start;
}


/* MAIN ARTICLE */

.article-shell {
    width: 100%;
    margin: 0;
}


/* ARTICLE CATEGORY */

.article-shell .kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;

    color: #555;

    font-weight: 800;
}


/* ARTICLE HEADLINE */

.article-shell h1 {
    font-size: 46px;

    line-height: 1.05;

    letter-spacing: -1.8px;

    margin:
        12px
        0
        18px;
}


/* ARTICLE BYLINE */

.article-meta {
    font-size: 13px;

    color: #666;

    padding-bottom: 18px;

    border-bottom:
        1px
        solid
        var(--line);
}


/* KEY POINTS */

.keypoints {
    margin:
        28px
        0;

    padding:
        22px
        24px;

    border:
        1px
        solid
        #111;
}


.keypoints h2 {
    font-size: 16px;

    margin:
        0
        0
        10px;
}


.keypoints li {
    margin:
        7px
        0;

    line-height: 1.4;
}


/* ARTICLE SUBHEADINGS */

.article-shell h2 {
    font-size: 28px;

    margin-top: 38px;
}


/* ARTICLE BODY */

.article-shell p {
    font-family:
        Georgia,
        serif;

    font-size: 19px;

    line-height: 1.65;

    color: #1d1d1d;
}


/* =========================
   ARTICLE SIDEBAR
========================= */

.article-sidebar {
    border-left:
        1px
        solid
        var(--line);

    padding-left: 28px;

    position: sticky;

    top: 28px;
}


.sidebar-title {
    font-size: 22px;

    margin:
        0
        0
        18px;

    font-weight: 900;

    letter-spacing: -0.5px;
}


.sidebar-list {
    border-top:
        1px
        solid
        var(--line);
}


.sidebar-story {
    display: grid;

    grid-template-columns:
        34px
        1fr;

    gap: 14px;

    padding:
        18px
        0;

    border-bottom:
        1px
        solid
        var(--line);
}


.sidebar-number {
    font-size: 12px;

    color: #777;
}


.sidebar-headline {
    font-size: 15px;

    font-weight: 700;

    line-height: 1.3;
}


.sidebar-story:hover .sidebar-headline {
    text-decoration: underline;
}


/* =========================
   MOBILE
========================= */

.mobile-menu {
    display: none;
}

@media (max-width: 900px) {

    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .header-row {
        grid-template-columns: 1fr auto;
    }

    .brand {
        font-size: 30px;
        letter-spacing: -1.2px;
    }

    .tagline {
        display: none;
    }

    .nav-box a {
        display: none;
    }

    .search-icon {
        border-left: 0;
    }

    .mobile-menu {
        display: grid;
        width: 52px;
        height: 52px;
        place-items: center;
        border-left: 1px solid var(--line);
        font-size: 22px;
    }

    .nav-box {
        height: 52px;
    }

    .discovery-row {
        grid-template-columns: 1fr;
    }

    .category-box {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 18px;
    }

    .category-box a {
        white-space: nowrap;
    }

    .main-grid,
    .lower-grid {
        grid-template-columns: 1fr;
    }

    .popular {
        padding-right: 0;
    }

    .latest {
        padding: 24px 0 28px;
        border-left: 0;
        border-top: 1px solid #111;
    }

    .section-title {
        font-size: 36px;
    }

    .pop-item,
    .pop-item.reverse {
        grid-template-columns: 1fr;
    }

    .pop-item.reverse .story-media {
        order: 0;
    }

    .story-copy {
        padding-left: 40px;
    }

    .story-title {
        font-size: 26px;
    }

    .latest-row {
        grid-template-columns: 58px 1fr 24px;
        gap: 12px;
    }

    .latest-head {
        font-size: 17px;
    }

    .insights {
        padding-right: 0;
    }

    .explainers {
        padding: 24px 0;
        border-left: 0;
        border-top: 1px solid #111;
    }

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

    .card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 18px;
    }

    .explain-item {
        grid-template-columns: 38% 1fr;
    }

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

    .footer-links {
        flex-wrap: wrap;
    }

    .article-shell h1 {
        font-size: 40px;
    }

    .article-shell p {
        font-size: 18px;
    }
}

/* CMS FEATURED IMAGE */
.article-featured { margin: 26px 0 28px; }
.article-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #222; }
