@font-face {
  font-family: "et-book";
  src: url("fonts/et-book-roman-line-figures.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "et-book";
  src: url("fonts/et-book-bold-line-figures.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --background: #fffff8;
  --text: #1f1e1d;
  --link-hover: #5e5d59;
  --container-width: 38.75rem;
  --container-padding: 20px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--text);
  font-family: "et-book", Palatino, "Palatino Linotype", "Book Antiqua",
    Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.header {
  margin-top: 15px;
  margin-bottom: 18px;
  padding-top: 15px;
  padding-bottom: 8px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}

.site-title a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.1em;
  font-size: 0.8em;
}

.site-nav a {
  color: var(--link-hover);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.2em;
  font-size: 1.44em;
  font-weight: 600;
  line-height: 1;
}

h3 {
  margin-bottom: 0.5em;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.2;
}

article {
  display: block;
  padding-bottom: 3rem;
}

p {
  margin: 0 0 1em;
  line-height: 1.43;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.section-block {
  margin-top: 1.3em;
  margin-bottom: 3em;
}

.muted {
  color: var(--link-hover);
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-list > li {
  display: flex;
  flex-direction: column;
}

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}

.work-when {
  font-size: 0.8em;
  white-space: nowrap;
}

.work-what {
  font-size: 0.85em;
  line-height: 1.35;
}

.coursework {
  margin-top: 0.35em;
  font-size: 0.85em;
}

.coursework summary {
  width: fit-content;
  color: var(--link-hover);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.coursework-body {
  margin-top: 0.6em;
  padding-left: 1em;
}

.coursework-note {
  margin-bottom: 0.9em;
  color: var(--link-hover);
}

.coursework-term {
  display: block;
  font-weight: 700;
}

.coursework-courses {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin: 0.15em 0 0.9em;
  padding: 0;
  list-style: none;
  color: var(--link-hover);
  line-height: 1.4;
}

.coursework-code {
  color: var(--text);
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  margin: 0;
  padding: 0;
  font-size: 0.9em;
  list-style: none;
}

.footer-links {
  display: flex;
  gap: 1.25em;
  margin-top: 4em;
  font-size: 0.8em;
}

.footer-links a {
  color: var(--link-hover);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
}

@media (max-width: 991px) {
  .container {
    width: 80%;
    max-width: none;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 479px) {
  .container {
    width: 95%;
  }
}
