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

:root {
    --bg: #0a0a0f;
    --bg-card: #111118;
    --text: #e8e6f0;
    --text-dim: #8884a0;
    --accent: #9b93c7;
    --accent-glow: #6b5fa0;
    --border: #1e1e2a;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

.noise {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* NAV */
nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

/* HERO */
.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    line-height: 1.8;
}

/* FEATURED */
.featured {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.featured-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.3s, transform 0.2s;
}

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

.card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(155, 147, 199, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.featured-card h2 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.featured-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* LINKS */
.links-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.link-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.link-btn {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.link-btn:hover {
    border-color: var(--accent);
    background: rgba(155, 147, 199, 0.05);
}

/* ABOUT */
.about {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    border-top: 1px solid var(--border);
}

.about p {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 600px;
}

.about .dim {
    color: rgba(136, 132, 160, 0.5);
    margin-top: 0.75rem;
    font-style: italic;
}

/* FOOTER */
footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

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

footer a:hover {
    color: var(--text);
}

/* ARTICLE PAGE */
article.post {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

article.post .back-link {
    display: inline-block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 3rem;
    transition: color 0.3s;
}

article.post .back-link:hover {
    color: var(--text);
}

article.post .post-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

article.post h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

article.post .post-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

article.post .post-body {
    font-size: 1.05rem;
    line-height: 1.85;
}

article.post .post-body p {
    margin-bottom: 1.5rem;
}

article.post .post-body h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

article.post .post-body strong {
    color: var(--text);
    font-weight: 500;
}

article.post .post-body em {
    color: var(--accent);
    font-style: italic;
}

article.post hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

article.post .post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

.article-links {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: flex;
    gap: 1rem;
}

.article-links a {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.article-links a:hover {
    border-color: var(--accent);
    background: rgba(155, 147, 199, 0.05);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .links-section {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    nav {
        padding: 1.5rem;
    }
    
    .featured-card {
        padding: 1.5rem;
    }
}
