:root {
  --bg: #f4f4f7;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #8c1515; /* Stanford-ish red */
  --accent-soft: #fce8e8;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #ffffff, var(--bg));
  color: var(--text-main);
  line-height: 1.6;
}

/* Page layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(12px);
  background: rgba(244, 244, 247, 0.9);
}

.brand {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.seal {
  width: 90px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 1.4rem;
}

.brand-line {
  font-weight: 600;
}

.brand-line.subtle {
  font-weight: 400;
  color: var(--text-muted);
}

/* Main content */

.main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
}

.profile-card {
  width: 100%;
  max-width: 960px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

/* Top: photo + text */

.profile-top {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile-photo {
  width: 140px;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.title {
  margin: 0;
  font-weight: 500;
}

.affiliation {
  margin: 0.1rem 0 0.4rem;
  color: var(--text-muted);
}

.email-link {
  display: inline-block;
  margin-top: 0.3rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

/* Divider */

.divider {
  border-left:0px none; border-right:0px none; border-bottom:0px none; border-top:1px solid var(--border); margin-left:0; margin-right:0; margin-top:1.75rem; margin-bottom:1.25rem
}

/* Resources section */

.resources h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.resources-intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.link-list li {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.link-list li:hover {
  background: #f9fafb;
  border-color: var(--border);
}

.link-list a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.note {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Footer */

.page-footer {
  margin-top: 1.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* Responsive tweaks */

@media (max-width: 640px) {
  .main {
    padding: 1.5rem 0.75rem 2.25rem;
  }

  .profile-card {
    padding: 1.5rem 1.2rem;
  }

  .profile-top {
    align-items: flex-start;
  }

  .profile-photo {
    width: 110px;
  }

  .page-footer {
    text-align: left;
  }
}