:root {
  --forest: #1b3022;
  --forest-deep: #102016;
  --parchment: #fdf5e6;
  --paper: #f5ecda;
  --slate: #2e2e2e;
  --olive: #7a9e24;
  --red-earth: #a52a2a;
  --gold: #ffdea5;
  --line: rgba(27, 48, 34, 0.16);
  --soft-line: rgba(27, 48, 34, 0.09);
  --shadow: 0 24px 60px rgba(19, 27, 21, 0.12);
  --radius-lg: 1.65rem;
  --radius-md: 1rem;
  --pico-font-family: "Source Sans 3", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate);
  font-family: "Source Sans 3", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122, 158, 36, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(165, 42, 42, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(253, 245, 230, 0.94), rgba(245, 236, 218, 0.98));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(rgba(27, 48, 34, 0.08) 0.6px, transparent 0.6px),
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(27, 48, 34, 0.03) calc(100% - 1px));
  background-size: 14px 14px, 100% 96px;
}

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

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

a:hover {
  color: var(--red-earth);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

p,
li,
td,
th {
  font-size: 1.04rem;
  line-height: 1.8;
}

.grid-container {
  width: min(74rem, calc(100% - 2rem));
}

.site-main {
  padding-bottom: 4rem;
}

.site-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.6rem;
  color: rgba(27, 48, 34, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-ribbon a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(18px);
  background: rgba(253, 245, 230, 0.92);
  border-bottom: 1px solid rgba(27, 48, 34, 0.12);
}

.title-bar,
.top-bar {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.top-bar {
  padding-top: 0.75rem;
  padding-bottom: 1.15rem;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--forest);
  text-decoration: none;
}

.site-brand__mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 0.95;
}

.site-brand__sub {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-menu {
  gap: 0.3rem;
  align-items: center;
}

.site-menu > li > a,
.site-dropdown summary {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  list-style: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-menu > li > a:hover,
.site-menu > li > a[aria-current="page"],
.site-dropdown summary:hover {
  background: rgba(122, 158, 36, 0.14);
  color: var(--red-earth);
  transform: translateY(-1px);
}

.site-dropdown {
  position: relative;
}

.site-dropdown summary::-webkit-details-marker {
  display: none;
}

.site-dropdown[open] summary {
  background: rgba(122, 158, 36, 0.14);
}

.site-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  min-width: 15rem;
  padding: 0.55rem;
  background: rgba(253, 245, 230, 0.98);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.site-dropdown__menu li {
  list-style: none;
}

.site-dropdown__menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
}

.site-dropdown__menu a:hover {
  background: rgba(122, 158, 36, 0.12);
}

.page-hero,
.home-hero,
.page-section {
  position: relative;
  z-index: 1;
}

.page-hero,
.home-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero--editorial,
.page-hero--story,
.page-hero--listing,
.page-hero--media,
.page-hero--static,
.home-hero {
  background:
    linear-gradient(180deg, rgba(253, 245, 230, 0.72), rgba(245, 236, 218, 0.18)),
    transparent;
}

.page-hero--compact {
  padding-bottom: 0;
}

.section-kicker,
.footer-kicker,
.side-panel__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--olive);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lead-copy {
  max-width: 44rem;
  color: rgba(46, 46, 46, 0.86);
  font-size: 1.18rem;
}

.hero-note,
.hero-stats {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-left: 3px solid var(--olive);
  background: rgba(255, 255, 255, 0.6);
}

.hero-note span:first-child,
.hero-stats strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  color: var(--forest);
}

.hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stats__label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(46, 46, 46, 0.66);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-figure,
.hero-figure--wide,
.hero-figure--tall {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-figure img,
.hero-figure--wide img,
.hero-figure--tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.22);
}

.hero-figure--wide {
  aspect-ratio: 16 / 10;
}

.hero-figure--tall {
  aspect-ratio: 4 / 5;
}

.home-hero__media {
  margin-top: 2rem;
}

.page-section {
  padding: 1.6rem 0 2.5rem;
}

.page-section--dense {
  padding-top: 0.8rem;
}

.editorial-sheet,
.gallery-sheet,
.fallback-card,
.index-panel,
.side-panel,
.content-toc {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.editorial-sheet,
.gallery-sheet,
.fallback-card {
  padding: clamp(1.4rem, 3vw, 2.8rem);
}

.editorial-sheet--wide {
  max-width: 68rem;
}

.editorial-sheet--narrow,
.editorial-sheet--content {
  max-width: 100%;
}

.archive-block + .archive-block,
.archive-block + blockquote,
.archive-block + ul,
.archive-block + ol,
.archive-block + figure {
  margin-top: 1.2rem;
}

.archive-block--heading {
  margin-top: 2rem;
}

.archive-block--image,
.content-lead-image {
  margin: 1.4rem 0 1.8rem;
}

.archive-block--image img,
.content-lead-image img,
.gallery-grid__item img,
.content-card__media img,
.lead-gallery img {
  width: 100%;
  border-radius: 1.1rem;
}

.archive-block--image figcaption,
.gallery-grid__item figcaption {
  margin-top: 0.65rem;
  color: rgba(46, 46, 46, 0.74);
  font-size: 0.92rem;
}

.archive-block--quote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--red-earth);
  background: rgba(165, 42, 42, 0.08);
}

.archive-block--list {
  padding-left: 1.4rem;
}

.archive-block--code {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(16, 32, 22, 0.92);
  color: #f7f0df;
}

.archive-block--separator {
  margin: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.lead-gallery {
  margin-bottom: 1.7rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-sheet .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid__item {
  margin: 0;
}

.gallery-grid__item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: sepia(0.25);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-grid__item:hover img {
  transform: translateY(-4px);
  filter: sepia(0);
}

.table-scroll {
  overflow-x: auto;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(46, 46, 46, 0.72);
  font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  opacity: 0.5;
}

.side-panel {
  padding: 1.2rem;
}

.side-panel__menu a {
  border-radius: 0.85rem;
  color: var(--forest);
  font-weight: 600;
}

.side-panel__menu a:hover {
  background: rgba(122, 158, 36, 0.12);
}

.content-toc {
  padding: 1.3rem;
  margin-bottom: 1.6rem;
}

.content-toc strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
}

.content-toc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.content-toc__sub {
  font-size: 0.95rem;
}

.sticky-note {
  position: sticky;
  top: 8rem;
}

.content-header {
  margin-bottom: 1.8rem;
}

.content-header h1 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  overflow-wrap: anywhere;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(46, 46, 46, 0.7);
  font-size: 0.92rem;
  font-weight: 600;
}

.content-lead-image {
  float: right;
  width: min(34%, 18rem);
  margin: 0 0 1rem 1.4rem;
}

.index-panel {
  padding: 1.4rem;
}

.index-panel__grid,
.category-grid {
  display: grid;
  gap: 1rem;
}

.index-panel__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.index-panel__card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--soft-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.index-panel__card:hover {
  border-color: rgba(122, 158, 36, 0.4);
  transform: translateY(-2px);
}

.index-panel__empty {
  margin: 0;
}

.category-intro {
  margin-bottom: 1.8rem;
}

.category-hub-content {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.category-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid__full {
  grid-column: 1 / -1;
}

.content-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(19, 27, 21, 0.08);
}

.content-card--horizontal {
  flex-direction: row;
}

.content-card--minimal {
  background: rgba(255, 255, 255, 0.58);
}

.content-card__media {
  display: block;
  flex: 0 0 auto;
}

.content-card--horizontal .content-card__media {
  width: 42%;
}

.content-card__media img {
  height: 100%;
  object-fit: cover;
}

.content-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem;
}

.content-card__body h2,
.content-card__body h3 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--red-earth);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link::after {
  content: "->";
}

.fallback-card {
  max-width: 44rem;
  margin: 4rem auto;
  text-align: left;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, rgba(27, 48, 34, 0.98), rgba(16, 32, 22, 1));
  color: rgba(253, 245, 230, 0.84);
}

.site-footer h2,
.site-footer a,
.site-footer strong,
.site-footer span {
  color: inherit;
}

.footer-title {
  color: var(--gold);
}

.footer-copy {
  max-width: 26rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links--muted a {
  color: rgba(253, 245, 230, 0.72);
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 222, 165, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 63.9375em) {
  .top-bar {
    display: none;
    padding-top: 0;
  }

  .top-bar.is-open,
  .no-js .top-bar {
    display: block;
  }

  .site-menu {
    width: 100%;
    padding-bottom: 0.8rem;
  }

  .site-dropdown__menu {
    position: static;
    min-width: 0;
    margin-top: 0.5rem;
  }

  .gallery-sheet .gallery-grid,
  .gallery-grid,
  .category-grid--3,
  .category-grid--2,
  .index-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-card--horizontal {
    flex-direction: column;
  }

  .content-card--horizontal .content-card__media {
    width: 100%;
  }

  .content-lead-image {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }

  .site-footer__base {
    flex-direction: column;
  }
}

@media (max-width: 39.9375em) {
  .grid-container {
    width: min(74rem, calc(100% - 1.2rem));
  }

  .site-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .gallery-sheet .gallery-grid,
  .gallery-grid,
  .index-panel__grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .home-hero {
    padding-top: 2.2rem;
  }

  .editorial-sheet,
  .gallery-sheet,
  .fallback-card,
  .index-panel,
  .side-panel,
  .content-toc {
    border-radius: 1.1rem;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  body::before,
  .site-header,
  .site-footer,
  .title-bar,
  .content-toc {
    display: none !important;
  }

  .editorial-sheet,
  .gallery-sheet,
  .fallback-card {
    box-shadow: none;
    border: 1px solid #cccccc;
    background: #ffffff;
  }
}
