:root {
    --thelawn-canvas: #fbf7ef;
    --thelawn-ink: #1c1b1a;
    --thelawn-muted: #6a655e;
    --thelawn-accent: #7c231f;
    --thelawn-line: #ded5c8;
    --thelawn-focus: #145da0;
    --thelawn-radius: 0.25rem;
    --thelawn-shell: 78rem;
    --thelawn-content: 46rem;
    --thelawn-gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    margin: 0;
    overflow-wrap: break-word;
    background: var(--thelawn-canvas);
    color: var(--thelawn-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

img,
svg,
video {
    height: auto;
}

a {
    color: var(--thelawn-accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid var(--thelawn-focus);
    outline-offset: 3px;
}

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

button {
    cursor: pointer;
}

.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 {
    position: fixed;
    z-index: 100000;
    top: 0.75rem;
    left: 0.75rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #fff;
    color: #000;
    box-shadow: 0 0 0 3px var(--thelawn-focus);
}

.site-shell {
    width: min(100% - (2 * var(--thelawn-gutter)), var(--thelawn-shell));
    margin-inline: auto;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-menu a {
    color: inherit;
}

.site-main {
    min-height: 50vh;
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.page-header {
    max-width: var(--thelawn-content);
    margin: 0 auto clamp(1.5rem, 4vw, 3rem);
}

.page-title,
.entry-title {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.06;
    text-wrap: balance;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.article-card {
    min-width: 0;
    border-top: 1px solid var(--thelawn-line);
    padding-top: 1rem;
}

.article-card__media {
    display: block;
    margin-bottom: 1rem;
}

.article-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--thelawn-line);
}

.article-card__category {
    color: var(--thelawn-accent);
    font-family: system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-card__title {
    margin: 0.4rem 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.16;
}

.article-card__title a {
    color: var(--thelawn-ink);
    text-decoration: none;
}

.article-card__date,
.entry-date {
    display: block;
    color: var(--thelawn-muted);
    font-family: system-ui, sans-serif;
    font-size: 0.8125rem;
}

.article-card__excerpt {
    margin-bottom: 0;
    color: var(--thelawn-muted);
}

.navigation.pagination {
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--thelawn-line);
    border-radius: var(--thelawn-radius);
    padding: 0.4rem 0.7rem;
}

.site-main--singular .entry,
.empty-state,
.site-main--not-found > * {
    max-width: var(--thelawn-content);
    margin-inline: auto;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-date {
    margin-top: 1rem;
}

.entry-featured-image {
    margin: 0 0 2rem;
}

.entry-content > * {
    max-width: 100%;
}

.entry-content :where(h2, h3, h4) {
    line-height: 1.2;
}

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

.search-field {
    min-width: min(100%, 18rem);
    min-height: 2.75rem;
    border: 1px solid var(--thelawn-muted);
    border-radius: var(--thelawn-radius);
    padding: 0.5rem 0.75rem;
}

.search-submit {
    min-height: 2.75rem;
    border: 1px solid var(--thelawn-accent);
    border-radius: var(--thelawn-radius);
    padding: 0.5rem 1rem;
    background: var(--thelawn-accent);
    color: #fff;
}

.site-footer {
    border-top: 1px solid var(--thelawn-line);
    padding-block: 2.5rem;
}

.site-footer__inner {
    display: grid;
    gap: 1.5rem;
}

.site-footer__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-footer__statement,
.site-footer__copyright {
    margin: 0.25rem 0 0;
    color: var(--thelawn-muted);
}

@media (max-width: 60rem) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 43rem) {
    .article-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
