:root {
    --bg-color: #fafafa;
    --text-color: #333;
    --link-color: #2563eb;
    --purple: #7c3aed;
    --yellow: #eab308;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e8e8e8;
    --link-color: #60a5fa;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
}

.theme-toggle-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 42rem;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    font-family: inherit;
    pointer-events: auto;
}

.theme-toggle span {
    position: relative;
}

.theme-toggle .light-mode {
    color: var(--yellow);
}

.theme-toggle .dark-mode {
    color: var(--purple);
}

@keyframes highlight-dark {
    0% { background-color: rgba(124, 58, 237, 0.3); }
    100% { background-color: transparent; }
}

@keyframes highlight-light {
    0% { background-color: rgba(234, 179, 8, 0.3); }
    100% { background-color: transparent; }
}

.highlight-dark {
    animation: highlight-dark 0.5s ease-out;
}

.highlight-light {
    animation: highlight-light 0.5s ease-out;
}

h1 {
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

    .theme-toggle-container {
        top: 1rem;
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
