:root {
    --primary-color: oklch(65% 0.25 260);
    --secondary-color: oklch(80% 0.2 280);
    --font-family: 'Inter', sans-serif;
}

/* Light Mode Variables */
[data-theme="light"] {
    --text-color: oklch(20% 0.05 260);
    --background-color: oklch(95% 0.02 260);
    --card-background-color: oklch(100% 0 0);
    --card-shadow: rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: oklch(95% 0.05 260);
    --background-color: oklch(20% 0.05 260);
    --card-background-color: oklch(30% 0.05 260);
    --card-shadow: rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.05' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header-controls {
    position: absolute;
    top: 0;
    right: 0;
}

#theme-toggle {
    background: var(--card-background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px var(--card-shadow);
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

news-article {
    display: block;
    background-color: var(--card-background-color);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

news-article:hover {
    transform: translateY(-8px);
}

news-article span[slot="title"] {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1rem;
    line-height: 1.2;
}

news-article span[slot="summary"] {
    display: block;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
}

news-article a[slot="link"] {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.8rem;
    transition: all 0.2s ease;
}

news-article a[slot="link"]:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px var(--primary-color);
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    news-article {
        padding: 1.5rem;
    }
    news-article span[slot="title"] {
        font-size: 1.4rem;
    }
}