/* Simple theme: one plain, readable page. */
:root {
  --text: #222;
  --muted: #666;
  --rule: #ddd;
  --link: #1f5f99;
  --accent: #b52b27;
  --accent-dark: #962320;
  --bg: #fff;
  --heading-font: "Oswald", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.container {
  max-width: 992px;
  margin: 0 auto;
  padding: 0 16px;
}

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

/* Header: big centered name over a red bar, wider than the content */
.site-header {
  max-width: 1172px;
  margin: 0 auto;
  padding: 48px 16px 0;
  text-align: center;
}
.site-header h1 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 10px solid var(--accent);
  font-family: var(--heading-font);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Photo with CV button on the left, bio and contact on the right */
.intro {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 52px 0 8px;
}
.photo-col {
  flex: 0 0 270px;
}
.photo {
  display: block;
  width: 100%;
  height: auto;
}
.cv-button {
  display: block;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.cv-button:hover { background: var(--accent-dark); text-decoration: none; }
.bio p { margin: 0 0 16px; }
.contact a { font-weight: 600; }

/* Paper lists */
section h2 {
  margin: 56px 0 14px;
  font-family: var(--heading-font);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}
.papers { margin: 0; padding-left: 20px; list-style: square; }
.papers li { margin-bottom: 12px; }
.papers .title a { color: var(--text); }
.venue { font-style: italic; font-weight: 600; }
.venue strong { font-weight: inherit; } /* same weight even if the venue text has its own bold */

.footer {
  /* Line up the top rule with the content column, not the padded container. */
  width: calc(100% - 32px);
  max-width: 960px;
  margin-top: 56px;
  padding: 16px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

.back { margin-top: 32px; }

/* Phones: stack photo above bio */
@media (max-width: 700px) {
  .site-header { padding-top: 28px; }
  .site-header h1 { font-size: 2.6rem; border-bottom-width: 8px; }
  .intro { flex-direction: column; gap: 24px; margin-top: 32px; }
  .photo-col { flex-basis: auto; width: 220px; }
  section h2 { font-size: 2rem; margin-top: 40px; }
  .bio div[align] { text-align: left; } /* justified text leaves gaps on narrow screens */
}
