/*
Theme Name: La Mina Editorial
Theme URI: https://cerveceriabarlaminagijon.com/
Author: La Mina
Description: Theme editorial a medida para El Blog de la Cerveza.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: la-mina
*/

:root {
  --lm-ink: #171512;
  --lm-ink-soft: #24211d;
  --lm-paper: #f4efe5;
  --lm-paper-deep: #e7dece;
  --lm-copper: #98451f;
  --lm-copper-light: #e5a56f;
  --lm-sage: #647263;
  --lm-line: rgba(23, 21, 18, .16);
  --lm-white-line: rgba(255, 255, 255, .14);
  --lm-shadow: 0 24px 70px rgba(18, 14, 10, .16);
  --lm-radius: 1.25rem;
  --lm-container: 78rem;
  --lm-reading: 46rem;
  --lm-space: clamp(4rem, 8vw, 8rem);
  --lm-serif: Georgia, 'Times New Roman', serif;
  --lm-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--lm-ink);
  background: var(--lm-paper);
  font-family: var(--lm-sans);
  font-size: clamp(1rem, .96rem + .15vw, 1.08rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--lm-copper); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--lm-copper-light); outline-offset: 4px; }
::selection { color: var(--lm-paper); background: var(--lm-copper); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; margin: .75rem; padding: .75rem 1rem; background: #fff; z-index: 10000; }
.skip-link { left: 0; top: 0; }
.lm-container { width: min(calc(100% - 2rem), var(--lm-container)); margin-inline: auto; }
.lm-kicker { margin: 0 0 .75rem; color: var(--lm-copper); font-size: .75rem; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.lm-title { margin: 0; font-family: var(--lm-serif); font-size: clamp(2.4rem, 6vw, 5.8rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.lm-section-title { margin: 0; font-family: var(--lm-serif); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.lm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 999px; color: #fff; background: var(--lm-copper); font-size: .83rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.lm-button:hover { color: #fff; background: #a85022; transform: translateY(-2px); }

.lm-site-header { position: relative; z-index: 20; color: var(--lm-paper); background: var(--lm-ink); border-bottom: 1px solid var(--lm-white-line); }
.lm-header-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.lm-brand { display: inline-flex; align-items: center; gap: .85rem; color: inherit; text-decoration: none; }
.lm-brand:hover { color: var(--lm-paper); }
.lm-brand-mark { width: 2.35rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--lm-copper); border-radius: 50%; color: var(--lm-copper-light); font-family: var(--lm-serif); font-size: 1.1rem; }
.lm-brand-copy { display: grid; line-height: 1.05; }
.lm-brand-copy strong { font-family: var(--lm-serif); font-size: 1.15rem; font-weight: 400; }
.lm-brand-copy small { margin-top: .25rem; color: rgba(244, 239, 229, .62); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lm-menu-toggle { display: none; width: 2.8rem; height: 2.8rem; padding: 0; border: 1px solid var(--lm-white-line); border-radius: 50%; color: inherit; background: transparent; cursor: pointer; }
.lm-menu-toggle span, .lm-menu-toggle::before, .lm-menu-toggle::after { content: ''; display: block; width: 1.1rem; height: 1px; margin: .25rem auto; background: currentColor; }
.lm-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); margin: 0; padding: 0; list-style: none; }
.lm-nav a { color: rgba(244, 239, 229, .76); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.lm-nav a:hover, .lm-nav .current-menu-item > a, .lm-nav .current-menu-ancestor > a { color: var(--lm-copper-light); }

.lm-hero { position: relative; overflow: hidden; color: var(--lm-paper); background: var(--lm-ink); }
.lm-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 16% 15%, rgba(200,111,50,.22), transparent 35%), linear-gradient(110deg, transparent 60%, rgba(255,255,255,.025)); }
.lm-hero-grid { position: relative; min-height: min(48rem, calc(100vh - 5.5rem)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 9vw, 8rem); }
.lm-hero-grid--text { grid-template-columns: minmax(0, 54rem); }
.lm-hero-grid--text .lm-hero-copy { max-width: 54rem; }
.lm-hero-copy { position: relative; z-index: 2; }
.lm-hero .lm-kicker, .lm-page-hero .lm-kicker, .lm-category-band .lm-kicker, .lm-article-header .lm-kicker, .lm-site-footer .lm-kicker { color: var(--lm-copper-light); }
.lm-hero-copy .lm-title a { color: inherit; text-decoration: none; }
.lm-hero-copy .lm-title a:hover { color: var(--lm-copper-light); }
.lm-hero-copy .lm-excerpt { max-width: 38rem; margin: 1.5rem 0 2rem; color: rgba(244,239,229,.72); }
.lm-hero-media { position: relative; min-height: 34rem; }
.lm-hero-media::before { content: ''; position: absolute; inset: 7% -8% -7% 12%; border: 1px solid rgba(229,165,111,.34); border-radius: 50% 50% 42% 58% / 55% 38% 62% 45%; }
.lm-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 45% 45% 1.5rem 1.5rem / 18% 18% 1.5rem 1.5rem; filter: saturate(.82) contrast(1.04); box-shadow: var(--lm-shadow); }
.lm-hero-index { position: absolute; right: -1rem; bottom: -2rem; color: rgba(244,239,229,.08); font-family: var(--lm-serif); font-size: clamp(7rem, 15vw, 14rem); line-height: 1; }

.lm-section { padding-block: var(--lm-space); }
.lm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); padding-bottom: 1.25rem; border-bottom: 1px solid var(--lm-line); }
.lm-section-link { flex: 0 0 auto; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lm-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.lm-card { min-width: 0; }
.lm-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 1.25rem; border-radius: var(--lm-radius); background: var(--lm-paper-deep); }
.lm-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.lm-card-media:hover img { transform: scale(1.04); }
.lm-card .lm-kicker { margin-bottom: .55rem; }
.lm-card-title { margin: 0; font-family: var(--lm-serif); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.lm-card-title a { text-decoration: none; }
.lm-card-meta { margin-top: .8rem; color: #69655f; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lm-card--placeholder .lm-card-media { display: grid; place-items: center; color: rgba(23,21,18,.35); font-family: var(--lm-serif); font-size: 4rem; }

.lm-category-band { color: var(--lm-paper); background: var(--lm-ink-soft); }
.lm-category-band .lm-section-head { border-color: var(--lm-white-line); }
.lm-category-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--lm-white-line); border: 1px solid var(--lm-white-line); }
.lm-category { min-height: 15rem; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 3vw, 2.75rem); color: inherit; background: var(--lm-ink-soft); text-decoration: none; transition: background .25s ease; }
.lm-category:hover { color: var(--lm-paper); background: #302a24; }
.lm-category span { color: var(--lm-copper-light); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lm-category strong { max-width: 12ch; font-family: var(--lm-serif); font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }

.lm-page-hero { padding-block: clamp(4rem, 9vw, 8rem); color: var(--lm-paper); background: var(--lm-ink); }
.lm-page-hero .lm-title { max-width: 15ch; }
.lm-page-description { max-width: 42rem; margin: 1.5rem 0 0; color: rgba(244,239,229,.7); }
.lm-archive { padding-block: var(--lm-space); }
.lm-pagination { margin-top: 4rem; }
.lm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.lm-pagination .page-numbers { min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding-inline: .75rem; border: 1px solid var(--lm-line); border-radius: 999px; text-decoration: none; }
.lm-pagination .current { color: #fff; background: var(--lm-copper); border-color: var(--lm-copper); }

.lm-article-header { padding-block: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem); color: var(--lm-paper); background: var(--lm-ink); }
.lm-breadcrumbs { margin-bottom: 2rem; color: rgba(244,239,229,.55); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lm-breadcrumbs a { color: inherit; }
.lm-article-header .lm-title { max-width: 15ch; }
.lm-article-deck { max-width: 45rem; margin: 1.5rem 0 0; color: rgba(244,239,229,.68); font-family: var(--lm-serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; }
.lm-article-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; color: rgba(244,239,229,.58); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lm-featured { width: min(calc(100% - 2rem), 68rem); margin: clamp(2rem, 5vw, 4rem) auto 0; }
.lm-featured img { width: 100%; max-height: 44rem; object-fit: cover; border-radius: var(--lm-radius); box-shadow: var(--lm-shadow); }
.lm-content-wrap { width: min(calc(100% - 2rem), var(--lm-reading)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); }
.lm-entry-content { font-family: var(--lm-serif); font-size: clamp(1.08rem, 1.02rem + .25vw, 1.22rem); }
.lm-entry-content > * { max-width: 100%; }
.lm-entry-content > * + * { margin-top: 1.45em; }
.lm-entry-content h2, .lm-entry-content h3, .lm-entry-content h4 { margin-top: 2.2em; margin-bottom: .65em; font-family: var(--lm-serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }
.lm-entry-content h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lm-entry-content h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lm-entry-content a { color: #995025; }
.lm-entry-content blockquote { margin-inline: 0; padding: .5rem 0 .5rem 1.5rem; border-left: 3px solid var(--lm-copper); color: rgba(23,21,18,.72); font-size: 1.25em; font-style: italic; }
.lm-entry-content figure { margin-inline: 0; }
.lm-entry-content img { border-radius: .75rem; }
.lm-entry-content table { width: 100%; border-collapse: collapse; font-family: var(--lm-sans); font-size: .95rem; }
.lm-entry-content th, .lm-entry-content td { padding: .75rem; border: 1px solid var(--lm-line); text-align: left; }
.lm-entry-content ul, .lm-entry-content ol { padding-left: 1.35em; }
.lm-post-nav { width: min(calc(100% - 2rem), var(--lm-container)); margin: 0 auto var(--lm-space); padding-top: 2rem; border-top: 1px solid var(--lm-line); }
.lm-post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.lm-post-nav a { display: block; text-decoration: none; }
.lm-post-nav .nav-next { text-align: right; }
.lm-post-nav .nav-subtitle { display: block; color: var(--lm-copper); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lm-post-nav .nav-title { display: block; margin-top: .45rem; font-family: var(--lm-serif); font-size: 1.35rem; line-height: 1.2; }

.lm-search-form { display: flex; max-width: 36rem; margin-top: 2rem; }
.lm-search-form input { min-width: 0; flex: 1; min-height: 3.25rem; padding: .7rem 1rem; border: 1px solid var(--lm-white-line); border-right: 0; border-radius: 999px 0 0 999px; color: var(--lm-paper); background: rgba(255,255,255,.06); }
.lm-search-form button { min-height: 3.25rem; padding: .7rem 1.2rem; border: 0; border-radius: 0 999px 999px 0; color: #fff; background: var(--lm-copper); cursor: pointer; }
.lm-empty { max-width: 42rem; padding: 2rem; border: 1px solid var(--lm-line); border-radius: var(--lm-radius); }

.lm-site-footer { padding-block: clamp(3rem, 7vw, 6rem) 2rem; color: var(--lm-paper); background: #0e0d0b; }
.lm-footer-top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--lm-white-line); }
.lm-footer-title { max-width: 14ch; margin: 0; font-family: var(--lm-serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.lm-footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.lm-footer-nav a { color: rgba(244,239,229,.68); font-size: .8rem; font-weight: 700; text-decoration: none; }
.lm-footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 2rem; color: rgba(244,239,229,.58); font-size: .72rem; letter-spacing: .05em; }

@media (max-width: 860px) {
  .lm-menu-toggle { display: block; }
  .lm-nav { position: absolute; inset: 100% 0 auto; display: none; padding: 1.5rem 1rem 2rem; background: var(--lm-ink); border-top: 1px solid var(--lm-white-line); }
  .lm-nav.is-open { display: block; }
  .lm-nav ul { width: min(100%, var(--lm-container)); margin-inline: auto; align-items: stretch; flex-direction: column; }
  .lm-nav a { display: block; padding: .75rem 0; }
  .lm-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .lm-hero-media { min-height: min(32rem, 80vw); }
  .lm-card-grid { grid-template-columns: repeat(2, 1fr); }
  .lm-category-list { grid-template-columns: 1fr; }
  .lm-category { min-height: 11rem; }
}

@media (max-width: 560px) {
  .lm-container { width: min(calc(100% - 1.25rem), var(--lm-container)); }
  .lm-header-inner { min-height: 4.75rem; }
  .lm-brand-copy small { display: none; }
  .lm-hero-grid { padding-block: 3rem 4rem; }
  .lm-hero-media { min-height: 22rem; }
  .lm-card-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lm-section-head, .lm-footer-bottom { align-items: flex-start; flex-direction: column; }
  .lm-footer-top { grid-template-columns: 1fr; }
  .lm-footer-nav ul { grid-template-columns: 1fr; }
  .lm-post-nav .nav-links { grid-template-columns: 1fr; }
  .lm-post-nav .nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
