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

:root {
    --bg: #0d1117;
    --bg-secondary: #161b22;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-bright: #79c0ff;
    --border: #30363d;
    --gradient-start: #ff6ec7;
    --gradient-end: #aa44ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: #000814;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 1px);
    background-size: 
        550px 550px,
        350px 350px,
        250px 250px,
        450px 450px,
        200px 200px;
    background-position: 
        0 0,
        40px 60px,
        130px 270px,
        70px 100px,
        300px 50px;
    animation: twinkle 120s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Animated wave */
.wave-container {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.wave {
    width: 200%;
    height: 100%;
    animation: wave-scroll 12s linear infinite;
}

.wave-path {
    filter: blur(0.5px);
}

.wave-path-2 {
    animation: wave-scroll-reverse 18s linear infinite;
}

@keyframes wave-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes wave-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

main {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
}

/* Hero statement */
.hero {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.statement {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
}

.statement em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Sections */
section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.intro p:last-child {
    margin-bottom: 0;
}

/* Beliefs */
.beliefs ul {
    list-style: none;
}

.beliefs li {
    padding: 0.75rem 0;
    padding-left: 0;
    border-bottom: 1px solid var(--border);
}

.beliefs li:last-child {
    border-bottom: none;
}

.beliefs li strong {
    color: var(--accent-bright);
}

/* Writing & Projects */
.writing article,
.projects article {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.writing h3,
.projects h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.writing h3 a,
.projects h3 a {
    color: var(--text);
    text-decoration: none;
}

.writing h3 a:hover,
.projects h3 a:hover {
    color: var(--accent);
}

.writing .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.writing article > p:last-child,
.projects article > p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
}

.projects article > p:not(:last-child) {
    margin-bottom: 0.75rem;
}

/* Lists */
ul {
    list-style: none;
}

.figuring-out li,
.links li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.figuring-out li::before,
.links li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

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

a:hover {
    text-decoration: underline;
}

em {
    font-style: italic;
    color: var(--accent);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.avatar {
    margin-bottom: 1.5rem;
}

.avatar img {
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.3);
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

/* Essay pages */
.back-nav {
    margin-bottom: 2rem;
}

.back-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.essay-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.essay-header h1 {
    font-size: 2rem;
    background: none;
    -webkit-text-fill-color: var(--text);
    margin-bottom: 0.5rem;
}

.essay-header .date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.essay-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.essay-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    main {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .statement {
        font-size: 1.25rem;
    }
}
