@font-face {
    font-family: 'HyperPolar';
    src: url('../fonts/HyperPolar.woff2') format('woff2');
}

html {
   padding: 0 18%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* Typography */
h1 {
    font-family: 'HyperPolar', sans-serif;
    text-transform: uppercase;
    font-size: 3.9rem;
    font-weight: normal;
    margin-top: 0;
}

/* About page */
.about-signature {
    text-align: left;
    margin-top: 2rem;
}
.about-signature img {
    width: 18rem;
    max-width: 100%;
}

/* Projects & Films */
.projects,
.films {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-items: center;
}
.films a {
    text-decoration: none;
    color: inherit;
}
.film-player {
    width: 320px;
}
.film-player img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}
.film-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}
.film-title {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
}
.logo img {
    height: 7.5rem;
    width: auto;
    display: block;
}
.menu ul {
    font-family: 'HyperPolar', sans-serif;
    text-transform: uppercase;
    list-style-type: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.menu li {
    margin: 0 0.9rem;
    font-size: 1.4rem;
    line-height: 1.2;
}
.menu a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Blog posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}
.blog-post-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
}
.blog-post-image {
    grid-column: 1;
}
.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-post-content {
    grid-column: 2;
}
.blog-post-title {
    font-family: 'HyperPolar', sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: normal;
    margin: 0 0 0.5rem;
}
.blog-post-intro {
    margin: 0;
}

/* Shared article styles (post & project pages) */
.article {
    max-width: 50rem;
}
.article-intro {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 1.5rem 0;
}
.article-text {
    margin: 2rem 0;
    line-height: 1.6;
}
.article-meta {
    margin: 1.5rem 0;
}
.article-meta strong {
    display: block;
    margin-bottom: 0.5rem;
}
.article-meta p {
    margin: 0;
}
.article-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}
.article-image {
    margin: 0;
}
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}
.pdf-download {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}
.pdf-download:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 42rem) {
    html {
        padding: 0.9rem;
    }
    h1 {
        font-size: 2.4rem;
    }
    .logo img {
        height: 5.4rem;
    }
    .menu li {
        margin: 0 0.45rem;
        font-size: 1rem;
    }
    .header {
        padding: 0.9rem 0;
    }
    .blog-post-link {
        grid-template-columns: 1fr;
    }
    .blog-post-image {
        grid-column: 1;
    }
    .blog-post-content {
        grid-column: 1;
    }
    .blog-post-title {
        margin-bottom: 0.5rem;
    }
    .article {
        max-width: 100%;
    }
    .article-images {
        grid-template-columns: 1fr;
    }
}
