/* Personal styling layered over the pinned al_folio_core theme. */
:root {
  --global-bg-color: #f8f7f2;
  --global-code-bg-color: #efeee6;
  --global-text-color: #303a31;
  --global-text-color-light: #697167;
  --global-theme-color: #886636;
  --global-hover-color: #73532c;
  --global-hover-text-color: #fff;
  --global-divider-color: #d7d9ce;
  --global-card-bg-color: #efeee6;
  --global-footer-bg-color: #efeee6;
  --global-footer-text-color: #697167;
  --global-footer-link-color: #886636;
  --personal-title-color: #252c27;
  --personal-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
html[data-theme="dark"] {
  --global-bg-color: #191b1a;
  --global-code-bg-color: #22251f;
  --global-text-color: #c5c7bf;
  --global-text-color-light: #939b8e;
  --global-theme-color: #ccaf83;
  --global-hover-color: #e0c59e;
  --global-hover-text-color: #191b1a;
  --global-divider-color: #373d33;
  --global-card-bg-color: #22251f;
  --global-footer-bg-color: #202320;
  --global-footer-text-color: #a0a696;
  --global-footer-link-color: #ccaf83;
  --personal-title-color: #e9e6df;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
::selection {
  color: var(--global-bg-color);
  background: var(--global-theme-color);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--global-theme-color);
  outline-offset: 4px;
}
body > .container[role="main"] {
  padding-top: 28px;
  padding-bottom: 45px;
}
h1,
h2,
h3 {
  color: var(--personal-title-color);
}
h1,
h2 {
  font-family: var(--personal-serif);
  letter-spacing: -0.025em;
  font-weight: 500;
}
h1.post-title {
  font-size: 68px;
  line-height: 1.15;
  margin-bottom: 12px;
}
h2 {
  font-size: 33px;
  line-height: 1.3;
}
.post-title .font-weight-bold {
  font-weight: 500 !important;
}
.post-header {
  margin-bottom: 36px;
}
.post-header .desc {
  font-family: var(--personal-serif);
  font-size: 25px;
  font-style: italic;
  color: var(--global-theme-color);
}
.post-header .desc:empty {
  display: none;
}
#navbar {
  box-shadow: none;
  border-bottom: 1px solid var(--global-divider-color);
  background: var(--global-bg-color);
}
#navbar .nav-link {
  font-size: 16px;
}
.navbar-brand.title {
  font-family: var(--personal-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--personal-title-color);
}
.profile {
  width: 29%;
  margin-left: 55px;
  margin-bottom: 35px;
}
.profile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--global-divider-color);
  box-shadow: none !important;
  border-radius: 4px !important;
}
.profile .more-info {
  font-family: inherit;
  font-size: inherit;
  margin-top: 12px;
}
.portrait-caption {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--global-text-color-light);
}
.portrait-caption a {
  color: inherit;
}
.portrait-caption a:hover,
.portrait-caption a:focus-visible {
  color: var(--global-theme-color);
}
.personal-motto {
  margin: 24px -8px 0;
  text-align: center;
}
.personal-motto blockquote {
  padding: 0;
  border: 0;
  margin: 0;
  font-family: var(--personal-serif);
  font-size: 29px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  color: var(--global-theme-color);
}
.personal-motto blockquote a {
  color: inherit;
  text-decoration: none;
}
.personal-motto blockquote a:hover,
.personal-motto blockquote a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.motto-equation {
  margin: 15px 0 0;
  color: var(--global-theme-color);
  font-size: 28px;
}
.motto-equation::before,
.motto-equation::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 1px;
  margin: 0 14px;
  background: var(--global-divider-color);
}
.motto-equation mjx-container {
  color: inherit;
}
.about-intro {
  max-width: 66%;
}
.about-intro p {
  margin-bottom: 20px;
}
.about-intro strong {
  font-weight: 600;
  color: var(--personal-title-color);
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 20px 0;
  padding-top: 4px;
  font-size: 12px;
}
.about-links a {
  color: var(--personal-title-color);
}
.about-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 40px;
  font-size: 28px;
  line-height: 1;
}
.about-socials a:hover {
  color: var(--global-theme-color);
  text-decoration: none;
}
.home-section {
  clear: both;
  border-top: 1px solid var(--global-divider-color);
  padding-top: 32px;
  margin: 45px 0 28px;
}
.news-list {
  margin-top: 20px;
}
.news-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}
.news-item + .news-item {
  margin-top: 16px;
}
.news-date {
  color: var(--global-text-color-light);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news-body p {
  margin: 0;
}
.selected-papers > h2 a {
  color: inherit;
}
.publications {
  margin-top: 28px;
}
.publications ol.bibliography {
  padding-left: 0;
}
.publications ol.bibliography li {
  margin-bottom: 32px;
}
.publications .title {
  font-family: var(--personal-serif);
  color: var(--personal-title-color);
  font-size: 25px;
  line-height: 1.35;
  font-weight: 600;
}
.publications .author {
  font-size: 13px;
  margin: 7px 0;
}
.publications .periodical {
  font-size: 12px;
}
.publications .links a.btn {
  font-size: 11px;
  padding: 3px 11px;
  box-shadow: none;
  border-radius: 3px;
}
.publications .abbr abbr {
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.publications img.preview {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--global-divider-color);
  box-shadow: none !important;
}
.publications h2.year {
  font-size: 23px;
}
footer.sticky-bottom {
  border-top: 1px solid var(--global-divider-color);
  font-size: 11px;
  padding: 20px 0;
}
.research-detail {
  padding: 8px 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--global-divider-color);
}
.research-detail h2 {
  font-size: 31px;
}
.draft-note {
  color: var(--global-text-color-light);
  font-size: 12px;
}
.personal-post-list {
  padding: 0;
  list-style: none;
}
.personal-post-list li {
  border-bottom: 1px solid var(--global-divider-color);
  padding: 22px 0;
}
.personal-post-list h2 {
  font-size: 30px;
  margin: 8px 0;
}
.personal-post-list p {
  margin-bottom: 0;
  font-size: 13px;
}
.post-date {
  font-size: 11px;
  color: var(--global-text-color-light);
}
@media (max-width: 900px) {
  body > .container[role="main"] {
    padding-inline: 28px;
  }
  h1.post-title {
    font-size: 58px;
  }
  .profile {
    margin-left: 30px;
    width: 31%;
  }
  .personal-motto blockquote {
    font-size: 25px;
  }
  .motto-equation::before,
  .motto-equation::after {
    width: 20px;
    margin: 0 9px;
  }
  .about-intro {
    max-width: 64%;
  }
}
/* Keep the larger navigation on one row until it switches to a menu. */
/* al-folio's display rules are !important inside its components layer. */
@layer components {
  @media (min-width: 576px) and (max-width: 767.98px) {
    #navbar .navbar-collapse-main {
      display: none !important;
    }
    #navbar .navbar-collapse-main.show {
      display: block !important;
    }
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  #navbar .navbar-toggler-main {
    display: block;
    margin-left: auto;
  }
  #navbar .navbar-collapse-main {
    flex-basis: 100%;
    width: 100%;
    text-align: left;
  }
  #navbar .navbar-menu-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-left: 0;
  }
  #navbar .navbar-menu-list .nav-link {
    padding-inline: 0;
  }
}
@media (max-width: 650px) {
  body > .container[role="main"] {
    padding: 15px 22px 30px;
  }
  h1.post-title {
    font-size: clamp(43px, 10vw, 58px);
  }
  .post-header .desc {
    font-size: 23px;
  }
  .profile {
    float: none !important;
    width: 100%;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin: 0 0 35px;
  }
  .profile figure {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .profile .more-info {
    display: contents;
  }
  .portrait-caption {
    grid-column: 1;
    grid-row: 2;
    margin-top: -10px;
    font-size: 9px;
  }
  .personal-motto {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .personal-motto blockquote {
    font-size: 23px;
  }
  .motto-equation {
    font-size: 24px;
    margin-top: 10px;
  }
  .motto-equation::before,
  .motto-equation::after {
    width: 14px;
    margin: 0 7px;
  }
  .about-intro {
    max-width: none;
  }
  .home-section {
    margin-top: 35px;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .publications .title {
    font-size: 24px;
  }
}
@media (max-width: 360px) {
  .profile {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
  }
  .personal-motto blockquote {
    font-size: 21px;
  }
  .motto-equation::before,
  .motto-equation::after {
    width: 10px;
    margin: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
