:root {
  --page-width: 900px;
  --border-color: #000000;
  --text-strong: #1f1f1f;
  --text-muted: #6b6b6b;
  --accent-light: #f3f3f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 5rem;
  font-family: "Montserrat", Arial, sans-serif;
  background: #ededed;
  color: #333;
  line-height: 1.6;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgb(16, 108, 214);
  background: rgba(16, 108, 214, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.12s ease, opacity 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
  z-index: 9999;
}

.cursor--visible {
  opacity: 1;
}

.cursor--pressed {
  transform: translate(-50%, -50%) scale(0.75);
  background: rgba(255, 122, 89, 0);
}

.resume {
  background: #ededed;
  max-width: var(--page-width);
  margin: 1.8rem auto 3rem;
  padding: 1.8rem 0 2.5rem;
  box-shadow: none;
  border-radius: 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-item--center {
  text-align: center;
}

.contact-item--right {
  text-align: right;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  text-decoration: underline;
}

.identity {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 3.75rem;
}

.identity__text {
  max-width: 60%;
}

.identity__name {
  margin: 0;
  font-size: 2.5rem;
  /* letter-spacing: 0.02em; */
  color: var(--text-strong);
}

.identity__title {
  margin: -0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.05;
  /* letter-spacing: 0.12em; */
  /* text-transform: uppercase; */
  color: #1d1d1d;
}

.identity__subtitle {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: #5a5a5a;
}

.identity__photo {
  position: relative;
  width: 170px;
  height: 210px;
  /* border: 1px solid var(--border-color); */
  /* background: var(--accent-light); */
  overflow: hidden;
}

.identity__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}


.resume-section {
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  padding-top: rem;
}

.section-title {
  margin: 0 0 1.05rem;
  font-size: 1rem;
  /* text-transform: uppercase; */
  /* letter-spacing: 0.3em; */
  font-weight: 400;
  color: #2a2a2a;
}

.about-item__summary {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1;
  /* max-width: 66ch; */
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  color: #1c1c1c;
}

.project-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  /* letter-spacing: 0.02em; */
}

.project-card__summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1;
  color: #3a3a3a;
}

.project-card__image-link {
  display: block;
  text-decoration: none;
  margin: 0;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 4 / 1;
  border: 1px solid var(--border-color);
  display: block;
  object-fit: cover;
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.project-card__image-link:hover .project-card__image {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
}

.experience-item__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.experience-item__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0rem 0 0;
}

.experience-item__role {
  margin-top: -1rem;
  font-size: 1.1rem;
  font-weight: 600;
  /* letter-spacing: 0.02em; */
  color: var(--text-strong);
  flex: 1 1 auto;
}

.experience-item__company {
  margin: 0;
  font-size: 0.8rem;
  /* text-transform: uppercase; */
  /* letter-spacing: 0.14em; */
  color: #4b4b4b;
  flex: 0 0 auto;
  text-align: right;
}

.experience-item__summary {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1;
}

.resume-section--bottom {
  border-top: none;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.resume-section--bottom > .education,
.resume-section--bottom > .skills {
  border-top: 1px solid var(--border-color);
}

.education__entry + .education__entry {
  margin-top: 1.75rem;
}

.education__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  /* text-transform: uppercase; */
  color: var(--text-strong);
}

.education__label {
  color: var(--text-muted);
}

.education__value {
  font-size: 1.1rem;
  font-weight: 600;
}

.education__details {
  margin-top: -0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: #2a2a2a;
  /* letter-spacing: 0.12em; */
  /* text-transform: uppercase; */
}

.education__institution {
  font-size: 0.8rem;
}

.skills__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
}

.skills__list {
  margin: 0rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: #060606;
}

.skills__list li + li {
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .resume {
    margin: 2rem;
    padding: 2.5rem 2.25rem 2rem;
  }

  .identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .identity__text {
    max-width: 100%;
  }

  .identity__photo {
    width: 150px;
    height: 190px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .project-card {
    flex-direction: column;
  }

  .project-card__image-link {
    flex: 0 0 auto;
  }

  .project-card__image {
    height: auto;
  }

  .resume-section--bottom {
    grid-template-columns: 1fr;
  }

  .skills__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .resume {
    margin: 1.5rem;
    padding: 2rem 1.75rem 1.5rem;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}
