:root {
  color-scheme: dark;
  font-family: "Outfit", sans-serif;
  background: #101212;
  color: #f2f3ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      ellipse at 68% 0%,
      rgb(121 201 167 / 5%) 0%,
      rgb(121 201 167 / 2%) 32%,
      transparent 68%
    ),
    #101212;
}

#particles-js {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

#particles-js canvas {
  display: block;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 7vw, 6.5rem);
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #a8b4ad;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  transform: translate(-50%, 3px);
}

.scroll-cue:focus-visible {
  outline: 2px solid #79c9a7;
  outline-offset: 2px;
}

.about {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(3rem, 8vh, 6rem) clamp(2rem, 7vw, 6.5rem);
  background: #101212;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 42rem) clamp(6rem, 15vw, 10rem);
  align-items: start;
  justify-content: space-between;
  column-gap: clamp(2rem, 5vw, 4rem);
  width: min(100%, 76rem);
  margin: auto 0;
}

@media (min-width: 900px) {
  .about-photo {
    margin-right: clamp(1rem, 3vw, 2.5rem);
  }
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.01);
}

@media (max-width: 700px) {
  .about-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    grid-row: 1;
    width: clamp(5.5rem, 20vw, 7rem);
    justify-self: center;
  }
}

.about-content {
  max-width: 42rem;
}

.about h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.about p {
  color: #a8b4ad;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
}

.contacts a {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro {
  margin: auto 0;
  padding: 5rem 0;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
}

.subtitle {
  margin: 2rem 0 0;
  color: #a8b4ad;
  font-size: clamp(0.85rem, 1.7vw, 1.1rem);
  letter-spacing: 0.035em;
}

.subtitle span {
  padding: 0 0.45rem;
  color: #79c9a7;
}

footer {
  display: flex;
  align-items: center;
}

.about footer {
  margin-top: auto;
  padding-top: 3rem;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.contacts a {
  color: #d2d9d4;
  text-decoration: none;
  transition: color 160ms ease;
}

.contacts a:hover,
.contacts a:focus-visible {
  color: #79c9a7;
}

.contacts a:focus-visible {
  outline: 2px solid #79c9a7;
  outline-offset: 5px;
}

.cv-page {
  background: #101212;
}

.cv {
  width: min(100%, 68rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 6rem);
}

.cv-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1rem;
}

.cv-kicker,
.cv-date {
  color: #8d9b94;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-kicker {
  margin: 0 0 1rem;
}

.cv-header h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

.cv-subtitle {
  margin: 1rem 0 0;
  color: #a8b4ad;
}

.cv a {
  color: #a8b4ad;
  text-decoration: none;
}

.cv a:hover,
.cv a:focus-visible {
  color: #79c9a7;
}

.cv-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.cv-section {
  padding: 2.5rem 0;
}

.cv-section h2 {
  margin: 0 0 2rem;
  color: #79c9a7;
  font-size: 1.25rem;
  font-weight: 500;
}

.cv-entry {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 0 0 1.75rem;
}

.cv-date {
  margin: 0.2rem 0 0;
}

.cv-entry h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.cv-organization {
  margin: 0.35rem 0 0;
  color: #a8b4ad;
}

.cv-entry ul,
.cv-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: #c1c9c3;
  line-height: 1.7;
}

.cv-list {
  margin-top: 0;
}

@media (max-width: 520px) {
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 600px) {
  .cv-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media print {
  .cv-page {
    color-scheme: light;
    background: #fff;
    color: #111;
  }

  .cv {
    width: 100%;
    padding: 0;
  }

  .cv-back {
    display: none;
  }

  .cv-kicker,
  .cv-date,
  .cv-subtitle,
  .cv-organization,
  .cv-entry ul,
  .cv-list {
    color: #444;
  }

  .cv-section h2 {
    color: #222;
  }
}
