/* ═══════════════════════════════════════════════════════════
   #RickRubinxAI — martyrubin.css
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Brand accent palette */
    --accent-hot:   #d400aa;
    --accent-mid:   #800080;
    --accent-deep:  #440055;

    /* Derived / soft tones */
    --accent-soft:  #fce8f8;
    --accent-faint: #fdf3fc;
    --accent-glow:  rgba(212, 0, 170, 0.12);

    /* Neutrals */
    --bg:           #F8F7F4;
    --surface:      #FFFFFF;
    --text:         #111111;
    --text-muted:   #666666;
    --border:       #E4E3DE;

    --max-w: 900px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ─── Layout Helpers ────────────────────────────────────── */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4.5rem 0;
}

section + section {
    border-top: 1px solid var(--border);
}

.eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-hot);
    margin-bottom: 0.75rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 680px;
}

/* ─── Header / Hero ─────────────────────────────────────── */
.site-header {
    background:
        radial-gradient(ellipse at 15% 80%, rgba(212, 0, 170, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(212, 0, 170, 0.15) 0%, transparent 45%),
        linear-gradient(150deg, #1e0028 0%, #440055 45%, #800080 100%);
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Logo direkt auf dem farbigen Header */
.logo-card {
    display: inline-block;
    position: relative;
}

.logo-img {
    max-width: min(520px, 80vw);
    height: auto;
    display: block;
}

.tagline {
    margin-top: 1.75rem;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.70);
    letter-spacing: 0.015em;
    position: relative;
}

.tagline em {
    font-style: normal;
    color: #ffffff;
    font-weight: 500;
}

/* ─── Intro quote ───────────────────────────────────────── */
.intro-quote {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2.5rem;
}

.intro-quote::before {
    content: '\201C';
    font-family: 'Lora', Georgia, serif;
    font-size: 6rem;
    line-height: 0.75;
    color: var(--accent-hot);
    position: absolute;
    left: -0.25rem;
    top: 0.1rem;
    pointer-events: none;
}

.intro-quote p {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1rem, 2.4vw, 1.175rem);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-deep);
    line-height: 1.65;
}

.intro-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-hot);
}

/* ─── Accent bar ────────────────────────────────────────── */
.accent-bar {
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-deep),
        var(--accent-mid)  30%,
        var(--accent-hot)  60%,
        var(--accent-mid)
    );
}

/* ─── Intro section ─────────────────────────────────────── */
.section-intro {
    background: var(--surface);
}

/* ─── Articles grid ─────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.125rem;
    margin-top: 2.5rem;
}

@media (min-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
    .article-card--featured {
        grid-column: 1 / -1;
    }
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.article-card:hover {
    box-shadow: 0 6px 28px var(--accent-glow);
    border-color: rgba(212, 0, 170, 0.35);
    transform: translateY(-2px);
}

/* Featured (full-width longform article) */
.article-card--featured {
    background: var(--accent-faint);
    border-color: rgba(212, 0, 170, 0.18);
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

@media (max-width: 599px) {
    .article-card--featured {
        flex-direction: column;
    }
}

.featured-accent {
    flex-shrink: 0;
    width: 4px;
    align-self: stretch;
    background: linear-gradient(180deg, var(--accent-hot), var(--accent-mid));
    border-radius: 4px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25em 0.65em;
    border-radius: 4px;
    width: fit-content;
}

.badge--article {
    background: var(--accent-hot);
    color: #ffffff;
}

.badge--post {
    background: var(--accent-glow);
    color: var(--accent-hot);
}

/* Card content */
.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.card-cta {
    font-size: 0.78rem;
    color: var(--accent-hot);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-top: 0.25rem;
}

.card-cta::after {
    content: '→';
    transition: transform 0.15s ease;
}

.article-card:hover .card-cta::after {
    transform: translateX(4px);
}

/* ─── About ─────────────────────────────────────────────── */
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (min-width: 600px) {
    .about-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

.about-photo-col {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.about-photo-frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    /* Double-ring: white gap, then accent color */
    box-shadow:
        0 0 0 3px var(--surface),
        0 0 0 6px var(--accent-hot);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-text-col {
    flex: 1;
}

.about-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-text-col p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.about-text-col p:last-child {
    margin-bottom: 0;
}

/* ─── Links section ─────────────────────────────────────── */
.section-links {
    background: var(--surface);
}

.links-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 2rem;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45em 1.1em;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.link-pill:hover {
    border-color: var(--accent-hot);
    color: var(--accent-hot);
    background: var(--accent-soft);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--accent-hot);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
