/*
Theme Name: Paola Nava
Theme URI: https://paolanava.com
Author: Paola Nava Studio
Description: Tema editorial minimalista en estilo suizo para el portafolio curatorial, archivo de gestión cultural y blog de Paola Nava.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: paola-nava
*/

:root {
  --canvas: #ffffff;
  --canvas-rgb: 255, 255, 255;
  --ink: #111111;
  --copy: #1a1820;
  --muted: rgba(17, 17, 17, 0.34);
  --rule-heavy: rgba(17, 17, 17, 0.78);
  --rule-thin: rgba(17, 17, 17, 0.28);
}

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

html,
body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  margin: 0;
}

body.admin-bar .pn-shell {
  min-height: calc(100vh - 32px);
}

::selection {
  background-color: rgba(17, 17, 17, 0.16);
  color: var(--ink);
}

p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.mono-meta p,
p.mono-meta,
.text-left,
.text-center,
.text-right,
.md\:text-right {
  text-align: inherit;
  hyphens: none;
}

.title-display {
  font-size: clamp(2.5rem, 6.1vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 0.85;
  margin: 0;
  padding: 0;
  color: var(--ink);
}

.swiss-copy {
  font-size: clamp(12.5px, 0.96vw, 15px);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--copy);
}

.mono-meta {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.rule-heavy {
  border-top: 2px solid var(--rule-heavy);
}

.rule-thin-top {
  border-top: 1px solid var(--rule-thin);
}

.rule-thin-bottom {
  border-bottom: 1px solid var(--rule-thin);
}

.nav-link {
  position: relative;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.58;
}

.nav-link.is-active {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.selector-item {
  color: var(--muted);
  transition: color 0.18s ease, transform 0.2s ease;
  cursor: pointer;
}

.selector-item:hover,
.selector-item.is-active {
  color: var(--ink);
}

.view-fade {
  animation: pnFadeIn 0.22s ease-out;
}

@keyframes pnFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WordPress Blog & Page Editorial Prose */
.wp-prose {
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 430;
  line-height: 1.68;
  letter-spacing: -0.01em;
  color: var(--copy);
}

.wp-prose > * + * {
  margin-top: 1.25rem;
}

.wp-prose h2 {
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2.25rem;
}

.wp-prose h3 {
  font-size: 1.08rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 1.75rem;
}

.wp-prose blockquote {
  border-left: 2px solid var(--rule-heavy);
  padding-left: 1.1rem;
  font-style: italic;
  color: rgba(17, 17, 17, 0.84);
}

.wp-prose ul,
.wp-prose ol {
  padding-left: 1.25rem;
}

.wp-prose ul {
  list-style-type: disc;
}

.wp-prose ol {
  list-style-type: decimal;
}

.wp-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-prose figure,
.wp-prose img {
  max-width: 100%;
  height: auto;
}

.wp-prose figcaption {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(17, 17, 17, 0.65);
  margin-top: 0.5rem;
}

/* Cabecera fija con reducción suave y leve transparencia al hacer scroll */
.pn-header {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s ease, padding 0.24s ease, border-color 0.24s ease, backdrop-filter 0.24s ease;
}

.pn-header .title-display {
  transition: font-size 0.26s cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 0.26s cubic-bezier(0.22, 1, 0.36, 1), line-height 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.pn-header-spacer {
  height: clamp(68px, 8.2vw, 118px);
  flex-shrink: 0;
}

.pn-header.is-scrolled {
  background-color: rgba(var(--canvas-rgb), 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(17, 17, 17, 0.14);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.pn-header.is-scrolled .pn-header-grid {
  align-items: center;
}

.pn-header.is-scrolled .pn-header-nav {
  padding-top: 0;
}

.pn-header.is-scrolled .title-display {
  font-size: clamp(1.35rem, 1.9vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

body.admin-bar .pn-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .pn-header {
    top: 46px;
  }
}

/* Ajuste en Portada para el muro visual tipo Atlas en 4 columnas */
.pn-shell-front {
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.pn-shell-front .pn-header-spacer {
  margin-bottom: 0.75rem;
}

.pn-atlas-grid {
  column-count: 1;
  column-gap: 14px;
}

@media screen and (min-width: 640px) {
  .pn-atlas-grid {
    column-count: 2;
  }
}

@media screen and (min-width: 1024px) {
  .pn-atlas-grid {
    column-count: 4;
    column-gap: 16px;
  }
}

.pn-atlas-item {
  display: block;
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 14px;
  overflow: hidden;
  background-color: rgba(17, 17, 17, 0.06);
}

@media screen and (min-width: 1024px) {
  .pn-atlas-item {
    margin-bottom: 16px;
  }
}

.pn-atlas-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.pn-atlas-item:hover img,
.pn-atlas-item:focus-visible img {
  transform: scale(1.018);
}

.pn-atlas-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0));
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.pn-atlas-item:hover .pn-atlas-caption,
.pn-atlas-item:focus-visible .pn-atlas-caption {
  opacity: 1;
}

/* Selector de idioma minimalista en cabecera */
.pn-lang-link {
  color: var(--ink);
  opacity: 0.45;
  transition: opacity 0.18s ease;
  text-decoration: none;
}

.pn-lang-link:hover {
  opacity: 1;
}

.pn-lang-link.is-active {
  opacity: 1;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
