/* ==========================================================================
   irohxucao.com — hand-built, no framework.
   Type: Fraunces (display) + Source Serif 4 (text), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/source-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/source-serif-italic.woff2") format("woff2");
}

:root {
  --paper: #fbf8f1;
  --paper-2: #f4eee1;
  --ink: #26201a;
  --ink-soft: #6b6151;
  --line: #e8e0d1;
  --line-strong: #26201a;
  --teal: #17655a;
  --teal-soft: #e2ede9;
  --brick: #b04a26;
  --brick-soft: #f4e4da;
  --gold: #9a7418;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Single light theme by design — the warm paper look is part of the identity. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  border-top: 4px solid var(--line-strong);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--teal) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--teal); text-decoration-color: var(--teal); }

::selection { background: var(--teal-soft); }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 .9rem;
  margin-bottom: 3.25rem;
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.masthead .brand {
  font-family: var(--display);
  font-weight: 640;
  font-size: 1.3rem;
  letter-spacing: .01em;
  text-decoration: none;
}
.masthead .brand .mark { color: var(--brick); }
.masthead nav {
  display: flex;
  gap: 1.35rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.masthead nav a { text-decoration: none; color: var(--ink-soft); }
.masthead nav a:hover { color: var(--teal); }
.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--brick);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Section furniture
   -------------------------------------------------------------------------- */

section { margin-bottom: 3.75rem; }

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.35rem;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker.brick { color: var(--brick); }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; }

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

.hero { margin-bottom: 4rem; }
.hero::after { content: ""; display: block; clear: both; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 660;
  letter-spacing: -.01em;
  margin-bottom: .4rem;
}
.hero .tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 480;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
@media (min-width: 760px) {
  .hero .tagline { white-space: nowrap; }
}
.hero .tagline em { font-style: italic; color: var(--teal); }

.roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.role {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .3rem .7rem;
  border-radius: 999px;
  text-decoration: none;
}
.role.uiuc { background: var(--teal-soft); color: var(--teal); }
.role.pediamed { background: var(--brick-soft); color: var(--brick); }
a.role:hover { filter: brightness(.94); }

.hero p { margin-bottom: 1rem; }
.hero p:last-of-type { margin-bottom: 0; }

.portrait {
  position: relative;
  float: right;
  width: 16rem;
  margin: .4rem 0 1.5rem 3rem;
}
.portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: .6rem -.6rem -.6rem .6rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  z-index: -1;
}
.portrait figcaption {
  margin-top: 1.1rem;
  font-size: .8rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .8rem;
}
.contact-row a { text-decoration: none; color: var(--ink-soft); }
.contact-row a:hover { color: var(--teal); }
.contact-row a::before { content: "→ "; color: var(--brick); }

/* --------------------------------------------------------------------------
   Highlights strip
   -------------------------------------------------------------------------- */

.highlights {
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  font-size: .86rem;
  color: var(--ink-soft);
}
.highlights span::before { content: "✳ "; color: var(--gold); }

/* --------------------------------------------------------------------------
   Research pillars
   -------------------------------------------------------------------------- */

.pillars { display: grid; gap: 1.5rem; }
.pillar {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.1rem;
  align-items: baseline;
}
.pillar .num {
  font-family: var(--display);
  font-weight: 560;
  font-size: 2rem;
  color: var(--teal);
  opacity: .55;
  line-height: 1;
}
.pillar h3 { font-size: 1.18rem; font-weight: 620; margin-bottom: .3rem; }
.pillar p { font-size: .97rem; color: var(--ink-soft); }
.pillar .pillar-refs {
  margin-top: .35rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   PediaMed AI card
   -------------------------------------------------------------------------- */

.pediamed-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brick);
  border-radius: 4px;
  padding: 1.75rem 1.9rem;
}
.pediamed-card h3 {
  font-size: 1.45rem;
  font-weight: 640;
  margin-bottom: .75rem;
}
.pediamed-card h3 a { text-decoration: none; }
.pediamed-card h3 a:hover { color: var(--brick); }
.pediamed-card p { margin-bottom: .9rem; font-size: .99rem; }
.pediamed-card p:last-child { margin-bottom: 0; }
.pediamed-card .note {
  font-style: italic;
  font-size: .92rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: .9rem;
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */

.news { list-style: none; }
.news li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 1.2rem;
  padding: .55rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: .96rem;
}
.news li:last-child { border-bottom: none; }
.news time {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: .3rem;
}
.news .award-news::before { content: "★ "; color: var(--gold); }

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */

.pub-year {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 560;
  color: var(--ink-soft);
  opacity: .8;
  margin: 2.6rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pub-year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
section > .pub-year:first-of-type { margin-top: 0; }

.pubs { list-style: none; }
.pubs li { padding: 1rem 0; border-bottom: 1px dotted var(--line); }
.pubs li:last-child { border-bottom: none; }

.pub-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .35rem; }
.badge {
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .14rem .5rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper-2);
}
.badge.venue { border-color: color-mix(in srgb, var(--teal) 40%, transparent); color: var(--teal); background: transparent; }
.badge.award { border-color: color-mix(in srgb, var(--gold) 50%, transparent); color: var(--gold); background: transparent; }
.badge.pediamed { border-color: color-mix(in srgb, var(--brick) 45%, transparent); color: var(--brick); background: transparent; }

.pub-title {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}
.pub-title a { text-decoration: none; }
.pub-title a:hover { color: var(--teal); }
.pub-authors { font-size: .9rem; color: var(--ink-soft); margin-top: .2rem; }
.pub-authors .me { color: var(--ink); font-weight: 600; }
.pub-links { margin-top: .3rem; font-family: var(--sans); font-size: .78rem; }
.pub-links a { text-decoration: none; color: var(--teal); margin-right: .9rem; }
.pub-links a:hover { text-decoration: underline; }

.all-pubs-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  border-radius: 3px;
  padding: .55rem 1rem;
}
.all-pubs-link:hover { background: var(--teal-soft); }

/* --------------------------------------------------------------------------
   Service page
   -------------------------------------------------------------------------- */

.page-title {
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 660;
  margin-bottom: .5rem;
}
.page-intro { color: var(--ink-soft); margin-bottom: 2.8rem; }

.service-note { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1.6rem; }

.service-list { list-style: none; }
.service-list li {
  padding: .45rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: .97rem;
}
.service-list li:last-child { border-bottom: none; }
.service-list .role-tag {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brick);
  margin-right: .5rem;
}
.service-cols { columns: 2; column-gap: 2.5rem; font-size: .95rem; color: var(--ink-soft); }
.service-cols p { break-inside: avoid; margin-bottom: .35rem; }
h3.service-sub {
  font-size: 1.15rem;
  font-weight: 620;
  margin: 2rem 0 .8rem;
}
section > h3.service-sub:first-of-type { margin-top: 0; }

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

footer {
  border-top: 1px solid var(--line);
  margin-top: 4.5rem;
  padding: 1.6rem 0 2.4rem;
  font-size: .82rem;
  color: var(--ink-soft);
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--teal); }
footer .colophon { font-style: italic; }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .portrait { float: none; width: 11rem; margin: 0 auto 1.75rem; }
  .news li { grid-template-columns: 1fr; gap: .05rem; }
  .service-cols { columns: 1; }
  .masthead nav { gap: 1rem; }
}
