/* Joel Bothello — Academic Website */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-light: #888;
  --link: #1a1a1a;
  --link-hover: #444;
  --border: #e0e0e0;
  --bg: #ffffff;
  --nav-height: 56px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
}

/* ─── Layout ─── */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 0;
  align-items: center;
}

nav a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--text);
  background: #f4f4f4;
}

nav a.active {
  color: var(--text);
  font-weight: 500;
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ─── Typography ─── */

h1 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--text);
}

h2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h2:first-child {
  margin-top: 0;
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* ─── Publication list ─── */

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

.pub-list li {
  font-size: 15px;
  line-height: 1.8;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
}

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

.pub-list li em {
  color: var(--text-secondary);
}

/* ─── Press list ─── */

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

.press-list li {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.press-title {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 3px;
  display: block;
}

.press-meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--text-light);
  font-style: normal;
}

/* ─── Pedagogy table ─── */

.course-grid {
  width: 100%;
  border-collapse: collapse;
}

.course-grid td {
  padding: 10px 0;
  font-size: 15px;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
}

.course-grid td:first-child {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  width: 110px;
  padding-right: 20px;
}

.course-grid tr:last-child td {
  border-bottom: none;
}

/* ─── Profile specifics ─── */

.profile-intro {
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-link {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  transition: border-color 0.15s, color 0.15s;
}

.social-link:hover {
  border-color: var(--text-secondary);
  color: var(--text);
  text-decoration: none;
  text-decoration-color: transparent;
}

.updated {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 24px;
}

/* ─── Footer ─── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.site-footer p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    gap: 2px;
  }

  nav a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .main-content {
    padding: 32px 16px 64px;
  }

  h1 {
    font-size: 19px;
  }
}
