/*
Theme Name: Kerchak
Theme URI: https://kerchak.com
Author: Kerchak
Description: Tema educativo para bachillerato y divulgación científica. Diseño editorial con sistema de colores por materia.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kerchak
Tags: blog, education, two-columns, right-sidebar, custom-menu, featured-images
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:           #f8f7f2;
  --bg-card:      #ffffff;
  --ink:          #1a1a2e;
  --ink-soft:     #5a5a7a;
  --ink-muted:    #9898b0;
  --indigo:       #3d4f7c;
  --indigo-dark:  #1a2545;
  --amber:        #e8a020;
  --border:       #e2e0d8;
  --grid-color:   rgba(61,79,124,0.06);
  --radius-card:  12px;
  --radius-lg:    16px;
  --shadow-card:  0 4px 24px rgba(61,79,124,0.08);
  --shadow-hover: 0 8px 40px rgba(61,79,124,0.14);

  /* Category colors */
  --cat-matematicas:  #6b4fa0;
  --cat-fisica:       #3d7cbf;
  --cat-biologia:     #2e8b57;
  --cat-historia:     #b85c38;
  --cat-quimica:      #d4a017;
  --cat-filosofia:    #7c5c8a;
  --cat-naturales:    #4a8c4a;
  --cat-lengua:       #c04060;
  --cat-divulgacion:  #2a8a8a;
  --cat-selectividad: #3d4f7c;
  --cat-default:      #607080;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.content-area { padding: 48px 0 64px; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .primary-sidebar { display: none; }
}
@media (max-width: 768px) {
  .site-container { padding: 0 16px; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--indigo);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.site-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-name {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}
.site-name .k-accent { color: var(--amber); }
.site-tagline {
  font-family: 'Source Serif 4', serif;
  font-size: 11px;
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

/* Header search */
.header-search-wrap {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.header-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}
.header-search-form:focus-within {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
.header-search-form input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: white;
  min-width: 0;
}
.header-search-form input[type="search"]::placeholder {
  color: rgba(255,255,255,0.45);
}
.header-search-form button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 15px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.header-search-form button:hover { color: white; }

/* Header nav */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.main-nav ul li a {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 7px 13px;
  border-radius: 6px;
  transition: all 0.2s;
  display: block;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 22px;
  padding: 6px;
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--indigo-dark);
    padding: 12px 16px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 300;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul li a { padding: 11px 14px; }
  .header-search-wrap { max-width: none; }
  .header-right { gap: 8px; }
}
@media (max-width: 600px) {
  .site-tagline { display: none; }
  .header-search-wrap { display: none; }
}

/* ============================================================
   CATEGORY STRIPE
   ============================================================ */
.category-stripe { background: var(--amber); }
.cat-strip-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-strip-inner a {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.65);
  padding: 8px 18px;
  white-space: nowrap;
  display: block;
  border-right: 1px solid rgba(0,0,0,0.08);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: background 0.15s;
}
.cat-strip-inner a:hover { background: rgba(0,0,0,0.08); color: #000; }

/* ============================================================
   FEATURED POST
   ============================================================ */
.featured-post {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.featured-post:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.featured-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
}
.featured-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.4s;
}
.featured-post:hover .featured-image-wrap img { opacity: 1; transform: scale(1.03); }
.featured-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--amber);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
}
.featured-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.featured-title { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; line-height: 1.3; }
.featured-title a { color: var(--ink); transition: color 0.2s; }
.featured-title a:hover { color: var(--indigo); }
.featured-excerpt { font-size: 15px; line-height: 1.7; color: var(--ink-soft); font-style: italic; }
@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-image-wrap { min-height: 200px; }
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   POST CARDS GRID
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.4s ease both;
}
.post-card:nth-child(2) { animation-delay: 0.07s; }
.post-card:nth-child(3) { animation-delay: 0.14s; }
.post-card:nth-child(4) { animation-delay: 0.21s; }
.post-card:hover {
  box-shadow: 0 6px 28px rgba(61,79,124,0.1);
  transform: translateY(-3px);
  border-color: transparent;
}
.card-thumbnail {
  height: 140px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .card-thumbnail img { transform: scale(1.05); }
.card-thumbnail .no-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.card-side-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  z-index: 2;
}
.card-body {
  padding: 18px 18px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-title { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.4; }
.card-title a { color: var(--ink); transition: color 0.2s; }
.card-title a:hover { color: var(--indigo); }
.card-excerpt { font-size: 13px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-date { font-family: 'Outfit', sans-serif; font-size: 11px; color: var(--ink-muted); }
.card-read { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--indigo); font-weight: 500; }

/* ============================================================
   POST META & CATEGORY TAG
   ============================================================ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
}
.post-meta .sep { color: var(--border); }
.post-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.post-category-tag .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.posts-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.posts-pagination .page-numbers {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-soft);
  transition: all 0.2s;
}
.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover { background: var(--indigo); color: white; border-color: var(--indigo); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.primary-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 84px; }
.widget { background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border); padding: 24px; }
.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Search widget */
.widget-search .search-form { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.widget-search .search-form input[type="search"] { flex: 1; padding: 10px 14px; font-family: 'Source Serif 4', serif; font-size: 14px; background: transparent; border: none; outline: none; color: var(--ink); }
.widget-search .search-form button { padding: 10px 14px; background: var(--indigo); border: none; color: white; cursor: pointer; font-size: 15px; transition: background 0.2s; }
.widget-search .search-form button:hover { background: var(--indigo-dark); }

/* Formula widget */
.widget-formula { background: var(--indigo); border-color: var(--indigo); color: white; }
.widget-formula .widget-title { color: rgba(255,255,255,0.45); border-bottom-color: rgba(255,255,255,0.08); }
.formula-display { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 500; color: var(--amber); text-align: center; padding: 16px 0 8px; letter-spacing: 1px; }
.formula-desc { font-family: 'Source Serif 4', serif; font-size: 13px; font-style: italic; color: rgba(255,255,255,0.6); text-align: center; line-height: 1.5; }
.formula-subject { font-family: 'Outfit', sans-serif; font-size: 10px; color: rgba(255,255,255,0.3); text-align: center; margin-top: 10px; text-transform: uppercase; letter-spacing: 1.5px; }

/* Category list widget */
.widget-categories ul { display: flex; flex-direction: column; gap: 2px; }
.widget-categories ul li { padding: 0; }
.widget-categories ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s;
}
.widget-categories ul li a:hover { background: var(--bg); }
.cat-count-badge { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-muted); background: var(--bg); padding: 2px 7px; border-radius: 10px; }

/* Recent posts widget */
.widget-recent-posts ul { display: flex; flex-direction: column; gap: 14px; }
.widget-recent-posts ul li { display: flex; gap: 12px; padding: 4px; border-radius: 6px; transition: background 0.15s; }
.widget-recent-posts ul li:hover { background: var(--bg); }
.recent-thumb { width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-info { flex: 1; }
.recent-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-date { font-family: 'Outfit', sans-serif; font-size: 11px; color: var(--ink-muted); margin-top: 4px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 20px rgba(61,79,124,0.05); }
.single-hero { width: 100%; max-height: 420px; overflow: hidden; }
.single-hero img { width: 100%; height: 420px; object-fit: cover; }
.single-content-inner { padding: 48px 56px 56px; }
@media (max-width: 768px) { .single-content-inner { padding: 28px 20px 36px; } }
.single-header-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.single-title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 16px; }
.single-intro { font-size: 18px; line-height: 1.8; color: var(--ink-soft); font-style: italic; margin-bottom: 36px; padding-left: 20px; border-left: 3px solid var(--amber); }

/* Entry content */
.entry-content { font-size: 16px; line-height: 1.9; color: var(--ink); }
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { font-size: clamp(18px, 2.5vw, 24px); margin: 2em 0 0.8em; padding-top: 0.5em; border-top: 1px solid var(--border); }
.entry-content h3 { font-size: clamp(16px, 2vw, 20px); margin: 1.6em 0 0.6em; }
.entry-content ul, .entry-content ol { margin: 1em 0 1.4em 1.5em; display: flex; flex-direction: column; gap: 0.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--indigo); border-bottom: 1px solid rgba(61,79,124,0.3); transition: border-color 0.2s; }
.entry-content a:hover { border-color: var(--indigo); }
.entry-content strong { font-weight: 700; }
.entry-content blockquote { margin: 1.5em 0; padding: 20px 24px; border-left: 3px solid var(--amber); background: rgba(232,160,32,0.05); border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-soft); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.entry-content th { background: var(--indigo); color: white; font-family: 'Outfit', sans-serif; font-weight: 600; padding: 10px 14px; text-align: left; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: rgba(61,79,124,0.03); }

/* Formula/callout shortcodes */
.formula-box { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--indigo); border-radius: 0 10px 10px 0; padding: 20px 28px; margin: 28px 0; font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--indigo); text-align: center; overflow-x: auto; }
.callout { background: rgba(61,79,124,0.05); border: 1px solid rgba(61,79,124,0.15); border-radius: 10px; padding: 20px 24px; margin: 24px 0; display: flex; gap: 14px; }
.callout-icon { font-size: 20px; flex-shrink: 0; }
.callout-body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* TOC */
.toc-list { display: flex; flex-direction: column; gap: 4px; }
.toc-list a { font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--ink-soft); padding: 7px 10px; border-radius: 5px; transition: background 0.15s, color 0.15s; display: block; }
.toc-list a:hover, .toc-list a.active { background: rgba(61,79,124,0.07); color: var(--indigo); font-weight: 600; }

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.share-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); color: white; }
.share-btn svg { width: 16px; height: 16px; fill: white; flex-shrink: 0; }
.share-btn.whatsapp  { background: #25D366; }
.share-btn.facebook  { background: #1877F2; }
.share-btn.twitter   { background: #000000; }
.share-btn.telegram  { background: #229ED9; }
.share-btn.pinterest { background: #E60023; }
.share-btn.email     { background: #607080; }
.share-btn.copy-link { background: var(--indigo); }
.share-btn.copy-link.copied { background: #2e8b57; }

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.nav-previous, .nav-next { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; transition: all 0.2s; display: block; }
.nav-previous:hover, .nav-next:hover { border-color: var(--indigo); box-shadow: 0 4px 16px rgba(61,79,124,0.08); }
.nav-next { text-align: right; }
.nav-label { font-family: 'Outfit', sans-serif; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-muted); margin-bottom: 6px; }
.nav-title { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* ============================================================
   TAGS
   ============================================================ */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.tag-item { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); color: var(--ink-soft); transition: all 0.2s; }
.tag-item:hover { background: var(--indigo); color: white; border-color: var(--indigo); }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header { background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px 36px; margin-bottom: 32px; border: 1px solid var(--border); display: flex; align-items: center; gap: 20px; }
.archive-icon { font-size: 40px; flex-shrink: 0; }
.archive-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.archive-desc { font-size: 14px; color: var(--ink-soft); margin-top: 6px; font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .site-name { font-size: 24px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.4); max-width: 260px; }
.footer-col-title { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-menu { display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { font-family: 'Outfit', sans-serif; font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-menu a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-family: 'Outfit', sans-serif; font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-love { font-family: 'Source Serif 4', serif; font-size: 12px; font-style: italic; color: rgba(255,255,255,0.2); }

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute!important; height: 1px; width: 1px; overflow: hidden; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media print {
  .site-header, .primary-sidebar, .category-stripe, .site-footer, .post-navigation, .share-section { display: none; }
  body { background: white; font-size: 12pt; }
  .single-content-inner { padding: 0; }
}
