:root {
  --bg: #eceff3;
  --bg-deep: #dde3ea;
  --panel: #fbfcfd;
  --ink: #1d2633;
  --muted: #586374;
  --line: #ccd4df;
  --accent: #0000ee;
  --accent-soft: #ebeff4;
  --shadow: 0 16px 42px rgba(18, 37, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 10% -10%, #f7f8fa 0%, rgba(247, 248, 250, 0) 70%),
    radial-gradient(1000px 800px at 115% 20%, #dfe4eb 0%, rgba(223, 228, 235, 0) 65%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(27, 36, 49, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 36, 49, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 20%, black 25%, transparent 85%);
  z-index: -1;
}

.page-shell {
  width: min(1100px, 92vw);
  margin: clamp(1rem, 2.2vw, 2rem) auto clamp(2rem, 5vw, 4rem);
}

.content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 2rem);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: inherit;
  line-height: 1.24;
  color: #1e2838;
}

h1 {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  letter-spacing: 0;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

h3 {
  margin-top: 1.7rem;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
  color: var(--accent);
}

p {
  margin: 0.45rem 0 1rem;
  color: var(--ink);
}

ul {
  margin: 0.5rem 0 1.15rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.42rem 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:visited {
  color: #551a8b;
}

a:hover,
a:focus-visible {
  color: #0000cc;
}

small {
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8rem 0 0.4rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

img[src*="profile"] {
  width: min(250px, 100%);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 33, 60, 0.18);
}

img[src*="youtube"] {
  width: min(560px, 100%) !important;
  height: auto !important;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(14, 32, 58, 0.2);
}

img[src$="pdf.gif"] {
  width: 15px;
  height: 16px;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

main > table:first-of-type {
  width: 100%;
  margin: 0 0 1rem;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #f8f9fb 0%, #eaedf2 100%);
}

main > table:first-of-type > tbody > tr {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 250px);
  gap: 1.2rem;
  padding: clamp(1rem, 2.2vw, 1.7rem);
  align-items: center;
}

main > table:first-of-type > tbody > tr > td {
  vertical-align: top;
}

main > table:first-of-type table {
  width: 100%;
}

main > table:first-of-type table td {
  padding: 0.18rem 0;
}

main > table:first-of-type table td:first-child {
  width: 72px;
  color: var(--muted);
  font-weight: 600;
}

table[bgcolor="#ffffcc"] {
  width: 100%;
  border-collapse: separate;
  border: 1px solid #dec793;
  border-left: 6px solid #c49535;
  border-radius: 12px;
  background: #fff8e2;
  box-shadow: 0 8px 20px rgba(42, 32, 9, 0.08);
}

table[bgcolor="#ffffcc"] td {
  padding: 0.75rem 0.95rem;
}

.quick-links {
  margin: 1.4rem 0 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #f9fafb 0%, var(--accent-soft) 100%);
}

.quick-links-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #556172;
}

.quick-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links-list a {
  display: inline-block;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #c5ced9;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
}

.quick-links-list a:hover,
.quick-links-list a:focus-visible {
  transform: translateY(-1px);
  border-color: #a6b2c3;
  background: #ffffff;
}

.research-interests-list,
.research-interests-list ul {
  margin-top: 0.18rem;
  margin-bottom: 0.55rem;
}

.research-interests-list li {
  margin: 0.16rem 0;
  line-height: 1.38;
}

.research-interests-list ul {
  padding-left: 1.06rem;
}

body.js-ready .content > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--delay, 0ms);
}

body.js-ready .content > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .content {
    border-radius: 18px;
  }

  main > table:first-of-type > tbody > tr {
    grid-template-columns: 1fr;
  }

  main > table:first-of-type > tbody > tr > td:last-child {
    justify-self: start;
  }

  h2 {
    margin-top: 2rem;
  }
}
