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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-section: #1a1a24;
    --text-primary: #e8e8ed;
    --text-secondary: #9494a8;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --tag-new: #22c55e;
    --tag-overhaul: #f59e0b;
    --border: #2a2a3a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #0f0f18 0%, var(--bg-dark) 100%);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Main content */
main {
    padding: 48px 0;
}

/* Patch article */
.patch {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.patch-header {
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border);
}

.patch-header h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.patch-header time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sections */
section {
    padding: 32px;
    border-bottom: 1px solid var(--border);
}

section:last-child {
    border-bottom: none;
}

section h3 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

section h4:first-of-type {
    margin-top: 0;
}

/* Tags */
.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag.new {
    background: rgba(34, 197, 94, 0.15);
    color: var(--tag-new);
}

.tag.overhaul {
    background: rgba(245, 158, 11, 0.15);
    color: var(--tag-overhaul);
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
}

li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

li:last-child {
    margin-bottom: 0;
}

/* Code */
code {
    background: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--accent);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 8px;
}

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

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    header {
        padding: 40px 0 30px;
    }

    header h1 {
        font-size: 2rem;
    }

    .patch-header {
        padding: 24px;
    }

    section {
        padding: 24px;
    }

    section h3 {
        font-size: 1.1rem;
    }
}
