:root {
    --bg: #FAFAFA;
    --text: #262A2E;
    --width: 800px;
}

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

html {
    max-width: var(--width);
    margin: 0 auto;
    padding: 20px 20px;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
}

body {
    padding: 20px 20px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
}

a {
    color: var(--text);
}


/*  */
header {
    padding: 20px 0 20px 0;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 55px;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.header-left h2 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #6b6b6b;
    text-transform: uppercase;
}

.header-right img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.header-right img:hover {
    filter: grayscale(0%);
}


nav {
    display: flex;
    gap: 20px;
    padding: 10px 0 10px 0;
    justify-content: center;
    gap: 24px;
    position: sticky;
    top: 0;
    background-color: rgba(250, 250, 250, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}


nav a {
    text-decoration: none;
    font-weight: 400;
}

nav a:hover {
    font-weight: 700;
    text-decoration: underline;
}

nav a.active {
    font-weight: 700;
    text-decoration: underline;
}

/**/
main {
    padding: 25px 0;
}

main section {
    margin-bottom: 40px;
}

main p {
    margin-bottom: 15px;
}

main h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

main a {
    text-decoration: underline;
}

main a:hover {
    opacity: 0.7;
}


/* POSTS */
.post-card {
    padding-top: 20px;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-card h4 a {
    text-decoration: none;
}

.post-card h4 a:hover {
    opacity: 0.6;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
}

.categories {
    display: inline-flex;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    width: 100%;
}

.category {
    font-size: 0.9rem;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
}

.category:hover {
    color: var(--text);
}

.category.active {
    color: var(--text);
    font-weight: 600;
}

/* Projects */
.projects-page {
    padding: 40px 0;
}

.project-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    padding: 35px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.project-card:first-child {
    padding-top: 0;
}

.project-card:last-child {
    border-bottom: none;
}

.project-image img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.project-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-tech span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    color: #666;
    letter-spacing: 0.02em;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.project-links a:hover {
    opacity: 0.6;
}

/*POST*/
.post {
    padding: 40px 0;
}

.post-header {
    margin-bottom: 50px;
}

.back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}

.post-header h1 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
}

.post-meta .separator {
    margin: 0 8px;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 50px 0 20px 0;
    letter-spacing: -0.01em;
}

.post-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 40px 0 15px 0;
}

.post-body p {
    margin-bottom: 25px;
    color: #333;
}

.post-body a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body a:hover {
    opacity: 0.6;
}

.post-body ul,
.post-body ol {
    margin: 0 0 25px 25px;
}

.post-body li {
    margin-bottom: 10px;
    color: #333;
}

.post-body code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    background: rgba(0,0,0,0.06);
    padding: 3px 7px;
    border-radius: 4px;
}

.post-body pre {
    background: #1a1a2e;
    color: #eee;
    padding: 25px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 30px 0;
    line-height: 1.5;
}

.post-body pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
}

.post-body blockquote {
    border-left: 3px solid var(--text);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.post-footer p {
    font-size: 0.95rem;
    color: #666;
}

.post-footer a {
    color: var(--text);
    text-decoration: underline;
}

.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-nav-link {
    text-decoration: none;
    flex: 1;
}

.post-nav-link.empty {
    visibility: hidden;
}

.post-nav-link.prev {
    text-align: left;
}

.post-nav-link.next {
    text-align: right;
}

.post-nav-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.post-nav-title {
    display: block;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.post-nav-link:hover .post-nav-title {
    opacity: 0.6;
}

/* FOOTER */
footer {
    padding: 60px 0 40px 0;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    color: #888;
}

.heart {
    color: #e25555;
}