:root {
    --ink: #25382f;
    --green: #516c5b;
    --sage: #dfe8df;
    --paper: #fffdf8;
    --canvas: #f5f2eb;
    --muted: #68716b;
    --line: #e6e2d8;
    --gold: #c8a36b;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 16px/1.65 "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: var(--ink); color: white; border-bottom: 3px solid var(--gold); }
.header-inner, .footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; font-size: 1.7rem; font-weight: 750; letter-spacing: -.04em; }
.brand small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .06em; color: #c8d2ca; }
.brand-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; background: rgba(200,163,107,.17); color: #e7c68f; }
.tagline { color: #d6dfd8; font-size: .92rem; }
.navigation { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 25px; padding: 13px 0; }
.nav-inner a { font-weight: 650; font-size: .94rem; }
.nav-inner a:hover, .text-link:hover { color: var(--green); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 56px; padding: 64px 0 54px; }
.hero-copy { padding: 10px 0; }
.eyebrow { display: inline-block; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
.hero h1 { max-width: 600px; margin: 14px 0 18px; font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 500; }
.hero p, .welcome p { max-width: 570px; margin: 0 0 25px; color: var(--muted); font-size: 1.08rem; }
.hero-image { display: block; overflow: hidden; height: 420px; border: 8px solid var(--paper); border-radius: 5px 120px 5px 5px; box-shadow: 0 18px 50px rgba(37,56,47,.13); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 48px; padding: 11px 20px; border: 0; border-radius: 3px; background: var(--green); color: white; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { background: var(--ink); }
.button-light { background: white; color: var(--ink); border: 1px solid var(--line); }
.button-light:hover { background: var(--sage); color: var(--ink); }
.welcome { margin: 56px 0 62px; padding: 65px 56px; border: 1px solid var(--line); background: linear-gradient(115deg, #e5eadf, #fffdf8); }
.welcome h1 { max-width: 720px; margin: 14px 0; font: 500 clamp(2.6rem, 6vw, 4.4rem)/1.08 Georgia, serif; }
.content-section { padding: 15px 0 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 6px 0 0; font: 500 clamp(2rem, 4vw, 2.8rem)/1.12 Georgia, serif; }
.text-link { color: var(--green); font-weight: 750; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.article-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.article-card > a:first-child { display: block; overflow: hidden; }
.article-card img { width: 100%; height: 230px; object-fit: cover; transition: transform .3s ease; }
.article-card:hover img { transform: scale(1.025); }
.card-copy { padding: 20px 21px 23px; }
.card-copy .eyebrow { font-size: .68rem; letter-spacing: .09em; }
.card-copy h3 { margin: 11px 0 10px; font: 500 1.55rem/1.25 Georgia, serif; }
.card-copy p { min-height: 52px; color: var(--muted); margin: 0 0 16px; }
.empty-state { padding: 35px; border: 1px solid var(--line); background: var(--paper); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; }
.pagination a.current, .pagination a:hover { border-color: var(--green); background: var(--green); color: white; }
.site-footer { margin-top: 15px; padding: 47px 0 20px; background: var(--ink); color: #d6dfd8; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.footer-grid h2 { margin: 0 0 16px; color: #d6b678; font-size: .83rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-about p { margin: 0 0 12px; color: #bec9c1; font-size: .9rem; }
.footer-about .footer-copyright { margin-top: 20px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column a { color: #d6dfd8; font-size: .9rem; transition: color .2s ease, transform .2s ease; }
.footer-column a::before { content: "» "; color: #d6b678; }
.footer-column a:hover { color: white; transform: translateX(3px); }
.footer-bottom { margin-top: 32px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.18); color: #bec9c1; font-size: .82rem; text-align: center; }

.article-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(220px, 1fr); gap: 45px; padding-top: 48px; padding-bottom: 65px; align-items: start; }
.article { min-width: 0; padding: 35px; background: var(--paper); border: 1px solid var(--line); }
.article h1 { margin: 12px 0; font: 500 clamp(2.2rem, 5vw, 3.5rem)/1.08 Georgia, serif; }
.article-lead { margin: 14px 0; color: var(--muted); font-size: 1.17rem; }
.article-date { color: var(--muted); font-size: .88rem; }
.article-cover { width: 100%; max-height: 500px; margin: 24px 0 30px; object-fit: cover; }
.article-text { white-space: normal; font-size: 1.08rem; line-height: 1.9; }
.article-text br { content: ""; display: block; margin-top: .8em; }
.article-aside { position: sticky; top: 25px; padding: 25px; background: var(--sage); }
.article-aside h2 { margin: 9px 0; font: 500 1.8rem Georgia, serif; }
.article-aside p { color: var(--muted); }
.article-aside .button { margin-top: 8px; }
.article > .text-link { display: inline-block; margin-top: 30px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 18px 0 30px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 190px; object-fit: cover; }
.gallery figcaption { color: var(--muted); font-size: .86rem; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; }
.login-card { width: min(460px, 100%); padding: 35px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 15px 50px rgba(37,56,47,.08); }
.brand-dark { margin-bottom: 28px; color: var(--ink); }
.brand-dark .brand-icon { color: var(--green); border-color: var(--line); background: var(--sage); }
.login-card h1 { margin: 8px 0; font: 500 2.25rem Georgia, serif; }
.muted { color: var(--muted); }
.login-back { display: inline-block; margin-top: 20px; }
.admin-page { background: #f0eee7; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); align-items: start; gap: 24px; padding-top: 36px; padding-bottom: 60px; }
.admin-panel { padding: 27px; background: var(--paper); border: 1px solid var(--line); }
.admin-panel h1, .admin-panel h2 { margin: 7px 0 10px; font: 500 2rem Georgia, serif; }
.admin-form { display: grid; gap: 17px; margin-top: 23px; }
.admin-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 12px 13px; border: 1px solid #d8d8cd; border-radius: 2px; background: white; color: var(--ink); font: inherit; }
.admin-form textarea { resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: 2px solid #b9cbbd; border-color: var(--green); }
.admin-form small { color: var(--muted); font-weight: 400; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.notice { margin: 17px 0; padding: 12px 15px; border: 1px solid; }
.notice-success { color: #286044; border-color: #bdd7c8; background: #edf7f0; }
.notice-error { color: #873d33; border-color: #e7c1bb; background: #fff1ef; }
.admin-article-list { margin: 20px 0 0; padding: 0; list-style: none; }
.admin-article-list li { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.admin-article-list strong, .admin-article-list small { display: block; }
.admin-article-list small { color: var(--muted); }
.admin-article-list a { color: var(--green); font-weight: 700; white-space: nowrap; }

@media (max-width: 850px) {
    .hero { grid-template-columns: 1fr 1fr; gap: 25px; }
    .hero-image { height: 340px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout, .admin-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
}
@media (max-width: 600px) {
    .container { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 76px; }
    .tagline { display: none; }
    .brand { font-size: 1.4rem; }
    .brand-icon { width: 40px; height: 40px; }
    .nav-inner { justify-content: flex-start; gap: 8px 16px; }
    .hero { grid-template-columns: 1fr; gap: 25px; padding: 40px 0; }
    .hero-image { height: 260px; border-radius: 4px 65px 4px 4px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card img { height: 220px; }
    .welcome { margin: 35px 0; padding: 35px 23px; }
    .section-heading { align-items: start; flex-direction: column; }
    .article-layout { padding-top: 25px; }
    .article { padding: 22px; }
    .gallery { grid-template-columns: 1fr; }
    .gallery img { height: 220px; }
    .admin-panel, .login-card { padding: 22px; }
    .form-columns { grid-template-columns: 1fr; }
    .header-actions { gap: 12px; }
    .header-actions .button { padding: 8px 12px; font-size: .85rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 20px; }
}
@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; gap: 23px; }
}
