/*
Theme Name: Entre líneas
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Tema hijo editorial para la bitácora de Humanidades Entre líneas.
Author: Luis
Template: twentytwentyfive
Version: 1.0.0
Text Domain: entre-lineas
License: GNU General Public License v2 or later
*/

:root {
  --el-paper: #f5efe3;
  --el-ink: #2d2925;
  --el-terracotta: #a4473f;
  --el-olive: #66715a;
  --el-line: #d8c9b7;
  --el-cream: #fffaf1;
  --el-shadow: 0 18px 50px rgba(65, 48, 34, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(164, 71, 63, 0.06), transparent 28rem),
    var(--el-paper);
  color: var(--el-ink);
  overflow-x: hidden;
}

.wp-site-blocks,
.el-main,
.el-main > *,
.site-header__inner > * {
  min-width: 0;
}

img,
figure {
  max-width: 100%;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--el-terracotta);
  outline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid var(--el-line);
  background: rgba(245, 239, 227, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  min-height: 76px;
  padding: 0.75rem 1.25rem;
}

.site-header .wp-block-site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.site-header .wp-block-site-title a {
  text-decoration: none;
}

.site-header .wp-block-navigation-item__content {
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.el-main {
  min-height: 65vh;
}

.el-hero {
  border-bottom: 1px solid var(--el-line);
  padding: clamp(4.5rem, 10vw, 8.5rem) 1.25rem clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.el-hero::after {
  content: "";
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(164, 71, 63, 0.2);
  border-radius: 50%;
  position: absolute;
  right: -10vw;
  top: -12vw;
  box-shadow: inset 0 0 0 2rem rgba(164, 71, 63, 0.025);
  pointer-events: none;
}

.el-eyebrow {
  color: var(--el-terracotta);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.el-hero h1 {
  font-size: clamp(3.4rem, 10vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  max-width: 920px;
  margin-top: 1rem;
}

.el-hero .el-lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.55;
  max-width: 720px;
}

.el-section {
  padding: clamp(3.5rem, 8vw, 7rem) 1.25rem;
}

.el-section--cream {
  background: rgba(255, 250, 241, 0.64);
  border-block: 1px solid var(--el-line);
}

.el-section-heading {
  align-items: end;
  border-bottom: 1px solid var(--el-line);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.el-section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0;
}

.el-featured-card {
  background: var(--el-ink);
  color: var(--el-paper);
  padding: clamp(2rem, 5vw, 4.5rem);
  box-shadow: var(--el-shadow);
}

.el-featured-card a,
.el-featured-card h2,
.el-featured-card h3 {
  color: var(--el-paper);
}

.el-featured-card .wp-block-post-date,
.el-featured-card .wp-block-post-excerpt {
  color: #ded4c6;
}

.el-entry-grid {
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.el-entry-card {
  border-top: 3px solid var(--el-terracotta);
  padding-top: 1.15rem;
}

.el-entry-card .wp-block-post-featured-image img,
.el-archive-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--el-line);
}

.el-entry-card .wp-block-post-title,
.el-archive-card .wp-block-post-title {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.el-date,
.wp-block-post-date,
.el-meta {
  color: var(--el-olive);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.el-page-header,
.el-post-header {
  padding: clamp(3.5rem, 8vw, 7rem) 1.25rem 2.5rem;
}

.el-page-header h1,
.el-post-header h1 {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
}

.el-post-header .wp-block-post-excerpt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 760px;
}

.el-post-image {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.el-post-image img {
  max-height: 680px;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--el-line);
  box-shadow: var(--el-shadow);
}

.el-prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.78;
}

.el-prose h2,
.el-prose h3 {
  margin-top: 2.5em;
}

.el-prose p:first-of-type::first-letter {
  color: var(--el-terracotta);
  float: left;
  font-family: Georgia, serif;
  font-size: 4.4rem;
  line-height: 0.78;
  padding: 0.12em 0.12em 0 0;
}

.el-prose .el-no-dropcap::first-letter,
.el-prose .el-nota-ia::first-letter,
.el-prose .haiku-poem p::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

.el-callout,
.el-download {
  background: var(--el-cream);
  border-left: 5px solid var(--el-terracotta);
  box-shadow: 0 10px 30px rgba(65, 48, 34, 0.06);
  padding: clamp(1.4rem, 4vw, 2.3rem);
  margin-block: 2.5rem;
}

.el-nota-ia {
  background: rgba(102, 113, 90, 0.1);
  border: 1px solid rgba(102, 113, 90, 0.32);
  padding: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.haiku-composition {
  min-height: min(1050px, 140vw);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--el-line);
  box-shadow: var(--el-shadow);
  margin-block: 2.5rem;
}

.haiku-composition > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.haiku-poem {
  position: relative;
  z-index: 1;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(82, 62, 45, 0.22);
  width: min(78%, 520px);
  padding: clamp(1.5rem, 5vw, 3.2rem);
  backdrop-filter: blur(5px);
  text-align: center;
}

.haiku-poem p {
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 1.2rem;
}

.haiku-poem p:last-child {
  margin-bottom: 0;
}

.el-map img {
  border: 1px solid var(--el-line);
  box-shadow: var(--el-shadow);
}

.el-site-footer {
  border-top: 1px solid var(--el-line);
  padding: 2rem 1.25rem;
  margin-top: clamp(3rem, 8vw, 7rem);
}

.el-site-footer p {
  color: var(--el-olive);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
  }

  .site-header__inner {
    flex-wrap: nowrap !important;
    gap: 0.75rem;
  }

  .site-header .wp-block-site-title {
    flex: 1 1 auto;
    font-size: 1.12rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .site-header .wp-block-navigation {
    flex: 0 0 auto;
  }

  .el-page-header h1,
  .el-post-header h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    overflow-wrap: anywhere;
  }

  .el-entry-grid {
    grid-template-columns: 1fr !important;
  }

  .haiku-composition {
    min-height: 980px;
  }

  .haiku-poem {
    width: calc(100% - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
