/* ============================================
   HOWARD RHEINGOLD - Mind Amplifier
   Tools for Thought · Virtual Reality · Painted Shoes
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Fira+Code:wght@300;400;500&display=swap');

:root {
    --hr-magenta: #e040a0;
    --hr-magenta-soft: rgba(224, 64, 160, 0.12);
    --hr-teal: #20b2aa;
    --hr-teal-soft: rgba(32, 178, 170, 0.1);
    --hr-orange: #ff8c42;
    --hr-orange-soft: rgba(255, 140, 66, 0.1);
    --hr-purple: #9b59b6;
    --hr-purple-soft: rgba(155, 89, 182, 0.1);
}

.hr-page {
    padding-top: 80px;
    min-height: 100vh;
}

.hr-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Hero */
.hr-hero {
    text-align: center;
    padding: var(--space-xl) 0;
    position: relative;
}

.hr-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, var(--hr-teal), var(--hr-magenta), var(--hr-orange));
}

.hr-pretitle {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.7rem;
    color: var(--hr-magenta);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--space-sm);
}

.hr-portrait {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: var(--space-lg) auto var(--space-md);
    display: block;
    border: 3px solid var(--hr-magenta);
    box-shadow: 0 0 20px rgba(224, 64, 160, 0.15), 0 0 40px rgba(32, 178, 170, 0.1);
    transition: all 0.5s ease;
}

.hr-portrait:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 30px rgba(224, 64, 160, 0.3), 0 0 60px rgba(32, 178, 170, 0.2);
}

.hr-name {
    font-family: 'Archivo', var(--font-sans);
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.hr-subtitle {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--hr-magenta);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.hr-years {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.hr-key-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.hr-fact {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.hr-fact:hover {
    transform: translateY(-3px);
    border-color: var(--hr-magenta);
}

.hr-fact-icon {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

.hr-fact-label {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hr-fact-value {
    font-family: 'Archivo', var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-xs);
}

.hr-epigraph {
    max-width: 700px;
    margin: var(--space-lg) auto 0;
    padding: var(--space-lg);
    border-left: 3px solid var(--hr-purple);
    font-family: 'Merriweather', var(--font-serif);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
    background: var(--hr-purple-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Section */
.hr-section {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-secondary);
}

.hr-section-label {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.65rem;
    color: var(--hr-magenta);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: var(--space-xs);
    display: block;
}

.hr-section-title {
    font-family: 'Archivo', var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

/* Body */
.hr-body {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.hr-body p {
    margin-bottom: var(--space-lg);
}

.hr-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

.hr-body a {
    color: var(--hr-teal);
    text-decoration: none;
    border-bottom: 1px dotted var(--hr-teal);
    transition: all 0.2s ease;
}

.hr-body a:hover {
    color: var(--hr-magenta);
    border-bottom-color: var(--hr-magenta);
}

/* Timeline */
.hr-timeline {
    position: relative;
    padding-left: 32px;
}

.hr-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--hr-magenta), var(--hr-teal), var(--hr-orange), var(--hr-purple), transparent);
}

.hr-timeline-item {
    position: relative;
    padding-bottom: var(--space-sm);
    padding-left: var(--space-md);
    line-height: 1.6;
}

.hr-timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hr-magenta);
    box-shadow: 0 0 8px rgba(224, 64, 160, 0.3);
    transition: transform 0.3s ease;
}

.hr-timeline-item:hover::before {
    transform: scale(1.6);
}

.hr-timeline-year {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.78rem;
    color: var(--hr-magenta);
    font-weight: 500;
    margin-right: 0.5em;
}

.hr-timeline-text {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.hr-timeline-item.highlight {
    background: var(--hr-magenta-soft);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    margin-left: -10px;
    padding-left: calc(var(--space-md) + 10px);
}

.hr-timeline-item.highlight .hr-timeline-text {
    color: var(--text-primary);
    font-weight: 400;
}

/* Figure */
.hr-figure {
    margin: var(--space-lg) 0;
    text-align: center;
}

.hr-figure img {
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.hr-figure img:hover {
    transform: scale(1.02);
}

.hr-figure-caption {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* Insight Card */
.hr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-left: 3px solid var(--hr-magenta);
    transition: all 0.3s ease;
}

.hr-card:hover {
    transform: translateX(3px);
    border-left-color: var(--hr-teal);
}

.hr-card h3 {
    font-family: 'Archivo', var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.hr-card p {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.hr-card ul {
    list-style: none;
    padding: 0;
}

.hr-card ul li {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 1.2em;
    position: relative;
}

.hr-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--hr-magenta);
}

/* Quote */
.hr-quote {
    border-left: 3px solid var(--hr-teal);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    font-family: 'Merriweather', var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    background: var(--bg-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Callout */
.hr-callout {
    background: var(--hr-magenta-soft);
    border: 1px solid rgba(224, 64, 160, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.hr-callout-title {
    font-family: 'Archivo', var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--hr-magenta);
    margin-bottom: var(--space-sm);
}

.hr-callout-text {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Book card */
.hr-book {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.hr-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hr-magenta), var(--hr-teal), var(--hr-orange));
}

.hr-book h3 {
    font-family: 'Archivo', var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.hr-book .hr-book-year {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.7rem;
    color: var(--hr-magenta);
    margin-bottom: var(--space-sm);
    display: block;
}

.hr-book p {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

/* References & Footer */
.hr-references {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-secondary);
}

.hr-references-title {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
}

.hr-references-list {
    list-style: none;
    padding: 0;
}

.hr-references-list li {
    padding: var(--space-xs) 0;
}

.hr-references-list a {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.8rem;
    color: var(--hr-teal);
    text-decoration: none;
}

.hr-references-list a:hover {
    color: var(--hr-magenta);
}

.hr-references-list a::before {
    content: '→ ';
    opacity: 0.5;
}

.hr-footer {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
    border-top: 1px solid var(--border-secondary);
}

.hr-footer-memorial {
    font-family: 'Merriweather', var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hr-footer-meta {
    font-family: 'Fira Code', var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-lg);
    opacity: 0.6;
}

/* Zen box */
.hr-zen {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    margin: var(--space-lg) 0;
    border: 1px solid var(--hr-purple);
    border-radius: var(--radius-md);
    background: var(--hr-purple-soft);
}

.hr-zen p {
    font-family: 'Merriweather', var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--hr-purple);
    line-height: 2;
    margin: 0;
}

@media (max-width: 768px) {
    .hr-container {
        padding: 0 var(--space-md);
    }

    .hr-key-facts {
        grid-template-columns: 1fr;
    }

    .hr-portrait {
        width: 140px;
        height: 140px;
    }
}