@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

body {
  --springfield-green: #32634b;
  --springfield-green-dark: #224c3a;
  --springfield-green-soft: #e8eee6;
  --springfield-slate: #20372e;
  --springfield-ink: #20352c;
  --springfield-muted: #58635a;
  --springfield-line: #dcdcd0;
  --springfield-paper: #fffdf8;
  --springfield-wash: #f5f1e7;
  --springfield-warm: #f2e9d7;
  --springfield-radius: 9px;
  --journal-pine: #1b342b;
  --journal-gold: #e2b47c;
  --journal-heading: 'Instrument Serif', Georgia, serif;
  font-family: 'DM Sans', system-ui, sans-serif;
}

:focus-visible {
  outline: 2px solid #a2572e;
  outline-offset: 4px;
}

.site-sidebar {
  background: var(--journal-pine);
  border-right-color: #304d3e;
  padding-top: 28px;
  scrollbar-color: #607565 var(--journal-pine);
}

.site-sidebar .brand {
  color: #fffaf0;
  margin-bottom: 14px;
}

.site-sidebar .brand__mark {
  width: 68px;
  padding: 8px;
  border-radius: 50%;
  background: #f5ebd6;
  margin-bottom: 10px;
}

.brand__name,
.brand__state,
.mobile-brand {
  font-family: var(--journal-heading);
  letter-spacing: .035em;
}

.sidebar-tagline {
  color: #bacfc0;
  margin: 0 8px 24px;
}

.sidebar-nav a {
  justify-content: flex-start;
  border-radius: 6px;
  color: #f4f1e6;
  letter-spacing: .005em;
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav .current-menu-item > a,
.sidebar-nav .current_page_item > a,
.sidebar-nav .current-menu-ancestor > a {
  border-color: #537062;
  color: #fff;
  background: #304c3d;
  box-shadow: none;
}

.sidebar-nav .sub-menu {
  margin-inline-start: 11px;
  border-inline-start: 1px solid #537062;
}

.sidebar-nav .sub-menu a {
  color: #c8d8cb;
}

.sidebar-note {
  color: #d6e3d9;
  background: #2d473a;
}

.sidebar-search .search-field {
  background: #fffdf8;
}

.site-sidebar :focus-visible {
  outline-color: var(--journal-gold);
}

.archive-note {
  background: #f4e9d4;
  color: #3a493d;
  text-align: left;
  padding-inline: clamp(20px, 6vw, 82px);
}

.hero {
  background: #f1e9d8;
  min-height: 530px;
}

.hero::before {
  background-image: linear-gradient(90deg, #f1e9d8 5%, rgba(241, 233, 216, .9) 32%, rgba(241, 233, 216, .24) 100%), var(--springfield-hero-image);
  background-position: center, right bottom;
  background-size: cover, min(78%, 760px) auto;
  background-repeat: no-repeat;
  filter: none;
  opacity: .83;
}

.hero__inner {
  align-items: center;
  gap: clamp(23px, 4.5vw, 65px);
  padding: clamp(45px, 6.9vw, 92px) clamp(24px, 6vw, 82px);
  width: min(100%, 1240px);
}

.hero__eyebrow,
.entry-kicker,
.post-card__category {
  color: #365945;
  font-weight: 700;
}

.hero h1 {
  font: 400 clamp(3.4rem, 6.9vw, 7.3rem)/.88 var(--journal-heading);
  letter-spacing: -.027em;
  color: #1e372b;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero__copy .hero__lede {
  max-width: 43ch;
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
  color: #2b4234;
}

.hero__copy p {
  max-width: 48ch;
}

.button,
button,
input[type="submit"] {
  border-radius: 6px;
  box-shadow: none;
}

.hero .button--ghost {
  color: var(--springfield-green-dark);
  border-color: #537062;
  background: #fbf5e7;
}

.hero .button--ghost:hover {
  color: #fff;
  background: #294b39;
}

.events-panel {
  align-self: center;
  padding: 24px;
  background: rgba(255, 253, 247, .95);
  border: 1px solid #e1d6bf;
  border-top: 3px solid #a66d40;
  box-shadow: 0 12px 34px rgba(53, 40, 24, .1);
  backdrop-filter: none;
}

.events-panel h2,
.section-head h2,
.entry-title,
.archive-title,
.page-title,
.home-section .entry-content h2 {
  font-family: var(--journal-heading);
  font-weight: 400;
  letter-spacing: -.01em;
}

.events-panel h2 {
  font-size: 2rem;
  line-height: 1;
}

.events-panel__empty {
  font-size: .875rem;
}

.section-head h2 {
  font-size: clamp(2.35rem, 4.3vw, 4.05rem);
}

.home-section {
  padding: clamp(38px, 5.3vw, 74px) clamp(22px, 6vw, 82px);
}

.quick-links {
  gap: 13px;
}

.quick-link,
.post-card {
  border-radius: var(--springfield-radius);
  background: #fffdf8;
  box-shadow: 0 5px 16px rgba(44, 55, 44, .045);
}

.quick-link__icon {
  margin-bottom: 12px;
}

.post-card__image {
  aspect-ratio: 1200 / 630;
}

.post-card__image:has(.post-card__placeholder) {
  aspect-ratio: 1200 / 375;
}

.post-card__placeholder {
  background: #e7eee6;
  font-family: var(--journal-heading);
}

.post-card h2,
.post-card h3 {
  font-family: var(--journal-heading);
  font-size: clamp(1.46rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.04;
}

.post-card__meta {
  color: #58635a;
}

.entry-title,
.archive-title,
.page-title {
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1;
  text-wrap: balance;
}

.entry-content {
  color: #2f4237;
  overflow-wrap: break-word;
}

.entry-content .wp-block-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.entry-content .wp-block-table table {
  margin: 0;
  background: #fffdf8;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  min-width: 6rem;
  vertical-align: top;
}

.entry-content h2 {
  font-family: var(--journal-heading);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.08;
}

.page-illustration {
  border-radius: var(--springfield-radius);
}

.site-footer {
  background: var(--journal-pine);
}

.mobile-header {
  background: #fffdf8;
}

.mobile-brand {
  color: var(--springfield-green-dark);
}

@media (min-width: 900px) and (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(195px, .68fr);
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: 0;
  }

  .events-panel {
    max-width: 30rem;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(3.06rem, 11.7vw, 4.2rem);
  }

  .hero::before {
    background-size: cover, auto 58%;
    background-position: center, right top;
    opacity: .63;
  }

  .hero__inner {
    padding-top: 40px;
    padding-bottom: 34px;
  }

  .post-card h2,
  .post-card h3 {
    font-size: 1.75rem;
  }
}

@media print {
  .site-sidebar,
  .mobile-header {
    display: none;
  }
}
