:root {
    color-scheme: light;
    --ink: #152d32;
    --muted: #637578;
    --line: #dce5e2;
    --paper: #f6f8f4;
    --white: #fff;
    --teal: #176d68;
    --sun: #efbd37;
    --coral: #d8684f;
    --serif: "Newsreader", Georgia, serif;
    --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
}

a { color: inherit; }

.site-header {
    position: relative;
    z-index: 30;
    min-height: 76px;
    padding: 12px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand img { display: block; width: 132px; height: auto; }

.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--teal); }
.site-header nav .nav-admin { color: var(--teal); }
.site-header nav .nav-admin { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.nav-admin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.site-header nav[hidden] { display: none; }
.mobile-menu-toggle, .mobile-menu-top, .mobile-search { display: none; }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: var(--serif); font-size: 58px; font-weight: 500; line-height: 1.02; }
h1 span { color: var(--coral); }

.featured-section, .feed-section { padding: 38px 0 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { margin-bottom: 0; font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; }
.section-note, .results-note { margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.featured-carousel { max-width: 900px; margin: 0 auto; }
.featured-grid { display: block; }
.featured-card { min-width: 0; background: var(--white); border: 1px solid var(--line); animation: enter 450ms ease-out both; }
.featured-slide-link { display: grid; min-height: 360px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; gap: 24px; padding: 24px; color: inherit; text-decoration: none; }
.featured-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 0; }
.featured-title { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(30px, 3.3vw, 44px); font-weight: 500; line-height: 1.08; }
.featured-excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.featured-copy .card-meta { width: 100%; }
.featured-image-card { min-width: 0; min-height: 310px; overflow: hidden; background: #dce9e2; }
.featured-image { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; transition: transform 350ms ease; }
.featured-slide-link:hover .featured-image { transform: scale(1.025); }
.featured-slide-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.featured-read-more { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; margin-top: 24px; padding: 0 17px; background: var(--teal); color: var(--white); font-size: 12px; font-weight: 700; transition: background 180ms ease; }
.featured-slide-link:hover .featured-read-more { background: #105a55; }
.article-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.article-card-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.article-card-link:hover .card-title { color: var(--teal); }
.card-image { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; background: #dce9e2; }
.featured-card .card-image { aspect-ratio: 2.15; }
.card-body { padding: 17px 17px 18px; }
.card-category { display: inline-block; margin-bottom: 9px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.card-title { margin-bottom: 10px; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.18; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 16px; }
.carousel-arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--teal); font-size: 19px; cursor: pointer; }
.carousel-arrow:hover { border-color: var(--teal); background: var(--teal); color: var(--white); }
.carousel-indicators { display: flex; align-items: center; justify-content: center; gap: 8px; }
.carousel-indicator { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #b7c6c1; cursor: pointer; transition: width 180ms ease, background 180ms ease; }
.carousel-indicator.is-active { width: 24px; border-radius: 5px; background: var(--teal); }
.slide-exit { animation: slide-out 220ms ease both; }
.slide-enter { animation: slide-in 320ms ease both; }
.card-excerpt { margin-bottom: 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; color: #768587; font-size: 11px; }

.feed-section { border-top: 1px solid var(--line); }
.feed-heading { align-items: center; }
.filters { display: flex; align-items: center; gap: 9px; }
.search-field { width: min(275px, 33vw); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--white); border: 1px solid #cbd8d4; }
.search-field svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; }
.search-field:focus-within, .filters select:focus { outline: 2px solid rgba(23, 109, 104, .2); border-color: var(--teal); }
.filters select { height: 42px; min-width: 164px; padding: 0 30px 0 12px; border: 1px solid #cbd8d4; border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 12px; }
.results-note { min-height: 16px; margin-bottom: 10px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card { display: block; min-height: 142px; background: var(--white); border: 1px solid var(--line); animation: enter 350ms ease-out both; }
.article-card .article-card-link { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 100%; }
.article-card .card-image { height: 100%; min-height: 142px; aspect-ratio: auto; }
.article-card .card-body { min-width: 0; padding: 14px; }
.article-card .card-title { font-size: 18px; }
.article-card .card-excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-card .card-meta { font-size: 10px; }
.load-more-wrap { display: flex; justify-content: center; padding-top: 24px; }
.load-more { min-height: 42px; padding: 0 20px; border: 1px solid var(--teal); background: transparent; color: var(--teal); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.load-more:hover { background: var(--teal); color: white; }
.loading-state, .empty-state, .error-state { grid-column: 1 / -1; padding: 22px; color: var(--muted); background: rgba(255,255,255,.62); font-size: 14px; }
.error-state { color: #a2392d; }

.article-view { max-width: 840px; margin: 0 auto; padding: 40px 0 70px; }
.back-link { display: inline-flex; margin-bottom: 26px; color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.article-view h1 { max-width: 760px; font-size: 46px; }
.article-lede { max-width: 720px; margin: 16px 0 22px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.article-byline { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.article-hero { display: block; width: 100%; max-height: 480px; aspect-ratio: 1.8; object-fit: cover; background: #dce9e2; }
.article-content { padding: 30px 0; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 1.2em; }
.article-content h2, .article-content h3 { margin: 1.4em 0 .6em; }
.article-content ul, .article-content ol { padding-left: 1.5em; }
.article-content blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--sun); color: var(--muted); }
.article-content a { color: var(--teal); text-decoration: underline; }
.site-footer { min-height: 74px; padding: 18px max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-28px); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menu-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }

@media (max-width: 900px) {
    .site-header nav { gap: 16px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .site-header { min-height: 66px; align-items: center; flex-direction: row; gap: 12px; padding: 10px 20px; }
    .brand img { width: 116px; }
    .mobile-menu-toggle { display: flex; width: 44px; height: 44px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
    .mobile-menu-toggle span { width: 19px; height: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
    .mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .site-header nav { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; overflow-y: auto; padding: 18px 24px 36px; background: var(--paper); }
    .site-header nav[hidden] { display: none; }
    .site-header nav.is-open { animation: menu-in 220ms ease both; }
    .site-header nav.is-closing { animation: menu-out 220ms ease both; }
    .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
    .mobile-menu-title { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
    .mobile-menu-close { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 28px; line-height: 1; }
    .mobile-search { display: block; margin-bottom: 24px; }
    .mobile-search label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
    .mobile-search-field { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border: 1px solid #cbd8d4; background: var(--white); }
    .mobile-search-field svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; }
    .mobile-search-field input { width: 100%; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
    .mobile-search-field button { min-height: 36px; padding: 0 13px; border: 0; background: var(--teal); color: white; font: inherit; font-size: 12px; font-weight: 700; }
    .site-header nav > a { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; font-weight: 500; }
    .site-header nav > a.nav-admin { width: 48px; min-height: 52px; margin-top: 14px; border: 1px solid var(--line); }
    .nav-admin svg { width: 21px; height: 21px; }
    body.menu-open { overflow: hidden; }
    main { padding: 0 20px; }
    h1 { max-width: 360px; font-size: 43px; }
    .featured-section, .feed-section { padding: 28px 0 30px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    h2 { font-size: 29px; }
    .section-note { margin: -5px 0 0; }
    .featured-slide-link { display: flex; min-height: 0; flex-direction: column; gap: 0; padding: 0; }
    .featured-image-card { order: -1; min-height: 0; }
    .featured-image { min-height: 0; aspect-ratio: 1.45; }
    .featured-copy { padding: 17px 15px 18px; }
    .card-body { padding: 12px; }
    .featured-title { margin-bottom: 10px; font-size: 25px; }
    .featured-excerpt { margin-bottom: 14px; font-size: 12px; }
    .featured-read-more { margin-top: 18px; }
    .feed-heading { gap: 16px; }
    .filters { width: 100%; align-items: stretch; flex-direction: column; }
    .search-field, .filters select { width: 100%; min-width: 0; height: 44px; }
    .article-grid { grid-template-columns: 1fr; gap: 10px; }
    .article-card { grid-template-columns: 104px minmax(0, 1fr); min-height: 132px; }
    .article-card .article-card-link { grid-template-columns: 104px minmax(0, 1fr); }
    .article-card .card-image { min-height: 132px; }
    .article-card .card-body { padding: 11px; }
    .article-card .card-title { font-size: 17px; }
    .article-view { padding: 28px 0 48px; }
    .article-view h1 { font-size: 36px; }
    .article-lede { font-size: 16px; }
    .article-content { font-size: 16px; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 7px; padding: 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}