:root {
    --eg-color-bg: #fffaf5;
    --eg-color-surface: #ffffff;
    --eg-color-text: #1f1c18;
    --eg-color-muted: #6f665c;
    --eg-color-accent: #b89b68;
    --eg-color-border: rgba(31, 28, 24, 0.12);
    --eg-container: 1200px;
    --eg-gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--eg-color-bg);
    color: var(--eg-color-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
    font: 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;
}

.skip-link:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: #000;
    color: #fff;
}

.site-header,
.site-footer {
    width: 100%;
    background: var(--eg-color-surface);
}

.site-header__inner,
.site-footer__inner,
.entry,
.archive-header,
.not-found,
.no-results {
    width: min(100% - (var(--eg-gutter) * 2), var(--eg-container));
    margin-inline: auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.site-header__title {
    font-weight: 700;
    text-decoration: none;
}

.site-header__navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.site-main {
    min-height: 60vh;
}

.entry,
.archive-header,
.not-found,
.no-results {
    padding-block: clamp(48px, 8vw, 96px);
}

.entry__title,
.archive-header__title,
.not-found h1,
.no-results h1 {
    margin: 0 0 24px;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
}

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

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

.site-footer__inner {
    padding-block: 24px;
    color: var(--eg-color-muted);
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

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

    .site-header__navigation ul {
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}
