.thoughts-main {
    padding-bottom: 5rem;
}

html {
    scroll-padding-top: 9.5rem;
}

.thoughts-main .container {
    max-width: 1600px;
}

body::before {
    top: 140px;
    bottom: 0;
    height: auto;
    min-height: 0;
    opacity: 0.28;
}

.thoughts-shell {
    max-width: 1360px;
    margin: 1.5rem auto 0;
}

.thoughts-shell.narrow {
    max-width: 1080px;
}

.thoughts-intro {
    max-width: 720px;
    font-size: 1.2rem;
    line-height: 1.85;
    opacity: 0.92;
    margin-bottom: 3rem;
}

.thoughts-note {
    border-left: var(--border) solid var(--accent);
    padding: 1.5rem 1.75rem 1.5rem 2rem;
    margin: 2rem 0 3rem;
    background: rgba(255, 107, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 1rem 1rem 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 20px rgba(255, 107, 0, 0.08);
}

.thoughts-note strong,
.thought-pull strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.6rem;
    color: var(--accent);
}

.thoughts-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 3rem;
    align-items: start;
}

.thoughts-home-main {
    min-width: 0;
    padding: 0;
}

.thoughts-home-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: 0.04em;
    max-width: 11ch;
    margin-bottom: 1.5rem;
}

.thoughts-home-summary {
    max-width: 46rem;
}

.thoughts-home-feature {
    padding: 0;
    margin-top: 2rem;
}

.thoughts-rail {
    position: relative;
}

.thoughts-rail-inner {
    position: sticky;
    top: 128px;
    border: 4px solid var(--white);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.thoughts-rail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: 0.08em;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.thoughts-rail-list {
    display: grid;
    gap: 1rem;
}

[data-thoughts-rail] .thoughts-rail-list .thought-rail-item:nth-child(n+5) {
    display: none;
}

.thought-rail-item {
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.55);
    padding: 1rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.thought-rail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.08);
}

.thought-rail-item.coming-soon:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.02);
}

.thought-rail-item h2,
.thought-rail-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 0.98;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.thought-rail-item p {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.92;
}

.thoughts-rail-more {
    margin-top: 1.25rem;
    display: inline-flex;
}

.thoughts-rail-more[hidden] {
    display: none;
}

.thoughts-archive-header {
    max-width: 760px;
}

.thoughts-archive-list {
    grid-template-columns: 1fr;
}

.thoughts-grid {
    display: grid;
    gap: 1.5rem;
}

.thought-card {
    display: block;
    border: 4px solid var(--white);
    padding: 2rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.thought-card:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.08);
}

.thought-card.coming-soon {
    cursor: default;
}

.thought-card.coming-soon:hover {
    transform: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.02);
}

.thought-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.article-meta {
    margin-top: 1.25rem;
}

.thought-meta-chip {
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.55);
    padding: 0.35rem 0.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--white);
}

.thought-card h2,
.thought-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.thought-card p {
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 60ch;
    opacity: 0.92;
}

.thoughts-subsection {
    margin-top: 4rem;
    padding: 0;
}

.thoughts-subsection h2,
.article-body h2,
.article-footer h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4.8vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.thoughts-subsection p {
    max-width: 68ch;
    font-size: 1.08rem;
    line-height: 1.85;
    opacity: 0.92;
}

.thoughts-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.thoughts-list li {
    border-left: 4px solid var(--accent);
    padding-left: 1.25rem;
    max-width: 70ch;
    line-height: 1.8;
}

.thought-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.72);
}

.thought-breadcrumbs a {
    color: rgba(255, 255, 255, 0.82);
}

.thought-breadcrumbs span {
    color: rgba(255, 255, 255, 0.45);
}

.article-header {
    margin-bottom: 3rem;
}

.article-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 1rem;
    background: var(--accent);
    color: var(--black);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
}

.article-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 5.4vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    max-width: 14ch;
    text-wrap: balance;
}

.article-deck {
    max-width: 50rem;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.94;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
    align-items: start;
}

.article-copy {
    min-width: 0;
}

.article-sidebar {
    position: relative;
}

.article-toc {
    position: sticky;
    top: 128px;
    left: auto;
    right: auto;
    z-index: 2;
    display: block;
    border: 4px solid var(--white);
    border-bottom: 4px solid var(--white);
    padding: 1.5rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    justify-content: initial;
    align-items: stretch;
    gap: 0;
}

.article-toc h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.article-toc ol {
    margin-left: 1.25rem;
    display: grid;
    gap: 0.7rem;
}

.article-toc li {
    line-height: 1.6;
}

.article-toc a {
    color: var(--white);
}

.article-toc a:hover {
    color: var(--accent);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-body p,
.article-body ul,
.article-body ol {
    max-width: 68ch;
    margin-bottom: 1.5rem;
}

.article-body h2 {
    margin-top: 4rem;
    scroll-margin-top: 9.5rem;
}

.article-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    margin: 2rem 0 0.75rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body a,
.article-footer a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.thought-pull {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(255, 107, 0, 0.75);
    background: rgba(255, 107, 0, 0.08);
    max-width: 64ch;
}

.thought-pull p:last-child {
    margin-bottom: 0;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 4px solid var(--white);
}

.bibliography {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.bibliography li {
    line-height: 1.75;
}

.read-next {
    margin-top: 4rem;
    border: 4px solid var(--white);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
}

.read-next h2 {
    margin-bottom: 0.75rem;
}

.read-next p {
    max-width: 60ch;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.template-label {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .thoughts-home-grid,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .thoughts-rail-inner,
    .article-toc {
        position: static;
        top: auto;
    }

    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {

    .thought-card,
    .article-toc,
    .read-next {
        padding: 1.5rem;
    }

    .article-header h1 {
        max-width: none;
    }

    .article-deck,
    .thoughts-intro {
        font-size: 1.1rem;
    }

    .thoughts-main {
        padding-bottom: 3rem;
    }
}
