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

:root {
    --bg: #F2EDE8;
    --bg-dark: #0D0D0D;
    --fg: #0D0D0D;
    --fg-light: #F2EDE8;
    --red: #FF3B1D;
    --gray: #8A8580;
    --light-gray: #D9D4CF;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Outfit', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.028;
    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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(242, 237, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--light-gray);
}
.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--fg);
}
.nav-logo span { color: var(--red); }

/* ===== PAGE CONTENT ===== */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-updated {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 3rem;
    display: block;
}

.page-content h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

.page-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 1rem;
}

.page-content ul {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 0;
}

.page-content li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray);
    font-weight: 300;
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.page-content li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.page-content a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}
.page-content a:hover { color: var(--fg); }

.page-content strong {
    font-weight: 500;
    color: var(--fg);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
footer span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
}
footer a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover { color: rgba(255,255,255,0.7); }
.footer-links { display: flex; gap: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    nav { padding: 1.2rem 1.5rem; }
    .page-content { padding: 6rem 1.5rem 3rem; }
}
@media (max-width: 600px) {
    nav { padding: 1rem 1.2rem; }
    .nav-logo { font-size: 1.2rem; }
    .page-content { padding: 5.5rem 1.2rem 2.5rem; }
    .page-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .page-content h2 { font-size: 1.15rem; }
    footer { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem 1.2rem; }
}
