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

:root {
    --red-deep: #8b2520;
    --red-warm: #b53a34;
    --red-muted: #c4605a;
    --red-light: #e8c4c1;
    --red-bg: #fdf5f4;
    --dark: #1a1a1a;
    --dark-soft: #2c2c2c;
    --text: #3a2e2e;
    --text-light: #6e5a5a;
    --white: #ffffff;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--red-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--red-warm);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--red-deep);
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 40%, var(--red-deep) 100%);
    padding: 5rem 2rem 4rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.portrait {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 4px solid var(--red-muted);
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--red-light);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.bio p {
    color: #d4c4c4;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.bio a {
    color: var(--red-light);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.bio a:hover {
    color: var(--white);
    border-color: var(--white);
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.linkedin-link,
.cb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
}

.linkedin-link {
    background: var(--red-warm);
    color: var(--white);
}

.linkedin-link:hover {
    background: var(--red-deep);
    color: var(--white);
    transform: translateY(-1px);
}

.cb-link {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cb-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.linkedin-icon,
.cb-icon {
    width: 18px;
    height: 18px;
}

/* ── Main ── */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.articles h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* ── Feed Grid ── */
.feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feed-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    border: 1px solid #e8dada;
    transition: box-shadow 0.2s, transform 0.15s;
}

.feed-card:hover {
    box-shadow: 0 4px 20px rgba(139, 37, 32, 0.08);
    transform: translateY(-2px);
}

.feed-card .date {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.feed-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feed-card h3 a {
    color: inherit;
    transition: color 0.2s;
}

.feed-card h3 a:hover {
    color: var(--red-warm);
}

.feed-card .summary {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.error-msg {
    text-align: center;
    color: var(--red-warm);
    padding: 2rem;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid #e8dada;
    max-width: 960px;
    margin: 0 auto;
}

/* ── Legal Page ── */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 40%, var(--red-deep) 100%);
    padding: 2.5rem 2rem;
}

.page-header-content {
    max-width: 760px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--red-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 2px solid var(--red-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.legal-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.legal-section p {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: var(--text);
}

.legal-section ul {
    margin: 0.5rem 0 0.85rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.legal-section ul li {
    margin-bottom: 0.25rem;
}

.legal-source {
    margin-top: 2rem;
    font-size: 0.82rem !important;
    color: var(--text-light) !important;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .portrait {
        width: 160px;
        height: 160px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 2rem 1.25rem 3rem;
    }

    .feed-card {
        padding: 1.25rem;
    }
}
