:root {
    --neb-max-width: 1200px;
    --neb-text: #1f2933;
    --neb-muted: #5f6b7a;
    --neb-border: #d9dee5;
    --neb-background: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--neb-text);
    background: var(--neb-background);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

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

.screen-reader-text:focus,
.skip-link:focus {
    top: 1rem;
    left: 1rem;
    z-index: 100000;
    width: auto;
    height: auto;
    clip: auto;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--neb-border);
}

.site-header,
.site-footer {
    border-color: var(--neb-border);
}

.site-header {
    border-bottom: 1px solid var(--neb-border);
}

.site-header__inner,
.site-main,
.site-footer {
    width: min(100% - 2rem, var(--neb-max-width));
    margin-inline: auto;
}

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

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

.site-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

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

.site-description {
    margin: 0.15rem 0 0;
    color: var(--neb-muted);
    font-size: 0.95rem;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 80px;
    width: auto;
}

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

.main-navigation a,
.footer-navigation a {
    text-decoration: none;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--neb-border);
    background: #fff;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.site-main {
    padding: 2rem 0;
}

.entry-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--neb-border);
}

.entry-title,
.page-title {
    margin: 0 0 1rem;
    line-height: 1.2;
}

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

.entry-meta,
.entry-footer,
.archive-description {
    color: var(--neb-muted);
    font-size: 0.95rem;
}

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

.entry-content > *:first-child,
.entry-summary > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child,
.entry-summary > *:last-child {
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--neb-border);
    color: var(--neb-muted);
}

.footer-widgets {
    margin-bottom: 1.5rem;
}

.site-info {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.widget {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .main-navigation ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
    }
}
