/* ============================================================================
   projects.css — the Active Projects wing (/projects and its sub-pages).
   Extends base.css; same vocabulary, a few new elements.
   ========================================================================== */

/* Category headers on the projects index */
.cat-head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 3.5rem 0 1.5rem;
}
.cat-head h2 { font-size: 1.25rem; font-weight: 620; letter-spacing: -.015em; margin: 0; }
.cat-head .count { font-family: var(--mono); font-size: .75rem; color: var(--muted); }

/* Small mono fact-chips on project cards */
.meta-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.chip {
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .6rem;
}
.card.soon { opacity: .6; }

/* ----------------------------------------------------------------- the feed
   Homepage: a dated, newest-first log of projects. Date column, thin spine,
   one entry per thing worth reporting. Curated by hand — nothing speculative.
   ------------------------------------------------------------------------ */
.feed { margin: 3.5rem 0 0; }

.entry {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0;
}

.entry-when {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
  padding: 2.25rem 1.5rem 0 0;
}
.entry-when .live { display: block; color: var(--accent); }

.entry-body {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 2.25rem 0 2.25rem 2rem;
}
.entry-body::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 2.6rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
/* Let the spine fade out under the last entry rather than stopping dead. */
.entry:last-of-type .entry-body { border-left-color: transparent; }
.entry:last-of-type .entry-body::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line) 45%, transparent);
}

.entry-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .85rem; }

.entry-body h3 {
  font-size: 1.1875rem;
  font-weight: 620;
  letter-spacing: -.015em;
  margin: 0 0 .5rem;
  transition: color .2s ease;
}
.entry-body p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--body);
  max-width: 60ch;
}
.entry-more {
  display: inline-block;
  margin-top: .9rem;
  font-size: .8125rem;
  font-weight: 530;
  color: var(--accent);
  text-decoration: none;
}
.entry-more .arrow { transition: transform .2s ease; display: inline-block; }
a.entry-link { text-decoration: none; color: inherit; display: block; }
a.entry-link:hover h3 { color: var(--accent); }
a.entry-link:hover .entry-more .arrow { transform: translateX(3px); }

@media (max-width: 40rem) {
  .entry { grid-template-columns: 1fr; }
  .entry-when {
    position: relative;
    text-align: left;
    border-left: 1px solid var(--line);
    padding: 2rem 0 0 2rem;
  }
  .entry-when::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 2.25rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
  }
  .entry-when .live { display: inline; margin-left: .5rem; }
  .entry-body { padding-top: .6rem; }
  .entry-body::before { display: none; }
}

/* Mod page hero figure: LOD horizon */
.lod-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 3rem 0 0;
  overflow: hidden;
}
.lod-hero svg { display: block; width: 100%; height: auto; }
.lod-hero .blocks { fill: var(--accent); }
.lod-hero .h-line { stroke: var(--muted); }
.lod-hero .h-note { fill: var(--muted); }
.lod-cap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}
.lod-cap b { color: var(--accent); font-weight: 560; }

/* How-it-works pipeline */
.pipe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.step .n { font-family: var(--mono); font-size: .6875rem; color: var(--accent); display: block; margin-bottom: .45rem; }
.step h4 { margin: 0 0 .3rem; font-size: .9375rem; font-weight: 620; letter-spacing: -.01em; }
.step p { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--body); }

/* FAQ: ledger-style accordions */
.faq { margin-top: 2rem; }
.faq details { border-bottom: 1px dashed var(--line); padding: .35rem 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .75rem 0;
  font-weight: 530;
  letter-spacing: -.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  color: var(--muted);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; color: var(--accent); }
.faq details p { margin: 0 0 1rem; font-size: .9375rem; line-height: 1.55; color: var(--body); max-width: 58ch; }
.faq details p code {
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink);
  background: var(--tint);
  padding: .1rem .35rem;
  border-radius: 6px;
}
