:root {
    --bg: #f4f1eb;
    --surface: #fffdf8;
    --ink: #17171d;
    --muted: #8a7a63;
    --line: #ded6c9;
    --accent: #b51f34;
    --accent-dark: #821426;
    --blue: #155f8f;
    --green: #6f7d51;
    --gold: #9c7a47;
    --shadow: 0 18px 45px rgba(53, 43, 31, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.wrap,
.wrap-wide {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.wrap-wide {
    width: min(1280px, calc(100% - 32px));
}

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

.site-header {
    background: rgba(244, 241, 235, 0.96);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.brand-name,
.brand-tagline {
    display: block;
}

.brand-name {
    font-weight: 800;
    font-size: 1.08rem;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.3;
}

.header-search {
    display: flex;
    width: min(440px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.88);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 12px 14px;
    font: inherit;
    background: transparent;
    color: var(--ink);
}

.header-search input:focus {
    outline: 2px solid rgba(21, 95, 143, 0.25);
    outline-offset: -2px;
}

.header-search button,
.button-link {
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 0 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.header-search button:hover,
.button-link:hover {
    background: var(--accent-dark);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 12px;
}

.nav-bar a {
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 7px 11px;
}

.nav-bar a:hover {
    border-color: var(--line);
    color: var(--ink);
    background: #f9fafc;
}

.page-heading {
    padding: 52px 0 26px;
}

.page-heading.compact {
    padding-bottom: 12px;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.page-heading h1 {
    max-width: 820px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.4rem;
    line-height: 0.98;
    font-weight: 800;
}

.home-title {
    white-space: nowrap;
}

.content-section {
    padding: 12px 0 72px;
}

.post-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-card {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    align-items: center;
    background: transparent;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    gap: 54px;
    padding: 20px 0 24px;
    transition: none;
}

.post-card:hover {
    box-shadow: none;
    transform: none;
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10.4;
    min-height: 0;
    height: auto;
    background: #ddd4c8;
    border-radius: 8px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.035);
}

.image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: #2a2925;
    color: #fff;
    font-weight: 800;
}

.post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 198px;
    padding: 20px 0;
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    color: var(--gold);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.post-meta-line span {
    color: var(--muted);
}

.post-meta-line span::before {
    content: "/";
    color: var(--line);
    margin-right: 14px;
}

.post-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 1.1;
    max-width: 620px;
}

.post-card h2 a:hover {
    color: var(--accent);
}

.post-card-arrow {
    color: var(--gold);
    display: inline-flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    line-height: 1;
    margin-top: 24px;
    width: fit-content;
}

.post-card-arrow:hover {
    color: var(--accent);
}

.article {
    padding-bottom: 72px;
}

.article-header {
    padding: 58px 0 28px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.article-meta span:first-child {
    color: var(--blue);
}

.article-header h1 {
    max-width: 780px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.15rem;
    line-height: 1.08;
    font-weight: 800;
}

.article-image {
    max-width: 780px;
    margin-bottom: 38px;
}

.article-image img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-content {
    max-width: 780px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.85;
}

.article-content > p:first-of-type::first-letter {
    float: left;
    color: var(--accent);
    font-size: 5rem;
    line-height: 0.82;
    padding: 10px 10px 0 0;
    font-weight: 800;
}

.article-content.no-dropcap > p:first-of-type::first-letter {
    float: none;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    font-weight: inherit;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content figure {
    margin: 0 0 1.35em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.15;
    margin: 2em 0 0.7em;
}

.article-content h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article-content h3 {
    font-size: 1.35rem;
}

.article-content a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content img {
    width: auto;
    height: auto;
    border-radius: 8px;
    margin: 26px auto;
}

.article-content ul,
.article-content ol {
    padding-left: 1.3em;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    color: #3e4656;
    margin-left: 0;
    padding-left: 18px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 38px;
    color: var(--muted);
    font-weight: 700;
}

.pagination a,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    padding: 0 16px;
}

.pagination a {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.empty-state,
.setup-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.contact-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 24px;
    max-width: 920px;
    padding: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 253, 248, 0.92);
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(21, 95, 143, 0.22);
    border-color: rgba(21, 95, 143, 0.55);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 800;
}

.form-grid,
.form-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.checkbox-line {
    align-content: center;
    grid-template-columns: auto 1fr;
    gap: 10px;
    min-height: 48px;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.hidden-field {
    display: none;
}

.notice {
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.notice.success {
    background: #e9f6f1;
    border: 1px solid #b8dccf;
    color: #1f604d;
}

.notice.error {
    background: #fff1f3;
    border: 1px solid #efb8c1;
    color: #8b1c2d;
}

.setup-panel {
    margin-top: 58px;
    margin-bottom: 72px;
}

.setup-panel h1 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
}

.muted {
    color: var(--muted);
}

code {
    background: #edf1f7;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.92em;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.68);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-weight: 750;
    padding: 8px 14px;
}

.footer-links a:hover {
    border-color: rgba(181, 31, 52, 0.35);
    color: var(--accent);
}

@media (max-width: 900px) {
    .header-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .brand {
        min-width: 0;
    }

    .header-search {
        width: 100%;
    }

    .post-card {
        grid-template-columns: minmax(170px, 250px) 1fr;
        gap: 28px;
    }

    .post-card-body {
        min-height: 150px;
        padding: 12px 0;
    }

    .post-card h2 {
        font-size: 2rem;
    }

    .page-heading h1 {
        font-size: 3.2rem;
    }

    .article-header h1 {
        font-size: 2.55rem;
    }
}

@media (max-width: 620px) {
    .wrap,
    .wrap-wide {
        width: min(100% - 24px, 1120px);
    }

    .page-heading,
    .article-header {
        padding-top: 38px;
    }

    .form-grid,
    .form-checks {
        grid-template-columns: 1fr;
    }

    .post-card {
        grid-template-columns: minmax(108px, 36%) 1fr;
        gap: 14px;
        padding: 14px 0 16px;
    }

    .post-card-image {
        min-height: 0;
    }

    .post-card-body {
        min-height: 104px;
        padding: 0;
    }

    .post-meta-line {
        font-size: 0.66rem;
        gap: 4px 8px;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .post-meta-line span::before {
        margin-right: 8px;
    }

    .post-card h2 {
        font-size: 1.22rem;
        line-height: 1.15;
    }

    .post-card-arrow {
        font-size: 1.35rem;
        margin-top: 8px;
    }

    .page-heading h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content > p:first-of-type::first-letter {
        font-size: 4.1rem;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
