/* ============================================
   KPAKPO ACQUAYE — CLINICAL AI EVALUATION
   ============================================ */

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

:root {
  --bg:        #F9F9F9;
  --text:      #1A1A2A;
  --accent:    #1E5C8A;
  --muted:     #6E7480;
  --border:    #E1E4E8;
  --surface:   #F0F2F5;
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-prose: 660px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- LAYOUT ---- */

.site-wrap {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- HEADER / NAV ---- */

.site-header {
  padding: 2rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-name:hover { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--text); }

/* ---- HOMEPAGE HERO ---- */

.home-hero {
  margin-bottom: 3.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.home-hero p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  max-width: 560px;
}

.home-hero p:last-child { margin-bottom: 0; }

/* ---- HOMEPAGE ABOUT ---- */

.home-about {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.home-about p {
  margin-bottom: 1.1rem;
}

.home-about p:last-child { margin-bottom: 0; }

/* ---- HOMEPAGE WRITING SECTION ---- */

.home-writing {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.home-writing h2 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* ---- WRITING ITEM (shared: home + writing list) ---- */

.writing-item {
  margin-bottom: 2rem;
}

.writing-item a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.writing-item a:hover { color: var(--accent); }

.writing-item .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.writing-item .desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.55;
}

/* ---- WRITING LIST PAGE ---- */

.writing-list-header {
  margin-bottom: 3rem;
}

.writing-list-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.writing-list {
  list-style: none;
}

.writing-list li {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

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

/* ---- ARTICLE PAGE ---- */

.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body p:last-child { margin-bottom: 0; }

/* Opening staccato — signature accent appears here */
.article-body .lede {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.55;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

/* Domain scores block */
.scores-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}

.scores-block p {
  margin-bottom: 0.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.scores-block p:last-child { margin-bottom: 0; }

.score-critical {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

/* Framework recommendation quote */
.article-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--muted);
}

/* Article list */
.article-body ul {
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}

.article-body ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* Footnote links */
.article-body sup a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75em;
  font-family: var(--font-body);
}

/* ---- ARTICLE CTA BLOCK ---- */

.article-cta {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.article-cta p {
  margin-bottom: 1.1rem;
}

.article-cta p:last-child { margin-bottom: 0; }

.article-cta ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.25rem;
}

.article-cta ul li {
  margin-bottom: 0.4rem;
}

/* ---- FOOTNOTES ---- */

.footnotes {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

.footnotes p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.footnotes a {
  color: var(--muted);
  word-break: break-all;
}

/* ---- FOOTER ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  margin-top: 3rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.site-footer p:last-child { margin-bottom: 0; }

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text); }

/* ---- GLOBAL LINKS ---- */

a { color: var(--accent); }
a:hover { text-decoration: none; }

/* ---- RESPONSIVE ---- */

@media (max-width: 600px) {
  html { font-size: 16px; }

  .home-hero h1     { font-size: 1.65rem; }
  .article-header h1 { font-size: 1.6rem; }

  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
