/* Theme-owned layout styles. The legacy front-page rules remain in the
 * mirrored Tilda stylesheets and are enqueued before this file. */

:root {
    --a2fg-green: #4a5a23;
    --a2fg-orange: #ff623b;
    --a2fg-ink: #242424;
    --a2fg-paper: #fffdf7;
}

html {
    scroll-behavior: smooth;
}

body.t-body {
    margin: 0;
    color: var(--a2fg-ink);
    background: #fff;
}

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

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    color: #fff;
    background: var(--a2fg-green);
    border-radius: 4px;
}

.a2fg-content-shell {
    box-sizing: border-box;
    min-height: 55vh;
    padding: 120px 24px 88px;
    font-family: Manrope, Arial, sans-serif;
    background: var(--a2fg-paper);
}

.a2fg-content-container {
    width: min(100%, 960px);
    margin: 0 auto;
}

.a2fg-page-header,
.a2fg-entry .entry-header {
    margin-bottom: 32px;
}

.a2fg-page-header h1,
.a2fg-entry .entry-title,
.a2fg-not-found h1 {
    margin: 0 0 20px;
    color: var(--a2fg-green);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
}

.a2fg-entry .entry-content,
.a2fg-entry-card .entry-summary,
.a2fg-archive-description,
.a2fg-not-found {
    font-size: 18px;
    line-height: 1.7;
}

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

.a2fg-entry .entry-content img,
.a2fg-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.a2fg-entry-list {
    display: grid;
    gap: 24px;
}

.a2fg-entry-card {
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(74, 90, 35, 0.14);
    border-radius: 18px;
}

.a2fg-entry-card .entry-title {
    margin: 0 0 12px;
    font-size: 28px;
}

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

.a2fg-entry-card .entry-title a:hover,
.a2fg-entry-card .entry-title a:focus-visible {
    color: var(--a2fg-orange);
}

.entry-meta {
    color: #6c6c6c;
}

.a2fg-button,
.a2fg-content-shell button,
.a2fg-content-shell input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: var(--a2fg-green);
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
}

.a2fg-content-shell input[type="search"],
.a2fg-content-shell input[type="text"],
.a2fg-content-shell input[type="email"],
.a2fg-content-shell textarea {
    box-sizing: border-box;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #b7b7b7;
    border-radius: 8px;
    font: inherit;
}

.a2fg-fallback-header,
.a2fg-fallback-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 5vw;
    font-family: Manrope, Arial, sans-serif;
    background: #fff;
}

.a2fg-fallback-brand {
    color: var(--a2fg-green);
    font-weight: 700;
}

.a2fg-fallback-brand a {
    color: inherit;
    text-decoration: none;
}

.a2fg-fallback-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 160px;
    height: 56px;
}

@media (max-width: 640px) {
    .a2fg-content-shell {
        padding: 88px 16px 64px;
    }

    .a2fg-entry .entry-content,
    .a2fg-entry-card .entry-summary,
    .a2fg-archive-description,
    .a2fg-not-found {
        font-size: 16px;
    }

    .a2fg-entry-card {
        padding: 20px;
    }
}
