/* ==========================================================================
   Abiodun M. Musbaudeen — academic site
   Light only. No JavaScript. No external requests.
   ========================================================================== */

:root {
  color-scheme: light only;

  --paper:     #ffffff;
  --ink:       #3f4548;
  --ink-strong:#222629;
  --ink-muted: #7a8288;
  --rule:      #e4e6e8;
  --rule-soft: #f0f1f2;
  --accent:    #1f6f99;
  --accent-dk: #14506f;
  --wash:      #f8f9fa;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-dk); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px;
  background: #fff; color: var(--ink-strong);
  padding: 0.6rem 1rem; border: 1px solid var(--rule); z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- masthead --------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0 1.75rem;
  min-height: 48px;
}
.site-name {
  font-weight: 700; font-size: 0.95rem;
  color: var(--ink-strong); letter-spacing: 0.01em;
  padding: 0.6rem 0;
}
.site-name:hover { color: var(--accent); text-decoration: none; }

.masthead nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 1.6rem;
}
.masthead nav a {
  display: block; padding: 0.6rem 0;
  font-size: 0.9rem; color: var(--ink);
}
.masthead nav a:hover { color: var(--accent); text-decoration: none; }
.masthead nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- layout ----------------------------------------------------- */

.layout {
  max-width: 1180px; margin: 0 auto;
  padding: 2.2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0 3.2rem;
  align-items: start;
}

/* ---------- author sidebar --------------------------------------------- */

.author {
  position: sticky; top: 72px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.author img.avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 0 1.05rem;
}
.author .name {
  font-size: 1.02rem; font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 0.15rem;
  line-height: 1.3;
}
.author .title {
  color: var(--ink-muted);
  margin: 0 0 0.95rem;
}
.author ul {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--rule-soft);
  padding-top: 0.7rem;
}
.author li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  padding: 0.24rem 0;
}
.author li svg {
  width: 15px; height: 15px; flex: 0 0 15px;
  margin-top: 0.19rem;
  fill: var(--ink-muted);
}
.author li a { color: var(--ink); }
.author li a:hover { color: var(--accent); }

/* ---------- content ---------------------------------------------------- */

.content { min-width: 0; padding-top: 0.2rem; }

h1 {
  font-size: 1.75rem; font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  line-height: 1.25;
}
h2 {
  font-size: 1.22rem; font-weight: 700;
  color: var(--ink-strong);
  margin: 2.3rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
h3 {
  font-size: 1.04rem; font-weight: 600;
  color: var(--ink-strong);
  margin: 0 0 0.25rem; line-height: 1.4;
}

p { margin: 0 0 1.05rem; }
.content > p:last-child { margin-bottom: 0; }

.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }

ul.plain { list-style: none; margin: 0 0 1.1rem; padding: 0; }
ul.bullets { margin: 0 0 1.15rem; padding-left: 1.25rem; }
ul.bullets li { margin-bottom: 0.3rem; }

/* ---------- papers ----------------------------------------------------- */

.paper {
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule-soft);
}
.paper:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.paper .ptitle {
  font-size: 1.08rem; font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.3rem; line-height: 1.4;
}
.paper .ptitle a { color: var(--accent); text-decoration: underline; }

.paper .coauthors { font-size: 0.92rem; margin: 0 0 0.25rem; }
.paper .venue { font-size: 0.92rem; margin: 0 0 0.25rem; }
.paper .venue em { font-style: italic; }
.paper .pstatus {
  font-size: 0.92rem; font-style: italic;
  color: var(--ink-muted);
  margin: 0 0 0.55rem;
}
.paper .plinks {
  font-size: 0.88rem; margin: 0 0 0.55rem;
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem;
}
.abstract-label {
  font-size: 0.85rem; font-weight: 700;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--rule);
  display: inline-block;
  margin: 0.2rem 0 0.5rem;
  padding-bottom: 0.1rem;
}
.paper .abstract { font-size: 0.94rem; margin: 0 0 0.6rem; }

.jmp-flag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  border-radius: 2px;
  padding: 0.12rem 0.45rem;
  margin-bottom: 0.45rem;
}

/* ---------- lists and tables ------------------------------------------- */

.entry-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.entry-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem; padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.94rem;
}
.entry-list li:last-child { border-bottom: 0; }
.entry-list .when { color: var(--ink-muted); font-size: 0.86rem; white-space: nowrap; }

.table-scroll { overflow-x: auto; margin-bottom: 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.91rem; }
thead th {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-muted); text-align: left;
  padding: 0 0.85rem 0.45rem 0;
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
}
tbody td {
  padding: 0.5rem 0.85rem 0.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
td.term { white-space: nowrap; color: var(--ink-muted); }
td.who { white-space: nowrap; }

.note {
  background: var(--wash);
  border-left: 3px solid var(--rule);
  padding: 0.85rem 1.1rem;
  font-size: 0.93rem;
  margin-bottom: 1.1rem;
}

.doc-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  font-size: 0.92rem; margin: 0 0 1.1rem;
}

/* ---------- footer ----------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--wash);
}
.site-footer .inner {
  max-width: 1180px; margin: 0 auto;
  padding: 1.3rem 1.5rem 2.2rem;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 0.6rem 1.5rem;
  font-size: 0.82rem; color: var(--ink-muted);
}
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- responsive ------------------------------------------------- */

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding-top: 1.8rem;
  }
  .author {
    position: static;
    display: grid;
    grid-template-columns: 110px minmax(0,1fr);
    gap: 0 1.2rem;
    align-items: start;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--rule);
  }
  .author img.avatar { width: 110px; height: 110px; margin-bottom: 0; }
  .author .name, .author .title { grid-column: 2; }
  .author ul { grid-column: 2; border-top: 0; padding-top: 0.2rem; }
  .entry-list li { flex-direction: column; gap: 0.1rem; }
  h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .author { grid-template-columns: 1fr; gap: 1rem; }
  .author .name, .author .title, .author ul { grid-column: 1; }
}

/* ---------- print ------------------------------------------------------ */

@media print {
  .masthead, .site-footer, .skip, .doc-links, .paper .plinks { display: none; }
  .layout { display: block; max-width: none; padding: 0; }
  .author { position: static; margin-bottom: 1.5rem; }
  body { font-size: 10.5pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .paper { break-inside: avoid; }
}
