/* ============================================================
   Dana C. Andersen — site styles
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Navbar ------------------------------------------------ */
.navbar {
  padding: 0.75rem 2rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.navbar-nav .nav-link:hover { opacity: 1; }

/* --- Mountain banner --------------------------------------- */
.mountain-banner {
  width: 100%;
  height: 280px;
  background-image: linear-gradient(to bottom, rgba(27,42,59,0.15) 0%, rgba(27,42,59,0.05) 100%),
                    url('assets/mountains.jpg');
  background-size: cover;
  background-position: center 30%;
  display: block;
}
.hero-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.88;
  letter-spacing: 0.05em;
}
.hero-links {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-links a {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}
.hero-links a:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

/* --- Main content container -------------------------------- */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.content-section + .content-section {
  padding-top: 0;
}

/* --- About / bio ------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { text-align: center; }
}
.about-photo img {
  width: 100%;
  max-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.about-photo .photo-placeholder {
  width: 180px;
  height: 210px;
  background: #d0dce8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a90a4;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
}
.contact-line {
  font-size: 0.88rem;
  color: #5a6a7a;
  margin-top: 1rem;
}
.contact-line a { color: #2d6a8a; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* --- Section headings ------------------------------------- */
h2.section-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1b2a3b;
  border-bottom: 2px solid #4a8fa8;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

/* --- Paper list ------------------------------------------- */
.paper-list { list-style: none; padding: 0; margin: 0; }
.paper-item {
  padding: 1rem 0 1rem 1rem;
  border-left: 3px solid #e0eaf2;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.paper-item:hover { border-left-color: #4a8fa8; }
.paper-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: #1b2a3b;
  margin-bottom: 0.2rem;
}
.paper-title a { color: inherit; text-decoration: none; }
.paper-title a:hover { color: #2d6a8a; }
.paper-meta {
  font-size: 0.85rem;
  color: #5a6a7a;
}
.paper-authors {
  font-size: 0.85rem;
  color: #5a6a7a;
  font-style: italic;
}
.paper-links {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.paper-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.paper-tag:hover { opacity: 0.8; }
.tag-pdf { background: #e8f0f7; color: #2d6a8a; }
.tag-journal { background: #e8f5ee; color: #2d7a4f; }
.tag-lead { background: #fdf3e3; color: #a06020; }

/* --- Course cards ----------------------------------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.course-card {
  border: 1px solid #dce8f0;
  border-radius: 8px;
  padding: 1.4rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.course-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.course-code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a8fa8;
  margin-bottom: 0.3rem;
}
.course-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1b2a3b;
  margin-bottom: 0.5rem;
}
.course-desc { font-size: 0.85rem; color: #5a6a7a; }

/* --- Student password gate -------------------------------- */
.password-gate {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
  padding: 2.5rem;
  border: 1px solid #dce8f0;
  border-radius: 10px;
}
.password-gate h2 {
  font-family: 'Lora', serif;
  color: #1b2a3b;
  margin-bottom: 0.5rem;
}
.password-gate p { color: #5a6a7a; font-size: 0.9rem; margin-bottom: 1.5rem; }
.password-gate input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #c0d0de;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.1em;
}
.password-gate button {
  width: 100%;
  padding: 0.65rem;
  background: #1b2a3b;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.password-gate button:hover { background: #2d4a6b; }
.password-gate .error { color: #c0392b; font-size: 0.85rem; margin-top: 0.5rem; display: none; }

/* --- Footer ----------------------------------------------- */
.nav-footer { font-size: 0.82rem; padding: 1.2rem 0; }

/* --- Utilities -------------------------------------------- */
.text-muted-sm { font-size: 0.85rem; color: #7a8a9a; }
.mt-0 { margin-top: 0 !important; }
.quarto-title { display: none; }
