:root {
    --bg-light: #ffffff;
    --bg-subtle: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --border-color: #e2e8f0;
    --max-width: 800px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    line-height: 1.3;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

/* Article Layout */
.article-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.document-type {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 3rem;
}

/* Featured Image */
.hero-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-style: italic;
}

/* Content Formatting */
section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-light);
    display: inline-block;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.highlight-box {
    background-color: var(--bg-subtle);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Technical Details */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-card {
    background: var(--bg-subtle);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tech-card .icon-wrapper {
    background: var(--bg-light);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tech-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tech-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

/* Navigation inside document */
.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.nav-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-pill:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}