/* latin-ext */  
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d1b18;
}

strong {
  font-weight: 700;
}

heading {
  font-size: 26px;
}

papertitle {
  font-weight: 700;
}

name {
  font-size: 40px;
}

body.bg_colour {
  background-color: #fbf6ea;
  background-image: radial-gradient(#dcd3c1 1.4px, transparent 1.7px);
  background-size: 26px 26px;
  background-position: 13px 13px;
}

/* Layout */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 32px 48px;
}

.intro {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

/* Empty third column keeps the name centered on the page */
.intro::after {
  content: "";
}

.intro h1 {
  margin: 0 0 8px;
  text-align: center;
}

.nav-links,
.quick-links {
  text-align: center;
}

.nav-links {
  margin: 0;
}

.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

hr.soft {
  border-top: 2px solid #1d1b18;
  margin: 28px 0;
}

.section-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}

.section-toggle:focus:not(:focus-visible) {
  outline: none;
}

/* News */

.news-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 3px 0;
}

.news-date {
  color: darkblue;
  white-space: nowrap;
}

/* Technical skills */

.skills {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 24px;
}

/* Experience, publication and project entries */

.entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 14px 0;
}

.entry-full {
  grid-template-columns: 1fr;
}

.entry-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-logo img {
  max-width: 100%;
  max-height: 140px;
}

.entry-date {
  margin: 2px 0 10px;
}

.entry-body p,
.entry-body ul {
  margin: 8px 0 0;
}

.entry-body ul {
  padding-left: 20px;
}

/* Phones */

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  heading {
    font-size: 22px;
  }

  name {
    font-size: 30px;
  }

  .page {
    padding: 20px 16px 32px;
  }

  .intro {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .intro::after {
    display: none;
  }

  .intro-photo {
    width: 120px;
  }

  hr.soft {
    margin: 20px 0;
  }

  .news-item {
    grid-template-columns: 58px 1fr;
    gap: 8px;
  }

  .skills {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .skills strong {
    margin-top: 10px;
  }

  .skills strong:first-child {
    margin-top: 0;
  }

  .entry {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .entry-full {
    grid-template-columns: 1fr;
  }

  .entry-logo {
    align-items: flex-start;
  }
}

/* Blog */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-name {
  font-size: 24px;
  color: #1d1b18;
}

.blog-title {
  margin: 0 0 16px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.post-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 6px 0;
}

.post-date {
  color: #6e685e;
  white-space: nowrap;
}

.post-link {
  font-size: 18px;
  font-weight: 700;
}

.post-summary {
  margin: 2px 0 0;
}

.draft-badge {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0a0;
  font-size: 12px;
}

.post {
  max-width: 720px;
  margin: 0 auto;
}

.post-title {
  font-size: 34px;
  line-height: 1.25;
  margin: 8px 0 6px;
}

.post-meta {
  color: #6e685e;
  margin-bottom: 28px;
}

.post-body {
  font-size: 17px;
  line-height: 1.7;
}

.post-body h2,
.post-body h3 {
  margin: 32px 0 12px;
  line-height: 1.3;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-body pre {
  border: 0;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  overflow-x: auto;
}

.post-body :not(pre) > code {
  color: inherit;
  background: #efe8d6;
  border-radius: 4px;
  padding: 1px 5px;
}

.post-body blockquote {
  border-left: 3px solid #1d1b18;
  margin: 20px 0;
  padding: 2px 16px;
  font-size: inherit;
  color: #3a3631;
}

@media (max-width: 640px) {
  .post-list li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-title {
    font-size: 26px;
  }

  .post-body {
    font-size: 16px;
  }
}

.site-footer {
  margin-top: 32px;
  color: #6e685e;
  font-size: 14px;
  text-align: center;
}
