:root {
  --bg: #f7f5f1;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --muted: #6f746f;
  --brand: #0c2d22;
  --accent1: #685f59;
  --accent2: #3e4644;
  --text: #222222;
  --sidebar-title: #fdebd0;
  --section-title: #097969;

  --body-font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --title-font: "Noto Serif", Georgia, "Times New Roman", serif;

  --sidebar-width: 260px;
  --gutter: 28px;
  --radius: 10px;
  --content-offset: 28px;
  --max-content: 980px;

  --cv-width: 980px;
  --cv-height: 1100px;
  --cv-scale: 1.2;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--accent1);
}

p, li {
  color: var(--text);
  font-weight: 300;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 36px 24px;
  background: var(--brand);
  color: white;
}

.profile {
  text-align: center;
  margin-bottom: 32px;
}

.profile img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.name {
  font-family: var(--title-font);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--sidebar-title);
  text-align: center;
}
.profile-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.icon-link {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}

.icon-link:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
}

.icon path {
  fill: #ffffff;
}

.sidebar nav {
  margin-top: 18px;
  text-align: left;
}

.navlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navlist li + li {
  margin-top: 8px;
}

.navlist a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: rgba(255,255,255,0.85);
  border-left: 2px solid transparent;
  transition: 
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}

.navlist a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--sidebar-title);
  transform: translateX(4px);
}

/* Hero */
.hero {
  padding: 1.6rem 0 1.3rem;
  margin-bottom: 1rem;
  background: rgba(12, 45, 34, 0.08);
  border-bottom: 4px solid rgba(12, 45, 34, 0.2);
}

.hero-inner {
  max-width: var(--max-content);
  margin-left: var(--content-offset);
  padding: 0 var(--gutter);
}

.hero h1 {
  font-family: var(--title-font);
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.hero-text {
  max-width: 110ch;
  line-height: 1.55;
  color: #444;
}

/* Content */
.content {
  max-width: var(--max-content);
  margin-left: var(--content-offset);
  padding: 0 var(--gutter) 60px;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--title-font);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Cards (base softened) */
.card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(62, 70, 68, 0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.card strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.meta {
  color: rgba(34, 34, 34, 0.55);
  font-size: 0.85rem;
}

/* Research */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.research-grid .card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(62, 70, 68, 0.06);
  box-shadow: none;
}

.research-grid .card strong {
  font-family: var(--title-font);
  font-weight: 500;
}

/* Talks */
.talk-card {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(62, 70, 68, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.talk-preview {
  border-radius: 12px;
  overflow: hidden;
  min-height: 180px;
  background: rgba(12, 45, 34, 0.03);
}

.talk-preview-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--title-font);
  color: rgba(34, 34, 34, 0.55);
  background: rgba(12, 45, 34, 0.05);
}

.talk-preview iframe,
.talk-preview img {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
  object-fit: cover;
}

/* Collaborations */
.collab-grid {
  display: grid;
  gap: 1rem;
}

.collab-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: start;
}

.collab-content p {
  margin-top: 0.5rem;
}

.collab-preview {
  border: 1px solid rgba(62, 70, 68, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12, 45, 34, 0.03);
  min-height: 190px;
}
.collab-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.collab-preview-placeholder {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--title-font);
  font-size: 0.95rem;
  color: rgba(34, 34, 34, 0.55);
  background: rgba(12, 45, 34, 0.05);
}

.collab-preview iframe,
.collab-preview img {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
  object-fit: cover;
}

/* Publications */
#publications .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 1.2rem 0;
}

#publications .card strong {
  font-family: var(--title-font);
  font-weight: 500;
  color: var(--section-title);
}

#publications ul {
  padding-left: 1.1rem;
}

#publications li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

/* CV */
.cv-embed {
  margin: 20px 0 12px;
  overflow-x: auto;
}

.cv-frame {
  width: calc(var(--cv-width) * var(--cv-scale));
  height: calc(var(--cv-height) * var(--cv-scale));
  border: 1px solid rgba(62, 70, 68, 0.1);
  border-radius: var(--radius);
  background: var(--surface-solid);
  overflow: hidden;
}

.cv-frame iframe {
  width: var(--cv-width);
  height: var(--cv-height);
  border: 0;
  display: block;
  transform: scale(var(--cv-scale));
  transform-origin: top left;
}

.cv-links {
  font-size: 0.875rem;
  color: var(--muted);
}
/* ===== GLOBAL HOVER SYSTEM ===== */

/* Base transition for all interactive elements */
a,
.button,
.card,
.talk-preview,
.collab-preview,
.cv-links a {
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s ease,
    color 0.18s ease;
}

/* Sidebar nav links */
.navlist a:hover {
  transform: translateY(-1px) translateX(2px);
  color: #ffffff;
}

/* Cards (general lift effect) */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

/* Collaboration previews */
.collab-preview:hover {
  transform: translateY(-2px);
  background: rgba(12, 45, 34, 0.06);
}

/* Talk slide previews */
.talk-preview:hover {
  transform: translateY(-2px);
  background: rgba(12, 45, 34, 0.06);
}

/* CV links (bottom buttons) */
.cv-links a:hover {
  transform: translateY(-1px);
  color: var(--accent1);
}

/* Inline links (subtle polish) */
.content a:hover {
  color: var(--accent1);
  text-decoration: underline;
}
/* Only lift visual cards, not publication text blocks */
.research-grid .card:hover,
.talk-card:hover,
.collab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
/* Responsive */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .profile img {
    width: 140px;
    height: 140px;
  }

  .hero-inner,
  .content {
    margin-left: 0;
    padding: 0 20px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .talk-card {
    grid-template-columns: 1fr;
  }

  .talk-preview-placeholder,
  .talk-preview iframe,
  .talk-preview img {
    height: 220px;
  }

  .collab-card {
    grid-template-columns: 1fr;
  }

  .collab-preview-placeholder,
  .collab-preview iframe,
  .collab-preview img {
    height: 220px;
  }

  .cv-embed {
    width: 100%;
    overflow-x: hidden;
  }

  .cv-frame {
    width: 100%;
    height: 650px;
  }

  .cv-frame iframe {
    width: 100%;
    height: 650px;
    transform: none;
  }
}
