:root {
    --bg: #ffffff;
    --text-primary: #111111;
    --text-secondary: #333333;
    --muted: #dddddd;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
}

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

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

.text-container {
    border: 1px solid var(--muted);
    padding: 2rem;
    background: #fafafa;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-size: 1rem;
}

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

a {
    color: inherit;
    
}

a:hover {
    text-decoration: underline;
}

.links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.links a {
    color: var(--text-secondary);
    
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 3rem);
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--muted);
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 0.75rem;
}

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

.theme-reasoning {
    font-style: italic;
    color: var(--text-primary);
    border-left: 4px solid var(--text-secondary);
    background: rgba(0, 0, 0, 0.025);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}

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

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: 1px solid var(--muted);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

    .text-container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

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