@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;900&family=DM+Serif+Display&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} body, html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    background: #fff;
    color: #000;
    line-height: 1.5;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
} a {
    text-decoration: none;
    color: inherit;
} img, iframe, video {
    max-width: 100%;
    /* height: auto; */
} h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    line-height: normal;
}

nav {
    position: sticky;
    z-index: 999;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
} .nav__btn {
    background: #151515;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'DM Serif Display', serif;
    transition: background 200ms, font-family 200ms;
} .nav__btn:hover,
.nav__btn:active, .nav__btn:focus-within {
    background: #000;
    outline-offset: 3px;
}

main {
    padding: 1rem 0;
} .container {
    margin: 1rem auto 0 auto;
    max-width: 1200px;
} .title {
    font-weight: bolder;
    position: relative;
    width: fit-content;
    margin-bottom: 2rem;
} .title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 4.5px;
    background: #000;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
} .articles article a {
    display: flex;
    gap: 1rem;
    max-width: 70%;
    padding: 1rem 0;
} .article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
} article a {
    border-bottom: 1px solid #e5e5e5;
} article:last-child a {
    border: none;
} .articles article a:focus-within {
    outline-offset: 6px;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
} .article-body h2 {
    font-size: 1.5rem;
} .article-body .description {
    display: -webkit-box;
    max-width: 90%;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-body .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 15px;
    margin-top: 0.5rem;
} .meta .tags {
    background: #eee;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
} .meta .date {
    color: #777;
    position: relative;
    font-size: 0.8rem;
    padding-left: 1rem;
} .meta .date::before {
    content: '';
    height: 2px;
    width: 3px;
    border-radius: 50%;
    background: #000;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
} .meta .tags:empty {
    display: none;
}

.main-article {
    max-width: min(768px, 100% - 1rem);
    margin: 1rem auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
} .main-article .main-article__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
} .main-article > *:not(.main-article__title) {
    line-height: 1.7;
} .main-article ul {
    padding-left: 2rem;
} .main-article blockquote {
    background: #f1f1f1;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    font-style: italic;
    position: relative;
} .main-article blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: black;
} .main-article .banner-image {
    border-bottom: 1px solid #eee;
    padding: 0 0.2rem 0.5rem;
} .main-article a {
    text-decoration: underline hotpink wavy !important;
    border: none;
    font-weight: bold;
} .main-article > *:not(.banner-image) {
    animation: fade linear both;
    animation-timeline: view();
    animation-range: entry 40% cover 15%;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1200px) {
    .container {
        max-width: min(900px, 100% - 2rem);
    }
} @media (max-width: 900px) {
    .articles article a {
        max-width: 100%;
    }
} @media (max-width: 700px) {
    .article-image {
        width: 120%;
    } .article-body h2 {
        font-size: 1.3rem;
    } .article-body .description,
    .meta .tags {
        font-size: 0.85rem;
    }
} @media (max-width: 600px) {
    .article-image {
        display: none;
    } .article-body .description {
        max-width: 100%;
    } .main-article .main-article__title {
        font-size: 2rem;
    }
} @media (max-width: 450px) {
    .title {
        font-size: 1.7rem;
    }
}
