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

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background: #fafafa;
}

/* Layout */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: #1a2e44;
  color: #fff;
  padding: 36px 0 28px;
}

header h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

header p.title {
  font-size: 0.95rem;
  color: #a8c0d6;
  font-style: italic;
}

/* Navigation */
nav {
  background: #24405e;
  border-bottom: 3px solid #c8a84b;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: 12px 22px;
  color: #d6e6f2;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
  background: #1a2e44;
  color: #fff;
}

/* Main content */
main {
  padding: 48px 0 64px;
}

/* Sections */
section {
  margin-bottom: 48px;
}

h2 {
  font-size: 1.35rem;
  font-weight: normal;
  color: #1a2e44;
  border-bottom: 2px solid #c8a84b;
  padding-bottom: 6px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 2px;
  color: #1a2e44;
}

p {
  margin-bottom: 14px;
}

a {
  color: #24405e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Publication / entry lists */
.pub-list,
.course-list,
.entry-list {
  list-style: none;
  padding: 0;
}

.pub-list li,
.entry-list li {
  margin-bottom: 18px;
  padding-left: 0;
}

.pub-list li p,
.entry-list li p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.pub-list li .pub-doi {
  font-size: 0.85rem;
  color: #555;
}

em.journal {
  font-style: italic;
}

/* Teaching table */
.teaching-block {
  margin-bottom: 32px;
}

.teaching-block h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.teaching-block .inst-meta {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 12px;
  font-style: italic;
}

.course-list {
  list-style: disc;
  padding-left: 22px;
}

.course-list li {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* CV page */
.cv-download {
  display: inline-block;
  margin-bottom: 32px;
  background: #1a2e44;
  color: #fff;
  padding: 10px 20px;
  border-radius: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.cv-download:hover {
  background: #24405e;
  text-decoration: none;
}

.cv-section {
  margin-bottom: 36px;
}

.cv-entry {
  margin-bottom: 16px;
}

.cv-entry .cv-entry-title {
  font-weight: bold;
}

.cv-entry .cv-entry-sub {
  font-size: 0.93rem;
  color: #333;
}

.cv-entry .cv-entry-date {
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
}

/* About page */
.about-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-photo {
  flex-shrink: 0;
  width: 160px;
  height: 200px;
  background: #d6e6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.8rem;
  font-family: Arial, sans-serif;
  border: 1px solid #bbb;
}

.about-text {
  flex: 1;
}

.contact-info {
  margin-top: 20px;
  font-size: 0.93rem;
}

.contact-info dt {
  font-weight: bold;
  color: #444;
  float: left;
  width: 70px;
}

.contact-info dd {
  margin-left: 70px;
  margin-bottom: 6px;
}

/* Under review / in progress label */
.status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  background: #e8eff6;
  color: #24405e;
  border: 1px solid #a8c0d6;
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

/* Footer */
footer {
  background: #1a2e44;
  color: #a8c0d6;
  text-align: center;
  padding: 20px;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
}

@media (max-width: 600px) {
  .about-grid { flex-direction: column; }
  nav ul { flex-wrap: wrap; }
  nav ul li a { padding: 10px 14px; font-size: 0.82rem; }
}
