/* ============================================================
   Code 604 Research — shared stylesheet
   Minimal, readable, English. Used by all pages.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #1a1a1a;
  --soft:   #555555;
  --faint:  #8a8a8a;
  --line:   #e3e3e3;
  --bg:     #fbfbfa;
  --card:   #ffffff;
  --accent: #2d4a6b;
  --maxw:   720px;
  --sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top nav ---------- */
nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
nav .brand {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
nav .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
nav .links a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
}
nav .links a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: normal;
  margin-bottom: 20px;
}
h2 {
  font-size: 24px;
  line-height: 1.35;
  font-weight: normal;
  margin-bottom: 18px;
}
h3 {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 6px;
}

p { margin-bottom: 16px; color: var(--soft); }
p.lead { color: var(--ink); font-size: 20px; }
p:last-child { margin-bottom: 0; }
p.note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--faint);
}
p.fine {
  font-size: 13px;
  margin-top: 6px;
}

em { color: var(--ink); font-style: italic; }
.dim { font-size: 18px; color: var(--faint); }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; padding-bottom: 64px; }

/* ---------- Item card (research list) ---------- */
.item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
}
.item .kind {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.item p { font-size: 16px; margin-bottom: 14px; }

/* ---------- Links ---------- */
a.link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
a.link:hover { border-bottom-color: var(--accent); }
a.link.muted { color: var(--faint); pointer-events: none; }

a.inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
a.inline:hover { border-bottom-color: var(--accent); }

.linkrow {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}
.meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Blog post list ---------- */
.post {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: none; }
.post:first-child { padding-top: 8px; }
.post-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.post h2 { margin-bottom: 10px; }
.post h2 a {
  color: var(--ink);
  text-decoration: none;
}
.post h2 a:hover { color: var(--accent); }
.post p { font-size: 17px; margin-bottom: 12px; }

/* ---------- Blog article (single post) ---------- */
.article-body { padding-top: 16px; padding-bottom: 56px; }
.article-body h2 { margin-top: 36px; }
.article-body h3 { margin-top: 28px; }
.article-body p { font-size: 18px; }
.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
  color: var(--soft);
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--line);
  padding-left: 18px;
  margin: 0 0 16px 0;
  color: var(--ink);
  font-style: italic;
}
.back-link {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}
.back-link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  padding: 40px 0 60px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--faint);
}
footer p { color: var(--faint); font-size: 13px; }
footer a {
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
footer a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  section { padding: 44px 0; }
  .hero { padding-top: 48px; }
  nav .wrap { padding-top: 12px; padding-bottom: 12px; }
  .article-body p { font-size: 17px; }
}
