/* travismasingale.info — R&D page styles
   Tokens come from foundry.css. Page layout is shared with site.css.
   This file only adds the project-grid, system map, filters, and themes layout. */

/* ---------- hero band (R&D) ---------- */

.rd-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--f-hairline);
}

.rd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.rd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.rd-hero h1 {
  margin: 0 0 22px;
  color: var(--f-ink);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 760px;
}

.rd-hero-deck {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--f-muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
}

/* ---------- system map (SVG) ---------- */

.project-map {
  margin: 0;
}

.project-map figcaption {
  display: block;
  margin-bottom: 10px;
}

.project-map svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--f-surface);
  box-shadow: var(--f-shadow);
}

.map-rules line {
  stroke: var(--f-hairline);
  stroke-width: 1;
}

.map-core rect,
.map-node rect {
  fill: var(--f-surface);
  stroke: var(--f-rule);
  stroke-width: 2;
}

.map-core rect {
  fill: var(--f-rule);
}

.map-core text {
  fill: var(--f-ink-inverse);
  font-family: var(--f-mono);
  font-size: 28px;
  font-weight: 900;
}

.map-core .small,
.map-node .small {
  font-size: 11px;
  font-weight: 700;
}

.map-node text {
  fill: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 900;
}

.map-linework path {
  fill: none;
  stroke: var(--f-rule);
  stroke-width: 2;
}

/* ---------- signal strip (status bar) ---------- */

.signal-strip {
  border-bottom: 1px solid var(--f-hairline);
  background: var(--f-surface);
  padding: 14px 0;
}

.signal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

/* ---------- filter row + project grid ---------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 34px;
  border: 1px solid var(--f-hairline);
  background: var(--f-surface);
  color: var(--f-muted);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  padding: 9px 12px;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--f-rule);
  background: var(--f-rule);
  color: var(--f-ink-inverse);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  min-height: 100%;
  gap: 14px;
  transition: transform .18s ease, border-color .18s ease;
}

.project-card[hidden] { display: none; }

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--f-rule);
}

.project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card h3 {
  margin: 0;
  color: var(--f-ink);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
}

.project-card p {
  margin: 0;
  color: var(--f-muted);
  font-size: 15px;
  line-height: 1.5;
}

.project-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--f-hairline);
}

.project-card dl div {
  display: grid;
  gap: 4px;
}

.project-card dt {
  color: var(--f-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-card dd {
  margin: 0;
  color: var(--f-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- themes / open questions ---------- */

.themes-layout {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.themes-lead {
  border: 2px solid var(--f-rule);
  background: var(--f-surface);
  padding: 22px;
}

.themes-lead h3 {
  margin: 14px 0 0;
  color: var(--f-ink);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 850;
  line-height: 1.1;
}

.themes-lead p {
  margin: 16px 0 0;
  color: var(--f-muted);
  font-size: 16px;
  line-height: 1.55;
}

.themes-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: themes;
  border: 1px solid var(--f-hairline);
  background: var(--f-surface);
}

.themes-list li {
  counter-increment: themes;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--f-hairline);
  color: var(--f-muted);
  padding: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.themes-list li:last-child { border-bottom: 0; }

.themes-list li::before {
  content: counter(themes, decimal-leading-zero);
  color: var(--f-ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 900;
}

.themes-list strong { color: var(--f-ink); font-weight: 800; }

.section-inset {
  border-top: 1px solid var(--f-hairline);
  border-bottom: 1px solid var(--f-hairline);
  background: var(--f-surface-subtle);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .rd-hero-grid,
  .themes-layout {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .themes-list li {
    grid-template-columns: 1fr;
  }
}
