/* Elise Antoine — personal site
   Minimalist layout: black on white, generous whitespace, Lato,
   one restrained accent color. */

:root {
  --bg: #faf9f6;
  --text: #16181c;
  --muted: #6b6760;
  --border: #e5e2da;
  --accent: #1d3a5f;
  --accent-soft: #1d3a5f33;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 48px 0 20px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.site-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--accent);
}

.site-title:hover {
  text-decoration: none;
  color: var(--accent);
}

nav.site-nav {
  display: flex;
  gap: 24px;
  padding-top: 8px;
}

nav.site-nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #3a3a3a;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover {
  color: var(--accent);
}

nav.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.tagline {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  max-width: 420px;
}

/* Main content */

main {
  padding: 52px 0 80px;
}

main h1 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 36px;
}

main h2 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 48px 0 18px;
  padding-bottom: 8px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

main h2:first-of-type {
  margin-top: 0;
}

main p {
  margin: 0 0 18px;
}

.bio-photo {
  float: left;
  width: 220px;
  margin: 0 28px 16px 0;
}

.bio-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.bio-clear {
  clear: both;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.award-figure {
  float: right;
  width: 160px;
  margin: 4px 0 12px 20px;
}

.award-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

.project-figure {
  margin: 8px 0 28px;
}

.project-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

ul.plain-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

ul.plain-list li {
  margin-bottom: 14px;
}

ul.pub-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

ul.pub-list li {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

ul.pub-list li::after {
  content: "";
  display: table;
  clear: both;
}

.note {
  display: block;
  font-size: 15px;
  color: var(--accent);
  margin-top: 2px;
}

details.abstract {
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

details.abstract summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

details.abstract summary:hover {
  color: var(--text);
}

details.abstract p {
  margin-top: 14px;
  font-size: 16px;
  color: #333333;
}

address {
  font-style: normal;
  line-height: 1.9;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 48px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 560px) {
  header.site-header {
    padding-top: 32px;
  }

  nav.site-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .bio-photo {
    float: none;
    width: 180px;
    margin: 0 0 20px;
  }

  .award-figure {
    float: none;
    width: 200px;
    margin: 0 0 16px;
  }
}
