/*
Theme Name: Begines
Theme URI: https://rubenbegines.com
Author: Rubén Begines
Description: Blog y marca personal — diseño minimalista inspirado en arquitectura.
Version: 3.0
Text Domain: begines
*/

/* ═══════════════════════════════════════
   CUSTOM PROPERTIES
   ═══════════════════════════════════════ */
:root {
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F2F2F2;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --black: #0A0A0A;
  --magenta: #C2185B;
  --magenta-light: #E91E63;

  --bg: var(--white);
  --text: var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --border: var(--gray-200);
  --accent: var(--magenta);

  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --header-h: 64px;
  --section-pad: clamp(80px, 12vh, 140px);
  --max-w: 1280px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ═══════════════════════════════════════
   RESET
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
::selection { background: rgba(194,24,91,0.1); }

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; }
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 400; }
h4 { font-size: 1rem; font-weight: 500; }

.label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header .label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Over hero: white text */
.site-header:not(.scrolled) .site-logo,
.site-header:not(.scrolled) .main-nav a,
.site-header:not(.scrolled) .nav-toggle span {
  color: var(--white);
}
.site-header:not(.scrolled) .nav-toggle span {
  background: var(--white);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.3s;
}

.main-nav ul {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}

.main-nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--black);
}

.site-header:not(.scrolled) .main-nav a:hover,
.site-header:not(.scrolled) .main-nav a.active {
  color: var(--white);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  padding: 8px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

.nav-toggle span + span { margin-top: 6px; }

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 150;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .main-nav a {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--black) !important;
  }

  /* When nav open, always dark hamburger */
  .nav-toggle.open span { background: var(--black) !important; }
}

/* ═══════════════════════════════════════
   HERO — FULLSCREEN SLIDER
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--black);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) grayscale(15%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-title {
  color: var(--white);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1.0;
}

.hero-title span {
  display: block;
  font-weight: 300;
}

/* Slider indicators */
.hero-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-indicator {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.4s;
  padding: 0;
}

.hero-indicator.active {
  background: var(--white);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: clamp(24px, 4vw, 64px);
  z-index: 3;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ═══════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════ */
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}

.about-columns p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--gray-600);
  line-height: 1.8;
}

.about-columns p + p {
  margin-top: 1.4em;
}

@media (max-width: 768px) {
  .about-columns { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.project-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.8s var(--ease), filter 0.8s;
}

.project-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 40px);
  opacity: 0;
  transition: opacity 0.5s;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { aspect-ratio: 16/10; }
  .project-card__overlay { opacity: 1; }
}

/* ═══════════════════════════════════════
   TIMELINE — EXPERIENCIA & ESTUDIOS
   ═══════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Central line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-300);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 48px;
}

.timeline-item:last-child { margin-bottom: 0; }

/* Dot on the line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transform: translateX(-50%);
  z-index: 2;
  transition: background 0.3s;
}

.timeline-item:hover::before {
  background: var(--accent);
}

.timeline-left,
.timeline-right {
  padding: 0 clamp(24px, 4vw, 48px);
}

.timeline-left {
  text-align: right;
}

.timeline-right {
  text-align: left;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 2px;
}

.timeline-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Empty side */
.timeline-empty {
  display: block;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 44px;
    margin-bottom: 36px;
  }

  .timeline-item::before {
    left: 16px;
  }

  .timeline-left,
  .timeline-right {
    text-align: left;
    padding: 0;
  }

  .timeline-empty { display: none; }
}

/* ═══════════════════════════════════════
   BLOG
   ═══════════════════════════════════════ */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-entry {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--gray-100);
  transition: border-color 0.3s;
}

.blog-entry:first-child {
  border-top: 1px solid var(--gray-100);
}

.blog-entry:hover {
  border-color: var(--gray-300);
}

.blog-entry__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: 2px;
}

.blog-entry__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.6s var(--ease);
}

.blog-entry:hover .blog-entry__image img {
  transform: scale(1.04);
}

.blog-entry__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-entry__category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-entry__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  transition: color 0.2s;
}

.blog-entry:hover .blog-entry__title {
  color: var(--gray-600);
}

.blog-entry__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 40px;
  transition: color 0.2s;
}

.blog-more:hover { color: var(--accent); }

.blog-more::after {
  content: '→';
  transition: transform 0.2s;
}

.blog-more:hover::after { transform: translateX(4px); }

@media (max-width: 768px) {
  .blog-entry {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }

  .blog-entry__date {
    grid-column: 1 / -1;
    order: -1;
  }
}

/* ═══════════════════════════════════════
   SHOP / TIENDA
   ═══════════════════════════════════════ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.shop-card {
  border: 1px solid var(--gray-200);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s;
}

.shop-card:hover {
  border-color: var(--gray-400);
}

.shop-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card__icon .dot {
  width: 10px;
  height: 10px;
}

.shop-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.shop-card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.shop-card__link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.shop-card__link:hover { color: var(--accent); }
.shop-card__link::after { content: '→'; transition: transform 0.2s; }
.shop-card__link:hover::after { transform: translateX(4px); }

@media (max-width: 768px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* Forms (CF7 compatible) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
  transition: border-color 0.3s;
  margin-bottom: 8px;
  border-radius: 0;
  outline: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--black);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-400);
  font-weight: 300;
}

.wpcf7 textarea,
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 input[type="submit"],
.contact-form button[type="submit"] {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 48px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.wpcf7 input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
  background: var(--gray-800);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--gray-100);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════ */
.single-header {
  text-align: center;
  padding: calc(var(--header-h) + 80px) clamp(24px, 4vw, 64px) 48px;
  max-width: 760px;
  margin: 0 auto;
}

.single-header .label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 20px;
}

.single-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 20px;
}

.single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.single-featured {
  max-width: 960px;
  margin: 0 auto 60px;
  padding: 0 clamp(24px, 4vw, 64px);
}

.single-featured img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px) 80px;
}

.post-content p { margin-bottom: 1.4em; color: var(--gray-700); font-size: 1.05rem; }
.post-content h2 { margin: 2.5em 0 0.8em; font-size: 1.6rem; }
.post-content h3 { margin: 2em 0 0.6em; font-size: 1.25rem; }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(194,24,91,0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.post-content a:hover { text-decoration-color: var(--accent); }

.post-content blockquote {
  margin: 2em 0;
  padding: 16px 0 16px 28px;
  border-left: 2px solid var(--accent);
  font-size: 1.1rem;
  color: var(--gray-600);
  font-style: italic;
}

.post-content ul, .post-content ol { margin: 1.4em 0; padding-left: 1.5em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5em; color: var(--gray-700); }
.post-content img { margin: 2em 0; }

.post-content pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 1.5em 0;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--gray-100);
  padding: 2px 6px;
}

.post-content pre code { background: none; padding: 0; }

/* Author & nav */
.post-author {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--gray-100);
  max-width: 680px;
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}

.post-author img { width: 48px; height: 48px; border-radius: 50%; }
.post-author__name { font-weight: 500; font-size: 0.9rem; }
.post-author__bio { font-size: 0.8rem; color: var(--text-secondary); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--gray-100);
}

.post-nav__item { display: flex; flex-direction: column; gap: 4px; }
.post-nav__item--next { text-align: right; }
.post-nav__dir { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.post-nav__title { font-size: 0.95rem; font-weight: 400; transition: color 0.2s; }
.post-nav__title:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   BLOG INDEX
   ═══════════════════════════════════════ */
.page-header {
  text-align: center;
  padding: calc(var(--header-h) + 80px) 24px 60px;
}

.page-header .label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 16px;
}

.page-header h1 {
  font-weight: 300;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 0.95rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.blog-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.blog-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.8s var(--ease);
}

.blog-card:hover img { transform: scale(1.04); }

.blog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.65) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 40px);
}

.blog-card__category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta-light);
  margin-bottom: 6px;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  color: var(--white);
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 60px 0 0;
}

.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 0.85rem;
}

.pagination a:hover { background: var(--gray-50); }
.pagination .current { background: var(--black); color: var(--white); }

/* ═══════════════════════════════════════
   SEARCH / 404
   ═══════════════════════════════════════ */
.error-page, .no-results {
  text-align: center;
  padding: calc(var(--header-h) + 120px) 24px 120px;
}

.error-page h1, .no-results h1 { font-weight: 300; margin-bottom: 16px; }
.error-page p, .no-results p { color: var(--text-secondary); }

.error-page a {
  display: inline-flex; margin-top: 32px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--black); border-bottom: 1px solid var(--gray-300); padding-bottom: 2px;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 32px auto 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: transparent;
}

.search-form button {
  padding: 12px 24px;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════ */
.comments-area {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px) 80px;
}

.comments-title { font-weight: 300; font-size: 1.4rem; margin-bottom: 32px; }

.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.comment-author { font-weight: 500; font-size: 0.9rem; }
.comment-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.comment-body p { font-size: 0.9rem; color: var(--gray-600); }

.comment-respond label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
  background: transparent;
}

.comment-respond textarea { min-height: 100px; }

.comment-respond input[type="submit"] {
  background: var(--black); color: var(--white); border: none;
  padding: 12px 36px;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
