@font-face {
    font-family: 'Custom';
    src: url('/static/fonts/Essential PragmataPro-R_1.4.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Custom';
    src: url('/static/fonts/Essential PragmataPro-R_1.4.woff2') format('woff2');
    font-weight: 100;
}

:root {
    --bg: #000;
    --accent: #64ffda;
    --text: #e0e0e0;
    --text-dim: #888;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Custom', monospace;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* header */
header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 2rem 3rem;
    z-index: 100;
    background: var(--bg);
}

nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* main content */
main {
    padding: 2rem;
}

/* hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 20vh;
    max-width: 800px;
    margin: 0 auto;
}

.typing-text {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.cursor {
    color: var(--accent);
    font-weight: 100;
}

.cursor.blink {
    animation: blink 1s step-end infinite;
}

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

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

/* home sections */
.home-section {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 0;
}

.home-section h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* page content (for standalone /projects and /blog routes) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 8rem;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

/* blog post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 8rem;
    line-height: 1.7;
}

.blog-post h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-bottom: 1rem;
    color: var(--text-dim);
}

/* footer */
footer {
    padding: 2rem 3rem;
    display: flex;
    justify-content: center;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 1;
}

.social-link img {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

.eth-link {
    position: relative;
    cursor: pointer;
}

.eth-link::before {
    content: attr(data-eth) " ⧉";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 0.5rem;
}

.eth-link:hover::before {
    opacity: 1;
}

.eth-link.copied::after {
    content: 'copied!';
    position: absolute;
    bottom: calc(100% + 3.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* post list */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.post-item:hover {
    border-color: var(--accent);
}

.post-title {
    font-size: 1.1rem;
    color: var(--text);
}

.post-date {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.post-summary {
    width: 100%;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

.post-header .post-date {
    display: block;
}

.post-content {
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

/* project list */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    transition: border-color 0.2s ease;
}

.project-item:hover {
    border-color: var(--accent);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.project-title {
    color: var(--text);
    font-size: 1.1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
}

.project-link:hover {
    text-decoration: underline;
}

.project-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    color: var(--text-dim);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #333;
    border-radius: 3px;
}

.empty-state {
    color: var(--text-dim);
    font-style: italic;
}