@font-face {
    font-family: Inter;
    src: url("fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: #26382d;
    --muted: #516458;
    --green: #204b34;
    --forest: #183b2b;
    --sage: #eaf0e5;
    --line: #dce5d8;
    --orange: #df863d;
    --paper: #fcfbf7;
    font: 400 15px/1.55 Inter, system-ui, sans-serif;
    color: var(--ink);
    background: #eef1e9;
}
* { box-sizing: border-box; }
body { margin: 0; }
.paper {
    width: min(1040px, calc(100% - 32px));
    margin: 24px auto;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 90px;
    padding: 10px clamp(12px, 3vw, 26px);
    background: linear-gradient(105deg, #183a2b, #28523a);
    border-radius: 12px;
    border-bottom: 3px solid var(--orange);
    color: white;
}
.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.1vw, 20px);
    color: inherit;
    text-decoration: none;
}
.brand img {
    flex: none;
    display: block;
    width: clamp(75px, 14vw, 120px);
    height: auto;
}
.mast-title {
    padding-left: clamp(8px, 2.1vw, 20px);
    border-left: 1px solid #ffffff52;
    font-size: clamp(1.3rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.06;
    overflow-wrap: anywhere;
}
.mast-link {
    color: white;
    font-size: .87rem;
    padding: 7px 10px;
    border: 1px solid #ffffff65;
    border-radius: 7px;
    text-decoration: none;
}
.mast-link:hover { background: #ffffff18; }
h1, h2 {
    color: var(--green);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin: 0 0 .55rem;
    overflow-wrap: anywhere;
}
h1 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h2 { font-size: 1.13rem; }
p { margin: 0 0 .7rem; overflow-wrap: anywhere; }
p:last-child { margin-bottom: 0; }
a { color: var(--green); text-underline-offset: .18em; overflow-wrap: anywhere; }
.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 9px 16px;
}
.section-heading h1 { margin: 0; }
.edition-heading { margin: 17px 0 11px; }
.editor-heading { margin: 9px 0 0; }
.editor-heading .badge { margin-bottom: 6px; }
.archive { position: relative; }
.archive summary {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--green);
    font-size: .85rem;
    font-weight: 650;
    cursor: pointer;
}
.archive nav {
    display: grid;
    position: absolute;
    z-index: 1;
    top: calc(100% + 5px);
    right: 0;
    width: min(270px, 78vw);
    max-height: 50vh;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 24px #183b2b1c;
}
.archive a { padding: 7px 9px; border-radius: 4px; }
.archive a:hover, .archive a[aria-current] { background: var(--sage); font-weight: 650; }
.greeting {
    margin-bottom: 12px;
    padding: 10px 13px;
    border-left: 3px solid var(--orange);
    border-radius: 0 8px 8px 0;
    background: var(--sage);
}
.greeting:empty { display: none; }
.articles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
article {
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-top: 3px solid #719369;
    border-radius: 9px;
    background: white;
}
article:only-child { grid-column: 1 / -1; }
article h2 { font-size: clamp(1.08rem, 2.3vw, 1.27rem); }
.article-card { padding: 0; }
.article-card > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 13px;
    border-radius: 5px;
    color: var(--ink);
    text-decoration: none;
}
.article-card > a:hover { background: #f3f7f0; }
.article-card > a:hover .read-link { text-decoration: underline; }
.teaser { min-width: 0; }
.teaser p { margin-bottom: .35rem; }
.teaser-photo { flex: none; width: clamp(75px, 10vw, 113px); aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.read-link { color: var(--green); font-size: .85rem; font-weight: 650; }
.back-link { display: inline-block; margin: 0 0 9px; font-size: .87rem; }
.full-article { max-width: 760px; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.full-article .gallery { grid-template-columns: repeat(auto-fill,minmax(min(135px, 100%), 1fr)); }
figure { margin: 0; }
figure a { display: block; }
figure img { display: block; width: 100%; height: auto; border-radius: 5px; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; margin: .2rem 0; }
.inline-photo { margin: .75rem 0; }
.inline-photo img { max-height: 330px; width: auto; max-width: 100%; object-fit: contain; }
.signoff { font-size: .86rem; padding: 12px 0 0; }
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 15px;
    margin: 8px 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    font-size: .87rem;
}
.toolbar form { margin-left: auto; }
.newspaper-footer {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: .82rem;
}
.desk { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 12px; align-items: start; }
.panel {
    padding: clamp(12px, 2vw, 19px);
    border: 1px solid var(--line);
    border-radius: 9px;
    margin-top: 10px;
    background: white;
}
.panel form + h2 { margin-top: 1.4rem; }
.issue-list { max-width: 760px; }
.issue-list .section-heading { margin-bottom: 8px; }
.pdf-tools form { margin-bottom: .55rem; }
.pdf-date { display: block; font-size: .82rem; color: var(--muted); }
.narrow { max-width: 400px; margin: 16px auto 0; }
.narrow form { margin-bottom: .8rem; }
label { display: block; margin: .6rem 0; font-weight: 650; font-size: .9rem; }
input, textarea, button, .button, input::file-selector-button { font: inherit; }
input:not([type=checkbox]), textarea {
    display: block;
    width: 100%;
    margin-top: 3px;
    padding: .48rem .58rem;
    border: 1px solid #a9b8ac;
    border-radius: 5px;
    color: var(--ink);
    background: #fff;
    font-size: 1rem;
    font-weight: 400;
}
textarea { resize: vertical; }
input.small { max-width: 9rem; }
.check { display: flex; gap: .55rem; align-items: center; }
.check input { accent-color: var(--green); }
button, .button {
    display: inline-block;
    border: 1px solid var(--green);
    border-radius: 6px;
    color: #fff;
    background: var(--green);
    padding: .43rem .69rem;
    font-size: .88rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { filter: brightness(.88); }
button.secondary { color: var(--green); background: var(--sage); }
button.danger { color: #802b22; background: white; border-color: #b98078; }
.editor-gallery { margin-bottom: 1rem; }
.editor-gallery button { margin-top: .4rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.issue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: .56rem .35rem;
    font-weight: 650;
    text-decoration: none;
}
.issue-row:hover { background: var(--sage); text-decoration: underline; }
.badge {
    display: inline-block;
    flex: none;
    color: #68431c;
    background: #fff0de;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: .73rem;
    font-weight: 650;
}
.badge.published { color: var(--forest); background: var(--sage); }
.status { padding: .6rem .75rem; margin: .7rem 0; background: var(--sage); border-radius: 6px; }
.error { color: #802b22; background: #fff0ec; }
:focus-visible { outline: 3px solid #b96a32; outline-offset: 3px; }
@media (max-width: 680px) {
    .paper { width: min(100%, calc(100% - 16px)); margin: 8px auto; padding: 10px; }
    .articles, .desk { grid-template-columns: minmax(0,1fr); }
    .desk { gap: 0; }
    .masthead { min-height: 72px; }
}
@media (max-width: 460px) {
    .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .archive { max-width: 100%; }
    .archive nav { position: static; margin-top: 4px; width: min(260px, 77vw); box-shadow: none; }
}
@media print {
    :root { background: white; font-size: 11pt; }
    .paper { width: 100%; margin: 0; padding: 0; border: 0; }
    .toolbar, .status, .archive, .mast-link, .newspaper-footer { display: none; }
    .articles { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .masthead, article { print-color-adjust: exact; }
    figure { break-inside: avoid; }
}
