*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0D1C1C;
  color: #EEF4ED;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  padding: 1.25rem;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body, html {
  max-width: 100vw;
  overflow-x: clip;
}

html {
  font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

main {
  --divider-spacing: calc(8rem / 1.618 / 1.618);

  margin-inline: auto;
  max-width: 40rem;
}

a:not(.social-link) {
  color: inherit;
  position: relative;
  text-decoration: underline 1px solid #0AECCC;
  text-decoration-color: #0AECCC;
  text-underline-offset: 3px;
  transition: color 0.1s linear, text-decoration-color 0.1s linear;

  &:hover {
    color: #0AECCC;
    text-decoration-color: #104F55;
  }
}

h1 {
  font-family: "Erode";
  font-size: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--divider-spacing);
  margin-top: calc(8rem / 1.618);
  text-wrap: balance;

  @media (width >= 32.5em) {
    max-width: 90%;
  }
}

h2 {
  font-family: "Erode";
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

h3 {
  color: #FFD49D;
  font-family: "PP Supply Mono";
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

em {
  font-family: "Erode";
  font-style: italic;
  font-weight: 500;
}

p {
  font-size: 1.125rem;
}

.career-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin-block: 1.5rem;

  > li + li {
    border-top: 1px dashed #104F55;
    padding-top: 1.5rem;
  }

  .description {
    font-size: 1rem;
    margin-top: 0.75rem;
  }
}

.career-list,
.project-list {
  .title {
    font-weight: 600;
  }
}

.connect-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  > p {
    font-size: 0.875rem;
    width: 100%;
  }

  @media (width >= 32.5em) {
    flex-wrap: nowrap;
  }
}

.erode {
  font-family: "Erode";
  font-style: italic;
  font-weight: 500;
}

.dimmed {
  opacity: 0.5;
}

.flags {
  column-gap: 4px;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  width: 80px;

  figcaption {
    display: contents;
    font-family: "PP Supply Mono";
  }

  span {
    color: #FFD49D;
    font-size: 0.75rem;
    line-height: 1;
    transform: translateX(-0.0625rem);
    width: 24px;
  }
}

.footer p {
  font-size: 0.75rem;
  text-align: center;
  text-transform: uppercase;
}

.hero {
  margin-bottom: 3rem;
  padding-top: 8rem;
  position: relative;
}

.me {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  right: 1rem;
  top: 7rem;
  z-index: -1;

  img {
    border-radius: 0.5rem;
    box-shadow: 0px 0px 0px rgba(57, 66, 74, 1),0px 8px 12px rgba(3, 4, 4, 0.36),0px 0px 1px rgba(3, 4, 4, 0.5);
    height: 144px;
    transform: rotate(-3deg);
    width: auto;
  }

  picture {
    display: flex;
  }

  @media (width >= 32.5em) {
    right: 0;
    top: 5rem;

    img {
      height: 192px;
    }
  }
}

.metadata {
  font-size: 0.875rem !important;
  font-weight: 300;
}

.mt-m {
  margin-top: 2rem;
}

.mt-s {
  margin-top: 1.5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin-block: 1.5rem;

  > li {
    display: flex;
    gap: 1rem;
  }

  p {
    font-size: 1rem;
  }
}

.simple-list {
  margin-block: 1.5rem;
  padding-left: 1rem;

  > *::marker {
    color: #104F55;
  }

  > li + li {
    margin-top: 0.5rem;
  }

  @media (width >= 32.5em) {
    margin-bottom: 0;
  }
}

.social-link {
  align-items: center;
  color: currentColor;
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 2rem;
  justify-content: center;
  transition: color 0.1s linear;
  width: 2rem;

  &::after,
  &::before {
    content: "";
    display: block;
    height: 0.375rem;
    transition: border-color 0.1s linear;
    width: 100%;
  }

  &::after {
    border: 1px solid #0AECCC;
    border-radius: 0 0 0.25rem 0.25rem;
    border-top: none;
  }

  &::before {
    border: 1px solid #0AECCC;
    border-bottom: none;
    border-radius: 0.25rem 0.25rem 0 0;
  }

  &:hover {
    color: #0AECCC;

    &::after,
    &::before {
      border-color: #104F55;
    }
  }

  svg {
    flex-shrink: 0;
  }
}

.striped-divider {
  background-image: linear-gradient(-45deg,
    #104F55 12.5%,
    transparent 12.5%,
    transparent 50%,
    #104F55 50%,
    #104F55 62.5%,
    transparent 62.5%,
    transparent 100%
  );
  background-size: 4px 4px;
  height: 0.5rem;
}

.supply-mono {
  font-family: "PP Supply Mono";
}

.supply-sans {
  font-family: "PP Supply Sans";
  letter-spacing: 0.5px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin-top: 0.75rem;

  li {
    background-color: #00686880;
    border-radius: 0.25rem;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 0.125rem 0;
    color: #FCFDFC;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.125rem 0.375rem;
  }
}

.two-columns {
  @media (width > 32.5em) {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
}
