/* ======================== 
   Variables
   ======================== */

:root {
  --color-primary: #151511;
  --color-primary-content: #fefdfb;

  --color-base-100: #ffffff;
  --color-base-200: #fefdfb;
  --color-base-300: #e6e6e6;
  --color-base-content: #151511;

  --content-width: 18.5rem;
}

body.dark {
  --color-primary: #fefdfb;
  --color-primary-content: #151511;

  --color-base-100: #000000;
  --color-base-200: #151511;
  --color-base-300: #1c1c18;
  --color-base-content: #fefdfb;
}

/* ======================== 
   Resets & Globals
   ======================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p {
  font-weight: 300;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  width: 100dvw;
  font-family: "Open Sans";

  color: var(--color-base-content);

  background: radial-gradient(
    circle at center,
    var(--color-base-100) 0%,
    var(--color-base-200) 45%,
    var(--color-base-300) 100%
  );
}

h1 {
  font-family: "Playfair Display";
  font-size: 3.5rem;
  font-weight: 400;

  white-space: nowrap;
}

h2 {
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

ul {
  width: 18.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

/* ======================== 
   Layout
   ======================== */

header {
  width: 100%;
}

nav {
  display: flex;
  justify-content: end;
  padding: 0.5rem;
}

body main {
  width: var(--content-width);
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer {
  text-align: center;
  padding: 0.5rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

footer span {
  opacity: 50%;
  font-style: italic;
  font-size: small;
}

footer a {
  color: inherit;
  font-weight: 600;
}
/* ======================== 
   Components
   ======================== */
#theme-toggle {
  all: unset;
  opacity: 50%;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem;
}
#theme-toggle:hover {
  opacity: 100%;
}

#theme-toggle svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dark #sun-icon {
  display: none;
}

.dark #moon-icon {
  display: block;
}

#moon-icon {
  display: none;
}

#sun-icon {
  display: block;
}

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100vh;
  min-width: 100vw;
  z-index: -100;
}

.profile-picture {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
}

#profile {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

#description {
  margin-top: 2rem;
  text-align: justify;
}

#cta {
  width: 100%;
  max-width: 18.5rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

#cta span {
  font-size: 0.8rem;
  opacity: 90%;
}

#cta .button {
  width: 100%;
}

.button {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  text-decoration: none;
  background-color: var(--color-primary);
  align-items: center;
  justify-content: center;
  border-radius: 0.3125rem;
  cursor: pointer;
  color: var(--color-primary-content);
  padding: 0.5rem 1rem;
  border: 0.0625rem solid var(--color-primary-content);
}

.button:hover {
  background-color: var(--color-base-100);
  color: var(--color-primary);
  border-color: var(--color-base-content);
}

#resume-button {
  flex-grow: 1;
  font-weight: 600;
  font-size: 0.8rem;
}

.button-outline {
  color: var(--color-base-content);
  background-color: var(--color-base-100);
  border: 0.0625rem solid var(--color-base-content);
}

.button-outline:hover {
  background-color: var(--color-base-content);
  color: var(--color-base-100);
}

/* ======================== 
   Media Queries
   ======================== */

/* Medium */
@media (width >= 48rem) {
  :root {
    --content-width: 23.4375rem;
  }

  .profile-picture {
    width: 12rem;
    height: 12rem;
  }

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
  }

  #description {
    font-size: 1.1rem;
  }

  #cta span {
    font-size: 1rem;
  }

  ul {
    margin-bottom: 4rem;
  }
}

/* Large */
@media (width >= 64rem) {
  :root {
    --content-width: 31.25rem;
  }

  .profile-picture {
    width: 14rem;
    height: 14rem;
  }

  h1 {
    font-size: 6rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  ul {
    margin-top: 1rem;
    margin-bottom: 8rem;
  }

  #description {
    font-size: 1.2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
  }
}
