/* ============================================================
   ProJusticia — Main Stylesheet
   Design language: Editorial meets modern indie magazine
   Color palette: Deep navy + warm coral accent + paper off-white
   ============================================================ */

:root {
  /* Brand colors */
  --ink: #0b1020;           /* deep navy — primary text */
  --ink-800: #1a2240;
  --ink-600: #3d4770;
  --ink-400: #6b7299;
  --ink-200: #a8aecb;
  --ink-100: #d8dbe8;
  --ink-50: #f0f1f7;

  --coral: #f97316;         /* warm accent */
  --coral-dark: #ea580c;

  --paper: #fbf9f4;         /* background paper */
  --paper-alt: #f4f1e8;
  --white: #ffffff;

  --gold: #d4a24c;

  --success: #10b981;
  --error: #ef4444;

  /* Typography */
  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --gutter: clamp(16px, 3vw, 32px);
  --container-max: 1280px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06), 0 1px 3px rgba(11, 16, 32, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 16, 32, 0.08), 0 2px 4px rgba(11, 16, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 16, 32, 0.12), 0 4px 8px rgba(11, 16, 32, 0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -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; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--coral); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select {
  font-family: inherit; font-size: inherit; color: inherit;
  border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
  padding: 10px 14px; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 16, 32, 0.1);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}
@media (min-width: 960px) {
  .main-grid { grid-template-columns: 1fr 320px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}

/* Logo */
.site-logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 6px;
}
.site-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); display: inline-block;
  transform: translateY(-2px);
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  position: relative;
}
.primary-nav a:hover { background: var(--ink-50); color: var(--ink); }
.primary-nav a.active { color: var(--coral); }
.primary-nav a.active::after {
  content: ""; position: absolute; bottom: 2px; left: 12px; right: 12px;
  height: 2px; background: var(--coral); border-radius: 1px;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-btn, .menu-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-50); color: var(--ink);
  transition: background 0.2s;
}
.search-btn:hover, .menu-toggle:hover { background: var(--ink-100); }
.menu-toggle { display: none; }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0 auto 0 0;
  width: 300px; background: var(--paper);
  border-right: 1px solid var(--ink-100);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
  z-index: 200; padding: 24px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-menu nav a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 16px; font-weight: 500;
}
.mobile-menu .close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink-50); display: flex;
  align-items: center; justify-content: center;
}

/* Search Overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(11, 16, 32, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh; z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box {
  background: var(--paper); width: min(640px, 92vw);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s var(--ease-out);
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-input {
  width: 100%; padding: 20px 24px; font-size: 18px;
  border: none; border-bottom: 1px solid var(--ink-100);
  border-radius: 0; background: var(--paper);
}
.search-input:focus { box-shadow: none; }
.search-results { max-height: 300px; overflow-y: auto; }
.search-results .result-item {
  padding: 14px 24px; border-bottom: 1px solid var(--ink-50);
  cursor: pointer;
}
.search-results .result-item:hover { background: var(--ink-50); }
.search-results .result-title { font-weight: 600; margin-bottom: 4px; }
.search-results .result-meta { font-size: 12px; color: var(--ink-400); }
.search-empty { padding: 24px; text-align: center; color: var(--ink-400); }

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Hero Carousel ---------- */
.hero {
  padding: 32px 0 48px;
}
.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  min-height: 360px;
}
@media (min-width: 900px) {
  .hero-carousel { aspect-ratio: 21 / 9; min-height: 480px; }
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.7s var(--ease-in-out);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.hero-slide.active { opacity: 1; }

.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s var(--ease-in-out);
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }

.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 16, 32, 0.92) 0%,
    rgba(11, 16, 32, 0.6) 40%,
    rgba(11, 16, 32, 0.1) 80%,
    transparent 100%
  );
}

.hero-slide-content {
  position: relative; z-index: 2;
  color: var(--white);
  max-width: 800px;
  animation: fadeUp 0.8s var(--ease-out);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slide-content .cat-tag {
  display: inline-block;
  background: var(--coral); color: var(--white);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-slide-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15; font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--white);
}
.hero-slide-content p {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slide-meta {
  display: flex; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}

/* Carousel dots */
.hero-dots {
  position: absolute; bottom: 20px; right: 24px; z-index: 3;
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 28px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s, width 0.3s;
}
.hero-dots button.active {
  background: var(--coral);
  width: 40px;
}

/* Carousel arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

/* ---------- Section Headers ---------- */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800; letter-spacing: -0.01em;
}
.section-link {
  font-size: 13px; font-weight: 600;
  color: var(--ink-600); letter-spacing: 0.04em; text-transform: uppercase;
}
.section-link:hover { color: var(--coral); }

/* ---------- Article Cards ---------- */
.article-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.article-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card-image {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden;
}
.article-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.article-card:hover .article-card-image img { transform: scale(1.06); }
.article-card-image .cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--white);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.article-card-body { padding: 20px; }
.article-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25; font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  transition: color 0.2s;
}
.article-card:hover h3 { color: var(--coral); }
.article-card-excerpt {
  font-size: 14px; color: var(--ink-600);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 14px;
}
.article-card-meta {
  display: flex; gap: 12px;
  font-size: 12px; color: var(--ink-400);
  font-weight: 500;
}
.article-card-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-400); align-self: center;
}

/* Featured big card variant */
.article-card.featured-big {
  grid-column: span 1;
}
@media (min-width: 720px) {
  .article-card.featured-big { grid-column: span 2; }
  .article-card.featured-big .article-card-image { aspect-ratio: 16 / 9; }
  .article-card.featured-big h3 { font-size: clamp(22px, 2.2vw, 28px); }
}

/* List-style card (for sidebar) */
.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-list-item {
  display: flex; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--ink-100);
  transition: transform 0.2s;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { transform: translateX(2px); }
.article-list-thumb {
  width: 84px; height: 64px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.article-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list-info h4 {
  font-size: 14px; line-height: 1.35; font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-list-info h4 a:hover { color: var(--coral); }
.article-list-meta { font-size: 11px; color: var(--ink-400); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.category-list { display: flex; flex-direction: column; gap: 8px; }
.category-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-50);
  font-size: 14px; font-weight: 500;
}
.category-list a:last-child { border-bottom: none; }
.category-list .cat-count {
  background: var(--ink-50); color: var(--ink-600);
  padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.category-list a:hover .cat-count { background: var(--coral); color: var(--white); }

/* Newsletter widget */
.newsletter-widget {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.newsletter-widget h3 {
  font-family: var(--font-serif);
  font-size: 20px; margin-bottom: 8px;
  border: none; padding: 0; color: var(--white);
}
.newsletter-widget p {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 16px; line-height: 1.5;
}
.newsletter-widget form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-widget input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.newsletter-widget input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-widget .btn-submit {
  background: var(--coral); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.newsletter-widget .btn-submit:hover { background: var(--coral-dark); }

/* ---------- Article Detail Page ---------- */
.article-detail { padding: 24px 0 64px; }

.article-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-400);
  margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--ink-600); }
.article-breadcrumb a:hover { color: var(--coral); }
.article-breadcrumb .sep { color: var(--ink-200); }

.article-header { margin-bottom: 32px; }
.article-header .cat-badge {
  display: inline-block;
  background: var(--coral); color: var(--white);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}
.article-header .article-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 14px; color: var(--ink-600);
  align-items: center;
}
.article-header .author-line {
  display: flex; align-items: center; gap: 12px;
}
.article-header .author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink-600);
  font-family: var(--font-serif);
}

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}
.article-cover img { width: 100%; display: block; }
.article-cover-caption {
  font-size: 12px; color: var(--ink-400);
  font-style: italic; margin-bottom: 32px;
  text-align: center;
}

.article-content {
  max-width: 720px; margin: 0 auto;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.78;
}
.article-content p { margin-bottom: 22px; }
.article-content p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin-right: 10px;
  margin-top: 6px;
  color: var(--coral);
}

.article-tags {
  max-width: 720px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--ink-100);
}
.article-tags h3 {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-400); margin-bottom: 12px;
}
.article-tags .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags .tag {
  background: var(--ink-50); color: var(--ink-600);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.article-tags .tag:hover { background: var(--ink); color: var(--white); }

.article-share {
  max-width: 720px; margin: 24px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.article-share .share-label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-600); text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-share .share-icons { display: flex; gap: 8px; }
.article-share button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-50);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.article-share button:hover { background: var(--coral); color: var(--white); transform: scale(1.05); }

/* Related articles */
.related-section { padding: 48px 0 64px; }
.related-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------- Static pages ---------- */
.static-page { padding: 32px 0 64px; }
.static-hero {
  background: var(--ink); color: var(--white);
  padding: 64px 0 80px;
  margin-bottom: 48px;
  position: relative; overflow: hidden;
}
.static-hero::after {
  content: "";
  position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
  border-radius: 50%;
}
.static-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--white);
}
.static-hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
}

.static-content {
  max-width: 760px; margin: 0 auto;
}
.static-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 8px;
  display: inline-block;
}
.static-content p {
  font-size: 16px; line-height: 1.75;
  color: var(--ink-600); margin-bottom: 16px;
}
.static-content ul { margin: 12px 0 16px 24px; }
.static-content li { margin-bottom: 8px; color: var(--ink-600); }

/* About page team grid */
.team-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 24px;
}
.team-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--ink-100);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--ink), var(--coral));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700;
  font-family: var(--font-serif); font-size: 28px;
}
.team-card h4 { font-weight: 700; margin-bottom: 4px; font-size: 16px; }
.team-card .role { font-size: 13px; color: var(--ink-400); }

/* Contact form */
.contact-info {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 48px;
}
.contact-card {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
}
.contact-card h3 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-400); margin-bottom: 8px;
}
.contact-card p { font-size: 15px; color: var(--ink); line-height: 1.5; }

.contact-form {
  max-width: 560px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--ink-100);
}
.contact-form .form-row {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
@media (max-width: 520px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-600); margin-bottom: 6px;
}
.contact-form input, .contact-form textarea { width: 100%; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn-primary {
  margin-top: 16px;
  background: var(--ink); color: var(--white);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.contact-form .btn-primary:hover { background: var(--coral); transform: translateY(-1px); }

/* ---------- Category Page ---------- */
.category-header {
  padding: 40px 0 24px;
  text-align: center;
}
.category-header .cat-name {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--coral);
}
.category-header .cat-count {
  font-size: 14px; color: var(--ink-400);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-200);
  padding: 64px 0 24px;
  margin-top: 64px;
}
.footer-inner {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-brand .site-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-200); margin-bottom: 20px;
  max-width: 360px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-200);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--coral); color: var(--white); transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--ink-200);
  transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover { color: var(--coral); transform: translateX(2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--ink-400);
}
.footer-bottom a { color: var(--ink-200); }
.footer-bottom a:hover { color: var(--coral); }

/* ---------- Utilities ---------- */
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

/* Lazy-loading placeholder */
img[loading="lazy"] { background: var(--ink-100); }

/* Skeleton (optional loading state) */
.skeleton {
  background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-50) 50%, var(--ink-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
