/* ═══════════════════════════════════════════════════════════
   site.css — joshgelfman.com shared design system
   Single source of truth for design tokens, fonts, and
   base typography. Page-specific styles layer on top.
   ═══════════════════════════════════════════════════════════ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@300;400&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg:            #0a0a0a;
  --bg-elevated:   #111114;
  --bg-card:       #161619;

  /* Borders */
  --border:        #252528;
  --border-hover:  #3a3a3f;

  /* Text */
  --text:          #e8e6e1;
  --text-muted:    #8a8880;
  --text-dim:      #5a5850;

  /* Accent */
  --accent:        #b8860b;
  --accent-dim:    #8a7a62;
  --accent-glow:   rgba(184, 134, 11, 0.06);

  /* Semantic */
  --link:          #a8c0d0;

  /* Font stacks */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', sans-serif;
  --mono:   'JetBrains Mono', monospace;
}

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

/* ─── Base Typography ─── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}

/* ─── Shared Components ─── */

/* Page container */
.site-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Section label (monospace, uppercase, with leading dash) */
.site-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
}

/* Tag pill */
.site-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--accent-dim);
  border: 1px solid rgba(184, 134, 11, 0.2);
  padding: 0.1rem 0.4rem;
  margin-right: 0.25rem;
  margin-bottom: 0.2rem;
}

/* Theme pill (larger, for footer clusters) */
.site-theme-pill {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  cursor: default;
  transition: all 0.2s;
}
.site-theme-pill:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.site-theme-pill span {
  color: var(--text-dim);
  margin-left: 0.3rem;
}

/* Mono detail label */
.site-detail-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .site-page {
    padding: 2.5rem 1.25rem;
  }
}
