@font-face {
  font-family: 'Source Serif';
  src: url('/assets/SourceSerif4.woff2') format('woff2');
  font-display: swap;
}

:root {
  --vignette-strength: 0.12;
  --vignette-reach: 55%;
  --vignette-blend: 88%;
  --vignette-edge: #2A748B;
}

html {
  width: 100%;
  min-height: 100lvh;
  background-color: #fafafa;
}

body {
  width: 100%;
  min-height: 100lvh;
  min-width: 320px;
  line-height: 1.2;
  font-family: 'Source Serif', Georgia, serif;
  background: #fafafa;
}

#c {
  display: block;
  width: 280px;
  height: 280px;
  border: 5px double #012121;
  box-sizing: border-box;
  box-shadow: none;
  margin: 0;

}

main {
  display: flex;
  justify-content: center;
}

i {
  font-style: italic;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}


h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
  color: #11160B;
}

strong {
  font-weight: bold;
}

p {
  margin-top: 0.75rem;
  margin-bottom: 0.75em;
}

.footer {
  margin-bottom: 3rem;
}

.card {
  color: #012121;
  width: min(680px, 93%);
  margin-top: 2rem;
  margin-bottom: 2rem;

  @media (max-width: 450px) {
    margin-top: 1rem;
  }

}


.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

img {
  margin-top: 1rem;
  box-shadow: 0 18px 18px rgba(0, 0, 0, 0.18);
  border-radius: 1px;
  width: 100%;

}

a.clickable-img-link {
  display: block;
  margin-top: 1rem;
}

a.clickable-img-link img {
  display: block;
  margin: 0;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  background: #f0f0f0;
  border-radius: 1px;
  padding: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

:not(pre)>code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f0f0f0;
  padding: 0.1em 0.3em;
  border-radius: 1px;
}

.gallery img {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.article-img {
  display: block;
  max-height: 250px;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.article-img-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.article-img-group .article-img {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.article-caption {
  text-align: center;
  flex-basis: 100%;
}


.article-notes {
  margin-top: 3rem;
  font-style: italic;
}

.frame-mid {
  width: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;


  p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

.frame-mid h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.frame-mid h2 {
  font-style: italic;
}



.frame-left {
  position: absolute;
  bottom: 0;
  left: -2.3rem;
  /* Why this? because webkit is stupid */
}

.frame-left h2 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.25px;
  font-style: italic;
  margin: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.frame-right {
  position: absolute;
  top: 0;
  left: calc(100% + 0.5rem);
}

.frame-right h2 {
  writing-mode: vertical-rl;
  letter-spacing: 0.25px;
  font-style: italic;
  margin: 0;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.frame-left h2 a,
.frame-right h2 a {
  display: block;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

a {
  text-decoration: underline;
}

nav {
  margin-bottom: 1rem;
}

nav.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 1rem;
  opacity: 0.88;
}

nav.crumbs>*+*::before {
  content: "/";
  margin-right: 0.25rem;
}

:focus-visible,
:focus {
  outline: 2px solid #5C6DC9;
  outline-offset: 2px;
}


ul,
ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 1.5rem;

  li {
    margin-top: 0.2rem;
  }
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}


time {
  font-size: 0.88rem;
  opacity: 0.8;
}

@media (max-width: 450px) {
  #c {
    width: 220px;
    height: 220px;
  }

  .frame-mid {
    width: 220px;
  }
}


#nice-day {
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
  font-size: 18px;
}

aside {
  font-style: italic;

}

.resume {

  width: 100%;

  h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  h2 {
    margin-top: 1rem;
    font-size: 1.5rem;
    border-bottom: solid 1px #b4b2b2;
  }


  h3 {
    margin-top: 0rem;
    margin-bottom: 0rem;
    font-weight: 550;
  }


  p {
    margin-top: 0.25rem;
  }



  .workexp {

    .title {
      font-weight: 555;
      margin-bottom: 0.25rem;
    }

    .workexp-item {
      margin-bottom: 0.5rem;
      margin-top: 0.75rem;
    }

    .workexp-item span {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 1rem;
      margin-right: 1rem;
    }

    .workexp-item li {
      text-align: none;
      /* don't use justif here. vibe coded and breaks here for some reason*/
    }


    .date-range {
      font-style: italic;
      font-size: 1rem;
      color: #4e4e4e;
      white-space: nowrap;
    }

    p {
      font-style: italic;
      text-align: start;
    }

    ul {
      p {
        font-style: normal;
      }
    }

  }


  ul {
    margin-top: 0.25rem;
    margin-left: 1rem;
    list-style: outside;
    font-size: 15px;

  }

}