:root {
  --accent:       #c4572a;
  --accent-dark:  #a3441e;
  --accent-light: #fdf4ef;
  --text:         #1a1515;
  --muted:        #6b5e5a;
  --border:       #e8d4c8;
  --bg:           #ffffff;
  --section-gap:  3rem;
}

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

body {
  font-family: 'Georgia', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ── Layout ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
header {
  background: var(--accent);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}

header .container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.4);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.header-text .subtitle {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.header-text .institution {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.9rem;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-cv:hover {
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.83rem;
}

.contact-links a {
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-links a:hover { color: #fff; text-decoration: none; }

.contact-links .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Navigation ── */
nav {
  background: var(--accent-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav ul li a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--border);
  text-decoration: none;
}

/* ── Section headings ── */
section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

/* ── Bio / intro ── */
.bio {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.bio p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
}

/* ── Publications ── */
.pub-section { margin-bottom: 2rem; }
.pub-section:last-child { margin-bottom: 0; }

.pub-category {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.pub-list { display: flex; flex-direction: column; gap: 1rem; }

.pub-item {
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  font-size: 0.93rem;
  transition: border-color 0.15s;
}

.pub-item:hover { border-left-color: var(--accent); }

.pub-item .pub-title  { font-weight: 700; color: var(--text); }
.pub-item .pub-authors { color: var(--muted); }
.pub-item .pub-venue  { font-style: italic; color: var(--accent); }
.pub-item .pub-year   { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 0.82rem; color: var(--muted); }

/* ── Experience (brief) ── */
.exp-list { display: flex; flex-direction: column; gap: 1.4rem; }

.exp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
}

.exp-item .date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  padding-top: 0.1rem;
}

.exp-item .role {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ── Presentations ── */
.pres-list { display: flex; flex-direction: column; gap: 0.8rem; }

.pres-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  font-size: 0.92rem;
}

.pres-item .pres-year {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  padding-top: 0.05rem;
}

.pres-item .pres-venue {
  font-style: italic;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Teaching cards ── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.course-card {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.course-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(196,87,42,0.1);
  text-decoration: none;
}

.course-card .course-tag {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.course-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.course-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Course detail page ── */
.course-header {
  background: var(--accent);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.course-header .course-tag {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.course-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.course-header .course-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  opacity: 0.85;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  border: 1.5px solid var(--border);
  color: var(--accent);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-download:hover {
  background: var(--border);
  text-decoration: none;
}

.session-list { display: flex; flex-direction: column; gap: 0.6rem; }

.session-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.92rem;
}

.session-item .session-num {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2rem;
}

.session-item .session-link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--accent);
}

/* ── Blog ── */
.post-list { display: flex; flex-direction: column; gap: 2rem; }

.post-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.post-item:last-child { border-bottom: none; }

.post-date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.post-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.post-item h3 a { color: var(--text); }
.post-item h3 a:hover { color: var(--accent); text-decoration: none; }

.post-item p { font-size: 0.93rem; color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
}

.empty-state .icon-large {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--accent-light);
  border-top: 1px solid var(--border);
}

footer a { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  header .container { flex-direction: column; }
  .avatar { width: 80px; height: 80px; }
  .header-text h1 { font-size: 1.7rem; }
  .exp-item { grid-template-columns: 1fr; }
  .exp-item .date { text-align: left; }
  .session-item { grid-template-columns: auto 1fr; }
  .session-item .session-link { grid-column: 2; }
  nav ul li a { padding: 0.6rem 0.7rem; font-size: 0.75rem; }
}
