:root {
  --ll-ink: #18332d;
  --ll-muted: #5d6965;
  --ll-paper: #f7f4ee;
  --ll-surface: #fffdf9;
  --ll-line: #d9d2c7;
  --ll-teal: #286f67;
  --ll-rust: #b9532f;
  --ll-gold: #d4a04a;
  --ll-shadow: 0 14px 34px rgba(24, 51, 45, 0.09);
}

body.locallinks-foundation {
  background: var(--ll-paper);
  color: var(--ll-ink);
}

.locallinks-foundation :where(h1, h2, h3) {
  color: var(--ll-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.locallinks-foundation h1 {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.98;
}

.locallinks-foundation h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.locallinks-foundation h3 {
  font-size: 1.55rem;
  line-height: 1.15;
}

.locallinks-foundation header.wp-block-template-part {
  background: rgba(255, 253, 249, 0.95);
  border-bottom: 1px solid var(--ll-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-bar.locallinks-foundation header.wp-block-template-part {
  top: 32px;
}

.locallinks-foundation .wp-block-site-title a {
  color: var(--ll-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.ll-site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.ll-site-nav a {
  color: var(--ll-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.ll-site-nav a:hover,
.ll-site-nav a:focus-visible {
  color: var(--ll-rust);
}

.locallinks-foundation main {
  margin-bottom: 0;
  padding-bottom: 0;
}

.locallinks-foundation .wp-block-post-title {
  box-sizing: border-box;
  margin: 3rem auto 1.25rem;
  max-width: 1180px;
  padding: 0 1rem;
}

.locallinks-foundation.home .wp-block-post-title,
.locallinks-foundation.home main > .wp-block-group > .wp-block-post-title {
  display: none;
}

.locallinks-foundation .entry-content,
.locallinks-foundation .wp-block-post-content {
  max-width: none;
}

.ll-shell {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 1rem;
}

.ll-hero {
  align-items: stretch;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 590px;
  padding: 4.5rem 0 2.5rem;
}

.ll-hero__copy {
  align-self: center;
  max-width: 680px;
  padding: 2rem 0;
}

.ll-hero__copy h1 {
  margin: 0.25rem 0 1.5rem;
}

.ll-hero__image {
  background: #ddd4c7;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.ll-hero__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ll-hero__image figcaption {
  background: rgba(24, 51, 45, 0.88);
  bottom: 0;
  color: #fff;
  font-size: 0.82rem;
  left: 0;
  padding: 0.6rem 0.85rem;
  position: absolute;
}

.ll-eyebrow {
  color: var(--ll-rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.ll-lede {
  color: var(--ll-muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  max-width: 760px;
}

.ll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.ll-button {
  background: var(--ll-ink);
  border: 2px solid var(--ll-ink);
  color: #fff;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
}

.ll-button:hover,
.ll-button:focus-visible {
  background: var(--ll-rust);
  border-color: var(--ll-rust);
  color: #fff;
}

.ll-button--secondary {
  background: transparent;
  color: var(--ll-ink);
}

.ll-button--secondary:hover,
.ll-button--secondary:focus-visible {
  color: #fff;
}

.ll-intro {
  border-bottom: 1px solid var(--ll-line);
  padding: 0.5rem 0 2.75rem;
}

.ll-section {
  padding: 4.5rem 0;
}

.ll-section__heading {
  margin-bottom: 2rem;
  max-width: 760px;
}

.ll-section__heading h2 {
  margin: 0.2rem 0 0.8rem;
}

.ll-section__heading > p:last-child {
  color: var(--ll-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.ll-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.ll-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-line);
  box-shadow: var(--ll-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ll-card--quiet {
  background: transparent;
  box-shadow: none;
}

.ll-card__image {
  aspect-ratio: 4 / 3;
  background: #ddd4c7;
  overflow: hidden;
}

.ll-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.ll-card:hover .ll-card__image img {
  transform: scale(1.025);
}

.ll-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.ll-card__body h3 {
  margin: 0 0 0.75rem;
}

.ll-card__body > p:not(.ll-eyebrow):not(.ll-card__meta) {
  color: var(--ll-muted);
  line-height: 1.55;
}

.ll-card__meta {
  color: var(--ll-teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.ll-card__link {
  color: var(--ll-rust);
  font-weight: 800;
  margin-top: auto;
  padding-top: 0.75rem;
  text-decoration: none;
}

.ll-callout {
  background: var(--ll-ink);
  color: #fff;
  margin: 1rem 0 4rem;
  padding: clamp(2rem, 6vw, 4rem);
}

.ll-callout h2,
.ll-callout p {
  color: #fff;
}

.ll-callout > p:not(.ll-eyebrow) {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 760px;
}

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

.ll-gallery__item {
  background: var(--ll-surface);
  border: 1px solid var(--ll-line);
  margin: 0;
  overflow: hidden;
}

.ll-gallery__item a {
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
}

.ll-gallery__item img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.ll-gallery__item a:hover img,
.ll-gallery__item a:focus-visible img {
  transform: scale(1.04);
}

.ll-gallery__item figcaption {
  color: var(--ll-muted);
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
}

.ll-archive-note,
.ll-backlink {
  color: var(--ll-muted);
}

.ll-lightbox {
  background: rgba(10, 20, 18, 0.96);
  border: 0;
  height: 100%;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 2.5rem;
  width: 100%;
}

.ll-lightbox::backdrop {
  background: rgba(10, 20, 18, 0.96);
}

.ll-lightbox__inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
}

.ll-lightbox img {
  max-height: calc(100vh - 7rem);
  max-width: calc(100vw - 5rem);
  object-fit: contain;
}

.ll-lightbox__close {
  background: #fff;
  border: 0;
  color: var(--ll-ink);
  cursor: pointer;
  font-size: 1.5rem;
  height: 2.5rem;
  position: absolute;
  right: 0;
  top: 0;
  width: 2.5rem;
}

.locallinks-foundation footer.wp-block-template-part {
  border-top: 1px solid var(--ll-line);
  margin-block-start: 0 !important;
}

.locallinks-foundation .ll-home > .ll-callout:last-child {
  margin-bottom: 0;
}

.locallinks-foundation footer.wp-block-template-part > .wp-block-group {
  min-height: 0 !important;
  padding-bottom: 1.75rem !important;
  padding-top: 1.75rem !important;
}

.locallinks-foundation footer.wp-block-template-part .wp-block-spacer {
  display: none;
}

.ll-footer-note {
  color: var(--ll-muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .ll-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 2.5rem;
  }

  .ll-hero__image {
    min-height: 420px;
  }

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

@media (max-width: 620px) {
  .admin-bar.locallinks-foundation header.wp-block-template-part {
    top: 0;
  }

  .ll-site-nav {
    gap: 0.25rem 0.8rem;
  }

  .ll-site-nav a {
    font-size: 0.78rem;
  }

  .ll-grid--2,
  .ll-grid--3,
  .ll-gallery {
    grid-template-columns: 1fr;
  }

  .ll-hero__image {
    min-height: 320px;
  }

  .ll-section {
    padding: 3rem 0;
  }

  .ll-lightbox {
    padding: 1rem;
  }

  .ll-lightbox img {
    max-height: calc(100vh - 4rem);
    max-width: calc(100vw - 2rem);
  }
}
