/* University of Houston red adaptation of Hanchao Zhang's Minimal Light layout. */
/* Use UH Brick as the main accent, matching the name's deeper red tone. */
:root {
  --uh-red: #c8102e;
  --uh-brick: #960c22;
  --uh-chocolate: #640817;
  --accent: #960c22;
  --accent-hover: #640817;
  --accent-soft: #960c22;
  --accent-rgb: 150, 12, 34;
  --surface-tint: #ffffff;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --text: #595959;
  --muted: #666666;
  --line: #e5e5e5;
  --on-accent: #ffffff;
  color-scheme: light;
}
html { scroll-behavior: smooth; }
body { background: var(--page-bg); color: var(--text); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #ffffff;
  /* Keep one continuous field, with a narrower ellipse and a soft eased fade. */
  --net-mask: radial-gradient(ellipse 34vw 80vh at 50% 50%,
    transparent 80%, rgba(0, 0, 0, .104) 90%, rgba(0, 0, 0, .352) 100%,
    rgba(0, 0, 0, .648) 110%, rgba(0, 0, 0, .896) 120%, #000 130%);
  -webkit-mask-image: var(--net-mask);
  mask-image: var(--net-mask);
}
#vanta-bg canvas { display: block; opacity: .65; }
@media (max-width: 960px) {
  #vanta-bg {
    /* About 0.5 cm at each edge, fading before the reading area. */
    --net-mask: linear-gradient(90deg,
      #000 .35cm, rgba(0, 0, 0, .896) .38cm, rgba(0, 0, 0, .648) .41cm,
      rgba(0, 0, 0, .352) .44cm, rgba(0, 0, 0, .104) .47cm, transparent .5cm,
      transparent calc(100% - .5cm), rgba(0, 0, 0, .104) calc(100% - .47cm),
      rgba(0, 0, 0, .352) calc(100% - .44cm), rgba(0, 0, 0, .648) calc(100% - .41cm),
      rgba(0, 0, 0, .896) calc(100% - .38cm), #000 calc(100% - .35cm));
  }
}
.wrapper { position: relative; z-index: 1; }
.stats-watermark { top: 0; height: 100%; color: var(--accent); }
/* Retain the template avatar frame; crop only this personal photo inside it. */
header .portrait {
  display: block; overflow: hidden; width: 80%; aspect-ratio: 1; margin: 0 auto 18px;
  border-radius: 50%; border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--accent-hover), var(--accent)) border-box;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), .22), 0 0 0 6px rgba(var(--accent-rgb), .07);
}
header .portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translateX(14%) scale(2.2); transform-origin: 50% 17%; border: 0; padding: 0; background: none; box-shadow: none; border-radius: inherit; }
header .position { font-size: 1.10rem; line-height: 1.5; margin: 8px 0; }
header p { margin: 10px 0; }
header .email { font-size: 14px; font-family: "Ubuntu Mono", monospace; color: #6d6d6d; overflow-wrap: anywhere; }
.institution-link { color: var(--accent); }
.social-icons { margin: 18px 0 8px; }
.social-icons .ai { font-size: 1.2rem; }
.social-icons a { color: var(--accent) !important; }
.social-icons a:hover { color: var(--accent-hover) !important; }
.section-nav { font-size: .85rem; margin: 8px 0 18px; }
.beyond-link, .beyond-link:hover { color: var(--on-accent); }
.container-flex { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; margin: 26px 0 28px; }
.edu-list ul, .research-interests ul { mask-image: none; -webkit-mask-image: none; }
.edu-list .yr, .edu-list .deg, .entry-content div { color: var(--muted); }
.edu-list .school a { color: #222; }
.edu-list .school a:hover, .edu-list .deg a { color: var(--accent); }
.edu-list li, .research-interests ul li { background: rgba(var(--accent-rgb), .03); }
.edu-list li.l1 { background: rgba(var(--accent-rgb), .06); }
.research-heading { margin: 2px 0 -15px; }
.presentation-subheading {
  display: flex; align-items: center; gap: 12px; margin: 30px 6px 16px;
  color: var(--accent); font-size: 1.05rem; font-weight: 500; line-height: 1.4;
}
.presentation-subheading > span {
  padding: 3px 13px; border: 1px solid rgba(var(--accent-rgb), .14); border-radius: 999px;
  background: rgba(var(--accent-rgb), .035);
}
.presentation-subheading::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .24), rgba(var(--accent-rgb), 0));
}
.supporting-list { margin: 0 0 28px; padding-left: 20px; list-style-type: disc; }
.supporting-list > li { margin-bottom: 14px; }
.supporting-list .research-meta { margin: 3px 0; }
.date-label { white-space: nowrap; }
.research-list { list-style: none; padding: 0; }
.research-card { display: block; }
.research-copy { position: relative; padding: 0 15px 0 20px; min-width: 0; }
.research-media { position: relative; padding: 0 15px; margin: 0; height: auto !important; }
.research-media[hidden] { display: none; }
.research-caption { color: var(--muted); font-size: .8rem; line-height: 1.4; margin: 6px 5px 0; }
.research-meta { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.research-status { display: inline-block; padding: 2px 8px; margin: 2px 6px 4px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-tint); color: var(--accent); font-size: .8rem; line-height: 1.5; font-weight: 600; }
.publications .links .btn { font-size: 12px; }
.theme-credit { margin-top: 42px; color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 9999; padding: 8px 12px; background: var(--surface); }
.skip-link:focus { top: 8px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 960px) {
  header .portrait { width: 180px; padding: 5px; border-radius: 20%; }
  .stats-watermark { display: none; }
}
@media (max-width: 600px) {
  :root { --mobile-gutter: clamp(26px, 7.5vw, 36px); }
  body { padding-inline: var(--mobile-gutter); }
  #vanta-bg {
    --net-mask: linear-gradient(90deg,
      #000 calc(var(--mobile-gutter) - 10px),
      rgba(0, 0, 0, .896) calc(var(--mobile-gutter) - 8px),
      rgba(0, 0, 0, .648) calc(var(--mobile-gutter) - 6px),
      rgba(0, 0, 0, .352) calc(var(--mobile-gutter) - 4px),
      rgba(0, 0, 0, .104) calc(var(--mobile-gutter) - 2px),
      transparent var(--mobile-gutter), transparent calc(100% - var(--mobile-gutter)),
      rgba(0, 0, 0, .104) calc(100% - var(--mobile-gutter) + 2px),
      rgba(0, 0, 0, .352) calc(100% - var(--mobile-gutter) + 4px),
      rgba(0, 0, 0, .648) calc(100% - var(--mobile-gutter) + 6px),
      rgba(0, 0, 0, .896) calc(100% - var(--mobile-gutter) + 8px),
      #000 calc(100% - var(--mobile-gutter) + 10px));
  }
  .container-flex { gap: 20px; }
}
@media (max-width: 600px) {
  .container-flex > * { flex-basis: 100%; min-width: 0; }
}
@media (max-width: 480px) {
  .wrapper { overflow-wrap: anywhere; }
  header .portrait { padding: 3px; }
  .stats-watermark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #vanta-bg { display: none; }
}
