/* ============================================================
   Florian Ederer – Personal Website
   Modeled on Song Ma's clean academic style
   ============================================================ */

/* --- Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.65;
}

/* --- Layout ------------------------------------------------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation --------------------------------------------- */
nav {
  border-bottom: 1px solid #e0e0e0;
  padding: 1.1rem 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .site-header {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

nav .site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  letter-spacing: 0;
}

nav .site-title {
  font-size: 0.78rem;
  color: #777;
  font-weight: 400;
  margin-top: 0.15rem;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.15s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #1a4f9e;
}

/* --- Links -------------------------------------------------- */
a { color: #1a4f9e; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Main content ------------------------------------------- */
main { padding: 3rem 0 4rem; }

/* --- Home page layout --------------------------------------- */
.home-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.photo-frame {
  background: #f4f4f2;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: inline-block;
  width: 100%;
}

.home-photo img {
  width: 100%;
  border-radius: 2px;
  display: block;
}

p.home-full-width {
  margin-top: 1.5rem;
  font-size: 0.97rem;
}

.home-bio h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.home-bio .position {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.4rem;
  line-height: 1.45;
}

.home-bio p {
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.home-bio .contact-links,
.contact-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.92rem;
}

.home-bio .contact-links a {
  color: #1a4f9e;
}

/* --- Section headings --------------------------------------- */
h2.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e0e0;
}

/* --- Paper list --------------------------------------------- */
.paper-list { list-style: none; }

.paper-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.paper-list li:last-child { border-bottom: none; }

.paper-title {
  font-weight: 600;
  color: #1a4f9e;
}

.paper-title:hover { text-decoration: underline; }

.journal { font-style: italic; color: #444; }

.paper-meta {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: #666;
}

.paper-meta a { color: #666; }
.paper-meta a:hover { color: #1a4f9e; }

.prizes a, .policy a { color: #555; }
.prizes a:hover, .policy a:hover { color: #1a4f9e; }


.prizes, .policy {
  margin-top: 0.3rem;
  font-size: 0.87rem;
  color: #555;
}

/* --- Press page --------------------------------------------- */
.press-section { margin-bottom: 2.5rem; }

.press-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.6rem;
}

.press-list { list-style: none; }

.press-list li {
  padding: 0.25rem 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.press-source {
  color: #888;
  font-size: 0.88rem;
}

/* --- Teaching page ------------------------------------------ */
.teaching-section { margin-bottom: 2.5rem; }

.student-list { list-style: none; }

.student-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #f4f4f4;
}

.student-list li:last-child { border-bottom: none; }


/* --- Responsive --------------------------------------------- */
@media (max-width: 680px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-photo img {
    max-width: 100%;
  }

  nav .nav-links { gap: 1.2rem; }
  nav .site-name { font-size: 1.2rem; }
  nav .site-title { display: none; }
}
