/* ===== Thinking / Essays Section ===== */

/* Index: card grid */
.thinking-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(100px + var(--spacing-xl)) var(--spacing-md) var(--spacing-2xl);
}

.thinking-page__title {
    font-family: var(--font-family-headline);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.thinking-page__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.6;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .thinking-page__subtitle {
        white-space: normal;
    }
}

.thinking-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
    margin: 0;
}

.thinking-card {
    background: linear-gradient(180deg, rgba(153, 186, 196, 0.06) 0%, transparent 100%);
    border: 1px solid rgba(153, 186, 196, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.thinking-card:hover {
    border-color: rgba(153, 186, 196, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.thinking-card__thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    background-color: rgba(26, 58, 69, 0.6);
}

.thinking-card__thumb--placeholder {
    background: linear-gradient(135deg, rgba(26, 58, 69, 0.8) 0%, rgba(11, 32, 40, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(153, 186, 196, 0.4);
    font-size: 0.85rem;
}

.thinking-card__content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.thinking-card__title {
    font-family: var(--font-family-headline);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.thinking-card__subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.thinking-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-accent-light);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
}

.thinking-card__link:hover {
    color: var(--color-white);
    gap: 0.5rem;
}

.thinking-card__link svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .thinking-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .thinking-page {
        padding: calc(100px + var(--spacing-md)) var(--spacing-sm) var(--spacing-xl);
    }
}

/* ===== Article layout ===== */
.article-page {
    padding: 0 0 var(--spacing-2xl);
}

.article-header-img {
    width: 100%;
    max-height: 42vh;
    object-fit: cover;
    background-color: rgba(26, 58, 69, 0.6);
}

.article-header-img--placeholder {
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, rgba(26, 58, 69, 0.7) 0%, rgba(11, 32, 40, 0.85) 100%);
    display: block;
}

.article-body-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md) 0;
}

.article-title {
    font-family: var(--font-family-headline);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

.article-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.article-body p {
    margin-bottom: var(--spacing-md);
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body__heading {
    font-family: var(--font-family-headline);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-white);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    margin-left: 0;
    margin-right: 0;
    letter-spacing: -0.01em;
}

.article-body__heading:first-child {
    margin-top: 0;
}

.article-cta {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(153, 186, 196, 0.15);
    text-align: center;
}

.article-cta__link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-cta__link:hover {
    color: var(--color-white);
}

@media (max-width: 600px) {
    .article-body-wrap {
        padding: var(--spacing-xl) var(--spacing-sm) 0;
    }
}
