:root {
    color-scheme: dark;
    background: #0b0c0b;
    color: #efece3;
    font: 400 17px/1.65 Archivo, system-ui, sans-serif;
    --muted: #b9beb6;
    --accent: #85d9ae;
    --border: #303630;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; z-index: 2; top: 0; left: 1rem; padding: .6rem 1rem; background: #17271e; transform: translateY(-200%); }
.skip-link:focus { top: .5rem; transform: none; }
.shell { width: min(1120px, calc(100% - 2 * clamp(18px, 5vw, 54px))); margin-inline: auto; }
main { flex: 1; padding-block: clamp(35px, 8vw, 94px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.bar nav { display: flex; flex-wrap: wrap; gap: clamp(.65rem, 2vw, 1.5rem); }
.bar a { text-decoration: none; }
.site-header { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); }
.brand { color: #efece3; font-size: 1.45rem; letter-spacing: -.06em; font-weight: 800; }
.brand span, [aria-current="page"] { color: var(--accent); }
h1 { font-size: clamp(2.35rem, 6.8vw, 5.3rem); line-height: 1.02; font-weight: 800; letter-spacing: -.055em; overflow-wrap: anywhere; }
.intro p { margin-top: 1rem; max-width: 36rem; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); }
.topics { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 2rem; }
.topics a { text-decoration: none; font-size: .88rem; padding: .42rem .85rem; border-radius: 30px; border: 1px solid var(--border); }
.topics [aria-current="page"] { background: #17271e; border-color: #416b52; }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.story { padding: clamp(1.15rem, 3.2vw, 2rem); border: 1px solid var(--border); border-radius: 18px; background: #141713; overflow-wrap: anywhere; }
.story.featured { grid-column: 1 / -1; padding-block: clamp(1.7rem, 5vw, 3.5rem); background: #17251c; }
.story :is(h2, h3) { margin-block: .55rem; line-height: 1.19; font-size: clamp(1.3rem, 3vw, 1.85rem); letter-spacing: -.028em; }
.featured h2 { font-size: clamp(1.65rem, 4.8vw, 3.2rem); max-width: 23ch; }
.story :is(h2, h3) a { text-decoration: none; }
.story :is(h2, h3) a:hover { text-decoration: underline; }
.story p:last-child { max-width: 58ch; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; font-size: .87rem; color: var(--muted); }
.meta span, .meta a, .back { color: var(--accent); }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.article { margin-inline: auto; max-width: 1060px; overflow-wrap: anywhere; }
.article-header { margin-inline: auto; max-width: 800px; }
.article h1 { font-size: clamp(2.35rem, 6vw, 4.75rem); margin-block: .85rem; }
.article-trail { gap: .6rem; }
.article-trail span { color: var(--muted); }
.dek { max-width: 62ch; font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--muted); }
.byline { margin-top: 1.3rem; }
.byline strong { color: #efece3; }
.byline .reading-time { color: inherit; }

.article-cover {
    --cover-color: #72e1af;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 2.7;
    min-height: 160px;
    margin-block: clamp(1.8rem, 5vw, 3.2rem);
    border: 1px solid #304b3c;
    border-radius: 20px;
    background: radial-gradient(ellipse at 65% 105%, #235740, #111b17 63%, #111512);
}
.cover-grid {
    position: absolute;
    inset: 0;
    opacity: .6;
    background: repeating-linear-gradient(90deg, #b6edcd20 0 1px, transparent 1px 42px),
        repeating-linear-gradient(#b6edcd20 0 1px, transparent 1px 42px);
    mask-image: radial-gradient(ellipse at 50% 70%, black, transparent 77%);
}
.cover-art { position: relative; display: grid; place-items: center; width: 90%; height: 100%; }
.cover-art i {
    position: absolute;
    width: clamp(92px, 22vw, 230px);
    aspect-ratio: 1;
    border: 1px solid var(--cover-color);
    border-radius: 24%;
    background: linear-gradient(145deg, #aad8bf22, #173c2d88 70%);
    transform: translateX(-34%) rotate(36deg) scale(.75);
}
.cover-art i:nth-child(2) { transform: translateX(34%) rotate(36deg) scale(.75); }
.cover-art i:nth-child(3) { transform: rotate(36deg) scale(.55); opacity: .85; }
.cover-funding .cover-art i { border-radius: 50%; transform: scale(.9, .34) translateY(-110%); }
.cover-funding .cover-art i:nth-child(2) { transform: scale(.95, .37); }
.cover-funding .cover-art i:nth-child(3) { transform: scale(1, .4) translateY(112%); }
.cover-trends .cover-art i {
    border-radius: 8px;
    aspect-ratio: 1.5;
    transform: translate(-40%, 26%) rotate(-19deg) scale(.55);
}
.cover-trends .cover-art i:nth-child(2) { transform: rotate(-19deg) scale(.66); }
.cover-trends .cover-art i:nth-child(3) { transform: translate(40%, -28%) rotate(-19deg) scale(.8); }

.article-layout { display: grid; grid-template-columns: minmax(0, 700px); justify-content: center; gap: 2rem; }
.article-layout:has(.article-outline) { grid-template-columns: minmax(0, 200px) minmax(0, 700px); gap: clamp(1.75rem, 5vw, 4rem); }
.article-outline nav { position: sticky; top: 2rem; font-size: .91rem; }
.article-outline p { font-weight: 600; }
.article-outline ul { border-left: 1px solid var(--border); padding-inline-start: 1rem; list-style: none; }
.article-outline li + li { margin-top: .65rem; }
.article-outline a { text-decoration: none; color: var(--muted); }
.article-outline a:hover { color: var(--accent); text-decoration: underline; }
.article-content h2 { scroll-margin-top: 2rem; }
.copy { font-size: clamp(1.03rem, 1.9vw, 1.15rem); line-height: 1.75; }
.copy p { white-space: pre-line; }
.copy p + p, .copy h2 + p, .copy ul + p { margin-top: 1rem; }
.copy h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -.025em; line-height: 1.23; margin-top: 2.3rem; }
.copy ul { padding-inline-start: 1.25rem; }
.copy li + li { margin-top: .65rem; }
.sources { margin-top: 2rem; padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: 14px; color: var(--muted); }
.sources h2 { color: #efece3; font-size: 1.2rem; }
.sources ul { margin-bottom: 0; padding-inline-start: 1.2rem; }
.related { max-width: 964px; margin: 3rem auto 0; border-top: 1px solid var(--border); padding-top: 1.6rem; }
.related > h2 { margin-bottom: 1rem; font-size: 1.5rem; }
@media (max-width: 780px) {
    .article-layout:has(.article-outline) { grid-template-columns: minmax(0, 700px); }
    .article-outline nav { position: static; }
}
@media (max-width: 640px) { .stories { grid-template-columns: 1fr; } }
