/* ResearchDeskNY — shared stylesheet
   Plain CSS, no frameworks. System fonts, one restrained accent color. */

:root {
  --accent: #1e4d3b;          /* deep desk-green */
  --accent-soft: #eef3f0;     /* tint of the accent, for card fills */
  --ink: #1c1f1e;
  --muted: #5c6663;
  --rule: #dde3e0;
  --bg: #ffffff;
  --max: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 2rem;
}

.wordmark {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.wordmark .ny { color: var(--accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
}

.site-nav a:hover,
.site-nav a:focus { color: var(--accent); text-decoration: underline; }

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

/* ---------- Layout ---------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 3.2rem;
}

main.narrow { max-width: 46rem; }

/* ---------- Type ---------- */

h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 2.2rem 0 0.6rem;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.4rem;
  font-weight: 650;
}

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 38rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

a { color: var(--accent); }

a:hover, a:focus { text-decoration-thickness: 2px; }

ul { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 1.2rem;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}

.card:hover, .card:focus {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
}

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

.card .more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Detail bits ---------- */

.facts {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
  background: var(--accent-soft);
}

.facts h2 { margin-top: 0; font-size: 1.2rem; }
.facts ul { margin-bottom: 0; }

.button-link {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  margin: 0.3rem 0.6rem 0.3rem 0;
}

.button-link:hover, .button-link:focus { background: var(--accent-soft); }

hr.sep {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.4rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
}

.site-footer p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 40rem) {
  .site-header .wrap { padding-top: 1.1rem; }
  .wordmark { font-size: 1.6rem; }
  main { padding-top: 2rem; }
  h1 { font-size: 1.9rem; }
  .lede { font-size: 1.15rem; }
}
