/* 
  Field Notes hero styles — dark variant
  =====================================
  Dark-mode hero styling for the Field Notes site.

  Design goals:
  - keep the banner image bright and visible
  - support text readability with a left-weighted gradient
  - present the title block as a subtle journal/publication panel
  - preserve the glass-style navigation bar
*/

:root {
  --nav-h: 56px;
}

.hero {
  position: relative;
  min-height: clamp(240px, 28vw, 420px);
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

/* 
  Darken mainly the left side behind the title,
  while allowing the image to stay bright elsewhere.
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 12, 20, 0.65) 0%,
    rgba(10, 12, 20, 0.45) 35%,
    rgba(10, 12, 20, 0.18) 60%,
    rgba(10, 12, 20, 0.0) 80%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: calc(1.5rem + var(--nav-h)) 1.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* 
  Translucent publication-style text panel.
  This helps the hero read more like a journal or report frontispiece.
*/
.hero-content {
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.2rem 1.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 640px;
}

.hero-title,
.hero-content h1 {
  margin: 0;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

header {
  position: relative;
}

header nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 20;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header + main {
  margin-top: 0.5rem;
}

@media (max-width: 540px) {
  :root {
    --nav-h: 84px;
  }

  .hero-inner {
    justify-content: center;
    padding: calc(1.25rem + var(--nav-h)) 1rem 1rem;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 1rem 1.15rem;
  }
}