/* Homepage-specific styles. Shared primitives live in /css/site.css. */

/* --- About section --- */

#about {
  position: relative;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80px;
  width: 520px;
  height: 520px;
  background-image: url('/img/background/Bundle3.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left top;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 800px) {
  #about::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .about-profile {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  #about::before {
    width: 360px;
    height: 360px;
  }
}

.about-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-profile {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-name {
  margin: 20px 0 6px;
  font-size: 1.6rem;
}

.about-role {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.about-affiliation {
  margin: 6px 0 0;
  font-size: 1rem;
}

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

.about-text {
  flex: 1 1 420px;
  min-width: 0;
}

.about-text .eyebrow {
  margin-top: 0;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0 20px;
}

@media (min-width: 640px) {
  .about-columns {
    grid-template-columns: auto 1fr;
    gap: 64px;
  }
}

.about-columns h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

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

.plain-list li {
  padding: 4px 0;
  color: var(--text);
}

/* --- Social icons --- */

.social-icons {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Research section --- */

#research h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
}

#research details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

#research details[open] {
  padding-bottom: 22px;
}

#research summary {
  cursor: pointer;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

#research summary::-webkit-details-marker { display: none; }

#research summary::after {
  content: "\002B"; /* + */
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent-soft);
  font-weight: 400;
  font-size: 1.2rem;
  transition: transform 0.15s ease;
}

#research details[open] summary::after {
  content: "\2212"; /* − */
}

#research details p {
  margin: 10px 0 0;
  font-size: 0.98rem;
}

#research details p strong { color: var(--text); }

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

/* --- Teaching section --- */

#teaching details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

#teaching details[open] {
  padding-bottom: 22px;
}

#teaching summary {
  cursor: pointer;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

#teaching summary::-webkit-details-marker { display: none; }

#teaching summary::after {
  content: "\002B";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent-soft);
  font-weight: 400;
  font-size: 1.2rem;
  transition: transform 0.15s ease;
}

#teaching details[open] summary::after {
  content: "\2212";
}

#teaching details p {
  margin: 10px 0 0;
  font-size: 0.98rem;
}

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

.course-term {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--accent-soft);
  margin-left: 10px;
}

.syllabus-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 18px;
  background: var(--accent);
  color: #fff !important;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: var(--radius);
  transition: opacity 0.15s ease;
}
.syllabus-btn:hover { opacity: 0.85; }


.video-embed {
  position: relative;
  margin-top: 18px;
  margin-left: -22px;
  margin-right: -22px;
  margin-bottom: -22px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Contact section --- */

#contact {
  position: relative;
  overflow: hidden;
}

#contact {
  position: relative;
  overflow: hidden;
}

#contact .section-inner {
  position: relative;
  z-index: 1;
}

#contact .section-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/background/cover.jpeg');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.contact-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent-soft);
}

.contact-grid p {
  margin: 0;
  line-height: 1.6;
}

/* --- Utilities --- */

.mt-large { margin-top: 48px; }
