/* Oluwatosin Akande - academic site
   Single stylesheet shared by every page. */

:root {
  --accent: #1f4e79;
  --accent-soft: #eaf1f8;
  --text: #23282d;
  --muted: #5f6b76;
  --rule: #e2e6ea;
  --bg: #ffffff;
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 54px;
  align-items: start;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky;
  top: 34px;
  padding: 34px 0 40px;
}

.sidebar .avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border: 4px solid #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}

.sidebar h1 {
  font-size: 1.32rem;
  line-height: 1.3;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.sidebar .role {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.sidebar .affil {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: 4px;
}

.links {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.93rem;
}

.links li { margin-bottom: 8px; }

/* ---------- Main column ---------- */

.main { padding: 34px 0 72px; min-width: 0; }

nav.top {
  margin-bottom: 34px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.95rem;
}

nav.top a { color: var(--muted); font-weight: 600; }
nav.top a:hover { color: var(--accent); text-decoration: none; }
nav.top a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: -16px;
}

h2.page-title {
  font-size: 1.85rem;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

h3.section {
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 42px 0 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule);
}

h3.section:first-of-type { margin-top: 0; }

p { margin: 0 0 15px; }

.lead { font-size: 1.05rem; }

/* ---------- Entry lists ---------- */

.entry {
  margin-bottom: 22px;
  padding-left: 15px;
  border-left: 3px solid var(--accent-soft);
}

.entry .title { font-weight: 600; display: block; margin-bottom: 3px; }
.entry .meta { color: var(--muted); font-size: 0.92rem; }
.entry .authors { font-size: 0.94rem; margin-bottom: 2px; }
.entry .me { font-weight: 700; }

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

ul.plain > li {
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 3px solid var(--accent-soft);
}

.year {
  display: inline-block;
  min-width: 88px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Project cards ---------- */

.project { padding: 17px 0; border-bottom: 1px solid var(--rule); }
.project:last-child { border-bottom: none; }
.project h4 { margin: 0 0 5px; font-size: 1.06rem; }
.project p { margin: 0 0 7px; color: #3d454d; font-size: 0.97rem; }
.project .repo { font-size: 0.88rem; }

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 11px;
  margin-left: 7px;
  vertical-align: middle;
}

.more { margin-top: 18px; font-size: 0.94rem; }

footer.site {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  .sidebar {
    position: static;
    text-align: center;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--rule);
  }
  .sidebar .avatar { margin: 0 auto 16px; width: 140px; height: 140px; }
  .links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
  .links li { margin-bottom: 0; }
  .main { padding-top: 26px; }
  nav.top { gap: 16px; font-size: 0.9rem; }
  nav.top a.active { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
}

/* ---------- Nested detail bullets inside an entry ---------- */

ul.plain.tight {
  list-style: disc;
  margin: 8px 0 0 18px;
  padding: 0;
}

ul.plain.tight > li {
  margin-bottom: 5px;
  padding-left: 0;
  border-left: none;
  font-size: 0.94rem;
  color: #3d454d;
}
