/* Clean: light and quiet, a narrow column with serif headings. */
:root {
    --text: #1f2933;
    --muted: #616e7c;
    --line: #e4e7eb;
    --accent: #2f6f5e;
    --bg: #ffffff;
    --soft: #f5f7f6;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a { color: var(--accent); }

h1, h2, h3, .site-title {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    font-weight: 600;
    line-height: 1.25;
    color: #12181f;
}

h1 { font-size: 2.1rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }

.site-header {
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.site-title {
    font-size: 1.45rem;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--text); }

.site-nav a.current {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.hero { padding: 3.5rem 0 3rem; background: var(--soft); }

.hero .site-title { font-size: 2.4rem; }

.tagline {
    flex-basis: 100%;
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    color: var(--muted);
}

.content { padding-top: 2.5rem; padding-bottom: 3rem; }

.page img { max-width: 100%; height: auto; border-radius: 6px; }

.page blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 1.25rem;
    border-left: 3px solid var(--accent);
    color: var(--muted);
}

.page table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.page th, .page td { border-bottom: 1px solid var(--line); padding: 0.5rem; text-align: left; }

.page code { background: var(--soft); padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.9em; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 2.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }

.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }

.contact-form input, .contact-form textarea {
    font: inherit;
    font-weight: normal;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd2d9;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.contact-form button {
    justify-self: start;
    font: inherit;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.contact-form button:hover { filter: brightness(1.1); }

/* Honeypot: off-screen for people, still there for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 0.9rem 1.1rem; border-radius: 6px; }
.notice.success { background: #e3f5ec; color: #14532d; }
.notice.error { background: #fdecea; color: #7f1d1d; }

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero .site-title { font-size: 1.9rem; }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a.current {
    color: var(--text);
    text-decoration: underline;
}

/* Sections */
.section { margin-top: 3rem; scroll-margin-top: 1.5rem; }
.section-media { margin: 0 0 1.25rem; }
.section-media img { display: block; width: 100%; height: auto; border-radius: 6px; }
.section-body > :first-child { margin-top: 0; }

@media (min-width: 700px) {
    .section.has-image.layout-left,
    .section.has-image.layout-right {
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 2rem;
        align-items: start;
    }
    .section.has-image.layout-right { grid-template-columns: 3fr 2fr; }
    .section.has-image.layout-right .section-media { order: 2; }
    .section.has-image.layout-left .section-media,
    .section.has-image.layout-right .section-media { margin: 0; }
}

/* Header images (per page, under the menu bar) */
.page-banner { margin: 0; }
.page-banner img { display: block; width: 100%; height: auto; }
.page-banner.width-full { width: 100%; }
.banner-row { max-width: 64rem; margin: 2rem auto 0; padding: 0 1.25rem; }
.banner-row .page-banner { margin-left: auto; margin-right: auto; }
.banner-row .page-banner img { border-radius: 6px; }
.page-banner.width-wide { max-width: 64rem; }
.page-banner.width-half { max-width: 50%; }
.page-banner.width-third { max-width: 33.333%; }
/* The narrower widths sit in the text column, lined up with the text. */
.banner-row:has(.width-content, .width-half, .width-third) { max-width: 46rem; }
.page-banner.align-left { margin-left: 0; }
.page-banner.align-right { margin-right: 0; }
/* Fixed heights crop the image to fill; focus picks what stays in view. */
.page-banner.height-short img { height: 12rem; object-fit: cover; }
.page-banner.height-medium img { height: 20rem; object-fit: cover; }
.page-banner.height-tall img { height: 30rem; object-fit: cover; }
.page-banner.focus-top img { object-position: center top; }
.page-banner.focus-center img { object-position: center center; }
.page-banner.focus-bottom img { object-position: center bottom; }

@media (max-width: 640px) {
    .banner-row { margin-top: 1rem; padding: 0 1rem; }
    .page-banner.width-half, .page-banner.width-third { max-width: 100%; }
    .page-banner.height-short img { height: 9rem; }
    .page-banner.height-medium img { height: 13rem; }
    .page-banner.height-tall img { height: 18rem; }
}
