:root {
    --ink: #352318;
    --muted: #715d4c;
    --paper: #fffaf1;
    --panel: #ffffff;
    --line: #eadcc8;
    --rose: #a53f50;
    --rose-dark: #7f2d3c;
    --gold: #d6a641;
    --leaf: #49705d;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Lato, Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(165,63,80,0.08), transparent 28%, transparent 72%, rgba(73,112,93,0.09)),
        var(--paper);
    font-size: 18px;
    line-height: 1.65;
}

a {
    color: var(--rose-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,250,241,0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1180px;
    min-height: 92px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 146px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: var(--rose);
}

.menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 22px 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
}

.content-panel,
.sidebar section {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(64, 37, 19, 0.08);
}

.content-panel {
    padding: 30px;
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.1;
    color: var(--rose-dark);
    letter-spacing: 0;
}

h1 {
    font-size: 48px;
    margin: 0 0 20px;
}

h2 {
    font-size: 30px;
    margin: 0 0 16px;
}

h3 {
    font-size: 24px;
    margin: 14px 0 10px;
}

p {
    margin: 0 0 16px;
}

ul,
ol {
    padding-left: 22px;
}

#banner {
    margin: -30px -30px 28px;
}

#banner article,
#banner .inner {
    margin: 0;
}

#banner img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.spotlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.spotlights article {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.spotlights .image img,
.fr img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.spotlights h3,
.spotlights p,
.spotlights .actions {
    margin-left: 18px;
    margin-right: 18px;
}

.spotlights .actions {
    list-style: none;
    padding: 0;
    margin-top: auto;
    margin-bottom: 18px;
}

.button,
.actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 6px;
    background: var(--rose);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.button:hover,
.actions .button:hover {
    background: var(--rose-dark);
}

.sidebar {
    display: grid;
    gap: 22px;
}

.sidebar section {
    padding: 18px;
}

.sidebar img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 22px 32px;
    text-align: center;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.doc-page .doc-image {
    margin: 0 0 24px;
}

.doc-page .doc-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.doc-body img,
.doc-page img {
    border-radius: 8px;
}

.doc-body .fr,
.doc-body .text-img,
.doc-body .txt {
    max-width: 100%;
}

.doc-list {
    display: grid;
    gap: 18px;
}

.list-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.list-row:last-child {
    border-bottom: 0;
}

.list-row h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.list-row h2 a {
    color: var(--rose-dark);
    text-decoration: none;
}

.list-image img {
    width: 170px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.list-date {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.text-link {
    font-weight: 800;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 74px;
    }

    .brand img {
        width: 112px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        display: none;
        padding: 16px 22px 22px;
        background: rgba(255,250,241,0.98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 32px rgba(64, 37, 19, 0.12);
    }

    .main-nav.is-open {
        display: grid;
        gap: 8px;
    }

    .main-nav a {
        justify-content: center;
        border: 1px solid var(--line);
        background: #fff;
    }

    .page-shell {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .content-panel {
        padding: 22px;
    }

    #banner {
        margin: -22px -22px 24px;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        padding: 10px 16px;
    }

    .page-shell {
        padding: 18px 14px 36px;
        gap: 22px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

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

    .list-row {
        grid-template-columns: 1fr;
    }

    .list-image img {
        width: 100%;
    }

    #banner img {
        aspect-ratio: 4 / 3;
    }
}
