/* MSGSS website styles.
   To change a colour everywhere, edit it once in :root below. */

@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

:root {
  --red: #A32C28;       /* links */
  --charcoal: #1C090B;  /* text */
  --olive: #384030;     /* header, subheadings */
  --beige: #BCA875;     /* accents and lines */
  --paper: #FAF7F0;     /* page background */
  --width: 44rem;       /* width of the text column */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Header and navigation */
.site-header {
  background: var(--olive);
  border-bottom: 4px solid var(--beige);
  padding: 1rem max(1rem, calc((100% - var(--width)) / 2));
}
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}
.site-name img { flex: none; }
.site-header nav a {
  display: inline-block;
  margin: 0.4rem 1.2rem 0 0;
  color: var(--beige);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--paper); }

/* Main content */
main {
  max-width: var(--width);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { font-size: 2rem; margin-top: 0; }
h3 { margin-bottom: 0.3rem; }
h3 + p, h3 + ul { margin-top: 0; }
h2 {
  color: var(--olive);
  border-bottom: 1px solid var(--beige);
  padding-bottom: 0.25rem;
  margin-top: 2.5rem;
}

a { color: var(--red); }
a:hover { text-decoration-thickness: 2px; }

li { margin-bottom: 0.4rem; }

/* Name next to a role on the Executive page */
.holder { color: var(--olive); font-weight: 400; }

/* Seminar talks */
article { margin-bottom: 2rem; }
article h3 { margin-bottom: 0.2rem; }
.meta { color: var(--olive); font-style: italic; margin-top: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--beige);
  color: var(--olive);
  font-size: 1rem;
  padding: 1.5rem max(1rem, calc((100% - var(--width)) / 2));
}

/* Current page in the navigation */
.site-header nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom: 2px solid var(--beige);
}

/* Compact list of past seminar talks */
.talk-list { list-style: none; padding-left: 0; }
.talk-list li { margin-bottom: 0.9rem; }
.talk-list .meta { font-size: 1rem; }

/* Extra styles for pages written in Markdown */
main h1 + h2 { margin-top: 1.5rem; }
main h4 { margin-bottom: 0.3rem; }
main a { overflow-wrap: anywhere; }
blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 1.2rem;
  border-left: 4px solid var(--beige);
  color: var(--olive);
}
code {
  font-size: 0.9em;
  background: #F1EBDD;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
pre { background: #F1EBDD; padding: 1rem; overflow-x: auto; }
pre code { padding: 0; background: none; }
hr { border: 0; border-top: 1px solid var(--beige); margin: 2rem 0; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; margin: 1rem 0; }
th, td { border-bottom: 1px solid var(--beige); padding: 0.4rem 0.8rem; text-align: left; }
th { color: var(--olive); }
