/* ═══════════════════════════════════════════════════════
   Marcus Goldstein — Personal Research Blog
   Shared styles across all pages
   ═══════════════════════════════════════════════════════ */

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

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 19px;
    line-height: 1.72;
    color: #1a1a1a;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Site Header ── */
.site-header {
    border-bottom: 1px solid #e8e8e8;
    padding: 18px 24px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.site-header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    gap: 28px;
    list-style: none;
}

.site-nav a {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #1a1a1a;
}

/* ── Page Container ── */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── Article (single post) ── */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── Article Meta ── */
.article-meta {
    margin-bottom: 36px;
}

.article-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 20px;
    display: block;
}

.article-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #0d0d0d;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e0d6cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #6b5b4f;
    flex-shrink: 0;
}

.author-avatar-lg {
    width: 120px;
    height: 120px;
    font-size: 36px;
}

.byline-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
}

.byline-details {
    color: #6b6b6b;
}

/* ── Article Content ── */
.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #0d0d0d;
    margin-top: 52px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content em {
    font-style: italic;
}

.article-content strong {
    font-weight: 600;
}

.article-content hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 44px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid #d4c8b8;
    padding-left: 24px;
    margin: 32px 0;
    color: #555;
    font-style: italic;
}

/* ── Image Placeholders ── */
.article-image {
    margin: 36px 0;
    border-radius: 6px;
    overflow: hidden;
}

.article-image .placeholder {
    background: #f5f2ee;
    border: 1px solid #e8e2da;
    padding: 48px 32px;
    text-align: center;
    border-radius: 6px;
}

.placeholder-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.placeholder-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #8a7e72;
    font-weight: 500;
}

.article-image figcaption {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* ── Lab Result Highlight ── */
.lab-result {
    background: #fafafa;
    border-left: 3px solid #c9392c;
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 0 6px 6px 0;
}

.lab-result .number {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #c9392c;
    display: block;
    margin-bottom: 4px;
}

.lab-result .label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: #666;
}

.lab-result-good {
    border-left-color: #2a7d4f;
}

.lab-result-good .number {
    color: #2a7d4f;
}

/* ── HPG Axis Diagram ── */
.hpg-diagram {
    background: #f9f8f6;
    border: 1px solid #e8e2da;
    border-radius: 8px;
    padding: 36px 32px;
    margin: 36px 0;
}

.hpg-diagram h4 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b5b4f;
    text-align: center;
    margin-bottom: 28px;
}

.hpg-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.hpg-step:last-child {
    margin-bottom: 0;
}

.hpg-step-num {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #5c4b3f;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.hpg-step-content {
    font-size: 16px;
    line-height: 1.55;
}

.hpg-step-content strong {
    font-weight: 600;
    color: #3d3028;
}

.hpg-arrow {
    text-align: center;
    font-size: 18px;
    color: #bbb;
    margin: -8px 0 -8px 6px;
}

/* ── Testimonials ── */
.testimonial {
    background: #f9f8f6;
    border-radius: 8px;
    padding: 28px 28px;
    margin: 24px 0;
}

.testimonial p {
    margin-bottom: 12px;
    font-size: 17px;
}

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

.testimonial .attribution {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5c4b3f;
    margin-top: 4px;
}

/* ── CTA Section ── */
.cta-section {
    text-align: center;
    margin: 48px 0;
    padding: 40px 24px;
    background: #f9f8f6;
    border-radius: 10px;
}

.cta-section p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    padding: 16px 40px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.cta-button:hover {
    background: #333;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* ── Future Pacing ── */
.future-pacing {
    font-style: italic;
    color: #333;
}

/* ── Disclaimer ── */
.disclaimer {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #e8e8e8;
    padding-top: 28px;
    margin-top: 56px;
    line-height: 1.6;
}

/* ── Sponsored Tag ── */
.sponsored-tag {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    background: #f4f4f4;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 24px;
}

/* ── Sticky Mobile CTA ── */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e8e8e8;
    padding: 12px 20px;
    z-index: 99;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .cta-button {
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    font-size: 15px;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid #e8e8e8;
    padding: 32px 24px;
    text-align: center;
}

.site-footer p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #999;
}

/* ═══════════════════════════════════════════════════════
   Homepage
   ═══════════════════════════════════════════════════════ */

.hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 48px;
}

.hero-intro {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #888;
    margin-bottom: 12px;
}

.hero h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: #0d0d0d;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: #555;
    max-width: 560px;
    line-height: 1.65;
}

/* ── Article Cards (Homepage) ── */
.articles-section h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 28px;
}

.article-card {
    display: flex;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.article-card:first-of-type {
    padding-top: 0;
}

.article-card:hover {
    opacity: 0.75;
}

.article-card-content {
    flex: 1;
}

.article-card-tag {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 6px;
    display: block;
}

.article-card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.article-card-excerpt {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin-bottom: 8px;
}

.article-card-date {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #aaa;
}

.article-card-thumb {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.article-card-thumb .placeholder {
    width: 100%;
    height: 100%;
    background: #f5f2ee;
    border: 1px solid #e8e2da;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-thumb .placeholder-icon {
    font-size: 24px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   About Page
   ═══════════════════════════════════════════════════════ */

.about-header {
    text-align: center;
    padding: 48px 0 40px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 44px;
}

.about-header h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    color: #0d0d0d;
    margin-top: 20px;
    margin-bottom: 8px;
}

.about-header .subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #888;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
}

.about-photo .placeholder {
    width: 100%;
    height: 100%;
    background: #f5f2ee;
    border: 1px solid #e8e2da;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about-content {
    font-size: 18px;
    line-height: 1.75;
}

.about-content p {
    margin-bottom: 24px;
}

.about-content h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #0d0d0d;
    margin-top: 48px;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════
   Research Index Page
   ═══════════════════════════════════════════════════════ */

.research-header {
    padding: 48px 0 36px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 36px;
}

.research-header h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    color: #0d0d0d;
    margin-bottom: 12px;
}

.research-header p {
    font-size: 17px;
    color: #666;
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    .page,
    .article {
        padding: 32px 20px 80px;
    }

    .article-title {
        font-size: 30px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .site-nav {
        gap: 18px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .hpg-diagram {
        padding: 24px 20px;
    }

    .testimonial {
        padding: 22px 20px;
    }

    .cta-section {
        padding: 32px 20px;
    }

    .sticky-cta {
        display: block;
    }

    .lab-result .number {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .article-card {
        flex-direction: column;
        gap: 16px;
    }

    .article-card-thumb {
        width: 100%;
        height: 180px;
    }

    .about-photo {
        width: 160px;
        height: 160px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 26px;
    }

    .site-header {
        padding: 14px 16px;
    }

    .page,
    .article {
        padding: 24px 16px 100px;
    }
}

/* ═══════════════════════════════════════════════════════
   Newsletter Signup
   ═══════════════════════════════════════════════════════ */

.newsletter-signup {
    background: #f9f8f6;
    border: 1px solid #e8e2da;
    border-radius: 10px;
    padding: 36px 32px;
    margin: 52px 0;
    text-align: center;
}

.newsletter-signup h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.newsletter-signup p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
    border-color: #1a1a1a;
}

.newsletter-form button {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #333;
}

/* ═══════════════════════════════════════════════════════
   404 Page
   ═══════════════════════════════════════════════════════ */

.error-page {
    text-align: center;
    padding: 120px 24px;
}

.error-code {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 120px;
    font-weight: 700;
    color: #e8e2da;
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.error-page p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    color: #888;
    margin-bottom: 32px;
}

.error-page a {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.error-page a:hover {
    color: #555;
}
