html {
    box-sizing: border-box;
    font-size: 16px;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #1b1b1b;
    background: #ffffff;
}

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

a {
    color: inherit;
}

.site-container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header,
.site-footer {
    border-bottom: 1px solid #e5e7eb;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    border-bottom: 0;
    margin-top: 3rem;
    padding: 2rem 0;
}

.site-branding {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-branding-text {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a,
.entry-title a {
    text-decoration: none;
}

.site-description {
    margin: 0.25rem 0 0;
    color: #666;
}

.menu-toggle {
    display: none;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
}

.main-navigation {
    padding: 0 0 1rem;
}

.main-navigation ul,
.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    padding: 2rem 0;
}

.no-sidebar .site-content,
body.page .site-content,
body.error404 .site-content {
    grid-template-columns: minmax(0, 1fr);
}

.site-main {
    min-width: 0;
}

.entry,
.widget,
.comments-area,
.page-header,
.no-results {
    margin-bottom: 2rem;
}

.entry-title,
.page-title,
.widget-title {
    margin-top: 0;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.entry-thumbnail {
    display: block;
    margin-bottom: 1rem;
}

.widget-area .widget,
.footer-widgets .widget {
    padding: 1rem;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-field,
.search-submit,
input,
textarea,
select,
button {
    font: inherit;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
}

.search-submit,
button,
input[type="submit"] {
    padding: 0.75rem 1rem;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip-path: none;
    white-space: normal;
    background: #111827;
    color: #fff;
    padding: 0.75rem 1rem;
    display: inline-block;
}

.comment-list {
    padding-left: 1.25rem;
}

.footer-bottom {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 800px) {
    .site-content {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: inline-block;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
    }
}
