:root {
    --color-bg: #0d0f0e;
    --color-surface: #171a18;
    --color-text: #f2f4f3;
    --color-muted: #98a29c;
    --color-accent: #c8f169;
    --color-accent-soft: #e2ffa0;
    --color-border: #262b29;
    --gradient-hero: linear-gradient(115deg, #d9f76e 0%, #a5e86e 55%, #6fd08a 100%);
    --radius: 12px;
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    color: var(--color-accent-soft);
    text-decoration: underline;
}

h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Decorative background */

.bg-art {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header / nav */

.site-header {
    background: rgba(13, 15, 14, 0.92);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text);
}

.site-brand:hover {
    text-decoration: none;
    color: var(--color-accent);
}

.site-logo {
    width: 30px;
    height: 30px;
    display: block;
}

.site-nav-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav-links a {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.site-nav-links a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Main content */

.site-main {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
}

.site-main > p:first-of-type {
    font-size: 1.05rem;
}

/* Hero */

.hero {
    background: var(--gradient-hero);
    color: #10130f;
    border-radius: var(--radius);
    padding: 4rem 2.5rem;
    margin-bottom: 3.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    max-width: 36rem;
}

.hero-tagline {
    margin: 0;
    color: #33402a;
    font-size: 1.15rem;
    max-width: 42rem;
}

.hero-cta {
    display: inline-block;
    margin-top: 1.75rem;
    background: #10130f;
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
}

.hero-cta:hover {
    text-decoration: none;
    background: #232a20;
    color: var(--color-accent-soft);
}

/* Supporting statement */

.statement {
    max-width: 46rem;
    margin-bottom: 3.5rem;
}

.statement h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.statement p {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-accent);
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Blog index cards */

.post-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.post-title {
    font-weight: 700;
    font-size: 1.15rem;
}

.post-date {
    display: block;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.post-intro {
    color: var(--color-muted);
    margin: 0.5rem 0 0;
}

/* Pagination */

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--color-muted);
}

.page-link {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.4rem 0.9rem;
}

.page-link:hover {
    text-decoration: none;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Blog post */

.template-blogpage p em {
    color: var(--color-muted);
}

/* Footer */

.site-footer {
    position: relative;
    z-index: 1;
    background: #000000;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5rem;
}

.site-footer p {
    margin: 0;
}
