@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: block;
  font-weight: 300 800;
  src: url("/fonts/open-sans-latin-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-display: block;
  font-weight: 300 800;
  src: url("/fonts/open-sans-latin-italic.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: block;
  font-weight: 400 700;
  src: url("/fonts/lora-latin-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-display: block;
  font-weight: 400 700;
  src: url("/fonts/lora-latin-italic.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url("/fonts/libre-franklin-latin-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-display: block;
  font-weight: 100 900;
  src: url("/fonts/libre-franklin-latin-italic.woff2") format("woff2-variations");
}

:root {
  --body-text-size: 0.8rem;
  --button-text-size: var(--body-text-size);
  --franklin-font: "Libre Franklin", Arial, sans-serif;
  --lora-font: "Lora", Georgia, serif;
  --open-sans-font: "Open Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: var(--open-sans-font);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.text-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font-family: var(--franklin-font);
  font-size: var(--button-text-size);
  line-height: 1.2rem;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  transition: text-shadow 0.2s ease;
}

.text-button:hover {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.text-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.visible {
  display: flex;
}

.hidden {
  display: none !important;
}

.main {
  align-items: center;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.page-shell {
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 900px;
  padding: 1.2rem;
  width: 100%;
}

.header {
  padding-bottom: 1rem;
  position: relative;
  width: 100%;
}

.header-container {
  align-items: center;
  background: #ffffff;
  display: flex;
  height: 5rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 0 2.4rem;
  position: relative;
  width: 100%;
}

.header-container::before {
  background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 50%, #ffffff 100%);
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000000 3%, #000000 97%, transparent 100%);
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.header-container::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 180px 180px;
  content: "";
  filter: contrast(120%);
  inset: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000000 3%, #000000 97%, transparent 100%);
  mix-blend-mode: soft-light;
  opacity: 0.18;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.header-container > * {
  position: relative;
  z-index: 1;
}

.header-hidden-thumbnail {
  height: 0;
  width: 0;
}

.header-title {
  color: #000000;
  font-family: var(--lora-font);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-shadow: 0 1px 30px rgba(169, 210, 255, 0.7);
}

.header-button {
  align-items: center;
  color: #000000;
  display: inline-flex;
  font-family: var(--franklin-font);
  font-size: 0.8rem;
  line-height: 1.2rem;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  text-shadow: 0 1px 30px rgba(169, 210, 255, 0.7);
}

.header-button:hover,
.header-button-active {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.body {
  color: #000000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.footer {
  align-items: center;
  color: #808080;
  display: flex;
  font-size: 0.6rem;
  height: 3rem;
  justify-content: center;
  width: 100%;
}

.about-container,
.section-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  justify-content: flex-start;
  padding: 1.6rem;
  width: 100%;
}

.cover-letter {
  display: grid;
  font-size: 1rem;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
  width: 100%;
}

.cover-letter-description {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  font-size: var(--body-text-size);
  gap: 1rem;
  grid-column: span 3;
  line-height: 1.2rem;
}

.cover-letter-description h3,
.section-container > h3,
.projects-header h3,
.publication-container-header h3 {
  font-family: var(--franklin-font);
  font-size: 1rem;
  font-weight: 600;
}

.cover-letter-link {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: var(--body-text-size);
  gap: 0.5rem;
}

.cover-letter-link-item {
  display: inline-flex;
}

.cover-letter-link-label {
  font-family: var(--franklin-font);
  font-size: var(--body-text-size);
  font-weight: 600;
  line-height: 1.2rem;
}

.cover-letter-aside,
.cover-letter-photo {
  width: 100%;
}

.cover-letter-photo {
  height: auto;
}

.publication-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.publication-container-header {
  width: 100%;
}

.publication-container-sub-header {
  font-family: var(--franklin-font);
  font-size: 0.8rem;
  width: 100%;
}

.publication-container-sub-header h4 {
  font-weight: 400;
}

.publications-article {
  align-items: flex-start;
  display: flex;
  gap: 1.2rem;
  justify-content: flex-start;
  width: 100%;
}

.publications-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 20%;
}

.publications-thumbnail-img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.publications-detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 80%;
}

.publications-detail-title {
  font-family: var(--franklin-font);
  font-size: 0.8rem;
  font-weight: 600;
}

.publications-details-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  row-gap: 0.2rem;
}

.publications-details-author-item {
  font-family: var(--lora-font);
  font-size: 0.8rem;
}

.author-me {
  text-decoration: underline;
}

.publications-details-other {
  display: flex;
  font-family: var(--franklin-font);
  font-size: 0.8rem;
  gap: 0.8rem;
}

.publications-details-date,
.publications-details-venue {
  font-size: 0.8rem;
}

.publications-details-links {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  justify-content: space-between;
  width: 100%;
}

.publications-details-links-container {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.publications-details-link-item {
  display: inline-flex;
}

.projects-header {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.projects-header h3 {
  grid-column: span 3;
  width: 100%;
}

.sub-menu {
  color: #000000;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--franklin-font);
  font-size: var(--button-text-size);
  gap: 0.3rem;
  grid-column: span 1;
  justify-content: flex-end;
  width: 100%;
}

.sub-menu-button {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  justify-content: flex-end;
}

.button-highlight {
  text-decoration-thickness: 0.08em;
}

.stories-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.story-container {
  align-items: flex-start;
  color: #000000;
  display: flex;
  gap: 1.2rem;
  width: 100%;
}

.story-container:hover .story-title {
  text-decoration: underline;
}

.story-figure {
  aspect-ratio: 16 / 9;
  flex: 1 1 0;
  margin: 0;
  overflow: hidden;
}

.story-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.6rem;
}

.story-title,
.story-content,
.story-date {
  font-size: 0.8rem;
}

.story-title {
  font-family: var(--franklin-font);
  font-weight: 600;
}

.story-content {
  line-height: 1.2rem;
}

.story-endnote {
  color: #808080;
  display: flex;
  font-family: var(--franklin-font);
  justify-content: flex-end;
}

.news-article {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.news-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
}

.news-title,
.news-date {
  font-family: var(--franklin-font);
  font-size: 0.8rem;
}

.news-title {
  font-weight: 600;
}

.news-date {
  color: #606060;
  flex-shrink: 0;
}

.project-detail-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.6rem;
  width: 100%;
}

.project-detail-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.project-heading-title {
  font-family: var(--franklin-font);
  font-size: 1rem;
  font-weight: 600;
}

.project-heading-description {
  font-family: var(--franklin-font);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 300;
}

.project-detail-article {
  width: 100%;
}

.markdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.markdown p,
.markdown li,
.markdown blockquote {
  font-family: var(--open-sans-font);
  font-size: 0.8rem;
  line-height: 1.2rem;
}

.markdown a {
  font-family: var(--lora-font);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5 {
  font-family: var(--franklin-font);
  font-weight: 600;
}

.markdown h1 {
  font-size: 1.2rem;
}

.markdown h2,
.markdown h3 {
  font-size: 1rem;
}

.markdown h4,
.markdown h5 {
  font-size: 0.8rem;
}

.markdown ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1rem;
}

.markdown img {
  display: block;
  height: auto;
  width: 100%;
}

.markdown blockquote {
  border-left: 0;
  font-style: italic;
  padding-left: 0;
  text-align: center;
}

.markdown blockquote p {
  font-size: 0.7rem;
}

.markdown iframe {
  max-width: 100%;
}

.page-footer {
  color: #808080;
  font-size: 0.6rem;
  font-style: italic;
  padding: 1rem;
}

@media only screen and (max-width: 1024px) {
  .page-shell {
    padding: 0.4rem;
  }

  .header {
    padding-bottom: 0;
  }

  .header-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    height: 100%;
    justify-content: flex-start;
    padding: 1.2rem;
    width: 100%;
  }

  .header-container::before {
    background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 35%, #eaf4ff 65%, #ffffff 100%);
  }

  .header-title {
    text-align: start;
    width: 100%;
  }

  .header-button {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    font-size: 0.75rem;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 700px) {
  .cover-letter {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .cover-letter-description {
    order: 2;
    width: 100%;
  }

  .cover-letter-link {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    width: 100%;
  }

  .cover-letter h3 {
    font-size: 0.8rem;
  }

  .cover-letter-aside {
    align-items: flex-start;
    display: flex;
    flex: 1 1 45%;
    justify-content: center;
    order: 1;
  }

  .cover-letter-photo {
    max-width: 150px;
    width: 100%;
  }

  .publications-detail {
    gap: 0.8rem;
  }

  .publications-details-authors {
    gap: 0.4rem;
    row-gap: 0.4rem;
  }

  .publications-details-other,
  .publications-details-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .publications-details-links-container {
    gap: 0.4rem;
    justify-content: flex-start;
    margin-top: 0.2rem;
  }

  .publications-details-author-item {
    line-height: 1;
  }

  .projects-header h3 {
    grid-column: span 2;
  }

  .sub-menu {
    grid-column: span 2;
  }
}

@media only screen and (max-width: 450px) {
  .projects-header h3 {
    grid-column: span 1;
  }

  .sub-menu {
    grid-column: span 3;
  }

  .story-container {
    flex-direction: column;
  }

  .story-figure,
  .story-item {
    flex: auto;
    width: 100%;
  }
}
