/* ============================================================
   jadedeji.com — core stylesheet
   Design language: reference document / lab notebook, not landing page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --paper: #F7F6F2;
  --ink: #1A2E29;
  --brick: #8B3A2B;
  --sage: #4A5D5A;
  --ochre: #C9A15A;
  --paper-raised: #FBFAF7;
  --border-hairline: rgba(26, 46, 41, 0.14);

  /* Domain accent colors — each gets a quiet identity, not loud */
  --dom-academics: #3D5A80;   /* muted steel blue — inquiry */
  --dom-business: #6B5B3E;    /* warm bronze — enterprise */
  --dom-clinical: #8B3A2B;    /* brick — the brick, clinical/histological */
  --dom-development: #4A6B4A; /* muted green — growth/community */
  --dom-spiritual: #6B4E71;   /* muted plum — reflective, quiet */

  /* Type */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;

  --measure: 680px;
  --measure-wide: 780px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Layout shell — persistent left nav + content column
   ============================================================ */

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

.sidenav {
  padding: 48px 24px 48px 32px;
  border-right: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidenav__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.sidenav__tagline {
  font-size: 0.78rem;
  color: var(--sage);
  margin-bottom: 36px;
  line-height: 1.45;
}

.sidenav__section {
  margin-bottom: 28px;
}

.sidenav__label {
  font-size: 0.72rem;
  color: var(--sage);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.sidenav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidenav__list li {
  margin-bottom: 2px;
}

.sidenav__list a {
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sidenav__list a:hover {
  background: rgba(26, 46, 41, 0.05);
}

.sidenav__list a.is-active {
  border-left-color: var(--brick);
  font-weight: 500;
  background: rgba(26, 46, 41, 0.04);
}

.sidenav__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.sidenav__footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.8rem;
}

.sidenav__footer a {
  color: var(--sage);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.sidenav__footer a:hover {
  color: var(--brick);
}

.mobile-nav-toggle {
  display: none;
}

/* ============================================================
   Main content column
   ============================================================ */

main {
  padding: 64px 48px 96px;
  max-width: var(--measure-wide);
}

.content-measure {
  max-width: var(--measure);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; font-weight: 500; }
h2 { font-size: 1.55rem; margin-top: 2.6em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }

p { margin: 0 0 1.2em; max-width: var(--measure); }

a { color: var(--brick); }
a:hover { color: var(--ink); }

.lede {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: var(--measure);
  margin-bottom: 1.6em;
}

.byline {
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 2.5em;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--border-hairline);
  margin: 2.5em 0;
}

/* ============================================================
   Domain badge — small identity marker, used across cards/lists
   ============================================================ */

.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 3px 10px 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-hairline);
  color: var(--sage);
  text-decoration: none;
}

.domain-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.domain-badge--academics .domain-badge__dot { background: var(--dom-academics); }
.domain-badge--business .domain-badge__dot { background: var(--dom-business); }
.domain-badge--clinical .domain-badge__dot { background: var(--dom-clinical); }
.domain-badge--development .domain-badge__dot { background: var(--dom-development); }
.domain-badge--spiritual .domain-badge__dot { background: var(--dom-spiritual); }
.domain-badge--extra .domain-badge__dot { background: var(--sage); }

/* ============================================================
   Entry list — the signature structural device.
   Used for: project lists, publication lists, blog index.
   Marginalia-style annotation instead of card grids.
   ============================================================ */

.entry-list {
  margin: 2em 0;
}

.entry {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border-hairline);
}

.entry:first-child { border-top: 1px solid var(--border-hairline); }

.entry__meta {
  font-size: 0.82rem;
  color: var(--sage);
  padding-top: 3px;
}

.entry__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.entry__title a {
  color: var(--ink);
  text-decoration: none;
}

.entry__title a:hover {
  color: var(--brick);
}

.entry__desc {
  font-size: 0.94rem;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 60ch;
}

.entry__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Margin annotation mark — quiet signature device */
.entry {
  position: relative;
}

.entry::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 28px;
  width: 3px;
  height: calc(100% - 40px);
  background: var(--border-hairline);
}

/* ============================================================
   Hero — the one deliberate break from restraint on the whole site.
   Photo + oversized display type, asymmetric, full-bleed toward the edge.
   ============================================================ */

.hero {
  margin-bottom: 3.5em;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: start;
}

.hero__photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(15%);
  border: 1px solid var(--border-hairline);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brick);
  margin-bottom: 0.3em;
}

.hero h1 {
  font-size: 3.1rem;
  line-height: 1.08;
  max-width: 11ch;
  letter-spacing: -0.01em;
}

.hero__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.8em;
}

.hero__links a {
  font-size: 0.88rem;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 2px;
}

.hero__links a:hover {
  color: var(--brick);
  border-color: var(--brick);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__photo {
    width: 120px;
    height: 120px;
    order: -1;
  }
  .hero h1 {
    font-size: 2.1rem;
    max-width: none;
  }
}

/* ============================================================
   Research-lead panel — Academics gets primacy on the homepage,
   not an equal tile among six. Bigger type, first position,
   its own visual weight distinct from the secondary domain row.
   ============================================================ */

.research-lead {
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--dom-academics);
  padding: 32px 32px 28px;
  margin: 2.5em 0 3em;
  background: var(--paper-raised);
}

.research-lead__eyebrow {
  font-size: 0.8rem;
  color: var(--dom-academics);
  margin-bottom: 8px;
  font-weight: 600;
}

.research-lead h2 {
  margin-top: 0;
  font-size: 1.7rem;
}

.research-lead__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 1.6em;
}

.research-lead__stat {
  border-top: 1px solid var(--border-hairline);
  padding-top: 10px;
}

.research-lead__stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dom-academics);
  display: block;
}

.research-lead__stat-label {
  font-size: 0.8rem;
  color: var(--sage);
}

.research-lead__cta {
  display: inline-block;
  margin-top: 1.8em;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--dom-academics);
  padding-bottom: 2px;
}

@media (max-width: 860px) {
  .research-lead__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Secondary domain row — the other five, deliberately smaller
   and quieter than the research-lead panel above.
   ============================================================ */

.domain-row {
  margin: 0;
}

.domain-row__label {
  font-size: 0.78rem;
  color: var(--sage);
  margin-bottom: 14px;
}

/* ============================================================
   Domain grid — used on homepage to link into the 5+1 domains
   ============================================================ */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  margin: 0 0 2.5em;
  max-width: var(--measure-wide);
}

.domain-tile {
  background: var(--paper);
  padding: 16px 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}

.domain-tile:hover {
  background: var(--paper-raised);
}

.domain-tile__letter {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.domain-tile--academics .domain-tile__letter { color: var(--dom-academics); }
.domain-tile--business .domain-tile__letter { color: var(--dom-business); }
.domain-tile--clinical .domain-tile__letter { color: var(--dom-clinical); }
.domain-tile--development .domain-tile__letter { color: var(--dom-development); }
.domain-tile--spiritual .domain-tile__letter { color: var(--dom-spiritual); }
.domain-tile--extra .domain-tile__letter { color: var(--sage); }

.domain-tile__name {
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 3px;
}

.domain-tile__desc {
  font-size: 0.76rem;
  color: var(--sage);
  line-height: 1.4;
}

@media (max-width: 860px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Blog domain filter — pill row above the entry list
   ============================================================ */

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1.6em 0 2.2em;
}

.filter-pill {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: none;
  color: var(--sage);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.filter-pill:hover {
  border-color: var(--sage);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.entry[data-domain] {
  transition: opacity 0.15s ease;
}

.entry.is-hidden {
  display: none;
}

/* ============================================================
   Empty / future state — honest, not a dead placeholder
   ============================================================ */

.not-yet {
  border: 1px dashed var(--border-hairline);
  padding: 28px 26px;
  margin: 2em 0;
  max-width: var(--measure);
}

.not-yet p {
  margin: 0;
  color: var(--sage);
  font-size: 0.95rem;
}

.not-yet p + p { margin-top: 0.8em; }

/* ============================================================
   Domain header strip
   ============================================================ */

.domain-header {
  border-left: 4px solid var(--sage);
  padding-left: 20px;
  margin-bottom: 2.4em;
}

.domain-header--academics { border-color: var(--dom-academics); }
.domain-header--business { border-color: var(--dom-business); }
.domain-header--clinical { border-color: var(--dom-clinical); }
.domain-header--development { border-color: var(--dom-development); }
.domain-header--spiritual { border-color: var(--dom-spiritual); }
.domain-header--extra { border-color: var(--sage); }

.domain-header__eyebrow {
  font-size: 0.82rem;
  color: var(--sage);
  margin-bottom: 6px;
}

/* ============================================================
   Footer
   ============================================================ */

footer.site-footer {
  border-top: 1px solid var(--border-hairline);
  margin-top: 4em;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--sage);
  max-width: var(--measure);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .shell {
    display: block;
  }

  .sidenav {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    padding: 24px 24px 20px;
  }

  .sidenav__section { margin-bottom: 0; }

  .sidenav__list {
    display: none;
  }

  .sidenav.is-open .sidenav__list {
    display: block;
    margin-top: 12px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-hairline);
    border-radius: 4px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
    margin-top: 8px;
  }

  main {
    padding: 40px 24px 64px;
  }

  .hero h1 { font-size: 2rem; }

  .domain-grid {
    grid-template-columns: 1fr;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .entry::before { display: none; }
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}
