/* ── Reset & Variables ──────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #08080a;
    --bg-card: #111114;
    --bg-card-hover: #18181c;
    --text: #e4e4e7;
    --text-dim: #a1a1aa;
    --text-muted: #52525b;
    --accent: #3b82f6;
    --accent-dim: rgba(59, 130, 246, 0.1);
    --accent-border: rgba(59, 130, 246, 0.2);
    --border: #1e1e22;
    --border-light: #3f3f46;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Grain ─────────────────────────────────────────── */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ── Layout ────────────────────────────────────────── */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Site Header ───────────────────────────────────── */
.site-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-name:hover { color: var(--accent); }

.site-nav {
    display: flex;
    gap: 20px;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.site-nav a:hover { color: var(--accent); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 580px;
}

/* ── Guide Cards ───────────────────────────────────── */
.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-top: 48px;
}

.guide-list {
    display: flex;
    flex-direction: column;
}

.guide-card {
    display: block;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.guide-card:first-child {
    border-top: 1px solid var(--border);
}

.guide-card:hover {
    padding-left: 8px;
}

.guide-card:hover .guide-title {
    color: var(--accent);
}

.guide-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    transition: color 0.2s;
    margin-bottom: 4px;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
}

.guide-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-inner a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-inner a:hover { color: var(--accent); }

/* ── Animations ────────────────────────────────────── */
.hero-label, .hero h1, .hero-tagline, .section-label, .guide-list {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.5s ease forwards;
}

.hero h1 { animation-delay: 0.1s; }
.hero-tagline { animation-delay: 0.2s; }
.section-label { animation-delay: 0.3s; }
.guide-list { animation-delay: 0.35s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 480px) {
    .hero h1 { font-size: 36px; }
    .hero-tagline { font-size: 16px; }
    .guide-desc { display: none; }
    .site-nav { gap: 12px; }
}
