:root {
    --bg: #ffffff;
    --text: #1c1c1c;
    --muted-text: #6e6e6e;
    --border: #e0e0e0;
    --card-bg: #f9f9f9;
    --accent: #333333;
    --tag-bg: #eaeaea;
    --tag-bg-highlight: #cccccc;
    --tag-text: #555555;
}

a {
  text-decoration: none;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

p {
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
}

header {
    border-bottom: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
header h3 {
    font-weight:200;
}
nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
}

main {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: grid;
}

article {
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

article:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

article h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

article p {
    color: var(--muted-text);
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

footer {
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted-text);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.tags {
    margin-bottom: 0.75rem;
}

.tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    margin-right: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tag:hover {
    background: var(--tag-bg-highlight);
}

.tag.warning {
    background: #ffe5e5;
    color: #c62828;
}.tag.warning:hover {
    background: #ffcccc;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --text: #e0e0e0;
        --muted-text: #aaaaaa;
        --border: #2a2a2a;
        --card-bg: #1e1e1e;
        --accent: #dddddd;
        --tag-bg: #2a2a2a;
        --tag-bg-highlight: #444444;
        --tag-text: #cccccc;
    }

    article:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }

    .tag.warning {
        background: #3b1e1e;
        color: #ffb3b3;
    }.tag.warning:hover {
    background: #5b3e3e;
}

}