/* ================================
   Reset
================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    color: #222;
    background: #fff;
}

img {
    display: block;

    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* ================================
   Layout
================================ */

.container {
    width: min(100% - 32px, 1300px);

    margin-inline: auto;
}

.site-main {
    min-height: 500px;
}


/* ================================
   Header
================================ */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #fff;

    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    align-items: center;

    min-height: 72px;

    gap: 32px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    width: auto;
    max-height: 52px;
}

.site-name {
    font-size: 22px;
    font-weight: 700;
}


/* ================================
   Navigation
================================ */

.main-navigation {
    margin-left: auto;
}

.main-menu {
    display: flex;
    align-items: center;

    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-menu a {
    display: block;

    padding-block: 24px;

    font-weight: 600;
}

.main-menu a:hover {
    opacity: .7;
}


/* ================================
   Mobile menu
================================ */

.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: #222;
}


/* ================================
   Homepage
================================ */

.home-hero {
    padding: 80px 0;

    background: #f5f6f8;
}

.hero-content {
    max-width: 750px;
}

.hero-content h1 {
    margin: 0 0 20px;

    font-size: clamp(32px, 5vw, 56px);

    line-height: 1.15;
}

.hero-content p {
    margin: 0;

    font-size: 19px;
}

.home-section {
    padding: 60px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;

    font-size: 30px;
}


/* ================================
   Content
================================ */

.page-content,
.single-post {
    max-width: 900px;

    margin: 50px auto;
}

.page-header,
.single-header {
    margin-bottom: 30px;
}

.page-header h1,
.single-title {
    margin: 0;

    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.2;
}

.entry-content {
    font-size: 17px;
}

.entry-content p {
    margin: 0 0 20px;
}


/* ================================
   Archive
================================ */

.archive-header {
    margin: 50px 0 35px;
}

.post-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;
}

.post-card-image {
    display: block;

    overflow: hidden;

    border-radius: 8px;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;
}

.post-card-title {
    margin: 15px 0 0;

    font-size: 20px;
}


/* ================================
   Footer
================================ */

.site-footer {
    margin-top: 60px;

    padding: 45px 0 20px;

    color: #fff;
    background: #171717;
}

.footer-inner {
    display: flex;
    justify-content: space-between;

    gap: 40px;
}

.footer-menu {
    display: flex;

    gap: 20px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;

    border-top: 1px solid rgb(255 255 255 / 10%);
}

.footer-bottom p {
    margin: 0;

    font-size: 14px;

    opacity: .7;
}


/* ================================
   Button
================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 22px;

    color: #fff;
    background: #111;

    border-radius: 5px;

    font-weight: 600;
}


/* ================================
   404
================================ */

.error-404 {
    padding: 100px 0;

    text-align: center;
}

.error-code {
    font-size: 100px;
    font-weight: 800;

    line-height: 1;
}