/* Academic site — styled after hanjoonryu.com (burgundy Google Sites theme) */
:root {
  --burgundy: #1f3a5f;    /* navy primary */
  --burgundy-dark: #16304d;
  --accent: #2563a6;      /* medium blue for headings & links */
  --text: #3c4043;
  --muted: #5f6368;
  --border: #dadce0;
  --max-width: 900px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / nav */
.site-header {
  background: var(--burgundy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.site-title:hover { text-decoration: none; color: #fff; opacity: 0.9; }
nav.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
nav.site-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
}
nav.site-nav a:hover { color: #fff; text-decoration: none; }
nav.site-nav a.active { color: #fff; font-weight: 700; }

/* Hero banner */
.hero {
  background: var(--burgundy);
  position: relative;
  overflow: hidden;
  padding: 64px 24px 96px;
}
/* darker sweeping curve at the bottom, like the Google Sites banner */
.hero::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -55%;
  width: 140%;
  height: 70%;
  background: var(--burgundy-dark);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: rotate(-3deg);
}
.hero .box {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  border: 3px solid #fff;
  padding: 40px 48px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.hero.hero-home h1 { text-align: right; }

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 72px;
}
h2.section {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #202124;
  margin: 56px 0 24px;
}
h2.section:first-child { margin-top: 0; }
h2.accent {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
h3.item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 32px 0 4px;
}
.item-meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.muted { color: var(--muted); }

/* Home page */
.profile {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile img { width: 340px; flex-shrink: 0; }
.profile .intro { flex: 1; min-width: 280px; }
.profile .intro p:first-of-type { margin-top: 0; }
.pronounce {
  text-align: right;
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 10px 0 0;
}
.pronounce a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.pronounce a:hover { text-decoration: none; border-bottom-color: #fff; }
.pronounce .ico-speaker {
  width: 14px;
  height: 14px;
  fill: currentColor;
  vertical-align: -2px;
  margin-right: 5px;
}

/* Presentation venues */
.venues { margin: 8px 0 10px; }
.venue-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--burgundy);
  margin: 0 0 5px;
}
ul.venue-list { list-style: none; margin: 0; padding: 0; }
ul.venue-list li {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 15px;
  margin-bottom: 4px;
}
ul.venue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

/* Abstract toggles */
details.abstract { margin: 8px 0 4px; }
details.abstract summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}
details.abstract p {
  font-size: 15px;
  color: var(--text);
  background: #faf7f8;
  border-left: 3px solid var(--burgundy);
  padding: 12px 16px;
  margin: 10px 0 0;
}

ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

hr.sep { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px 48px;
}
footer.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-buttons a {
  display: inline-block;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 28px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.footer-buttons a:hover { background: var(--burgundy); color: #fff; text-decoration: none; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #757575;
  color: #fff;
  text-decoration: none;
}
.footer-social a svg { width: 18px; height: 18px; fill: #fff; }
/* Brand colours, one per destination */
.footer-social a.s-email    { background: #1f3a5f; }  /* site navy */
.footer-social a.s-github   { background: #181717; }  /* GitHub black */
.footer-social a.s-linkedin { background: #0a66c2; }  /* LinkedIn blue */
.footer-social a.s-york     { background: #e31837; }  /* York U red */
.footer-social a.s-york svg { width: 24px; height: 24px; }
.footer-social a { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.footer-social a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.footer-note {
  max-width: var(--max-width);
  margin: 24px auto 0;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .hero .box { padding: 28px 24px; }
  .profile img { width: 100%; max-width: 280px; }
}
