@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap");
:root {
  --color-bg: #e8e3df;
  --color-text: #000;
  --color-accent: #303030;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 {
  font-size: 7rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.125rem;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

header {
  display: flex;
  height: 40vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }
}
header .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 768px) {
  header .info {
    align-items: center;
    text-align: center;
  }
}
header .avatar {
  margin-right: 20px;
}
header .avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-right: 20px;
  border: 3px solid var(--color-accent);
}
@media (max-width: 768px) {
  header .avatar {
    margin-right: 0;
    margin-bottom: 20px;
    margin-top: 50px;
  }
  header .avatar img {
    width: 100px;
    height: 100px;
    margin-right: 0;
  }
}

.resume-section {
  padding: 5vmin;
  padding-top: 0;
}
.resume-section p,
.resume-section li,
.resume-section span {
  font-weight: 300;
}

section#summary {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
  text-align: justify;
}

#skills-list {
  columns: 2;
  gap: 2rem;
}
@media (max-width: 768px) {
  #skills-list {
    columns: 1;
  }
}
#skills-list .skill-item {
  padding-top: 2rem;
  break-inside: avoid;
}

.skill-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  font-size: 0.8rem;
  font-weight: 400;
}

section#info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}
section#info .info-item {
  margin: 1rem;
  display: flex;
  align-items: center;
  flex-direction: row;
}
section#info .info-item a {
  display: block;
}
section#info .info-item .icon {
  margin-right: 0.5rem;
}

#languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}

.language-item {
  display: flex;
  flex-direction: column;
}

.language-name {
  font-size: 1.1rem;
  font-weight: 400;
}

.language-fluency {
  font-size: 0.85rem;
  color: var(--color-accent);
}

#interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.interest-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.interest-name {
  font-size: 1.1rem;
  font-weight: 400;
}

#projects-list {
  columns: 2;
  gap: 2rem;
}
@media (max-width: 768px) {
  #projects-list {
    columns: 1;
  }
}
#projects-list .project-item {
  padding-top: 2rem;
  break-inside: avoid;
}

.project-item {
  margin-bottom: 2.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.project-header h4 {
  margin-bottom: 0;
}

.project-dates {
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--color-accent);
}

.project-description {
  margin: 0.25rem 0 0.5rem;
  line-height: 1.6;
}

.project-highlights {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

#work-list,
#volunteer-list {
  columns: 2;
  gap: 2rem;
}
@media (max-width: 768px) {
  #work-list,
  #volunteer-list {
    columns: 1;
  }
}
#work-list .work-item,
#volunteer-list .work-item {
  padding-top: 2rem;
  break-inside: avoid;
}

.work-item {
  margin-bottom: 2.5rem;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
  .work-header {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.work-title h4 {
  margin-bottom: 0.25rem;
}

.work-position {
  font-size: 0.95rem;
  color: var(--color-accent);
}

.title-with-url {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.title-with-url h4 {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .title-with-url {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.item-url {
  font-size: 0.8rem;
  color: var(--color-accent);
  opacity: 0.7;
  text-align: right;
  word-break: break-all;
}
@media (max-width: 768px) {
  .item-url {
    text-align: left;
  }
}

.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--color-accent);
}
@media (max-width: 768px) {
  .work-meta {
    align-items: flex-start;
  }
}

.work-summary {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.work-highlights {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

a:has(footer) {
  display: block;
  text-decoration: none;
}
a:has(footer):hover {
  text-decoration: none;
}

footer {
  background-color: #d9d4d0;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  color: #888;
  font-size: 0.9rem;
  font-weight: 300;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}