/* ----------------------------------
   Base
---------------------------------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #000;
    color: #f4f4f5;
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "IBM Plex Mono", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid #f4f4f5;
    outline-offset: 0.25rem;
}

/* ----------------------------------
   Page layout
---------------------------------- */

.page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ----------------------------------
   Header / Navigation
---------------------------------- */

.site-header {
    width: 100%;
    padding: 2rem 1.25rem 1rem;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav a {
    color: #d4d4d8;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: color 160ms ease;
}

.nav a:hover {
    color: #ffffff;
}

.nav a[aria-current="page"] {
    color: #ffffff;
}

/* ----------------------------------
   Main content
---------------------------------- */

.main-content {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1.25rem;
}

/* ----------------------------------
   Home / About
---------------------------------- */

.about-section {
    width: 100%;
    max-width: 680px;
    text-align: center;
    padding: 2rem 1rem;
}

.home-gif {
    display: block;
    width: min(100%, 498px);
    height: auto;
    margin: 0 auto 2rem;
    border-radius: 1rem;
}

.about-section h1,
.about-section h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.about-text {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    margin: 0 0 1rem;
    color: #c4c4c7;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
}

.about-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #c4c4c7;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.8;
}

.about-list li::before {
    content: "➞ ";
}

/* ----------------------------------
   Blog overview
---------------------------------- */

.blog-section {
    width: 100%;
    max-width: 720px;
    text-align: center;
    padding: 2rem 1rem;
}

.blog-section h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.blog-intro {
    max-width: 48ch;
    margin: 0 auto 2rem;
    color: #a1a1aa;
    font-size: 1rem;
}

.post-preview {
    padding: 1.5rem 0;
    border-top: 1px solid #27272a;
    border-bottom: 1px solid #27272a;
    text-align: left;
}

.post-date {
    margin: 0 0 0.5rem;
    color: #71717a;
    font-size: 0.85rem;
}

.post-preview h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.post-preview h2 a {
    color: #f4f4f5;
    text-decoration: none;
}

.post-preview h2 a:hover {
    text-decoration: underline;
}

.post-preview p {
    margin: 0;
    color: #a1a1aa;
}

/* ----------------------------------
   Blog post
---------------------------------- */

.blog-post {
    width: 100%;
    max-width: 840px;
    padding: 2rem 1rem;
    text-align: left;
}

.blog-post h1 {
    margin: 0 0 2rem;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.blog-post p {
    margin: 0 0 1.25rem;
    color: #c4c4c7;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.8;
}

/* ----------------------------------
   Footer
---------------------------------- */

.site-footer {
    width: 100%;
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.social-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 160ms ease;
}

.social-links a:hover {
    color: #ffffff;
}

.copyright {
    margin: 0;
    color: #52525b;
    font-size: 0.8rem;
}

/* ----------------------------------
   Mobile
---------------------------------- */

@media (max-width: 600px) {
    .site-header {
        padding-top: 1.5rem;
    }

    .nav {
        gap: 1rem;
    }

    .main-content {
        align-items: flex-start;
        padding: 4rem 1.25rem 3rem;
    }

    .about-section,
    .blog-section,
    .blog-post {
        padding: 1rem 0;
    }

    .site-footer {
        padding-bottom: 1.5rem;
    }
}