/* marcusrichards.dev — shared stylesheet
   Minimal, dark-leaning, no framework. One file, every page. */

:root {
  --bg: #101114;
  --surface: #16171c;
  --surface-2: #1c1d23;
  --text: #e9e5d8;
  --muted: #9d9789;
  --faint: #6b665b;
  --accent: #c9a24b;
  --accent-soft: rgba(201, 162, 75, 0.12);
  --line: #26272e;
  --radius: 10px;
  --maxw: 72ch;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.92);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand small {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--faint);
  margin-left: 0.5rem;
  letter-spacing: 0.04em;
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.wrap {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.1rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.45rem; margin: 2.25rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 60ch;
}

.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

a { color: var(--accent); }
a:hover { color: #e0bc66; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ---------- cards (home) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card .go {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.card.staged {
  border-style: dashed;
  opacity: 0.85;
  cursor: default;
}

.card.staged:hover { transform: none; border-color: var(--line); }

.staged-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  border: 1px dashed var(--faint);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.6rem;
}

/* ---------- repo strip ---------- */

.repo-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.repo-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.repo-list li:last-child { border-bottom: 1px solid var(--line); }

.repo-list .rname {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.repo-list p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- placeholders (staged page) ---------- */

.placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--faint);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.95rem;
  margin: 1rem 0;
}

.staged-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
}

figure.shot { margin: 0; }

figure.shot figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

blockquote.testimonial-slot {
  margin: 1rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--line);
  color: var(--faint);
  font-style: italic;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- definition list (methodology page) ---------- */

.tiers { margin: 1.25rem 0; padding: 0; list-style: none; }

.tiers li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.tiers li:last-child { border-bottom: 1px solid var(--line); }

.tiers strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

.tiers span { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer .links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

@media (max-width: 640px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  .cards { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  main.wrap { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card:hover { transform: none; }
}
