/* =============================================
   FARWELL — Global Nav & Layout
   Single source of truth. No duplicates.
   ============================================= */

@font-face {
  font-family: 'Flapjack';
  src: url('/fonts/flapjack.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #B9A16B;
  --goldHover: #D2C08A;
  --white: #ffffff;
  --ink: #1A1916;
  --mid: #6B6760;
  --faint: #E2E0DC;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Flapjack', 'DM Sans', system-ui, sans-serif;
  --accent: #c8a96e;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}


/* ----- NAV ----- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 52px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.92);
  transition: background .35s, padding .35s, border-color .35s;
}

.nav.stuck {
  padding: 20px 52px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  display: block;
  width: 128px;
  flex-shrink: 0;
  text-decoration: none;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}

.nav-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--goldHover);
}


/* ----- HERO IMAGE CROP ----- */

.hero img,
.post-hero img,
.journal-hero img {
  object-fit: cover;
  object-position: center 30%;
}

.hero,
.post-hero,
.journal-hero {
  background-position: center 25%;
  background-size: cover;
}


/* =============================================
   RESPONSIVE — Tablet
   ============================================= */

@media (max-width: 980px) {
  .page,
  .journal,
  .prints,
  .nl,
  .footer,
  .foot-bottom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .j-grid,
  .prints-grid,
  .drop-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: .98;
  }

  h2 {
    font-size: clamp(1.7rem, 5vw, 2.2rem);
    line-height: 1.08;
  }
}


/* =============================================
   RESPONSIVE — Mobile
   ============================================= */

@media (max-width: 640px) {
  body { font-size: 16px; }

  .page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Stack nav vertically */
  .nav,
  .nav.stuck {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1rem .85rem;
  }

  .nav-logo {
    width: 80px;
    margin: 0 auto;
  }

  .nav-logo img {
    width: 100%;
    height: auto;
  }

  .nav-links {
    position: static;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.3rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links li { margin: 0; padding: 0; }

  .nav-links a {
    font-size: .72rem;
    letter-spacing: .22em;
  }

  /* Typography */
  .hero-title { font-size: 2.2rem; line-height: 1.05; }
  .j-title { font-size: 1.55rem; }
  .j-excerpt { font-size: .94rem; }
  .j-meta, .j-small, .j-cta { font-size: .62rem; }
  .footer { grid-template-columns: 1fr; }

  /* Hero editorial */
  .hero { min-height: 88vh; }
  .hero-inner, .hero-content { padding-top: 34vh; }
}
