/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  background-color: #fffffc;
  color: #0D0630;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVIGATION ===== */
#site-nav {
  border-bottom: 1px solid rgba(255, 255, 252, 0.45);
  color: #fffffc;
}

#site-nav.scrolled {
  background-color: #fffffc;
  color: #0D0630;
  border-bottom-color: rgba(13, 6, 48, 0.08);
}

/* Logo: #fffffc on hero, #0D0630 when scrolled */
.nav-logo-img {
  filter: brightness(0) invert(1);
}

#site-nav.scrolled .nav-logo-img {
  filter: none;
}

#site-nav .nav-icon-btn {
  color: currentColor;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

p, span, a, li, button {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: normal;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-block;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(13, 6, 48, 0.45);
}

/* ===== COLLECTION BADGE ===== */
.collection-badge {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(13, 6, 48, 0.45);
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-block;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: normal;
}

.cta-btn:active {
  transform: scale(0.98);
}

/* ===== LINK UNDERLINE ===== */
a[href="#"] {
  cursor: pointer;
}

/* ===== GRAYSCALE PORTRAIT ===== */
.grayscale {
  filter: grayscale(100%) contrast(1.08);
}

/* ===== COLLECTION CARD HOVER ===== */
.group:hover .collection-badge {
  opacity: 1;
}

/* ===== SMOOTH IMAGE TRANSITIONS ===== */
img {
  display: block;
  max-width: 100%;
}

/* ===== HERO HEADING SHADOW ===== */
section:first-of-type h1 {
  text-shadow: 0 2px 24px rgba(13, 6, 48, 0.18);
}

/* ===== FOOTER LOGO ===== */
.footer-logo {
  filter: none; /* SVG native dark colour */
}

/* ===== FOOTER BORDER ===== */
footer .border-t {
  border-top: 1px solid rgba(13, 6, 48, 0.1);
}

/* ===== OVERLAY NAV ===== */
#nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 252, 0.75);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#overlay-close {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D0630;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  padding: 0;
}

#overlay-close:hover {
  opacity: 1;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  padding: 2rem;
}

.overlay-nav a.overlay-main-link {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  color: #0D0630;
  text-decoration: none;
  opacity: 0.85;
  line-height: 1.3;
  transition: opacity 0.3s;
}

.overlay-nav a.overlay-main-link:hover {
  opacity: 0.3;
}

.overlay-divider {
  width: 40px;
  height: 1px;
  background: rgba(13, 6, 48, 0.15);
  margin: 1.75rem 0 1.5rem;
}

.overlay-nav a.overlay-secondary-link {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(13, 6, 48, 0.35);
  text-decoration: none;
  transition: color 0.3s;
}

.overlay-nav a.overlay-secondary-link:hover {
  color: rgba(13, 6, 48, 0.7);
}
