:root {
    color-scheme: light;
    --ink: #22302d;
    --muted: #66736f;
    --paper: #fbfaf6;
    --soft: #eef3ed;
    --line: #d8ded6;
    --brand: #496f5d;
    --brand-dark: #234737;
    --accent: #b26f3d;
    --white: #fff;
    --shadow: 0 20px 60px rgba(34, 48, 45, .16);
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

body {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(251, 250, 246, .92);
    border-bottom: 1px solid rgba(216, 222, 214, .8);
    backdrop-filter: blur(18px);
}

.brand {
    display: grid;
    gap: 2px;
    text-decoration: none;
    font-weight: 760;
}

.brand small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 520;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
    padding: 9px 14px;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--soft);
    color: var(--brand-dark);
}

.nav-toggle {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    min-height: calc(100vh - 82px);
    border-bottom: 1px solid var(--line);
}

.hero-media {
    min-height: 520px;
    background: var(--soft);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 6vw, 84px);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.08;
    margin: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 82px);
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
}

h3 {
    font-size: 23px;
}

.lead {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--brand-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    padding: 10px 18px;
    text-decoration: none;
}

.button.primary {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: var(--white);
}

.content-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(28px, 5vw, 70px);
    padding: clamp(48px, 7vw, 96px) clamp(18px, 6vw, 88px);
}

.article {
    max-width: 830px;
    font-size: 19px;
}

.article p:first-child {
    margin-top: 0;
}

.contact-panel {
    align-self: start;
    display: grid;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-panel span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-panel strong {
    font-size: 24px;
}

.contact-panel p {
    color: var(--muted);
    margin: 0;
}

.services {
    padding: clamp(48px, 7vw, 96px) clamp(18px, 6vw, 88px);
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-grid article {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.service-grid p {
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(18px, 4vw, 56px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.admin-body {
    background: #f4f6f3;
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
}

.login-box,
.editor,
.page-list,
.admin-top {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-box {
    display: grid;
    gap: 16px;
    max-width: 440px;
    margin: 12vh auto;
    padding: 28px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 22px;
}

.admin-top p {
    margin: 8px 0 0;
    color: var(--muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
}

.page-list {
    align-self: start;
    display: grid;
    padding: 10px;
}

.page-list a {
    border-radius: 6px;
    padding: 10px 12px;
    text-decoration: none;
}

.page-list a.active,
.page-list a:hover {
    background: var(--soft);
}

.editor {
    padding: 24px;
}

fieldset {
    display: grid;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 12px;
    font-weight: 800;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}

textarea {
    resize: vertical;
}

.message {
    border-radius: 6px;
    background: #e3f2e7;
    color: #245137;
    padding: 10px 12px;
}

.message.error {
    background: #f9e1dc;
    color: #7f2f20;
}

@media (max-width: 900px) {
    .site-header {
        align-items: start;
    }

    .nav-toggle {
        display: inline-flex;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--white);
        padding: 9px 13px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero,
    .content-band,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .hero-media {
        min-height: 320px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer,
    .admin-top {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-copy,
    .content-band,
    .services {
        padding: 34px 18px;
    }

    h1 {
        font-size: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}
