/* ==========================================================================
   Filamentguides — design tokens
   Palette: print-bed graphite + filament orange + blueprint cyan
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (specs)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #14171c;
  --surface: #1b1f26;
  --surface-raised: #212630;
  --line: #2c323d;
  --text: #e8e6e1;
  --text-muted: #9a9fa8;
  --accent: #e8590c;
  --accent-soft: #e8590c22;
  --blue: #4a9ebb;
  --blue-soft: #4a9ebb22;
  --radius: 3px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, var(--surface) 0%, var(--bg) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { color: var(--text); }
p.lede { color: var(--text-muted); }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 23, 28, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .nozzle {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 10px 2px var(--accent-soft);
  flex-shrink: 0;
}
.logo span.dim { color: var(--text-muted); font-weight: 500; }
nav.main-nav { display: flex; gap: 28px; font-size: 0.92rem; }
nav.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
nav.main-nav a:hover, nav.main-nav a:focus-visible { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 15ch;
  color: #fff;
}
.hero p.lede {
  max-width: 52ch;
  font-size: 1.05rem;
  margin-top: 18px;
}

/* ---------- section labels ---------- */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
}

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 24px;
}
.filter-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover, .filter-pill:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}
.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- job cards (signature element) ---------- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  padding: 40px 0 64px;
}
.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.job-card:hover, .job-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}
/* corner brackets, like a viewport crop */
.job-card::before, .job-card::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.job-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.job-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.job-card:hover::before, .job-card:hover::after,
.job-card:focus-visible::before, .job-card:focus-visible::after { opacity: 1; }

.job-card .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.job-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.job-card .dek {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
  margin-bottom: 18px;
}
.job-stats {
  display: flex;
  gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.job-stats b { color: var(--text); font-weight: 500; }

/* ---------- ad slots ---------- */
.promo-slot {
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 18px;
  margin: 40px 0;
}
.promo-slot .tag {
  color: var(--blue);
}

/* ---------- article ---------- */
.article-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.article-header h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: #fff;
  max-width: 22ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.article-meta b { color: var(--accent); font-weight: 500; }

.article-body {
  max-width: 68ch;
  padding: 40px 0 0;
}
.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  color: #fff;
}
.article-body h2 .num {
  color: var(--accent);
  margin-right: 10px;
}
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol {
  padding-left: 1.3em;
  margin: 0 0 1.1em;
}
.article-body li { margin-bottom: 0.5em; }

.callout {
  border-left: 2px solid var(--blue);
  background: var(--blue-soft);
  padding: 14px 18px;
  margin: 1.6em 0;
  font-size: 0.94rem;
}
.callout b { color: var(--blue); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 6px; }

.warn {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  margin: 1.6em 0;
  font-size: 0.94rem;
}
.warn b { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 6px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.92rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.related {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}

/* ---------- about / static page ---------- */
.prose {
  max-width: 68ch;
  padding: 48px 0 64px;
}
.prose h2 { margin-top: 1.8em; color: #fff; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}
footer a { text-decoration: none; color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  nav.main-nav { gap: 16px; font-size: 0.85rem; }
  .hero { padding: 48px 0 40px; }
  .job-grid { padding: 28px 0 48px; }
}

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Cusdis comment widget height fix ---------- */
#cusdis_thread iframe {
  min-height: 900px;
  width: 100% !important;
  border: none;
}
