/* =========================================================
   Adaora Mbanefo — personal site
   Sage + cream + mustard. Monospace body, serif display.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --sage:        #c1d5c0;   /* original bg, kept */
  --sage-soft:   #d4e3d3;
  --sage-deep:   #a8c4a7;
  --forest:      #215f42;   /* original text, kept */
  --forest-ink:  #143726;
  --cream:       #faf5e6;
  --cream-warm:  #f3ead2;
  --mustard:     #c98e1a;
  --rust:        #b8552c;
  --ink:         #1a1a1a;

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --mono:  'JetBrains Mono', Monaco, 'Courier New', monospace;

  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  color: var(--forest-ink);
  background-color: var(--sage);
  margin: 0;
  padding: 0;
  /* subtle grain texture for warmth */
  background-image:
    radial-gradient(rgba(20,55,38,0.04) 1px, transparent 1px),
    radial-gradient(rgba(20,55,38,0.03) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

::selection { background: var(--mustard); color: var(--cream); }

/* ---------- Header / Nav ---------- */

header {
  background: var(--cream);
  border-bottom: 1px solid var(--forest);
  padding: 18px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--forest-ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .dot { color: var(--mustard); font-size: 28px; line-height: 0; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

nav ul li a {
  color: var(--forest-ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--mustard);
  transition: width 0.25s ease;
}

nav ul li a:hover { color: var(--rust); }
nav ul li a:hover::after { width: 100%; }
nav ul li a.active { color: var(--rust); }
nav ul li a.active::after { width: 100%; }

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

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 120px;
}

section { margin-bottom: 88px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--forest-ink); }

h1 {
  font-size: clamp(56px, 11vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h1 .accent { color: var(--mustard); font-style: italic; }

.name-pronunciation {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-size: 28px;
  font-weight: 500;
  color: var(--rust);
  margin: 8px 0 0;
  letter-spacing: 0.01em;
  line-height: 1;
}

h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rust);
}

p { margin: 0 0 18px; }

a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

/* ---------- Hero ---------- */

.hero {
  padding-top: 24px;
  padding-bottom: 32px;
  position: relative;
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 28px;
}
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta span::before {
  content: "◆";
  color: var(--mustard);
  font-size: 10px;
}

.hero-bio {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  margin-top: 32px;
}

/* ---------- Card / panel ---------- */

.panel {
  background: var(--cream);
  border: 1px solid var(--forest);
  padding: 28px 32px;
  position: relative;
}

.panel + .panel { margin-top: 20px; }

.panel-warm {
  background: var(--cream-warm);
}

/* dashed divider in the indie-web spirit */
.divider {
  border: none;
  border-top: 1px dashed var(--forest);
  margin: 64px 0;
  opacity: 0.5;
}

/* ---------- Two-column ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Tag chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  background: var(--sage-soft);
  border: 1px solid var(--forest);
  color: var(--forest-ink);
  border-radius: 2px;
}
.chip-mustard { background: var(--mustard); color: var(--cream); border-color: var(--forest-ink); }

/* ---------- Project / Research grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  border: 1px solid var(--forest);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--forest-ink);
}
.card .card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}
.card h3 { font-size: 26px; margin: 0; }
.card p { font-size: 14px; margin: 0; }
.card .card-links {
  margin-top: auto;
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 12px;
}

/* ---------- Workshop / "Coming soon" section ---------- */

.workshop-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--forest);
  margin: 0 0 36px;
  letter-spacing: 0.01em;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .workshop-grid { grid-template-columns: 1fr; }
}

.workshop-card {
  border: 1.5px dashed var(--forest);
  background: var(--cream-warm);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
}
.workshop-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  margin: 0;
  color: var(--forest-ink);
}

.workshop-pending {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 44px;
  font-style: italic;
  opacity: 0.85;
}

/* ---------- Research entries ---------- */

.research-entries {
  margin-top: 16px;
}
.research-entry {
  padding: 40px 0;
  border-bottom: 1px dashed var(--forest);
}
.research-entry:first-child {
  border-top: 1px dashed var(--forest);
}
.research-entry h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.05;
  margin: 0 0 6px;
}
.research-affiliation {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 20px;
}
.research-people {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--forest-ink);
  margin: 0 0 18px;
}
.research-people .with-label {
  color: var(--rust);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 8px;
}
.research-entry p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.research-entry p:last-child {
  margin-bottom: 0;
}

/* ---------- Lists for research ---------- */

.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li {
  border-top: 1px solid var(--forest);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
}
.pubs li:last-child { border-bottom: 1px solid var(--forest); }
.pubs .year {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--rust);
  padding-top: 4px;
}
.pubs .pub-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.pubs .pub-meta { font-size: 13px; color: var(--forest); margin-bottom: 6px; }
.pubs .pub-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--sage-soft);
  border: 1px solid var(--forest);
  margin-top: 6px;
}
@media (max-width: 600px) {
  .pubs li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Resume styles ---------- */

.resume {
  background: var(--cream);
  border: 1px solid var(--forest);
  padding: 56px 64px;
}
@media (max-width: 720px) {
  .resume { padding: 32px 24px; }
}

.resume h2 {
  font-size: 36px;
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 8px;
}
.resume h2:first-of-type { margin-top: 0; }
.resume .resume-item { margin-bottom: 20px; }
.resume .resume-item .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.resume .resume-item .role { font-weight: 700; }
.resume .resume-item .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
  letter-spacing: 0.06em;
}
.resume .resume-item ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
}
.resume .resume-item ul li { margin-bottom: 4px; }

.resume .download {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  background: var(--mustard);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--forest-ink);
  transition: transform 0.2s;
}
.resume .download:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--forest-ink); color: var(--cream); }

/* ---------- "Currently" / "Now" ---------- */

.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 20px;
  font-size: 14px;
}
.now-list dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  padding-top: 4px;
}
.now-list dd { margin: 0; padding-bottom: 12px; border-bottom: 1px dashed rgba(20,55,38,0.25); }
.now-list dd:last-child { border-bottom: none; }

/* ---------- Footer ---------- */

footer {
  background: var(--cream);
  border-top: 1px solid var(--forest);
  padding: 40px 32px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.footer-links a { color: var(--forest-ink); }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--forest);
}
.footer-copy {
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-top: 1px dashed var(--forest);
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Decorative monospace flourish ---------- */

.ascii-rule {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--forest);
  opacity: 0.5;
  margin: 32px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* page-load reveal */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal > * { animation: rise 0.7s ease both; }
.reveal > *:nth-child(1) { animation-delay: 0.05s; }
.reveal > *:nth-child(2) { animation-delay: 0.15s; }
.reveal > *:nth-child(3) { animation-delay: 0.25s; }
.reveal > *:nth-child(4) { animation-delay: 0.35s; }
.reveal > *:nth-child(5) { animation-delay: 0.45s; }
