/* AppRift — Editorial Digital-Native Design */
/* Precision geometry meets warm readability */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&display=swap');

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

:root {
  /* Brand */
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-50: #eff6ff;

  /* Content type accents */
  --cyan: #0891b2;
  --cyan-light: #cffafe;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --emerald: #059669;
  --emerald-light: #d1fae5;

  /* Neutrals */
  --gray-950: #0a0a0f;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  /* Semantic */
  --text: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --bg: var(--white);
  --bg-subtle: var(--gray-50);
  --border: var(--gray-200);
  --border-light: var(--gray-100);

  /* Typography */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --container: 1280px;
  --gutter: 24px;
  --section-gap: 64px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

html {
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

.section { padding: var(--section-gap) 0; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 320px;
    gap: 48px;
  }
}

/* ===== Header ===== */
.site-header {
  background: var(--gray-900);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity var(--duration) var(--ease);
}

.logo-link:hover { opacity: 0.85; }

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 1px;
  transform: translateY(4px);
}

.header-search {
  display: none;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 0 14px;
  height: 38px;
  gap: 8px;
  transition: all var(--duration) var(--ease);
  min-width: 240px;
}

.header-search:focus-within {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.header-search svg {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.header-search input {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 100%;
  outline: none;
}

.header-search input::placeholder { color: var(--gray-500); }

@media (min-width: 768px) {
  .header-search { display: flex; }
}

/* Navigation */
.main-nav {
  background: var(--gray-950);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav ul::-webkit-scrollbar { display: none; }

.main-nav a,
.main-nav summary {
  display: block;
  padding: 12px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

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

.main-nav a.active {
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-caret {
  width: 14px;
  height: 14px;
  transition: transform var(--duration) var(--ease);
}

.nav-dropdown[open] .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--gray-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 6px;
  z-index: 100;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: var(--gray-300);
  border-radius: var(--r-sm);
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

/* ===== Category Badges ===== */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.4;
}

.badge-review { background: var(--cyan-light); color: var(--cyan); }
.badge-comparison { background: var(--red-light); color: var(--red); }
.badge-guide { background: var(--amber-light); color: var(--amber); }
.badge-how-to { background: var(--emerald-light); color: var(--emerald); }

/* ===== Hero ===== */
.hero {
  padding: 40px 0 0;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}

.hero-card:hover {
  box-shadow: var(--shadow-lg);
}

.hero-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.hero-card:hover .hero-image img { transform: scale(1.03); }

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--gray-100) 50%, var(--cyan-light) 100%);
}

.hero-body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-body h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-body h2 a:hover { color: var(--blue); }

.hero-body p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 1.1fr 1fr;
  }
  .hero-image { aspect-ratio: auto; min-height: 320px; }
  .hero-body {
    padding: 36px 36px 40px;
    justify-content: center;
    gap: 14px;
  }
  .hero-body h2 { font-size: 2rem; }
}

/* ===== Article Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.article-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

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

.card-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-50), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--gray-300);
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card-body h3 a:hover { color: var(--blue); }

.card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-meta-sep {
  width: 3px;
  height: 3px;
  background: var(--gray-300);
  border-radius: 50%;
}

/* ===== Post List (horizontal cards) ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.post-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}

@media (min-width: 768px) {
  .post-item {
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
  }
}

.post-item-image {
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.post-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item-body { display: flex; flex-direction: column; gap: 6px; }

.post-item-body .badge { align-self: flex-start; }

.post-item-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.post-item-body h3 a:hover { color: var(--blue); }

.post-item-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--text);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-header a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-header a:hover { color: var(--blue-dark); }

/* ===== Page Headers ===== */
.page-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 640px;
}

/* ===== Article Detail ===== */
.article-header {
  padding: 48px 0 32px;
}

.article-header .badge { margin-bottom: 14px; }

.article-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 800px;
}

@media (min-width: 768px) {
  .article-header h1 { font-size: 2.75rem; }
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-meta svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

.article-featured-image {
  margin-bottom: 40px;
}

.article-featured-image img {
  width: 100%;
  border-radius: var(--r-xl);
  aspect-ratio: 2/1;
  object-fit: cover;
}

.article-featured-placeholder {
  aspect-ratio: 2/1;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--gray-100) 50%, var(--cyan-light) 100%);
}

/* Prose (article body) */
.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  max-width: none;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.prose p { margin-bottom: 20px; }

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--blue-dark); }

.prose ul, .prose ol {
  margin-bottom: 20px;
  padding-left: 1.5em;
}

.prose li { margin-bottom: 6px; }

.prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--blue-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 20px 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
}

.prose th {
  text-align: left;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid var(--text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.prose img {
  border-radius: var(--r-md);
  margin: 24px 0;
}

/* ===== Related Articles ===== */
.related-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid var(--text);
}

.related-section h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar-section h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--duration) var(--ease);
}

.sidebar-item:last-child { border-bottom: none; }

.sidebar-item:hover { color: var(--blue); }

.sidebar-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-item-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ===== Category Cards ===== */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all var(--duration) var(--ease);
}

.category-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.category-card-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: all var(--duration) var(--ease);
  color: var(--text-secondary);
}

.page-btn:hover,
.page-num:hover {
  background: var(--gray-100);
  color: var(--text);
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-num.active {
  background: var(--blue);
  color: var(--white);
}

.page-ellipsis {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* ===== Search ===== */
.search-form {
  max-width: 560px;
  margin-bottom: 32px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0 18px;
  height: 52px;
  gap: 12px;
  transition: border-color var(--duration) var(--ease);
}

.search-input-wrap:focus-within { border-color: var(--blue); }

.search-input-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

.search-input-wrap input::placeholder { color: var(--gray-400); }

/* ===== Static Pages ===== */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}

.static-page h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

/* ===== View All link ===== */
.view-all {
  text-align: center;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

/* ===== Empty States ===== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

.empty-state p { font-size: 1.0625rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 0;
  margin-top: var(--section-gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

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

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer-brand .logo-link {
  font-size: 1.25rem;
}

.footer-section h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.footer-section ul { list-style: none; }

.footer-section li { margin-bottom: 10px; }

.footer-section a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color var(--duration) var(--ease);
}

.footer-section a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  font-size: 0.75rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom a {
  color: var(--gray-500);
}

.footer-bottom a:hover { color: var(--gray-300); }

/* ===== Home spacers ===== */
.home-grid-section {
  margin-top: 48px;
}

.home-list-section {
  margin-top: 48px;
}

/* ===== Utility ===== */
.mt-0 { margin-top: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
