:root {
    --pt-color-text: #17202a;
    --pt-color-muted: #667085;
    --pt-color-border: #d9e2ec;
    --pt-color-surface: #ffffff;
    --pt-color-background: #f7f9fb;
    --pt-color-accent: #0f766e;
    --pt-container: min(1120px, calc(100% - clamp(32px, 6vw, 80px)));
}

body {
    margin: 0;
    color: var(--pt-color-text);
    background: var(--pt-color-background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--pt-color-accent);
    text-underline-offset: 0.18em;
}

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

.site-container {
    width: var(--pt-container);
    margin-inline: auto;
}

.site-header,
.site-footer {
    background: var(--pt-color-surface);
    border-block: 1px solid var(--pt-color-border);
}

.site-header__inner,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px;
}

.site-title {
    color: var(--pt-color-text);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.site-description {
    margin: 4px 0 0;
    color: var(--pt-color-muted);
    font-size: 14px;
}

.primary-menu,
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-main {
    padding-block: 48px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 32px;
}

.post-list {
    display: grid;
    gap: 20px;
}

.entry-card,
.entry,
.not-found,
.comments-area,
.site-sidebar .widget {
    border: 1px solid var(--pt-color-border);
    border-radius: 8px;
    background: var(--pt-color-surface);
    padding: clamp(20px, 4vw, 36px);
}

.entry-title {
    margin: 0 0 10px;
    line-height: 1.2;
}

.entry-title a {
    color: var(--pt-color-text);
    text-decoration: none;
}

.entry-meta {
    color: var(--pt-color-muted);
    font-size: 14px;
}

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

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

@media (max-width: 800px) {
    .site-header__inner,
    .site-footer__inner,
    .content-grid {
        display: block;
    }

    .primary-navigation,
    .site-sidebar {
        margin-top: 20px;
    }
}