:root {
  --forest: #2f4a22;
  --leaf: #5a7a3a;
  --moss: #8fa86a;
  --sand: #e8e2d4;
  --ink: #1a1f16;
  --paper: #f7f5f0;
  --paper-2: #efe9dc;
  --line: rgba(26, 31, 22, 0.12);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(143, 168, 106, 0.28), transparent 60%),
    linear-gradient(180deg, #f3efe6 0%, var(--paper) 40%, #f4f1ea 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.draft-preview-banner {
  background: #5c4a1f;
  color: #fff8e8;
  font-size: 0.95rem;
  font-weight: 600;
}

.draft-preview-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.65rem 0;
}

.draft-preview-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.draft-preview-banner a {
  color: #fff8e8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 700;
}

.draft-preview-banner a:hover,
.draft-preview-banner a:focus-visible {
  color: #fff;
}

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

a {
  color: var(--leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 240, 0.9);
  border-bottom: 1px solid rgba(26, 31, 22, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 1.75rem;
  min-height: 4.6rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-search {
  position: relative;
}

.search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(26, 31, 22, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.search-icon-btn:hover,
.search-icon-btn[aria-expanded="true"] {
  border-color: rgba(90, 122, 58, 0.45);
  color: var(--forest);
  background: rgba(143, 168, 106, 0.14);
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 50;
  width: min(340px, calc(100vw - 1.5rem));
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(26, 31, 22, 0.12);
}

.header-search-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.header-search-panel input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
}

.header-search-panel input[type="search"]:focus {
  outline: 2px solid rgba(90, 122, 58, 0.35);
  outline-offset: 1px;
  border-color: var(--leaf);
}

.header-search-panel .btn-search {
  width: 100%;
}

.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;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 2.85rem;
  width: auto;
  max-width: min(12rem, 40vw);
  object-fit: contain;
}

.site-nav {
  min-width: 0;
  justify-self: center;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(26, 31, 22, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--forest);
  background: rgba(90, 122, 58, 0.1);
}

.nav-toggle {
  display: none !important;
}

.drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  background: var(--forest);
  color: #fff;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.drawer-toggle:hover {
  background: #3d5f2c;
}

.drawer-toggle.is-mobile-only {
  display: none;
}

.drawer-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.drawer-toggle-icon span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 22, 0.45);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(380px, 94vw);
  height: 100vh;
  background:
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 100%);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(26, 31, 22, 0.14);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.side-drawer.is-open {
  transform: translateX(0);
}

.side-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  background: var(--forest);
  color: #fff;
}

.side-drawer-title {
  margin: 0;
  font-family: Literata, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.side-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.side-drawer-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.side-drawer-body {
  overflow: auto;
  padding: 1rem 0.9rem 2.25rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-section {
  margin: 0;
  padding: 0.85rem 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.drawer-section-primary {
  display: none;
  background: rgba(255, 255, 255, 0.9);
}

.drawer-section-primary a {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--forest);
}

.drawer-section h2 {
  margin: 0 0 0.55rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.drawer-group + .drawer-group {
  margin-top: 0.7rem;
}

.drawer-group.has-heading {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.drawer-group h3 {
  margin: 0 0 0.25rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26, 31, 22, 0.55);
}

.drawer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-section li + li {
  margin-top: 0.1rem;
}

.drawer-section a {
  display: block;
  padding: 0.42rem 0.55rem;
  margin: 0 -0.15rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.35;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-section a:hover {
  color: var(--forest);
  background: rgba(90, 122, 58, 0.1);
}

.drawer-section a.is-external::after {
  content: "↗";
  margin-left: 0.35rem;
  font-size: 0.78em;
  opacity: 0.55;
}

body.drawer-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: min(92vh, 840px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 16, 0.28) 0%, rgba(20, 28, 16, 0.22) 38%, rgba(20, 28, 16, 0.78) 72%, rgba(20, 28, 16, 0.94) 100%),
    url("../img/hero-fallback.svg") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-in 1.1s ease both;
}

.hero-media.has-image {
  background:
    linear-gradient(180deg, rgba(20, 28, 16, 0.3) 0%, rgba(20, 28, 16, 0.18) 36%, rgba(20, 28, 16, 0.72) 70%, rgba(20, 28, 16, 0.95) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero-brand-wrap {
  position: absolute;
  inset: 6% 0 52% 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0.75rem 1.5rem;
  pointer-events: none;
}

.hero .hero-brand {
  margin: 0;
  max-width: 11ch;
  font-family: Literata, Georgia, serif;
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
  color: #fff;
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.35),
    0 2px 24px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.65);
  animation: rise 1s 0.08s ease both;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 3.5rem;
  max-width: 36rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  animation: rise 0.9s 0.18s ease both;
}

.hero-meta {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero-content h1 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--forest);
}

.btn-primary:hover {
  background: var(--sand);
  color: var(--forest);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section {
  padding: 4rem 0;
}

.search-panel {
  max-width: 40rem;
}

.search-panel-page {
  max-width: 44rem;
}

.search-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.search-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.search-row input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.search-row input[type="search"]:focus {
  outline: 2px solid rgba(90, 122, 58, 0.35);
  outline-offset: 1px;
  border-color: var(--leaf);
}

.btn-search {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-search:hover {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.search-count {
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
  color: rgba(26, 31, 22, 0.7);
}

.search-type {
  display: inline-block;
  font-weight: 700;
  color: var(--forest);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: Literata, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
  font-weight: 700;
}

.home-archive-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.btn-archive {
  background: var(--forest);
  color: #fff;
  padding: 1rem 2.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(47, 74, 34, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-archive:hover {
  background: #3d5f2c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(47, 74, 34, 0.22);
}

.news-list {
  display: grid;
  gap: 1.25rem;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: rise 0.55s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.05s; }
.news-item:nth-child(2) { animation-delay: 0.12s; }
.news-item:nth-child(3) { animation-delay: 0.19s; }
.news-item:nth-child(4) { animation-delay: 0.26s; }
.news-item:nth-child(5) { animation-delay: 0.33s; }
.news-item:nth-child(6) { animation-delay: 0.4s; }

.news-thumb {
  width: 140px;
  height: 100px;
  object-fit: cover;
  background: var(--paper-2);
}

.news-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--leaf);
  font-size: 0.85rem;
}

.news-thumb-link {
  display: block;
  line-height: 0;
}

.news-item--poster {
  grid-template-columns: minmax(280px, 48%) 1fr;
  align-items: start;
  gap: 1.25rem;
}

.news-item--poster .news-thumb-link {
  width: 100%;
}

.news-item--poster .news-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  min-height: 0;
  object-fit: contain;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.news-item h3 {
  font-family: Literata, Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--leaf);
}

.meta {
  color: rgba(26, 31, 22, 0.62);
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
}

.page-hero {
  position: relative;
  padding: 2.5rem 0 0;
}

.page-hero--compact {
  padding-bottom: 0.5rem;
}

.page-hero > .shell {
  position: relative;
}

.archive-search {
  margin: 1rem 0 0.75rem;
  max-width: 36rem;
}

.archive-search-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.archive-search-row input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
}

.archive-search-row input[type="search"]:focus {
  outline: 2px solid rgba(90, 122, 58, 0.35);
  outline-offset: 1px;
  border-color: var(--leaf);
}

.archive-search-row .btn-search {
  flex: 0 0 auto;
}

.archive-search-meta {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.archive-years {
  margin: 0;
}

.archive-years a.is-active {
  font-weight: 700;
  color: var(--forest);
}

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: rgba(26, 31, 22, 0.62);
  font-size: 0.95rem;
}

.pagination a {
  font-weight: 600;
  text-decoration: none;
  color: var(--forest);
}

.pagination a:hover {
  text-decoration: underline;
}

.content-edit-bar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  pointer-events: none;
}

.content-edit-bar .btn-edit-content {
  pointer-events: auto;
}

.btn-edit-content {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(26, 31, 22, 0.06);
}

.btn-edit-content:hover {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.article-head {
  max-width: 44rem;
  padding: 0 0 1.5rem;
  border-bottom: none;
}

.page-hero:has(.content-edit-bar) .article-head {
  padding-right: 6.75rem;
}

.article-head .meta {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26, 31, 22, 0.55);
}

.page-hero h1,
.article-head h1 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 36rem;
  text-wrap: balance;
}

.article-body {
  padding-top: 1.5rem;
}

.prose {
  max-width: 44rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.05rem;
  text-align: left;
}

.prose p[style*="text-align: center"],
.prose p[style*="text-align:center"],
.prose h2[style*="text-align: center"],
.prose h2[style*="text-align:center"],
.prose h3[style*="text-align: center"],
.prose h3[style*="text-align:center"] {
  text-align: center;
}

.prose p[style*="text-align: right"],
.prose p[style*="text-align:right"],
.prose h2[style*="text-align: right"],
.prose h2[style*="text-align:right"],
.prose h3[style*="text-align: right"],
.prose h3[style*="text-align:right"] {
  text-align: right;
}

.prose p[style*="text-align: justify"],
.prose p[style*="text-align:justify"],
.prose h2[style*="text-align: justify"],
.prose h2[style*="text-align:justify"],
.prose h3[style*="text-align: justify"],
.prose h3[style*="text-align:justify"] {
  text-align: justify;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: Literata, Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.75rem 0 0.65rem;
  color: var(--ink);
}

.prose h1 {
  font-size: 1.55rem;
  color: var(--forest);
}

.prose h2 {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.prose h3 {
  font-size: 1.08rem;
}

.prose h4 {
  font-size: 1rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.prose h1[style*="text-align: center"],
.prose h1[style*="text-align:center"],
.prose h4[style*="text-align: center"],
.prose h4[style*="text-align:center"] {
  text-align: center;
}

.prose h1[style*="text-align: right"],
.prose h1[style*="text-align:right"],
.prose h4[style*="text-align: right"],
.prose h4[style*="text-align:right"] {
  text-align: right;
}

.prose h1[style*="text-align: justify"],
.prose h1[style*="text-align:justify"],
.prose h4[style*="text-align: justify"],
.prose h4[style*="text-align:justify"] {
  text-align: justify;
}

.prose a {
  color: var(--leaf);
  text-underline-offset: 0.15em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.05rem;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.25rem 0;
}

.prose img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  background: var(--paper-2);
}

.prose figure,
.prose .content-figure {
  margin: 1.5rem 0;
  padding: 0;
}

.prose .content-embed {
  margin: 1.5rem 0;
  max-width: 720px;
}

.prose .content-embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
}

.prose .content-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose figure img,
.prose .content-figure img {
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  display: block;
}

.prose figcaption,
.prose .content-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(26, 31, 22, 0.68);
  text-align: center;
  line-height: 1.45;
}

.prose figcaption:empty {
  display: none;
}

.prose .content-byline {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(26, 31, 22, 0.7);
  white-space: pre-line;
}

.prose blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--moss);
  color: rgba(26, 31, 22, 0.85);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.prose em,
.prose i {
  font-style: italic;
}

.prose strong,
.prose b {
  font-weight: 700;
}

.muted {
  color: rgba(26, 31, 22, 0.68);
}

.small {
  font-size: 0.9rem;
}

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 1.55rem 0;
  background: linear-gradient(180deg, #355528 0%, var(--forest) 70%);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.footer-brand {
  font-family: Literata, Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.35rem;
  padding: 0 0.85rem 0 0.65rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.youtube-channels-dialog {
  width: min(100vw - 2rem, 26rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  background: #fff;
  color: var(--ink);
}

.youtube-channels-dialog::backdrop {
  background: rgba(30, 36, 28, 0.45);
}

.youtube-channels-panel {
  padding: 1rem 1.1rem 1.15rem;
}

.youtube-channels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.youtube-channels-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.youtube-channels-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(26, 31, 22, 0.55);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.youtube-channels-close:hover {
  background: rgba(90, 122, 58, 0.12);
  color: var(--forest);
}

.youtube-channels-list {
  display: grid;
  gap: 0.65rem;
}

.youtube-channel-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.youtube-channel-btn:hover {
  border-color: rgba(90, 122, 58, 0.45);
  background: rgba(143, 168, 106, 0.12);
  color: var(--forest);
}

.youtube-channel-icon {
  flex-shrink: 0;
  color: #c4302b;
}

.footer-social-icon {
  display: block;
  flex-shrink: 0;
}

.footer-social-label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.footer-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.3;
}

.footer-sep {
  width: 1px;
  height: 0.9rem;
  background: rgba(255, 255, 255, 0.28);
}

.footer-admin {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-admin:hover {
  color: rgba(255, 255, 255, 0.95);
}

.empty {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--line);
}

@keyframes hero-in {
  from { transform: scale(1.06); opacity: 0.7; }
  to { transform: scale(1.02); opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .site-nav {
    display: none !important;
  }

  .drawer-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
  }

  .drawer-toggle.is-mobile-only {
    display: inline-flex;
  }

  .drawer-toggle-label,
  .side-drawer-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .side-drawer-head {
    justify-content: flex-end;
    padding: 0.85rem 1rem;
  }

  .drawer-section-primary {
    display: block;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item--poster {
    grid-template-columns: 1fr;
  }

  .news-item--poster .news-thumb {
    width: 100%;
    max-height: none;
  }

  .news-thumb {
    width: 100%;
    height: 180px;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .footer-meta-row {
    justify-content: flex-start;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-brand-wrap {
    inset: 8% 0 55% 0;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    min-height: 4.1rem;
  }

  .brand-logo {
    height: 2.35rem;
  }

  /* Keep search panel fully on-screen (icon sits left of hamburger) */
  .header-search-panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: 4.55rem;
    width: auto;
    max-width: none;
    z-index: 80;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row .btn-search {
    width: 100%;
  }

  .archive-search {
    max-width: none;
  }

  .archive-search-row {
    flex-direction: column;
    gap: 0.7rem;
  }

  .archive-search-row input[type="search"] {
    width: 100%;
    min-height: 2.85rem;
    font-size: 1.05rem;
    padding: 0.75rem 1.05rem;
  }

  .archive-search-row .btn-search {
    width: 100%;
    min-height: 2.85rem;
    font-size: 1.05rem;
  }
}
