@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-pro/SourceSerif4-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-pro/SourceSerif4-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-pro/SourceSerif4-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.menu-nav ul,
.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-nav li,
.footer-links li {
  margin: 0;
}

.menu-nav .current-menu-item > a,
.menu-nav .current_page_item > a,
.menu-nav .current-menu-ancestor > a {
  color: var(--brown);
}

.site-main {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-main h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 600;
}

.listing-reference-section .feature-card,
.listing-reference-section .feature-copy {
  height: 100%;
}

.listing-reference-section .feature-card {
  background: transparent;
}

.listing-reference-section .feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.body-white p,
.body-white li {
  color: var(--white);
}

.body-dark p,
.body-dark li {
  color: var(--text);
}

.story-card.p-white p,
.story-card.p-white li,
.story-card.p-white h3 {
  color: var(--white);
}

.story-card.p-grey p,
.story-card.p-grey li,
.story-card.p-grey h3 {
  color: var(--text);
}

.h2-beige h2 {
  color: var(--accent);
}

.h2-beige::before,
.h2-beige::after {
  background: rgba(153, 138, 92, 0.8);
}

.h2-white h2 {
  color: var(--white);
}

.h2-white::before,
.h2-white::after {
  background: rgba(255, 255, 255, 0.82);
}

.lines-white::before,
.lines-white::after {
  background: rgba(255, 255, 255, 0.82);
}

.h2-brown h2 {
  color: var(--brown);
}

.h2-brown::before,
.h2-brown::after {
  background: rgba(69, 56, 45, 0.8);
}

.h2-beige p a,
.h2-beige h3 a {
  color: var(--accent);
}

.h2-white p a,
.h2-white h3 a {
  color: var(--white);
}

.h2-brown p a,
.h2-brown h3 a {
  color: var(--brown);
}

.section-lead {
  font-size: clamp(1.125rem, 1rem + 0.32vw, 1.35rem);
  line-height: 1.35;
  font-weight: 600;
}

.content-card {
  width: min(100%, var(--box-max));
  margin: 12rem auto 5rem;
  padding: var(--decor-frame-pad);
  background: rgba(255, 255, 255, 0.92);
}

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

.intro-card.papier {
  background: rgba(249, 246, 239, 0.92);
  color: var(--text);
}

.intro-card.papier h3 {
  color: var(--accent);
}

.intro-card.papier p {
  color: var(--text);
}

.intro-card.wit {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.intro-card.wit h3 {
  color: var(--accent);
}

.intro-card.wit p {
  color: var(--text);
}

.menu-address p,
.menu-contact p {
  margin: 0;
}

.footer-block > div p {
  margin: 0;
}

.footer-block > div + div {
  margin-top: 0.45rem;
}

.footer-links {
  justify-content: space-between;
}

.footer-links > div {
  display: block;
}

.footer-links > div + div {
  margin-top: auto;
}

body.admin-bar .menu-toggle {
  top: calc(1.875rem + 32px);
}

body.admin-bar .site-logo {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .menu-toggle {
    top: calc(1.875rem + 46px);
  }
}

.site-footer .menu,
.site-footer .menu-main-menu-container,
.site-footer .menu-footer-container {
  height: 100%;
}

.site-footer .menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.site-footer .menu li + li {
  margin-top: 0.125rem;
}

.site-footer .footer-links {
  min-height: 100%;
}

.site-footer .footer-links p {
  margin: 0;
}

.site-footer .footer-links p + p {
  margin-top: auto;
}

.menu-meta a:hover,
.menu-meta a:focus-visible {
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(14, 19, 16, 0.82);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100%;
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.lightbox-figure {
  margin: 0;
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0 4.5rem;
}

.lightbox-image {
  width: auto;
  max-width: calc(100vw - 9rem);
  max-height: min(78vh, 56rem);
  object-fit: contain;
  background: transparent;
  justify-self: center;
}

.lightbox-image.is-loading {
  opacity: 1;
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  font-size: var(--text-size-1);
  font-weight: 600;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
}

.lightbox-close {
  position: fixed;
  top: 0;
  right: 0;
  width: 4.5rem;
  height: 4.5rem;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translateY(-50%);
  pointer-events: auto;
}

.lightbox-nav.prev {
  left: 0;
}

.lightbox-nav.next {
  right: 0;
}

.lightbox-icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.grecaptcha-badge {
  opacity: 0;
  visibility: hidden;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), -2px -2px 10px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 45rem) {
  .grecaptcha-badge {
    display: none !important;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer .footer-links {
    display: none;
  }

  .site-footer .footer-social {
    align-items: flex-end;
    justify-self: end;
  }

  .site-footer .footer-social p {
    display: none;
  }

  .site-footer .footer-links p + p {
    margin-top: 0.45rem;
  }

  .content-card {
    margin-top: 8rem;
  }

  .lightbox-dialog {
    padding: 0 0.5rem;
  }

  .lightbox-figure {
    padding: 0 3.5rem;
  }

  .lightbox-nav {
    width: 3.5rem;
    height: 3.5rem;
  }
}
