/*
Versión: 0.26.0721.6
Fecha: 2026-07-21
Cambio:
- Se crea una identidad clara de papel sepia, tinta oscura y bronce exclusiva de LightCompass.
- Se aíslan fondo, tipografía, cabecera, menú, catálogo y footer del universo Penumbra.
- HOTFIX: la barra superior adquiere contraste oscuro únicamente después de 50 px de scroll.
*/

html.page-lightcompass,
body.page-lightcompass {
  --lc-paper: #efe4cf;
  --lc-paper-deep: #e5d6bc;
  --lc-ink: #2d2926;
  --lc-ink-soft: #5f5549;
  --lc-bronze: #8f6d3b;
  --lc-border: #d2c2a8;
  --lc-card: rgba(255, 250, 240, .38);
  color: var(--lc-ink);
  background: var(--lc-paper);
}

body.page-lightcompass {
  position: relative;
  min-height: 100vh;
  font-family: "Source Serif 4", Georgia, serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 240, .26), transparent 40%),
    linear-gradient(180deg, var(--lc-paper), var(--lc-paper-deep));
}

body.page-lightcompass::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
  filter: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(45, 41, 38, .07) 0 1px, transparent 1.2px),
    radial-gradient(circle at 75% 65%, rgba(143, 109, 59, .06) 0 1px, transparent 1.2px);
  background-size: 29px 31px, 37px 41px;
}

body.page-lightcompass::after,
body.page-lightcompass .penumbra-forest,
body.page-lightcompass .penumbra-layer,
body.page-lightcompass [class*="penumbra-forest"],
body.page-lightcompass [class*="penumbra-layer"] {
  display: none !important;
}

body.page-lightcompass .header,
body.page-lightcompass .lightcompass-page,
body.page-lightcompass .footer {
  position: relative;
  z-index: 1;
}

body.page-lightcompass .header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--lc-ink);
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition:
    background .30s ease,
    backdrop-filter .30s ease,
    box-shadow .30s ease;
}

body.page-lightcompass .header.scrolled {
  color: #efe4cf;
  background: rgba(18, 18, 18, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

body.page-lightcompass .header.scrolled a,
body.page-lightcompass .header.scrolled .header__brand,
body.page-lightcompass .header.scrolled .header__brand-mark,
body.page-lightcompass .header.scrolled .header__brand-name,
body.page-lightcompass .header.scrolled .header__nav a,
body.page-lightcompass .header.scrolled .header__toggle {
  color: #efe4cf;
}

body.page-lightcompass .header.scrolled .header__toggle {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(239, 228, 207, .42);
}

body.page-lightcompass .header a,
body.page-lightcompass .header__brand,
body.page-lightcompass .header__brand-mark {
  color: var(--lc-ink);
}

body.page-lightcompass .header__brand-name,
body.page-lightcompass .header__nav a {
  color: var(--lc-ink-soft);
}

body.page-lightcompass .header__nav a:hover {
  color: var(--lc-ink);
}

body.page-lightcompass .header__toggle {
  color: var(--lc-ink);
  background: rgba(255, 250, 240, .28);
  border-color: var(--lc-border);
}

body.page-lightcompass a:focus-visible,
body.page-lightcompass button:focus-visible {
  outline: 3px solid var(--lc-bronze);
  outline-offset: 4px;
}

.page-lightcompass .lightcompass-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
  color: var(--lc-ink);
}

.page-lightcompass .editorial-breadcrumb {
  display: flex;
  gap: .6rem;
  color: var(--lc-ink-soft);
  font-size: .84rem;
}

.page-lightcompass .editorial-breadcrumb a {
  color: var(--lc-bronze);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.page-lightcompass .lightcompass-intro {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 720px);
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  min-height: min(65vh, 660px);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.page-lightcompass .lightcompass-intro__brand {
  text-align: center;
}

.page-lightcompass .lightcompass-intro__logo {
  display: block;
  width: clamp(240px, 25vw, 320px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.page-lightcompass .lightcompass-eyebrow {
  margin: 0 0 .6rem;
  color: var(--lc-bronze);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.page-lightcompass .lightcompass-intro h1,
.page-lightcompass .lightcompass-section-heading h2,
.page-lightcompass .lightcompass-principle h3,
.page-lightcompass .lightcompass-book h3 {
  color: var(--lc-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.page-lightcompass .lightcompass-intro h1 {
  max-width: 680px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: .95;
  text-wrap: balance;
}

.page-lightcompass .lightcompass-intro__lead,
.page-lightcompass .lightcompass-intro__body p {
  max-width: 720px;
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--lc-ink-soft);
  line-height: 1.65;
}

.page-lightcompass .lightcompass-intro__lead {
  margin: 0 0 1rem;
  color: var(--lc-ink);
  font-size: clamp(1.12rem, 1.8vw, 1.34rem);
  font-weight: 500;
}

.page-lightcompass .lightcompass-intro__body p {
  margin: 0 0 .8rem;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
}

.page-lightcompass .lightcompass-purpose,
.page-lightcompass .lightcompass-catalog {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--lc-border);
}

.page-lightcompass .lightcompass-section-heading {
  max-width: 720px;
  margin-bottom: 1.8rem;
}

.page-lightcompass .lightcompass-section-heading h2 {
  margin: 0 0 .55rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1;
}

.page-lightcompass .lightcompass-section-heading > p:last-child {
  margin: 0;
  color: var(--lc-ink-soft);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.6;
}

.page-lightcompass .lightcompass-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.page-lightcompass .lightcompass-principle {
  min-height: 160px;
  padding: clamp(1.15rem, 2.2vw, 1.7rem);
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
  box-shadow: none;
}

.page-lightcompass .lightcompass-principle h3 {
  margin: 0 0 .55rem;
  font-size: 1.55rem;
  line-height: 1.05;
}

.page-lightcompass .lightcompass-principle p {
  margin: 0;
  color: var(--lc-ink-soft);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: .96rem;
  line-height: 1.55;
}

.page-lightcompass .lightcompass-books {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.page-lightcompass .lightcompass-book,
.page-lightcompass .lightcompass-book > a {
  min-width: 0;
}

.page-lightcompass .lightcompass-book > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: var(--lc-ink);
  text-decoration: none;
}

.page-lightcompass .lightcompass-book__cover {
  padding: clamp(.5rem, 1.3vw, .9rem);
  background: var(--lc-card);
  border: 1px solid var(--lc-border);
}

.page-lightcompass .lightcompass-book__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(45, 41, 38, .12);
}

.page-lightcompass .lightcompass-book__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem .15rem 0;
}

.page-lightcompass .lightcompass-book h3 {
  margin: 0 0 .45rem;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.05;
}

.page-lightcompass .lightcompass-book__content p {
  margin: 0 0 .8rem;
  color: var(--lc-ink-soft);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: .9rem;
  line-height: 1.45;
}

.page-lightcompass .lightcompass-book__link {
  display: inline-block;
  margin-top: auto;
  color: var(--lc-bronze);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25em;
}

body.page-lightcompass .footer {
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) 20px;
  color: var(--lc-ink-soft);
  background: var(--lc-paper-deep);
  border-top: 1px solid var(--lc-border);
  font-family: "Source Serif 4", Georgia, serif;
}

body.page-lightcompass .footer strong {
  color: var(--lc-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .page-lightcompass .lightcompass-intro {
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .page-lightcompass .lightcompass-principles,
  .page-lightcompass .lightcompass-books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.page-lightcompass .header__nav {
    background: rgba(239, 228, 207, .98);
    border-color: transparent;
    box-shadow: 0 18px 36px rgba(45, 41, 38, .14);
    backdrop-filter: blur(14px);
  }

  body.page-lightcompass .header__nav a {
    color: var(--lc-ink);
    border-color: var(--lc-border);
  }

  body.page-lightcompass .header.is-nav-open .header__nav {
    border-color: var(--lc-border);
  }

  body.page-lightcompass .header.scrolled .header__nav {
    background: rgba(18, 18, 18, .96);
    border-color: rgba(239, 228, 207, .26);
  }

  body.page-lightcompass .header.scrolled .header__nav a {
    color: #efe4cf;
    border-color: rgba(239, 228, 207, .18);
  }

  .page-lightcompass .lightcompass-page {
    width: min(100% - 28px, 680px);
  }

  .page-lightcompass .lightcompass-intro {
    display: block;
    min-height: auto;
    padding: 2.25rem 0 2.75rem;
  }

  .page-lightcompass .lightcompass-intro__brand {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .page-lightcompass .lightcompass-intro__logo {
    width: clamp(150px, 48vw, 210px);
  }

  .page-lightcompass .lightcompass-intro__content {
    text-align: left;
  }

  .page-lightcompass .lightcompass-intro h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .page-lightcompass .lightcompass-principles {
    grid-template-columns: 1fr;
  }

  .page-lightcompass .lightcompass-principle {
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .page-lightcompass .lightcompass-books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem .75rem;
  }

  .page-lightcompass .lightcompass-book__cover {
    padding: .35rem;
  }

  .page-lightcompass .lightcompass-book h3 {
    font-size: 1.12rem;
  }

  .page-lightcompass .lightcompass-book__content p {
    font-size: .78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-lightcompass *,
  .page-lightcompass *::before,
  .page-lightcompass *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
