@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg: #0d0c0b;
    --text-primary: #e8e6e3;
    --text-secondary: #b3b0aa;
    --muted: #4a4238;
    --accent-red: #9e1b1b;
    --accent-gold: #e5b35c;
    --panel-bg: linear-gradient(145deg, #1f1d1b 0%, #121110 100%);
}

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

body {
    font-family: 'Crimson Pro', Georgia, serif;
    background: var(--bg);
    background-image: radial-gradient(circle at top center, #262422 0%, #0d0c0b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 1.125rem;
}

.layout-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
}

.content {
    width: 100%;
    max-width: 820px;
}

.text-container {
    border: 1px solid var(--muted);
    border-top: 3px solid var(--accent-red);
    padding: 2.5rem;
    background: var(--panel-bg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--muted);
    padding-bottom: 1rem;
}

h1 i {
    animation: signs-pulse 4s infinite ease-in-out;
}

@keyframes signs-pulse {
    0%, 100% { text-shadow: 0 0 5px var(--accent-gold); }
    50% { text-shadow: 0 0 15px var(--accent-red), 0 0 25px var(--accent-gold); color: #fff; }
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-red);
    padding-left: 0.75rem;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.bio {
    color: var(--text-primary);
}

.bio li {
    margin-bottom: 0.75rem;
    margin-left: 1.5rem;
    line-height: 1.6;
}

a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-color: var(--accent-red);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
    color: #ff6b6b;
    text-decoration-color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

.links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--muted);
    padding-top: 1.5rem;
}

.links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.links a:hover {
    color: var(--accent-gold);
    transform: scale(1.15) translateY(-2px);
    text-shadow: 0 5px 15px rgba(229, 179, 92, 0.3);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    z-index: 1000;
}

.modal.active {
    display: flex;
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 3rem);
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid var(--muted);
    border-top: 3px solid var(--accent-gold);
    padding: 2rem;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(158, 27, 27, 0.15);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--muted);
    padding-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.theme-reasoning {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent-red);
    background: rgba(158, 27, 27, 0.05);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    box-shadow: inset 2px 0 5px rgba(0,0,0,0.2);
}

.modal-note {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--muted);
    background: #121110;
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #121110;
    border: 1px solid var(--muted);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .layout-container {
        padding: 1.5rem 1rem;
    }

    .text-container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .theme-adjacent {
        flex-direction: column;
    }
}