/*
Theme Name: Footwear Plus Studio
Theme URI: https://footwearplusstudio.com
Author: Footwear Plus Studio
Description: Lean WordPress theme for fashion and footwear publishing. Fast, clean and crawlable.
Version: 1.11.0
Requires at least: 6.4
Tested up to: 6.9.1
Requires PHP: 8.1
License: Proprietary
Text Domain: footwearplus
Tags: blog, magazine, fashion, minimal, responsive
*/

:root {
  --bg: #f6f1ea;
  --surface: #fbf7f2;
  --surface-solid: #fffdf9;
  --surface-soft: #ece3d7;
  --text: #141210;
  --muted: #625b53;
  --line: rgba(20, 18, 16, 0.08);
  --line-strong: rgba(20, 18, 16, 0.15);
  --accent: #8a6a4a;
  --accent-2: #c7b49b;
  --accent-soft: rgba(138, 106, 74, 0.08);
  --shadow: 0 16px 36px rgba(20, 18, 16, 0.045);
  --container: 1180px;
  --container-narrow: 760px;
  --radius: 20px;
  --radius-sm: 14px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.72;
  background: linear-gradient(180deg, #fbfaf8 0%, var(--bg) 22%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-family: var(--serif);
  font-weight: 700;
  text-wrap: balance;
}
button, input, textarea, select { font: inherit; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, var(--container-narrow)); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: #fff;
  z-index: 999;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(12px) saturate(120%);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  padding: 0.95rem 0 0.9rem;
}
.site-branding a {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.12rem, 1.55vw, 1.34rem);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  border-color: var(--accent);
  color: var(--text);
}

.breadcrumb-wrap {
  border-bottom: 1px solid var(--line);
  background: rgba(253, 251, 248, 0.82);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
}
.breadcrumbs .is-current span { color: var(--text); }

.site-main { min-height: 68vh; }
.page-shell { padding: 1.9rem 0 4.2rem; }
.page-shell__inner { display: grid; gap: 1.2rem; }
.page-intro,
.archive-head__description,
.prose { color: var(--muted); }
.archive-head { padding-top: 1.85rem; }
.archive-head__inner { display: grid; gap: 0.65rem; }
.archive-head h1 { font-size: clamp(2.4rem, 4.3vw, 3.6rem); color: var(--text); }

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 1.15rem;
  align-items: stretch;
}
.story-stack {
  display: grid;
  gap: 1.1rem;
}
.lead-story {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
.lead-story__content,
.lead-story__media,
.story-card,
.story-brief {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 1px);
  overflow: hidden;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  position: relative;
}
.lead-story__content {
  background: linear-gradient(180deg, rgba(255, 254, 253, 0.98) 0%, rgba(250, 247, 243, 0.98) 100%);
}
.story-card__body,
.story-brief__body {
  background: linear-gradient(180deg, rgba(255, 254, 253, 0.98) 0%, rgba(249, 246, 242, 0.98) 100%);
}
.lead-story__content {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
}
.lead-story__content::before,
.story-card__body::before,
.story-brief__body::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}
/* brief cards are narrow: drop the decorative bar to give titles more room */
.story-brief__body::before {
  display: none;
}
.lead-story__title,
.story-brief__title,
.story-card__title {
  color: var(--text);
}
.story-brief__body {
  background: var(--surface-solid);
}
.story-card__body {
  background: var(--surface-solid);
}
.lead-story__meta,
.story-card__meta,
.story-brief__meta,
.single-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.lead-story__eyebrow,
.story-card__eyebrow,
.story-brief__eyebrow,
.single-entry__eyebrow {
  color: var(--accent);
  font-weight: 700;
}
.lead-story__title {
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  max-width: 24ch;
  line-height: 1.09;
}
.lead-story__excerpt {
  max-width: 46ch;
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}
.lead-story__media,
.story-card__media,
.story-card__placeholder,
.story-brief__media,
.story-brief__placeholder {
  background: var(--surface-soft);
}
.lead-story__media img,
.lead-story__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 320ms ease;
  display: block;
}

.story-brief {
  display: grid;
  grid-template-columns: minmax(145px, 168px) minmax(0, 1fr);
}
.story-brief__media,
.story-brief__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}
.story-brief__media img,
.story-brief__placeholder {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 300ms ease;
}
.story-brief__body {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1.15rem 1.05rem;
}
.story-brief__title {
  font-size: clamp(1.24rem, 1.8vw, 1.58rem);
  line-height: 1.16;
}
.story-brief__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.story-list {
  display: grid;
  gap: 1rem;
}
.story-card {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
}
.story-card--compact {
  grid-template-columns: 1fr;
}
.story-card__media,
.story-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}
.story-card__media img,
.story-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 300ms ease;
}
.story-card--compact .story-card__media img,
.story-card--compact .story-card__placeholder {
  min-height: 350px;
}
.story-card__body {
  display: grid;
  align-content: center;
  gap: 0.82rem;
  padding: 1.35rem 1.25rem 1.4rem;
}
.story-card__title {
  font-size: clamp(1.3rem, 1.85vw, 1.62rem);
  line-height: 1.16;
}
.story-card--compact .story-card__title {
  font-size: clamp(1.34rem, 1.9vw, 1.72rem);
}
.story-card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card,
.story-brief,
.lead-story__content,
.lead-story__media,
.entry-nav__link,
.site-nav a,
.term-chip,
.pagination a,
.pagination span {
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.story-card:hover,
.story-brief:hover,
.lead-story__content:hover,
.lead-story__media:hover,
.entry-nav__link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px rgba(21, 19, 17, 0.055);
  transform: translateY(-2px);
}
.story-card:hover .story-card__media img,
.story-brief:hover .story-brief__media img,
.lead-story:hover .lead-story__media img {
  transform: scale(1.02);
}

.single-entry { padding: 2.5rem 0 4.35rem; }
.single-entry__header {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 0;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.single-entry__header h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  max-width: 18ch;
  line-height: 1.08;
}
.single-entry__cover {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}
.single-entry__cover figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.single-entry__cover img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  background: var(--surface-contrast);
}
.prose {
  font-size: 1.04rem;
  color: var(--text);
}
.single-entry__content {
  padding: clamp(1.25rem, 2vw, 1.6rem) 0 0;
}
.prose > *:first-child { margin-top: 0; }
.prose > p:first-of-type {
  color: var(--text);
  font-size: 1.12rem;
}
.prose p,
.prose li { color: var(--text); }
.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  margin: 2.15rem 0 0.95rem;
  line-height: 1.12;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.prose img {
  border-radius: calc(var(--radius) - 4px);
}
.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.8rem;
}
.term-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.1rem 0.74rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 253, 0.96);
  color: var(--text);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.term-chip:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.entry-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.entry-nav__link {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 254, 253, 0.88);
}
.entry-nav__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.entry-nav__link strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.13;
}
.is-next {
  text-align: right;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.15rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
}
.button-link:hover { color: #fff; opacity: 0.92; }
.not-found {
  display: grid;
  gap: 1rem;
  padding-block: 3rem;
}
.not-found h1 { font-size: clamp(2rem, 5vw, 3.6rem); }

.pagination { margin-top: 0.4rem; }
.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 253, 0.88);
}
.pagination .current {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  box-shadow: 0 12px 24px rgba(21, 19, 17, 0.14);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #12100f;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0 1.9rem;
}
.site-footer__meta,
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: rgba(255, 249, 243, 0.74);
  font-size: 0.85rem;
}
.site-footer a:hover { color: #fff; }


.archive-head__inner,
.page-shell__inner {
  gap: 1.25rem;
}

.story-card__title a,
.story-brief__title a,
.lead-story__title a,
.single-entry__header h1 {
  text-wrap: pretty;
}

.single-entry__header .single-entry__excerpt {
  max-width: 52ch;
  margin: 0;
  font-size: 1.07rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 1200px) {
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header__inner,
  .site-footer__inner,
  .entry-nav {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    gap: 0.3rem 0.9rem;
  }

  .story-grid,
  .story-card,
  .story-brief {
    grid-template-columns: 1fr;
  }

  .lead-story__title,
  .single-entry__header h1 {
    max-width: none;
  }

  .story-card__media img,
  .story-card__placeholder,
  .story-card--compact .story-card__media img,
  .story-card--compact .story-card__placeholder,
  .story-brief__media img,
  .story-brief__placeholder,
  .lead-story__media img,
  .lead-story__placeholder {
    min-height: 240px;
  }

  .is-next {
    text-align: left;
  }
}


@media (prefers-color-scheme: light) {
  body { background-color: var(--bg); }
}


/* ═══════════════════════════════════════════════════════════════
   SPRINT 11 — Home sections: noticias + mujer + hombre
═══════════════════════════════════════════════════════════════ */

/* Separación entre secciones de la home */
.page-shell--front .page-shell__inner {
  display: grid;
  gap: 3rem;
}

/* Cada bloque de sección */
.home-section {
  display: grid;
  gap: 1.25rem;
}

/* Hero: sin separador visual encima */
.home-section--hero {
  gap: 1.15rem;
}

/* Cabecera de sección: título a la izquierda, "Ver todo" a la derecha */
.home-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-strong);
}

.home-section__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.home-section__all {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 160ms ease;
}
.home-section__all:hover { color: var(--text); }

/* Pie de sección noticias */
.section-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}
.section-footer__link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 160ms ease;
}
.section-footer__link:hover { color: var(--text); }

/* Grid 2 columnas para las noticias extra */
.story-grid--two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Grid 4 columnas para mujer/hombre */
.story-grid--four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive: 4 col → 2 col en pantallas medianas */
@media (max-width: 1120px) {
  .story-grid--four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive: 2 col → 1 col en móvil */
@media (max-width: 780px) {
  .story-grid--two-up,
  .story-grid--four-up {
    grid-template-columns: 1fr;
  }
  .home-section__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .page-shell--front .page-shell__inner {
    gap: 2rem;
  }
}
