/* jcamd.com — workforce intelligence consulting · drafting board UI */

:root {
  color-scheme: light;
  --canvas: #e8e4da;
  --grid: rgba(46, 44, 40, 0.06);
  --grid-major: rgba(46, 44, 40, 0.11);
  --surface: #faf9f5;
  --inset: #ddd8cc;
  --border: #b5aea2;
  --ink: #2c2a26;
  --ink-shadow: #2c2a26;
  --pencil: #6a655c;
  --accent: #3d5a73;
  --text: #2c2a26;
  --text-secondary: #444038;
  --muted: #5e5850;
  --on-ink: #faf9f5;
  --block-x: 3px;
  --block-y: 3px;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "IBM Plex Mono", monospace;
  --max: 780px;
  --max-wide: 1040px;
  --header-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 14px; background: var(--ink); color: var(--on-ink);
  border: 2px solid var(--ink); font-weight: 600; text-decoration: none;
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--canvas) 94%, var(--surface));
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  min-width: 0;
}
.site-brand__mark {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink);
  font: 700 10px/1 var(--font-mono);
  box-shadow: 2px 2px 0 var(--ink-shadow);
}
.site-brand__text { min-width: 0; }
.site-brand__name {
  display: block;
  font: 600 14px/1.2 var(--font-body);
}
.site-brand__tag {
  display: block;
  margin-top: 2px;
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
}

.nav-toggle {
  display: none;
  min-height: 40px; min-width: 40px;
  padding: 0 10px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  border: 2px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink-shadow);
}
.site-nav {
  display: flex; gap: 2px; flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  border-color: var(--border);
  background: var(--surface);
}
.site-nav .nav-cta {
  margin-left: 4px;
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink-shadow);
}
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible,
.site-nav .nav-cta.is-active {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 12px 20px 16px;
    background: var(--surface);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav .nav-cta { margin-left: 0; margin-top: 4px; text-align: center; }
  .site-header { position: sticky; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
}

/* ── Layout ── */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px 80px; }
.section { padding-top: 52px; }
.section--wide { max-width: var(--max-wide); margin-left: auto; margin-right: auto; }

.sheet-label {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sheet-label::before {
  content: "";
  width: 12px; height: 12px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.section-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 58ch;
  margin-bottom: 18px;
  line-height: 1.65;
}

/* ── Build arc (practice timeline) ── */
.arc {
  list-style: none;
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  background: var(--surface);
}
.arc li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px dashed var(--border);
}
@media (min-width: 560px) {
  .arc li { grid-template-columns: 88px 1fr; gap: 14px; align-items: baseline; }
}
.arc li:last-child { border-bottom: 0; }
.arc__when {
  font: 700 10px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.arc__what {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.section-heading--spaced { margin-top: 36px; }

/* ── Hero ── */
.hero { padding: clamp(36px, 7vh, 64px) 0 28px; }
.hero__sheet {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  padding: 26px 22px 22px;
  position: relative;
}
.hero__sheet::before, .hero__sheet::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
}
.hero__sheet::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.hero__sheet::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.hero__meta {
  display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.hero h1 {
  font: 600 clamp(1.9rem, 5.5vw, 2.65rem)/1.08 var(--font-body);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero__tagline {
  margin-top: 12px;
  font: 500 1.05rem/1.45 var(--font-body);
  color: var(--text-secondary);
  max-width: 46ch;
}
.hero__lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 54ch;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  transition: transform 100ms, box-shadow 100ms;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink-shadow);
}
.btn--fill { background: var(--ink); color: var(--on-ink); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  padding: 16px 18px;
  position: relative;
}
.card::before {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 10px; height: 10px;
  border-top: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
}
.card + .card { margin-top: 12px; }

/* ── Metrics ── */
.metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 4px;
}
@media (min-width: 640px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}
.metric {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  padding: 14px 14px 12px;
}
.metric__value {
  font: 700 1.35rem/1 var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.metric__label {
  margin-top: 6px;
  font: 500 10px/1.35 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pencil);
}

/* ── Services ── */
.service-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  padding: 18px 18px 16px;
  min-height: 100%;
}
.service-card__num {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 10px;
}
.service-card h3 {
  font: 600 1rem/1.25 var(--font-body);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.service-card__deliverables {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font: 500 10px/1.5 var(--font-mono);
  color: var(--pencil);
}
.process {
  display: grid;
  gap: 10px;
  counter-reset: step;
}
@media (min-width: 700px) {
  .process { grid-template-columns: repeat(4, 1fr); }
}
.process__step {
  counter-increment: step;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  padding: 14px 14px 12px;
}
.process__step::before {
  content: "0" counter(step);
  display: block;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.process__step h3 {
  font: 600 0.92rem/1.3 var(--font-body);
  margin-bottom: 6px;
}
.process__step p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Contact band ── */
.contact-band {
  margin-top: 8px;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact-band__copy h2 {
  font: 600 1.15rem/1.25 var(--font-body);
  margin-bottom: 6px;
}
.contact-band__copy p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 38ch;
}
.contact-band__note {
  margin-top: 8px;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pencil);
}

/* ── GitHub / lab ── */
.activity-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .activity-grid { grid-template-columns: 220px 1fr; }
}
.gh-profile__avatar {
  width: 56px; height: 56px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink-shadow);
  margin-bottom: 10px;
}
.gh-profile__handle {
  font: 700 13px/1.3 var(--font-mono);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gh-profile__bio { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.gh-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
  font: 500 10px/1 var(--font-mono);
  color: var(--muted);
}
.gh-stats strong { color: var(--text); }

.activity-feed { min-height: 72px; }
.activity-feed.is-loading::after {
  content: "";
  display: block; height: 56px; margin-top: 8px;
  background: linear-gradient(90deg, var(--inset) 25%, var(--border) 50%, var(--inset) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.activity-list { list-style: none; }
.activity-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
}
.activity-list li:last-child { border-bottom: 0; }
.activity-list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.activity-meta {
  display: block;
  margin-top: 2px;
  font: 500 10px/1.4 var(--font-mono);
  color: var(--pencil);
}
.activity-empty, .activity-error { color: var(--muted); font-size: 0.86rem; }

.lab-featured {
  display: block;
  margin-bottom: 12px;
  max-width: 36rem;
}
.repo-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 12px;
}
.repo-card {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--block-x) var(--block-y) 0 var(--ink-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 100ms, box-shadow 100ms;
}
.repo-card:hover, .repo-card:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink-shadow);
}
.repo-card h3 { font: 700 12px/1.3 var(--font-mono); color: var(--accent); }
.repo-card p {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.repo-card__meta {
  margin-top: 6px;
  font: 500 10px/1 var(--font-mono);
  color: var(--pencil);
}

/* ── Experience ── */
.job-card__head {
  display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.job-card__title { font: 600 1.02rem/1.3 var(--font-body); }
.job-card__org { font: 600 1.02rem/1.3 var(--font-mono); color: var(--accent); }
.job-card__date {
  font: 500 10px/1 var(--font-mono);
  color: var(--pencil);
  white-space: nowrap;
}
.job-card ul { list-style: none; }
.job-card li {
  position: relative;
  padding: 4px 0 4px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}
.job-card li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--pencil);
  font-family: var(--font-mono);
}
.job-card li strong { color: var(--text); font-weight: 600; }

.job-card--spaced { margin-top: 16px; }
.job-card--compact { margin-top: 12px; }

details.job-card summary {
  cursor: pointer;
  list-style: none;
}
details.job-card summary::-webkit-details-marker { display: none; }
details.job-card summary::after {
  content: "+";
  float: right;
  font: 700 14px/1 var(--font-mono);
  color: var(--pencil);
}
details.job-card[open] summary::after { content: "−"; }
details.job-card--compact ul { margin-top: 10px; }

.edu-row {
  display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.edu-row:last-child { border-bottom: 0; }
.edu-row span:last-child {
  font: 500 11px/1 var(--font-mono);
  color: var(--pencil);
}

.skill-group { margin-top: 12px; }
.skill-group h4 {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 8px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font: 500 11px/1.3 var(--font-mono);
  color: var(--text-secondary);
  background: var(--inset);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

/* ── Footer ── */
.site-footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.site-footer__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer__brand {
  font: 600 14px/1.2 var(--font-body);
  margin-bottom: 6px;
}
.site-footer__tag {
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 8px;
}
.site-footer__note {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 32ch;
}
.site-footer__title {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 8px;
}
.site-footer__list { list-style: none; }
.site-footer__list li { margin-bottom: 5px; }
.site-footer__list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.site-footer__list a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font: 500 10px/1 var(--font-mono);
  color: var(--pencil);
}

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

@media (prefers-reduced-motion: reduce) {
  .btn, .repo-card, .activity-feed.is-loading::after { transition: none; animation: none; }
}
