@font-face {
    font-family: 'Geist';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #09090b;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;
    --accent: #ef4444;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle gradient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(78, 81, 102, 0.1), transparent);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20vh 1.5rem 12vh;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
}

.name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Rules */
.rules {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rule {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    cursor: default;
}

.rule-number {
    font-family: 'Geist Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary);
    flex-shrink: 0;
    width: 1.5rem;
}

.rule-content {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.rule:hover .rule-content {
    color: var(--text-primary);
}

/* Typing animation */
.rule-content.typing {
    color: var(--text-primary);
}

.rule-content.typing::after {
    content: '|';
    animation: blink 0.6s infinite;
    margin-left: 1px;
    color: var(--text-primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Links */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.link:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 15vh 1.25rem 10vh;
        gap: 3rem;
    }
    
    .name {
        font-size: 1.25rem;
    }
    
    .rules-list {
        gap: 1rem;
    }
    
    .rule {
        gap: 1rem;
    }
    
    .rule-content {
        font-size: 1rem;
    }
    
    .links {
        gap: 0.375rem;
    }
    
    .link {
        width: 40px;
        height: 40px;
    }
    
    .link svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
