header.scrolled {
  background-color: color-mix(in oklab, var(--umber) 95%, transparent);
  backdrop-filter: blur(16px);
}
header.header-light {
  background-color: color-mix(in oklab, var(--ivory) 92%, transparent);
  backdrop-filter: blur(16px);
}
header.header-light .text-ivory,
header.header-light .text-ivory\/85 {
  color: var(--foreground) !important;
}
header.header-light nav a:hover {
  color: var(--primary) !important;
}
.nav-open {
  overflow: hidden;
}
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: var(--umber);
  color: var(--ivory);
  padding: 6rem 2rem 2rem;
}
.mobile-panel.open {
  display: block;
}
.mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-panel nav a {
  font-size: 1.5rem;
  font-family: "Cormorant Garamond", serif;
  color: var(--ivory);
}
.mobile-panel .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--ivory);
  background: none;
  border: 0;
  cursor: pointer;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--umber) 92%, transparent);
  padding: 2rem;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--ivory);
  background: none;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}
.thumb-btn.active {
  border-color: var(--primary);
  opacity: 1;
}
body {
  padding-bottom: 0;
}
.form-status {
  display: none;
  padding: 1rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}
.form-status:not(:empty) { display: block; }
.form-status.sending {
  border-color: #d8c8ae;
  background: #f7f1e7;
  color: #6e5a46;
}
.form-status.success {
  border-color: #9bc5a6;
  background: #edf8f0;
  color: #1f6134;
}
.form-status.error {
  border-color: #dda8a8;
  background: #fff0f0;
  color: #9b2626;
}
form [type="submit"]:disabled { cursor: wait; opacity: 0.65; }
@media (max-width: 767px) {
  body {
    padding-bottom: 4.5rem;
  }
}

/* Handwritten creator credit shared across every page footer. */
.footer-bottom-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 2rem;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-self: start;
  gap: 0.65rem 1.5rem;
}
.footer-copyright {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.footer-bottom-bar .footer-credit {
  justify-self: end;
}
@media (max-width: 767px) {
  .footer-bottom-bar {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .footer-legal-links {
    justify-self: center;
    justify-content: center;
    gap: 0.65rem 1.2rem;
  }
  .footer-copyright {
    white-space: normal;
  }
  .footer-bottom-bar .footer-credit {
    justify-self: center;
  }
}
.footer-credit {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
}
.footer-credit a {
  color: var(--ivory);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--gold);
  outline: none;
}
/* Aligned social and messaging links shared across every page footer. */
.footer-social-links {
  display: grid;
  grid-template-columns: repeat(2, 2.75rem);
  gap: 0.6rem;
  margin-top: 1.5rem;
  width: max-content;
}
.footer-social-link {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid color-mix(in oklab, var(--umber-foreground) 22%, transparent);
  color: color-mix(in oklab, var(--umber-foreground) 78%, transparent);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social-link .footer-social-fill,
.footer-social-link .footer-social-dot {
  fill: var(--gold);
  stroke: none;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  border-color: var(--gold);
  background: color-mix(in oklab, var(--gold) 12%, transparent);
  color: var(--ivory);
  outline: none;
  transform: translateY(-1px);
}
/* Keep the large gallery from competing with navigation and above-the-fold content. */
[data-original-gallery] > button {
  break-inside: avoid;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}
