@font-face {
    font-family: "Involve";
    src: url("../fonts/Involve.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --pgi-black: #2b2c27;
    --pgi-white: #fffefa;
    --pgi-yellow: #f9c315;
    --pgi-border: rgba(43, 44, 39, 0.2);
    --pgi-container: 1200px;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--pgi-white);
    color: var(--pgi-black);
    font-family: "Involve", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

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

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    transition: opacity 180ms ease;
}

.site-main.is-transitioning {
    pointer-events: none;
}

.entry,
.archive-header,
.post-list,
.pagination,
.site-footer__inner {
    width: min(100% - 40px, var(--pgi-container));
    margin-inline: auto;
}

.entry {
    padding-block: 60px;
}

.entry__header {
    margin-bottom: 32px;
}

.entry__title,
.archive-header h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.entry__content > *:first-child {
    margin-top: 0;
}

.entry__content > *:last-child {
    margin-bottom: 0;
}

.archive-header {
    padding-top: 60px;
    padding-bottom: 24px;
}

.post-list {
    display: grid;
    gap: 24px;
    padding-bottom: 60px;
}

.post-card {
    padding: 24px;
    border: 1px solid var(--pgi-border);
    border-radius: 16px;
}

.post-card__title {
    margin: 0 0 12px;
    font-size: 28px;
}

.post-card__title a {
    text-decoration: none;
}

.pagination {
    padding-bottom: 60px;
}

.site-footer {
    background: var(--pgi-black);
    color: var(--pgi-white);
}

.site-footer__inner {
    padding-block: 32px;
}

.site-footer p {
    margin: 0;
    opacity: 0.7;
}

.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;
}

.has-mobile-menu-open {
    overflow: hidden;
}
