:root {
    --bg: #09090a;
    --surface: #121214;
    --surface-2: #19191c;
    --ink: #f7f7f5;
    --muted: #aaa9a4;
    --gold: #f5c518;
    --gold-soft: #e2b91f;
    --line: rgba(255, 255, 255, 0.11);
    --display: "Montserrat", sans-serif;
    --body: "Inter", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    z-index: 30;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

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

.container {
    width: min(90%, 1220px);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    color: #000;
    background: var(--gold);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 25;
    background: rgba(9, 9, 10, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-row {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--display);
    font-weight: 900;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.brand span {
    color: var(--gold);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #d9d9d5;
    font-size: 0.9rem;
    font-weight: 600;
}

.desktop-nav a {
    transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
    color: var(--gold);
}

.nav-cta,
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-cta,
.button-primary {
    color: #09090a;
    background: var(--gold);
}

.nav-cta:hover,
.button-primary:hover {
    background: #ffd83d;
    transform: translateY(-2px);
}

.button-secondary {
    border-color: var(--line);
    background: transparent;
}

.button-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.menu-button {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
    width: 19px;
    height: 2px;
    display: block;
    position: relative;
    background: var(--ink);
    content: "";
    transition: transform 180ms ease;
}

.menu-button span::before {
    position: absolute;
    top: -6px;
}

.menu-button span::after {
    position: absolute;
    top: 6px;
}

.menu-button[aria-expanded="true"] span {
    background: transparent;
}

.menu-button[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    padding: 6px 5% 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
    display: grid;
}

.mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.blog-hero {
    padding: 86px 0 74px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: end;
    gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
    display: block;
    margin-bottom: 24px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero-copy h1 {
    max-width: 760px;
    margin-bottom: 25px;
    font-size: clamp(3rem, 6vw, 5.8rem);
}

.hero-copy > p {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-proof {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-proof img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--gold);
    border-radius: 4px;
}

.hero-proof strong {
    display: block;
    color: var(--ink);
}

.featured {
    position: relative;
    overflow: hidden;
    min-height: 510px;
    display: flex;
    align-items: end;
    border: 1px solid rgba(245, 197, 24, 0.38);
    border-radius: 6px;
    background: var(--surface);
}

.featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) brightness(0.68);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured:hover img {
    transform: scale(1.035);
}

.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 4, 5, 0.98) 8%, rgba(4, 4, 5, 0.12) 78%);
}

.featured-content {
    position: relative;
    z-index: 1;
    padding: 34px;
}

.featured-label {
    display: inline-flex;
    margin-bottom: 17px;
    padding: 6px 9px;
    color: #09090a;
    background: var(--gold);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.featured h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3.2vw, 3.1rem);
}

.featured p {
    color: #d2d2ce;
}

.featured-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--gold);
    font-weight: 800;
}

.signal-band {
    border-bottom: 1px solid var(--line);
}

.signals {
    min-height: 86px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.signal {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 28px;
    border-right: 1px solid var(--line);
}

.signal:first-child {
    padding-left: 0;
}

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

.signal strong {
    color: var(--gold);
    font: 900 1.8rem var(--display);
}

.signal span {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.35;
}

.library {
    padding: 92px 0 112px;
}

.library-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    align-items: end;
    gap: 40px;
    margin-bottom: 42px;
}

.library-heading h2 {
    max-width: 680px;
    font-size: clamp(2.2rem, 4.6vw, 4.5rem);
}

.library-heading p {
    color: var(--muted);
}

.tools {
    margin-bottom: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.search-wrap {
    width: min(100%, 390px);
}

.search-wrap label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.search-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
}

.search-wrap input::placeholder {
    color: #777772;
}

.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.filter:hover {
    border-color: var(--gold);
}

.filter[aria-pressed="true"] {
    color: #09090a;
    border-color: var(--gold);
    background: var(--gold);
}

.results-count {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}

.article-card {
    grid-column: span 4;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    transition: transform 220ms ease, border-color 220ms ease;
}

.article-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

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

.card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #222;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72);
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card:hover .card-media img {
    transform: scale(1.045);
}

.card-index {
    position: absolute;
    right: 13px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.82);
    font: 900 2.3rem var(--display);
}

.card-body {
    min-height: 300px;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px 24px 22px;
}

.card-kicker {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.article-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.article-card {
    position: relative;
}

.card-body > p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    color: #8c8c87;
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
}

.empty-state {
    margin-top: 22px;
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.empty-state h3 {
    margin-bottom: 9px;
}

.empty-state p {
    color: var(--muted);
}

.reading-path {
    padding: 90px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #0d0d0f;
}

.path-head {
    max-width: 720px;
    margin-bottom: 46px;
}

.path-head h2 {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.path-head p {
    color: var(--muted);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.path-step {
    min-height: 220px;
    padding: 30px 34px 30px 0;
    border-right: 1px solid var(--line);
}

.path-step + .path-step {
    padding-left: 34px;
}

.path-step:last-child {
    border-right: 0;
}

.path-number {
    display: block;
    margin-bottom: 28px;
    color: var(--gold);
    font: 900 1.2rem var(--display);
}

.path-step h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.path-step p {
    color: var(--muted);
    font-size: 0.9rem;
}

.book-band {
    padding: 100px 0;
}

.book-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(54px, 9vw, 120px);
}

.book-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.book-visual::before {
    content: "";
    position: absolute;
    inset: 13% 0 5%;
    border: 1px solid rgba(245, 197, 24, 0.35);
    transform: translate(22px, 18px);
}

.book-visual img {
    width: min(100%, 330px);
    position: relative;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
}

.book-copy h2 {
    max-width: 730px;
    margin-bottom: 22px;
    font-size: clamp(2.4rem, 5vw, 5rem);
}

.book-copy > p {
    max-width: 660px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.06rem;
}

.book-points {
    margin: 0 0 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    list-style: none;
}

.book-points li {
    padding-left: 17px;
    position: relative;
    color: #deded9;
}

.book-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    top: 0.66em;
    left: 0;
    background: var(--gold);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a:hover {
    color: var(--ink);
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

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

    .featured {
        min-height: 480px;
    }

    .library-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

    .search-wrap {
        width: 100%;
    }

    .article-card {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .blog-hero {
        padding: 62px 0 52px;
    }

    .hero-copy h1 {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .featured {
        min-height: 430px;
    }

    .featured-content {
        padding: 26px;
    }

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

    .signal,
    .signal:first-child {
        padding: 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .signal:last-child {
        border-bottom: 0;
    }

    .library {
        padding: 72px 0 84px;
    }

    .filters {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 7px;
    }

    .filter {
        flex: 0 0 auto;
    }

    .article-card {
        grid-column: 1 / -1;
    }

    .card-body {
        min-height: 0;
    }

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

    .path-step,
    .path-step + .path-step {
        min-height: auto;
        padding: 25px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .path-step:last-child {
        border-bottom: 0;
    }

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

    .book-visual::before {
        transform: translate(10px, 12px);
    }

    .book-points {
        grid-template-columns: 1fr;
    }

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

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

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