/* ═══════════════════════════════════════
   Base — Reset, Typography, Utilities
   ═══════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

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

ul { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ─── Typography Helpers ─── */
.mono { font-family: var(--mono); }

/* ─── Container ─── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ─── Section ─── */
section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0.75rem 0 1.5rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ─── Grids ─── */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .grid-3col { grid-template-columns: repeat(2, 1fr); }
  .grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-3col { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-2);
  font-size: 0.85rem;
}

/* ─── Reveal Animation Base ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* ─── Filter Bar ─── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--heading);
}
