/* Landing de Noticias: la fotografía ocupa la primera pantalla y el mismo
   header compartido alterna entre integrado y sólido sin duplicar su markup. */
@font-face {
  font-family: "Reddit Sans";
  src: url("/fonts/RedditSans-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courierprime-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Imperial Script";
  src: url("/fonts/imperialscript-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.news-landing-hero {
  /* El descanso inferior queda ligeramente antes de que termine la imagen. */
  --news-hero-snap-bottom-offset: -64px;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #f0dfcc;
}

/* El header es fixed y el tema reserva por defecto su altura en el body.
   En esta portada no debe reservarse: la fotografía comienza en y=0 y pasa
   por debajo de la navegación transparente. */
body.page-news-landing {
  padding-top: 0 !important;
  overscroll-behavior-y: none;
  background: #f0dfcc;
}

html:has(body.page-news-landing) {
  overscroll-behavior-y: none;
  background: #f0dfcc;
}

.news-landing-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Desplaza el área de interés hacia el emblema dorado de la derecha. */
  object-position: 78% center;
}

.news-landing-hero-copy {
  position: absolute;
  z-index: 1;
  top: clamp(188px, 30vh, 292px);
  left: clamp(24px, 5vw, 96px);
  width: min(44rem, 46vw);
  color: #3a240e;
  pointer-events: none;
}

.news-landing-hero-title {
  margin: 0;
  font-family: "Reddit Sans", "Manrope", system-ui, sans-serif;
}

.news-landing-hero-title {
  font-size: clamp(2.8rem, 5.2vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-shadow: 0 1px 18px rgba(255, 250, 240, 0.38);
}

.news-landing-hero-line {
  display: block;
}

.news-landing-hero-line--headline {
  padding-bottom: 0.28em;
  font-size: 0.77em;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.news-landing-hero-brand {
  font-weight: 700;
}

.news-landing-hero-line--middle {
  margin-top: 0.22em;
  padding-bottom: 0.18em;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.58em;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.05;
}

.news-landing-hero-line--script {
  margin-top: 0.08em;
  margin-left: 0.02em;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.56em;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
}

.news-landing-hero-script-emphasis {
  display: inline-block;
  margin-left: 0.04em;
  font-family: "Imperial Script", cursive;
  font-size: 1.95em;
  letter-spacing: 0;
  line-height: 0.76;
  /* La escala visual no modifica la caja de las filas: crece desde arriba
     hacia abajo y conserva el ritmo vertical del bloque. */
  transform: scale(1.14);
  transform-origin: left top;
}

/* En el primer pliegue el header se fusiona con la imagen. Los paneles que se
   abren conservan su superficie habitual para que menú, idiomas y búsqueda
   nunca pierdan legibilidad. */
body.page-news-landing .site-header {
  --news-hero-header-ink: #3a240e;
}

body.page-news-landing .site-header .header-bar {
  transition: background-color 220ms ease, color 220ms ease;
}

body.page-news-landing .site-header:not(.news-header-scrolled):not(.watches-open):not(.search-open):not(.mobile-nav-open) .header-bar {
  /* Se restablecen también las imágenes/gradientes heredados: el único
     fondo inicial debe ser la propia fotografía de la portada. */
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.page-news-landing .site-header:not(.news-header-scrolled):not(.watches-open):not(.search-open):not(.mobile-nav-open) .header-bar :is(
  .header-desktop-nav a,
  .header-desktop-nav button,
  .header-search-toggle,
  .lang-toggle,
  .header-account-toggle,
  .header-wordmark,
  .logo-text
) {
  color: var(--news-hero-header-ink) !important;
}

body.page-news-landing .site-header:not(.news-header-scrolled):not(.watches-open):not(.search-open):not(.mobile-nav-open) .header-bar .menu-toggle span {
  background: var(--news-hero-header-ink) !important;
}

body.page-news-landing .site-header:not(.news-header-scrolled) :is(
  .header-mobile-nav,
  .header-mega-panel,
  .header-search-panel
) {
  background-color: var(--header-bg) !important;
  color: var(--header-text);
}

@media (max-width: 899px) {
  .news-landing-hero img {
    /* En retrato se prioriza el símbolo dorado, aun con el recorte propio de
       una fotografía panorámica en una pantalla alta. */
    object-position: 84% center;
  }

  .news-landing-hero-copy {
    top: max(162px, 26svh);
    left: 20px;
    width: min(24rem, calc(100% - 40px));
  }

  .news-landing-hero-title {
    font-size: clamp(2.55rem, 11.4vw, 3.8rem);
  }

  .news-landing-hero-line--script {
    font-size: 0.54em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-news-landing .site-header .header-bar {
    transition-duration: 80ms;
  }
}
