@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/CormorantGaramond-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/Jost-Variable.woff2") format("woff2");
}

:where(.hearth-landing) * {
  box-sizing: border-box;
}

html:has(.hearth-landing) {
  scroll-behavior: smooth;
}

body.hearth-landing {
  margin: 0;
  background: #f6f1ea;
  color: #2b2620;
  font-family: Jost, sans-serif;
}

.hearth-landing a {
  color: inherit;
  text-decoration: none;
}

.hearth-landing a:hover {
  color: #6c587c;
}

/* Fixed header: transparent-over-hero, crossfades to a blurred cream bar on scroll. */
.hbn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  padding: 26px 40px;
  background: transparent;
  color: #f6f1ea;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background 0.3s, padding 0.3s, border-color 0.3s, color 0.3s, backdrop-filter 0.3s;
}

body.admin-bar .hbn-header {
  top: 32px;
}

/* Non-front pages: no hero behind the header, so it renders solid and in
   normal document flow instead of fixed-transparent-crossfading. */
.hbn-header--static {
  position: static;
}

.hbn-nav a.is-active {
  color: #6c587c;
}

.hbn-header.is-scrolled {
  background: rgba(246, 241, 234, 0.96);
  color: #2b2620;
  border-bottom: 1px solid rgba(43, 38, 32, 0.12);
  padding: 18px 40px;
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .hbn-header {
    transition: none;
  }
}

.hbn-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.5vw, 34px);
  color: inherit;
}

.hbn-nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  color: inherit;
}

.hbn-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}

.hbn-italic {
  font-style: italic;
  font-weight: 400;
}

.hbn-icon-link {
  display: flex;
  color: inherit;
}

/* Mobile: no hamburger menu exists yet, so collapse to logo + icons only.
   All nav items are same-page anchors, so content stays reachable by scroll. */
@media (max-width: 680px) {
  .hbn-header {
    padding: 16px 20px;
  }
  .hbn-header.is-scrolled {
    padding: 14px 20px;
  }
  .hbn-header > .hbn-nav:first-child {
    display: none;
  }
  .hbn-header > .hbn-nav:last-child a:not(.hbn-icon-link) {
    display: none;
  }
  .hbn-header > .hbn-nav:last-child {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  section img[style*="object-position: 60% 50%"] {
    object-position: 68% 50%;
  }
}
