/* ==========================================================================
   Innocent Anyaele — personal site
   White, typographic, minimal. Light by default, dark on request.
   Theme is a manual choice (data-theme on <html>), not the OS preference —
   see the inline script in each page's <head> and the toggle in site.js.
   ========================================================================== */

:root {
  --ink:        #16181d;
  --ink-soft:   #3d4249;
  --ink-mute:   #6b7280;
  --ink-faint:  #9aa1ab;
  --rule:       #e4e6ea;
  --rule-soft:  #eff0f3;
  --paper:      #ffffff;
  --paper-tint: #fafbfc;
  --accent:     #1f4e79;
  --accent-soft:#eef3f8;
  --tag-bg:     #f4f5f7;

  --sans: "Inter", "Inter var", ui-sans-serif, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 56rem;
  --wrap-wide: 68rem;
}

:root[data-theme="dark"] {
  --ink:        #eceef1;
  --ink-soft:   #c7ccd3;
  --ink-mute:   #93999f;
  --ink-faint:  #6d7278;
  --rule:       #2b2e33;
  --rule-soft:  #232529;
  --paper:      #16171a;
  --paper-tint: #1c1d21;
  --accent:     #6ea8dc;
  --accent-soft:#1c2c3a;
  --tag-bg:     #232529;
}

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

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

body {
  margin: 0;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(31,78,121,.25); }
a:hover { border-bottom-color: var(--accent); }
a.plain, .nav a, .brand a, .tabs a { border-bottom: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.15rem; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

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

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.site-header .bar {
  display: flex; align-items: center; gap: 1.35rem;
  padding: 1.1rem 1.5rem; max-width: var(--wrap-wide); margin: 0 auto;
}
.brand { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; margin-right: auto; }
.brand a { color: var(--ink); }
.brand .brand-sub {
  display: block; font-family: var(--sans); font-size: .72rem; font-weight: 400;
  letter-spacing: .055em; text-transform: uppercase; color: var(--ink-faint); margin-top: .15rem;
}
.nav { display: flex; gap: 1.35rem; flex-wrap: wrap; font-size: .935rem; }
.nav a { color: var(--ink-soft); padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 4px;
  padding: .3rem .55rem; font: inherit; font-size: .85rem; color: var(--ink-soft); cursor: pointer;
}

/* ---------- hero ---------- */

.hero { padding: 4rem 0 2.75rem; }
.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.1rem);
  font-weight: 650; letter-spacing: -0.035em; margin-bottom: .5rem;
}
.hero .role { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: .35rem; }
.hero .place { font-size: .93rem; color: var(--ink-faint); }
.hero .lede { font-size: 1.075rem; line-height: 1.7; color: var(--ink-soft); margin-top: 1.6rem; max-width: 42rem; }
.hero .lede strong { color: var(--ink); font-weight: 600; }

.contact-row { display: flex; flex-wrap: wrap; gap: .4rem 1.05rem; margin-top: 1.6rem; font-size: .93rem; }
.contact-row .sep { color: var(--rule); }

/* ---------- page head ---------- */

.page-head { padding: 3.2rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.5rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.35rem); font-weight: 650; letter-spacing: -0.03em; }
.page-head .sub { color: var(--ink-mute); margin-top: .6rem; max-width: 40rem; font-size: .98rem; }

/* ---------- sections ---------- */

.section { margin: 0 0 3.4rem; }
.section > h2 {
  font-size: .84rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-soft); font-weight: 700;
  padding-left: .65rem; border-left: 3px solid var(--accent);
  margin-bottom: 1.6rem; line-height: 1.3;
}
.section-note { font-size: .9rem; color: var(--ink-mute); margin: -.75rem 0 1.5rem; }
.section-compact .entry { padding: .7rem 0; }
.section-compact .entry-body p { margin-bottom: .3em; }

/* ---------- entry lists ---------- */

.entry { padding: 1.15rem 0; border-bottom: 1px solid var(--rule-soft); }
.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: 0; }
.entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
.entry-title { font-size: 1.045rem; font-weight: 600; letter-spacing: -0.005em; }
.entry-title a { color: var(--ink); border-bottom-color: var(--rule); }
.entry-meta { font-size: .875rem; color: var(--ink-mute); margin-top: .15rem; }
.entry-date {
  font-size: .82rem; color: var(--ink-faint); font-variant-numeric: tabular-nums;
  white-space: nowrap; flex-shrink: 0;
}
.entry-body { margin-top: .55rem; color: var(--ink-soft); font-size: .955rem; }
.entry-body ul { margin-top: .5rem; }
.entry-body li { color: var(--ink-soft); }
.entry-badge {
  display: inline-block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 3px;
  padding: .1rem .42rem; margin-left: .5rem; vertical-align: .12em; font-weight: 600;
}

/* ---------- publications ---------- */

.pub { padding: 1.3rem 0; border-bottom: 1px solid var(--rule-soft); }
.pub:last-child { border-bottom: 0; }
.pub-title { font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.pub-authors { font-size: .93rem; color: var(--ink-soft); margin-top: .3rem; }
.pub-authors .me { font-weight: 600; color: var(--ink); }
.pub-venue { font-size: .885rem; color: var(--ink-mute); margin-top: .2rem; font-style: italic; }
.pub-abstract { font-size: .93rem; color: var(--ink-soft); margin-top: .55rem; }
.pub-links { margin-top: .5rem; font-size: .875rem; display: flex; gap: .9rem; flex-wrap: wrap; }

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

.cards { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.card {
  border: 1px solid var(--rule); border-radius: 6px; padding: 1.15rem 1.2rem;
  background: var(--paper);
}
.card h3 { font-size: .99rem; margin-bottom: .35rem; }
.card p { font-size: .915rem; color: var(--ink-soft); margin: 0; }
.card .card-date { font-size: .78rem; color: var(--ink-faint); margin-bottom: .4rem; letter-spacing: .02em; }

/* ---------- tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.tag {
  font-size: .755rem; color: var(--ink-mute); background: var(--tag-bg);
  border-radius: 3px; padding: .12rem .45rem; letter-spacing: .01em;
}
.tag.is-active { background: var(--accent); color: #fff; }

/* ---------- filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.8rem; }
.filters button {
  font: inherit; font-size: .85rem; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 100px; padding: .25rem .8rem; color: var(--ink-soft); cursor: pointer;
}
.filters button:hover { border-color: var(--ink-faint); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- misc ---------- */

.news-list { list-style: none; padding: 0; }
.news-list li { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .95rem; }
.news-list li:last-child { border-bottom: 0; }
.news-date { flex: 0 0 5.2rem; color: var(--ink-faint); font-size: .85rem; font-variant-numeric: tabular-nums; }

.interest-grid { display: grid; gap: 1.4rem 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.interest h3 { font-size: .99rem; margin-bottom: .3rem; }
.interest p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

.highlight-list { list-style: none; padding: 0; }
.highlight-list li {
  display: flex; gap: .65rem; padding: .35rem 0; font-size: .97rem; color: var(--ink-soft);
}
.highlight-list li::before {
  content: "\2014"; color: var(--ink-faint); flex: 0 0 auto;
}

.skill-row { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule-soft); }
.skill-row:last-child { border-bottom: 0; }
.skill-row .cat { font-size: .9rem; font-weight: 600; color: var(--ink); }
.skill-row .items { font-size: .935rem; color: var(--ink-soft); }

.statement { font-size: 1.01rem; line-height: 1.75; color: var(--ink-soft); max-width: 40rem; }
.statement p:last-child { margin-bottom: 0; }

.prose { max-width: 40rem; }
.prose h3 { margin: 1.8rem 0 .5rem; font-size: 1.02rem; }

.empty { color: var(--ink-faint); font-size: .93rem; font-style: italic; }

.btn {
  display: inline-block; font: inherit; font-size: .93rem; border: 1px solid var(--ink);
  border-radius: 5px; padding: .42rem 1rem; color: var(--ink); background: var(--paper);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #17395a; border-color: #17395a; }
.btn.small { font-size: .84rem; padding: .28rem .7rem; }
.btn.danger { border-color: #b4232a; color: #b4232a; }
.btn.danger:hover { background: #b4232a; color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

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

.site-footer {
  border-top: 1px solid var(--rule); margin-top: 4.5rem; padding: 2rem 0 3rem;
  font-size: .875rem; color: var(--ink-faint);
}
.site-footer .inner { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-mute); border-bottom-color: var(--rule); }

/* ---------- print (CV page) ---------- */

@media print {
  .site-header, .site-footer, .jump-nav, .filters, .no-print { display: none !important; }
  body { font-size: 10.5pt; line-height: 1.4; }
  .wrap, .wrap-wide { max-width: none; padding: 0; }
  .section { margin-bottom: 1.2rem; page-break-inside: auto; }
  .entry, .pub { page-break-inside: avoid; }
  a { color: var(--ink); border-bottom: 0; }
}

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

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .bar { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: .2rem; padding-top: .6rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .4rem 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .skill-row { grid-template-columns: 1fr; gap: .25rem; }
  .entry-top { flex-direction: column; gap: .15rem; }
  .hero { padding: 2.6rem 0 2rem; }
}

/* ==========================================================================
   One-pager: each section is a full-width band, alternating tint, so it is
   unmistakable where one ends and the next begins - not just a heading and
   whitespace, but a visibly distinct block of the page.
   ========================================================================== */

/* Anchored sections must clear the sticky header when jumped to. */
.section-band[id] { scroll-margin-top: calc(var(--header-h, 5.4rem) + var(--jumpnav-h, 0px) + 1rem); }

.section-band {
  padding: 3.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.section-band.is-tint { background: var(--paper-tint); }
.section-band:last-of-type { border-bottom: 0; }
.section-band > .wrap > h2 {
  font-size: 1.15rem; text-transform: none; letter-spacing: -.005em;
  color: var(--ink); font-weight: 700;
  padding-left: .8rem; border-left: 4px solid var(--accent);
  margin-bottom: 1.9rem; line-height: 1.3;
}

/* Nav links double as anchors, with a scroll-spy state. */
.nav a.is-current { color: var(--ink); border-bottom-color: var(--ink); }

/* Compact hero for the one-pager */
.hero-onepager { padding: 3.6rem 0 3rem; }
.hero-onepager .lede { font-size: 1.09rem; max-width: 44rem; }

/* Each project category gets its own labelled group within Projects */
.project-group { margin-bottom: 2.4rem; }
.project-group:last-child { margin-bottom: 0; }
.project-group-title {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-mute); font-weight: 600; margin-bottom: .3rem;
}

/* Contact block at the foot of the one-pager */
.contact-block { display: grid; gap: 1.4rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.contact-block h3 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); font-weight: 600; margin-bottom: .5rem;
}
.contact-block ul { list-style: none; padding: 0; }
.contact-block li { font-size: .945rem; margin-bottom: .3em; }

@media (max-width: 720px) {
  .section-band[id] { scroll-margin-top: calc(var(--header-h, 3.2rem) + var(--jumpnav-h, 0px) + .75rem); }
  .section-band { padding: 2.6rem 0; }
}

/* Award and certification rows: title, then affiliation on its own line */
.highlight-list .hl-org { font-size: .87rem; color: var(--ink-mute); margin-top: .05rem; }

/* ==========================================================================
   Theme toggle
   ========================================================================== */

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper); color: var(--ink-soft); cursor: pointer; font-size: 1rem;
  line-height: 1; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--ink-faint); color: var(--ink); }
.theme-toggle .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: inline; }


/* ==========================================================================
   Jump nav — pills for every section on the one-pager
   ========================================================================== */

.jump-nav {
  position: sticky; top: var(--header-h, 4.5rem); z-index: 15;
  background: var(--paper-tint);
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule);
}
.jump-nav[hidden] { display: none; }
.jump-nav-inner {
  max-width: var(--wrap-wide); margin: 0 auto; padding: .7rem 1.5rem;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
}
.jump-nav-inner::-webkit-scrollbar { display: none; }
.jump-nav-inner a {
  flex: 0 0 auto; font-size: .82rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  padding: .3rem .8rem; border-radius: 100px; border: 1px solid var(--rule);
  background: var(--paper);
}
.jump-nav-inner a:hover { color: var(--ink); border-color: var(--ink-faint); }
.jump-nav-inner a.is-current { color: var(--paper); background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* Breathing room around the jump nav so it reads as its own bar, not text
   crammed between the hero and the first heading. */
.hero-onepager { padding-bottom: 3rem; }
.onepager-body { padding-top: 2.6rem; }

/* ==========================================================================
   Selected work — compact card grid instead of stacked full-width entries
   ========================================================================== */

.work-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.work-card {
  border: 1px solid var(--rule); border-radius: 8px; padding: 1.15rem 1.25rem;
  background: var(--paper); display: flex; flex-direction: column;
}
.work-card-top { display: flex; justify-content: flex-end; margin-bottom: -.3rem; }
.work-card h3 { font-size: 1rem; letter-spacing: -.005em; margin-bottom: .2rem; }
.work-card .entry-meta { margin-bottom: .5rem; }
.work-card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .6rem; }
.work-card .pub-links { margin-bottom: .5rem; }
.work-card .tags { margin-top: 0; margin-bottom: .3rem; }
.work-card details.detail { margin-top: auto; padding-top: .6rem; }

/* Awards & certifications read faster as two columns once there's a shelf of them */
@media (min-width: 720px) {
  .highlight-list { columns: 2; column-gap: 2.5rem; }
  .highlight-list li { break-inside: avoid; }
}
