:root {
    --ink: #071018;
    --ink-soft: #0b1722;
    --panel: #0e1d29;
    --white: #f5f8f7;
    --muted: #91a2aa;
    --muted-bright: #c2cdd1;
    --teal: #55e7e3;
    --blue: #4aa7ff;
    --line: rgba(85, 231, 227, .18);
    --line-white: rgba(255, 255, 255, .12);
    --shell: min(1160px, calc(100vw - 56px));
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(85, 231, 227, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 231, 227, .025) 1px, transparent 1px),
        var(--ink);
    background-size: 72px 72px;
    color: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    top: -260px;
    left: 50%;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(74, 167, 255, .08);
    border-radius: 50%;
    content: "";
    transform: translateX(-50%);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
}

::selection {
    background: var(--teal);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 9px 13px;
    background: var(--teal);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.eyebrow {
    margin: 0;
    color: var(--teal);
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 74px;
    align-items: center;
    padding: 0 max(28px, calc((100vw - 1160px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 24, .9);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
}

.brand b {
    color: var(--teal);
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--teal);
    color: var(--teal);
    font-size: .72rem;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.header-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal);
}

.main-site-link {
    justify-self: end;
    padding: 10px 13px;
    border: 1px solid var(--line-white);
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
}

.main-site-link span {
    margin-left: 5px;
    color: var(--teal);
}

.news-hero {
    padding: 112px 0 94px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 80px;
    align-items: end;
}

.news-hero h1 {
    margin: 28px 0 0;
    font-size: clamp(4rem, 8.5vw, 8.2rem);
    font-weight: 650;
    letter-spacing: -.075em;
    line-height: .83;
}

.news-hero h1 span {
    color: #8d9ca3;
}

.hero-copy > p {
    margin: 0 0 38px;
    color: var(--muted-bright);
    font-size: 1.18rem;
    line-height: 1.65;
}

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line-white);
    color: var(--teal);
    font-family: var(--mono);
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.feed-section {
    padding: 84px 0 120px;
}

.feed-toolbar {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 40px;
    align-items: end;
    margin-bottom: 34px;
}

.feed-toolbar h2 {
    margin: 12px 0 0;
    font-size: clamp(2rem, 4vw, 3.9rem);
    letter-spacing: -.055em;
    line-height: 1;
}

.feed-search {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line-white);
    padding: 14px 0;
}

.feed-search svg {
    width: 18px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 1.5;
}

.feed-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
}

.feed-search input::placeholder {
    color: #667983;
}

.category-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 16px;
    scrollbar-color: var(--teal) transparent;
}

.category-filter button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 9px;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid var(--line-white);
    background: rgba(255, 255, 255, .02);
    color: var(--muted-bright);
    cursor: pointer;
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.category-filter button span {
    color: #667983;
    font-size: .55rem;
}

.category-filter button:hover,
.category-filter button.is-active {
    border-color: var(--teal);
    background: rgba(85, 231, 227, .08);
    color: var(--teal);
}

.category-filter button.is-active span {
    color: var(--teal);
}

.feed-result-line {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #70818a;
    font-family: var(--mono);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-feed {
    border-bottom: 1px solid var(--line);
}

.news-card {
    border-bottom: 1px solid var(--line-white);
}

.news-card[hidden] {
    display: none;
}

.news-card-link {
    position: relative;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr) 30px;
    gap: 30px;
    align-items: center;
    min-height: 218px;
    padding: 21px 8px 21px 0;
    text-decoration: none;
    transition: background-color 180ms ease, padding 180ms ease;
}

.news-card-link:hover {
    padding-right: 18px;
    padding-left: 10px;
    background: rgba(85, 231, 227, .035);
}

.news-thumb {
    position: relative;
    width: 176px;
    height: 176px;
    overflow: hidden;
    border: 1px solid var(--line-white);
    background: var(--ink-soft);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.news-card-link:hover .news-thumb img {
    transform: scale(1.035);
}

.news-thumb > span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 5px;
    background: rgba(7, 16, 24, .84);
    color: var(--teal);
    font-family: var(--mono);
    font-size: .54rem;
    font-weight: 800;
}

.news-card-meta,
.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    align-items: center;
    color: #74868f;
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.category-tag {
    display: inline-flex;
    padding: 5px 7px;
    border: 1px solid var(--teal);
    color: var(--teal);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.news-card h3 {
    max-width: 820px;
    margin: 14px 0 9px;
    font-size: clamp(1.35rem, 2.6vw, 2.15rem);
    letter-spacing: -.035em;
    line-height: 1.12;
}

.news-card p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.55;
}

.card-arrow {
    color: var(--teal);
    font-size: 1.3rem;
}

.empty-state {
    padding: 70px 28px;
    border: 1px solid var(--line);
    text-align: center;
}

.empty-state > span {
    color: var(--teal);
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.empty-state h3 {
    margin: 14px 0 5px;
    font-size: 1.8rem;
}

.empty-state p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
}

.is-filter-empty {
    margin-top: 24px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(4, 11, 17, .72);
}

.site-footer .shell {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 24px;
    color: #677983;
    font-family: var(--mono);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.site-footer a {
    color: var(--teal);
    text-decoration: none;
}

/* Article reader */
.article-header {
    padding-top: 82px;
    padding-bottom: 52px;
}

.back-link {
    display: inline-block;
    margin-bottom: 56px;
    color: var(--teal);
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.article-kicker {
    margin-bottom: 24px;
}

.article-header h1 {
    max-width: 1060px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    font-weight: 650;
    letter-spacing: -.065em;
    line-height: .94;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 34px;
    color: #788a93;
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.article-image {
    position: relative;
    aspect-ratio: 16 / 8.3;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink-soft);
}

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

.article-image > span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 7px;
    background: rgba(7, 16, 24, .88);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .5rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) minmax(0, 1.55fr);
    gap: clamp(50px, 9vw, 130px);
    padding-top: 72px;
    padding-bottom: 120px;
}

.article-rail {
    align-self: start;
    padding-top: 10px;
    border-top: 1px solid var(--teal);
}

.article-rail > span {
    display: block;
    padding-top: 13px;
    color: var(--teal);
    font-family: var(--mono);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.article-rail p {
    color: #82949d;
    font-size: .82rem;
}

.article-copy {
    max-width: 760px;
}

.article-copy > p {
    margin: 0 0 25px;
    color: #c3cdd0;
    font-size: 1.08rem;
    line-height: 1.78;
}

.article-copy .article-lead {
    margin-bottom: 42px;
    color: var(--white);
    font-size: clamp(1.4rem, 2.6vw, 2.05rem);
    font-weight: 620;
    letter-spacing: -.025em;
    line-height: 1.45;
}

.article-divider {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 34px;
    color: var(--teal);
    font-family: var(--mono);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.article-divider i {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.article-copy .reader-note {
    margin-top: 45px;
    padding: 18px 20px;
    border-left: 2px solid var(--blue);
    background: rgba(74, 167, 255, .05);
    color: #80929a;
    font-family: var(--mono);
    font-size: .68rem;
    line-height: 1.6;
}

.source-panel {
    margin-top: 70px;
    padding: 32px;
    border: 1px solid var(--line);
    background: rgba(85, 231, 227, .035);
}

.source-panel > div > span {
    color: var(--teal);
    font-family: var(--mono);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.source-panel h2 {
    margin: 12px 0 5px;
    font-size: 1.75rem;
    letter-spacing: -.035em;
}

.source-panel p {
    margin: 0;
    color: var(--muted);
}

.source-button {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 28px;
    padding: 15px 17px;
    background: var(--teal);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-decoration: none;
}

.source-button span {
    font-size: 1rem;
}

.not-found {
    min-height: calc(100vh - 150px);
    padding-top: 150px;
    padding-bottom: 150px;
}

.not-found h1 {
    max-width: 820px;
    margin: 20px 0;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -.06em;
    line-height: .95;
}

.not-found > p:not(.eyebrow) {
    color: var(--muted);
}

.not-found .source-button {
    max-width: 330px;
}

@media (max-width: 820px) {
    :root {
        --shell: min(100% - 34px, 1160px);
    }

    .site-header {
        grid-template-columns: 1fr auto;
        height: 66px;
        padding: 0 17px;
    }

    .header-status {
        display: none;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .main-site-link {
        padding: 8px 10px;
        font-size: .58rem;
    }

    .news-hero {
        padding: 72px 0 64px;
    }

    .hero-grid,
    .feed-toolbar,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 42px;
    }

    .news-hero h1 {
        font-size: clamp(3.5rem, 16.8vw, 6.1rem);
    }

    .hero-copy > p {
        margin-bottom: 28px;
        font-size: 1rem;
    }

    .feed-section {
        padding: 58px 0 78px;
    }

    .feed-toolbar {
        gap: 26px;
    }

    .category-filter {
        margin-right: -17px;
        margin-left: -17px;
        padding-right: 17px;
        padding-left: 17px;
    }

    .news-card-link {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 17px;
        min-height: 150px;
        padding: 18px 0;
    }

    .news-card-link:hover {
        padding-right: 0;
        padding-left: 0;
        background: transparent;
    }

    .news-thumb {
        width: 112px;
        height: 112px;
    }

    .news-card h3 {
        margin: 10px 0 0;
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .news-card p,
    .card-arrow {
        display: none;
    }

    .news-card-meta {
        gap: 6px 8px;
        font-size: .5rem;
    }

    .category-tag {
        padding: 4px 5px;
        font-size: .5rem;
    }

    .site-footer .shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .article-header {
        padding-top: 50px;
        padding-bottom: 34px;
    }

    .back-link {
        margin-bottom: 42px;
    }

    .article-header h1 {
        font-size: clamp(2.7rem, 13vw, 4.6rem);
    }

    .article-image {
        width: 100%;
        aspect-ratio: 4 / 3;
        border-right: 0;
        border-left: 0;
    }

    .article-layout {
        gap: 44px;
        padding-top: 50px;
        padding-bottom: 80px;
    }

    .article-rail {
        max-width: 520px;
        padding-bottom: 6px;
    }

    .article-copy > p {
        font-size: 1rem;
        line-height: 1.72;
    }

    .article-copy .article-lead {
        font-size: 1.35rem;
    }

    .source-panel {
        margin-top: 52px;
        padding: 24px 20px;
    }
}

@media (max-width: 430px) {
    .brand {
        gap: 9px;
        font-size: .68rem;
    }

    .main-site-link {
        border-color: transparent;
        padding-right: 0;
    }

    .news-card-link {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        min-height: 125px;
        padding: 16px 0;
    }

    .news-thumb {
        width: 92px;
        height: 92px;
    }

    .news-card-meta > span:not(.category-tag) {
        display: none;
    }

    .news-card h3 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .source-button {
        font-size: .61rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
